Tax

Tax-Loss Harvesting in Canada: Offsetting Gains

How tax-loss harvesting works in Canada, when it makes sense, and how the superficial-loss rule can disqualify a claimed loss on a reacquired investment.

Tax-loss harvesting is the practice of deliberately selling an investment that has fallen in value, in a taxable account, to realise a capital loss that offsets capital gains and reduces your tax. It is one of the few genuinely useful ways to turn a disappointing holding into something constructive. Done thoughtfully, it can lower the tax on gains elsewhere in your portfolio without changing your overall investment strategy. Done carelessly, it runs straight into the superficial-loss rule, which can deny the very loss you were trying to claim.

This guide is for investors with non-registered accounts in Ottawa and across Canada who want to understand how harvesting works and where its limits are. It is general information, not advice for your situation; confirm the specifics with your accountant.

It only works in non-registered accounts

The first thing to understand is where harvesting applies. Inside registered accounts such as RRSPs and TFSAs, gains and losses have no tax consequences, so a loss realised there is simply a loss with no offsetting benefit. Selling a losing position in a TFSA to harvest a loss accomplishes nothing except realising the loss.

Tax-loss harvesting is therefore a non-registered account strategy. In a taxable account, only 50% of a capital gain is included in income, and capital losses work against those included gains. Our note on non-registered account taxation covers how gains and losses are reported, and capital gains tax in Canada explains the inclusion rate.

How losses offset gains

Capital losses in Canada follow a clear order:

  1. Current year first. A capital loss must first be applied against capital gains in the same year.
  2. Carry back up to three years. If you have no gains this year, or losses left over, you can carry the loss back up to three years to recover tax on gains reported in those years.
  3. Carry forward indefinitely. Any remaining loss carries forward with no expiry, waiting for future gains.

This flexibility is what makes harvesting powerful. A loss realised in a year with no gains is not wasted; it can recover tax already paid in the prior three years or sit in reserve against future gains. Note that capital losses offset only capital gains, not ordinary income such as salary, with limited exceptions.

The superficial-loss rule

The rule that catches people is the superficial-loss rule. It denies your capital loss if two conditions are both met: you, or a person affiliated with you, acquire the same or an identical security within 30 days before or after the sale, and that security is still held at the end of that window.

Two features make it stricter than people expect. First, the window is 30 days on each side of the sale, a 61-day span in total. Second, affiliated persons include your spouse, and corporations or trusts you control, not just you. So selling a security at a loss in your account while your spouse buys the same security, or while you rebuy it in your corporate account, can trigger the rule. The loss is not permanently lost; it is generally added to the cost base of the repurchased security, so the benefit is deferred rather than destroyed, but the immediate deduction you wanted is gone.

A simplified illustration

The table below is an illustrative, hypothetical example showing a straightforward harvest and a superficial loss. Figures are rounded and are not a forecast; your result depends on your situation.

Action (illustrative)Capital gain/lossTax outcome
Realise $20,000 gain on Holding A+$20,000 gainTaxable, at inclusion rate
Sell Holding B at a $20,000 loss, do not rebuy for 31+ days−$20,000 lossOffsets the gain; net gain nil
Sell Holding B at a $20,000 loss, rebuy same security in 10 daysLoss deniedSuperficial loss; benefit deferred to new cost base

The contrast is the whole lesson. The same loss is useful when you stay out of the identical security for the full window, and denied when you rebuy too soon. Patience with the timing is what preserves the benefit.

Staying invested while harvesting

A common objection is that selling a losing holding takes you out of the market just when it might recover. The usual solution is to maintain market exposure without repurchasing the identical security within the window. For example, you might sell one broad investment at a loss and buy a different, non-identical one covering a similar part of the market, preserving your asset allocation by age while respecting the 30-day rule. After the window passes, you can return to your original holding if you wish. The investments should still fit your plan; harvesting is a reason to adjust timing, not to distort your strategy.

When harvesting makes sense, and when it does not

