Skip to content
TickerLantern

Financial planning · Tax-efficient fund investing · Visual planning guide

Selling a fund at a loss after a crash: what the tax saving is worth, and how the 30-day rule can cancel it

Realize a capital loss on a non-registered fund, use it against other gains and switch to a different fund. Compare the after-tax result with holding, rebuying the same fund within 30 days, or buying it back inside a TFSA or RRSP.

By TickerLantern Research · Published · 7 min read
Sources reviewed

Change an assumption. Follow the result.

Compare holding a fund after a crash with selling it at a loss and switching

Interactive planning lab
Capital loss if sold now$25,000
Loss usable now against available gains$20,000
Tax saved now on those gains$4,000
After-tax value in year 10 · held$127,450.86
After-tax value in year 10 · sold and switched$129,675.45
Switching minus holding, after tax$2,224.59

Units bought for $100,000 are worth $75,000. Selling realizes a $25,000 capital loss; half of it is an allowable loss. $20,000 offsets available gains at a 40% marginal rate, saving $4,000, and $5,000 is carried forward to the final sale. The proceeds less a 0.25% switching cost, plus the tax saving, buy a different fund that returns 6% a year, against 6% for the original. Both holdings are sold after 10 years, with half of any gain taxed at 40%. A loss still unused at the final sale is given no value. Returns and tax rates are hypothetical inputs; this is not a personal tax calculation.

Hypothetical scenario

What happens to the $25,000 loss under four choices

Canadian dollars (CAD)

  • Used now against available gains
  • Carried forward to later gains
  • Added to the cost base of the repurchased units
  • Denied with no later benefit to you
  • Not realized; still inside the units held
What happens to the $25,000 loss under four choicesHorizontal stacked bar chart. CAD; value axis starts at zero. Exact values are available in the chart data table below.$0$6.3k$12.5k$18.8k$25kSell and buy a different fund$25,000Sell and rebuy the same fund within 30 days$25,000Sell, then buy the same fund in your TFSA or RRSP within 30 days$25,000Keep holding the fund$25,000

CRA treats a loss as superficial when you or an affiliated person, such as a spouse, buy the same or identical property in the 30 calendar days before or after the sale and still hold it 30 days after. A superficial loss cannot be deducted. When you are the buyer you can usually add it to the cost base of the new units, which only postpones the benefit. When the substituted property is bought in a registered plan, the loss is generally denied without a cost-base addition you can use. Confirm a specific case with a tax professional.

View chart data
What happens to the $25,000 loss under four choices · CAD
Choice within the 61-day windowUsed now against available gainsCarried forward to later gainsAdded to the cost base of the repurchased unitsDenied with no later benefit to youNot realized; still inside the units held
Sell and buy a different fund$20,000$5,000$0$0$0
Sell and rebuy the same fund within 30 days$0$0$25,000$0$0
Sell, then buy the same fund in your TFSA or RRSP within 30 days$0$0$0$25,000$0
Keep holding the fund$0$0$0$0$25,000
Hypothetical scenario

After-tax value if everything were sold at each year-end

Canadian dollars (CAD)

  • Sold and switched to a different fund · ends at $129,675.45
  • Kept holding the original fund · ends at $127,450.86
  • Sold and rebought the same fund (superficial loss) · ends at $127,144.73
After-tax value if everything were sold at each year-endLine chart. Years after the decision. Values in CAD. Exact values are available in the chart data table below.$0$50k$100k$150k$200k035810Years after the decision

Switching starts ahead by the tax saving, less the switching cost: $78,813 against $75,000. Its new cost base is lower, so more of the later growth is taxable; the extra tax at the final sale is $4,603. Rebuying the same fund only pays the switching cost, because the denied loss returns through the cost base.