Harvesting is most useful when you have realised gains to offset, carried-forward losses would otherwise go unused, or you are rebalancing anyway and can realise a loss in the process. It is less useful when you have no gains and no prospect of them, when the trading costs or bid-ask spreads outweigh the tax saved, or when it would push you into holdings you do not actually want. Our note on rebalancing your portfolio explains how harvesting can ride along with routine maintenance, and tax-efficient investing in Canada places it in the wider context.

The honest caution is that tax is only one input. A harvest that saves modest tax but worsens your portfolio is a poor trade. The best harvesting happens as a by-product of disciplined investing, not as an end in itself.

It is also worth remembering that a loss only has value if you have, or expect to have, gains to apply it against. For an investor who rarely realises gains, aggressively harvesting losses can simply create a pile of carried-forward losses that may sit unused for years. The strategy earns its keep for investors who regularly rebalance, trim concentrated positions, or expect to realise meaningful gains in future, where a bank of losses becomes a genuine asset rather than a theoretical one.

Harvesting is often concentrated near the end of the calendar year, once gains for the year are known and a loss can be matched against them. One technical point catches people: a trade must actually settle within the tax year for the loss to count in that year. Because settlement takes a day or two after the trade, there is an effective cut-off a few business days before December 31, and leaving a harvest to the final days of the year risks the loss falling into the next tax year instead. If you intend to carry a loss back against gains in a prior year, the same year-end discipline applies. Confirm the current settlement cut-off with your advisor before relying on a late-December trade.

A less obvious complication affects investments held in a foreign currency, such as US-listed securities. For Canadian tax purposes, gains and losses are generally calculated in Canadian dollars, so a holding that looks like a loss in US-dollar terms can show a different result once currency movements are included, and sometimes the reverse. This can turn an expected loss into a smaller loss, or even a gain, which defeats the purpose of the harvest. Investors with meaningful foreign-currency holdings should have the Canadian-dollar figures calculated before selling, rather than assuming the foreign-currency screen tells the whole story. Our guide to foreign withholding tax in Canada covers related cross-border considerations for non-registered portfolios.

Fitting it into the plan

Tax-loss harvesting belongs inside a coordinated approach to your taxable investments, your gains, and your overall allocation. It interacts with household trading, corporate accounts, and your plans to realise gains in future years. Our investment management and tax planning services are built to coordinate those pieces so a harvest helps your tax without harming your plan.

Next step

Tax-loss harvesting can quietly improve your after-tax returns, provided you respect the superficial-loss rule and keep the strategy in service of your plan. If you would like help identifying harvesting opportunities and coordinating them across your household accounts, book a private consultation with Kevin Hayes Financial Services. We will integrate it with your investment strategy and confirm the tax details with your accountant.

Frequently asked questions

Can I do tax-loss harvesting in my RRSP or TFSA?

No. Gains and losses inside registered accounts such as RRSPs and TFSAs have no tax consequences, so a loss realised there cannot be claimed against gains elsewhere. Tax-loss harvesting only makes sense in a non-registered, taxable account where capital gains and losses actually appear on your return. Selling at a loss inside a TFSA simply loses the value with no tax benefit.

What is the superficial-loss rule?

The superficial-loss rule denies your capital loss if you, or a person affiliated with you such as your spouse or a corporation you control, buy the same or an identical property within 30 days before or after the sale and still hold it at the end of that period. The disallowed loss is generally added to the cost base of the repurchased security rather than lost entirely, deferring the benefit.

How long can I carry a capital loss?

A net capital loss first offsets capital gains in the current year. Any unused amount can be carried back up to three years to recover tax on gains reported in those years, or carried forward indefinitely to offset future gains. This flexibility means a loss realised in a year with no gains is not wasted; it waits until you have gains to apply it against.

KH
Written by Kevin Hayes Founder · Certified Financial Planner® · CFP® · Financial advisor since 1996

Kevin Hayes founded Kevin Hayes Financial Services in 1996 and has spent nearly three decades helping Ottawa families and business owners integrate financial planning, investments, tax and estate strategy. He provides advice through GP Wealth Management Corporation.

Book a consultation

Let’s build a plan worthy of what you’ve built

Book a private, no-obligation consultation with an Ottawa advisor — or call us directly.

Call Book a consultation