View chart data
After-tax value if everything were sold at each year-end · CAD
Years after the decisionSeriesValue
0Sold and switched to a different fund$78,812.5
1Sold and switched to a different fund$83,541.25
2Sold and switched to a different fund$87,605.48
3Sold and switched to a different fund$91,856.06
4Sold and switched to a different fund$96,361.67
5Sold and switched to a different fund$101,137.62
6Sold and switched to a different fund$106,200.13
7Sold and switched to a different fund$111,566.39
8Sold and switched to a different fund$117,254.62
9Sold and switched to a different fund$123,284.15
10Sold and switched to a different fund$129,675.45
0Kept holding the original fund$75,000
1Kept holding the original fund$79,500
2Kept holding the original fund$84,270
3Kept holding the original fund$89,326.2
4Kept holding the original fund$94,685.77
5Kept holding the original fund$100,293.53
6Kept holding the original fund$105,111.15
7Kept holding the original fund$110,217.82
8Kept holding the original fund$115,630.88
9Kept holding the original fund$121,368.74
10Kept holding the original fund$127,450.86
0Sold and rebought the same fund (superficial loss)$74,812.5
1Sold and rebought the same fund (superficial loss)$79,301.25
2Sold and rebought the same fund (superficial loss)$84,059.33
3Sold and rebought the same fund (superficial loss)$89,102.88
4Sold and rebought the same fund (superficial loss)$94,449.06
5Sold and rebought the same fund (superficial loss)$100,055.3
6Sold and rebought the same fund (superficial loss)$104,860.87
7Sold and rebought the same fund (superficial loss)$109,954.77
8Sold and rebought the same fund (superficial loss)$115,354.31
9Sold and rebought the same fund (superficial loss)$121,077.82
10Sold and rebought the same fund (superficial loss)$127,144.73
Hypothetical scenario

Year 10: from the held fund’s after-tax value to the switched fund’s

Canadian dollars (CAD)

Year 10: from the held fund’s after-tax value to the switched fund’sHorizontal waterfall. Teal steps add to the running amount, gold steps subtract, and the navy endpoint is the total. Negative endpoints extend left of zero on the value scale. Exact values are available in the chart data table below.$0$50k$100k$150k$200kAfter-tax value, kept holding+$127,450.86Tax saved now, with its growth+$7,163.39Switching cost, with its lost growth-$335.78Return gap of the replacement fund$0Extra tax on the larger gain at the final sale-$4,603.02After-tax value, sold and switched$129,675.45

Selling at a loss mostly moves tax in time: it lowers tax now and raises the gain, and the tax, at the final sale. The net result is a gain of $2,225. It grows with the years the saving compounds and with a lower tax rate at the final sale; it shrinks or turns negative with a higher later rate, higher switching costs or a replacement fund that lags.

View chart data
Year 10: from the held fund’s after-tax value to the switched fund’s · CAD
StepChangeRunning total
After-tax value, kept holding$127,450.86$127,450.86
Tax saved now, with its growth$7,163.39$134,614.25
Switching cost, with its lost growth-$335.78$134,278.47
Return gap of the replacement fund$0$134,278.47
Extra tax on the larger gain at the final sale-$4,603.02$129,675.45
After-tax value, sold and switched—$129,675.45
Hypothetical scenario

Switching minus holding, after tax, by years held and later tax rate

Canadian dollars (CAD)

Switching minus holding, after tax, by years held and later tax rateScenario matrix. Darker cells mean larger values. Scale: -$220.4 to $18.1k. Exact values are available in the chart data table below.20% rate at sale30% rate at sale40% rate at sale50% rate at sale1 year$4k$4k$4k$4k3 years$3.5k$3k$2.5k$2k5 years$3k$1.9k$844.1-$220.410 years$4.5k$3.4k$2.2k$1.1k20 years$9.4k$8k$6.5k$5.1k30 years$18.1k$16.2k$14.3k$12.4k

Darker cells mean larger values. Scale: -$220.4 to $18.1k.

Each cell keeps the entered loss, available gains, 40% rate now, returns and switching cost, and changes only the holding period and the marginal rate when the units are finally sold. A sale in retirement at a lower rate favours switching; a sale in a high-income year, or a large sale that pushes income into a higher bracket, works against it.

View chart data
Switching minus holding, after tax, by years held and later tax rate · CAD
Years until the final sale20% rate at sale30% rate at sale40% rate at sale50% rate at sale
1 year$4,041.25$4,041.25$4,041.25$4,041.25
3 years$3,535.3$3,032.58$2,529.86$2,027.14
5 years$2,973.04$1,908.56$844.09-$220.39
10 years$4,526.1$3,375.34$2,224.59$1,073.83
20 years$9,385.73$7,965$6,544.26$5,123.53
30 years$18,088.6$16,184.38$14,280.15$12,375.92

The central idea

Selling a fund at a loss in a non-registered account can turn a paper loss into a tax saving now, but it lowers the cost base of the replacement and raises tax at the final sale. The benefit is mostly timing, it depends on gains to offset and on future tax rates, and it disappears if the same fund is bought back within 30 days.

01

A paper loss can have a tax value, but only if it is realized correctly

After a market fall, a fund held in a non-registered account may be worth less than its adjusted cost base (ACB), the total paid for the units including reinvested distributions. That difference is only a paper loss until the units are sold. Selling them realizes a capital loss. Half of it is an allowable capital loss, which CRA says must first be applied against taxable capital gains of the same year; any remainder becomes a net capital loss that can reduce taxable capital gains in any of the three previous years or any future year.

Many investors who sell for this reason want to stay invested, so they buy something else at once. That is where the timing rules and the long-run arithmetic come in. This guide is about funds in non-registered accounts only. Losses inside a TFSA or RRSP have no tax value, because gains there are not taxed either; the TFSA loss guide explains what happens to room.

02

The superficial loss rule: 30 days before, 30 days after

CRA describes a superficial loss as a loss on a sale where both of these are true:

  • you, or a person affiliated with you, buy or have a right to buy the same or identical property in the period from 30 calendar days before the sale to 30 calendar days after it; and
  • you, or that affiliated person, still own or have a right to buy it 30 calendar days after the sale.

CRA lists a spouse or common-law partner, and a corporation controlled by you or your spouse, among affiliated persons. A superficial loss cannot be deducted. If you are the person who acquires the substituted property, you can usually add the denied loss to its ACB, which lowers the gain or raises the loss when that property is sold later.

The first chart sorts a CAD 25,000 loss into what happens under four choices. Selling and buying a different fund lets CAD 20,000 offset available gains now, with CAD 5,000 carried forward. Rebuying the same fund within 30 days moves the whole loss into the new units’ cost base, so the benefit is postponed, not lost. Buying the same fund inside your TFSA or RRSP is the trap: the loss is generally denied, and the cost-base addition belongs to the registered plan, where it does you no good. Reinvested distributions inside the window, including automatic reinvestment in the fund being sold, can also count as purchases. When in doubt, have a tax professional review the specific transactions.

03

“Different fund” has to mean different property

The rule turns on whether the replacement is identical property. Units of the same ETF or the same mutual fund are identical property. Whether a different series of the same fund, or another provider’s fund tracking the same index, is identical is less clear-cut and calls for professional judgement. Funds with different mandates from different providers are generally treated as different property. This guide does not decide that question; it measures what is at stake once it has been answered.

The replacement also needs to fit the plan. If the point is to stay invested in a similar mix, the new fund should hold a comparable asset mix and risk level. A switch that changes the portfolio’s risk is an investment decision, not just a tax step. The fund-switch break-even guide covers the reverse case, a switch that realizes a gain.

04

The saving now is partly repaid at the final sale

In the default case, units bought for CAD 100,000 are worth CAD 75,000. Selling realizes a CAD 25,000 loss. CAD 20,000 offsets other gains taxed at a 40% marginal rate, so half of it, CAD 10,000, comes off taxable income and saves CAD 4,000. The remaining CAD 5,000 is carried forward. The proceeds, less a 0.25% switching cost, plus the CAD 4,000 saving, buy a different fund. Both funds then return 6% a year for 10 years.

  • Kept holding: about CAD 127,451 after tax on the final sale.
  • Sold and switched: about CAD 129,675, about CAD 2,225 more.
  • Sold and rebought the same fund: about CAD 127,145, slightly less than holding because only the switching cost changed.

The waterfall shows where the CAD 2,225 comes from. The CAD 4,000 saving grows to about CAD 7,163 by year 10. The switching cost and its lost growth take about CAD 336. The replacement starts from a cost base about CAD 25,000 lower, so the final sale reports a larger gain and the extra tax is about CAD 4,603. Harvesting a loss mostly moves tax from now to later. It helps because money saved now compounds, and it helps more if the final sale happens at a lower rate.

05

When it helps, and when it does not

The heatmap varies the years until the final sale and the marginal rate at that sale. With a 20% rate at the sale, for example in a low-income retirement year, switching ends about CAD 4,526 ahead after 10 years. With a 50% rate, about CAD 1,074. The pattern is not always smooth: after 5 years with a 50% rate at the sale, switching is about CAD 220 behind, because the held fund is barely above its old cost base while the replacement already has a taxable gain beyond the carried-forward loss.

Other inputs can wipe out the benefit:

  • No gains to offset. With no gains in the current or three previous years, nothing is saved now; the switch costs about CAD 306 in the default case, and the carried-forward loss only shelters later gains.
  • A lagging replacement. If the new fund returns half a point a year less, switching ends about CAD 2,990 behind after 10 years. A difference in fees alone can do that.
  • Costs. A 2% cost to sell and buy, from spreads, commissions or a remaining deferred sales charge on an older fund purchase, reduces the advantage to about CAD 82.

The model assumes the tax saving is reinvested immediately. In practice it arrives as a refund or a smaller balance owing after the return is filed, which can be more than a year later. It also assumes one combined marginal rate; a large final sale can push income into a higher bracket.

06

A checklist before selling for a loss

  1. Confirm the ACB. Include reinvested distributions and subtract any return of capital; the fund cost-base guide shows how. An understated ACB understates the loss.
  2. Check the 61-day window. Look 30 days back and plan 30 days ahead for purchases of the same fund by you, your spouse, a corporation you control and your registered plans, including pre-authorized contributions and automatic reinvestment of distributions.
  3. Know what the loss will offset. Gains this year and in the three previous years produce a saving now; otherwise the loss waits for future gains. The carryback guide charts which years are eligible and the request form CRA uses.
  4. Do not move a losing fund into a TFSA in kind. A transfer in kind is a sale at market value, and a loss on property transferred to a TFSA is denied; the in-kind contribution guide shows the arithmetic. Selling in the non-registered account and contributing cash is the usual alternative.
  5. Keep contributions and a lump-sum decision separate. Regular contributions from your paycheque can continue throughout; the decision here concerns only the existing non-registered units.
  6. Let the investment plan lead. A tax loss is a by-product of a fall, not a reason to change the portfolio’s risk. Selling in a crash and staying in cash is a market-timing decision with its own costs, tested in the crash-warning guide.

This guide explains mechanics using CRA’s published rules. It is not tax advice, and CRA may view a specific set of transactions differently.

Sources and scope

Public sources reviewed on 26 October 2026. The superficial-loss conditions, the three-year carryback, the indefinite carryforward and the one-half inclusion rate are from CRA pages reviewed 26 October 2026. Balances, returns, switching costs and tax rates are hypothetical editable inputs, not a forecast, the record of any fund or a personal tax calculation. Original scenario calculations and research checklists are TickerLantern’s educational analysis; attributed publisher examples retain their stated source and scope. Recheck current issuer documents for any product-specific decision.

  1. CRA · Capital losses ↗

    Reviewed 26 October 2026 (written for the 2025 tax year; no page date shown). Superficial loss section: same or identical property bought by you or an affiliated person from 30 calendar days before to 30 calendar days after the sale and still held 30 days after; examples of affiliated persons; the loss is not deductible but can usually be added to the ACB of the substituted property when you acquire it. General rules: allowable capital losses apply first against taxable capital gains of the year; a net capital loss can reduce taxable capital gains in any of the three previous years or any future year. Inclusion rate 1/2 for 2001 to 2025.

  2. CRA · Calculating and reporting your capital gains and losses ↗

    Reviewed 26 October 2026 for the calculation of a gain or loss from proceeds, adjusted cost base and outlays, and the one-half inclusion rate used in its examples.

  3. CRA · Tax treatment of mutual funds ↗

    Page dated 5 February 2026; reviewed 26 October 2026 for redemptions and switches as dispositions and reinvested distributions added to the adjusted cost base.

  4. CRA · What is a TFSA ↗

    Page dated 17 September 2026; reviewed 26 October 2026 for the general tax-free treatment of income and gains inside a TFSA.

  5. Ontario Securities Commission · GetSmarterAboutMoney, How volatility affects your investments ↗

    Last updated 4 August 2026; reviewed 26 October 2026 for its cautions on selling during a downturn. No figures are taken from it.