You can't avoid capital gains tax entirely, but there are legal strategies — like using tax-sheltered accounts, claiming the principal residence exemption, timing your sales, and offsetting losses — that can meaningfully reduce what you owe.
It's hard — and, frankly, illegal — to avoid paying capital gains tax entirely. But if you're looking for legal ways to reduce how much you owe, there are real strategies that can make a meaningful difference. Some are simple, like using the right accounts. Others take a bit more planning, like timing your sales or offsetting losses.
How capital gains tax works in Canada
A capital gain is the profit you make when you sell an investment or property for more than you paid. In Canada, only 50% of your capital gains are added to your taxable income for that year — this is known as the inclusion rate.
Your capital gain is calculated using this formula:
Capital gain = selling price − adjusted cost base (ACB) − selling expenses
The ACB is what you originally paid for the asset, plus any costs to acquire it (like legal fees or commissions). Once you know your capital gain, you multiply it by 50% to get the taxable portion, which is then taxed at your marginal tax rate.
Example
Say Priya bought shares for $10,000 and sold them for $15,000, paying $100 in trading commissions. Her capital gain would be $4,900 ($15,000 − $10,000 − $100). The taxable portion is $2,450 (50% of $4,900). If Priya's marginal tax rate is 30%, she'd owe $735 in tax on the gain.
That 50% inclusion rate is a good deal compared to employment income, which is fully taxable. But a large gain can still push you into a higher tax bracket, so it's worth knowing the strategies that can reduce what you owe.
Use tax-sheltered accounts
Tax shelters shield your investments from tax. As long as they remain inside a tax-sheltered account, you can buy and sell stocks at your leisure with no tax consequences. The one downside? You don't get to write capital losses off your total income.
Registered Retirement Savings Plan (RRSP)
A Registered Retirement Savings Plan (RRSP) is a common account used to save and shelter gains from taxes. Any profit you make inside an RRSP isn't taxed right away — it's not until you withdraw money. Withdrawals are taxed at your full marginal rate, but since most people withdraw during retirement when their income is lower, their marginal rate is lower too.
Tax-Free Savings Account (TFSA)
A Tax-Free Savings Account (TFSA) works similarly to an RRSP in protecting against capital gains. The biggest difference is that the money you put in a TFSA has already been taxed, so when you withdraw it (along with any extra earnings), you're not taxed at all.
The annual contribution limit is currently $7,000. If you contribute each year (keeping in mind the limits so you don't get dinged with an over-contribution penalty) with after-tax dollars and invest that money over 30 to 50 years, you could see it grow to a significant sum — and that amount wouldn't be taxed a cent when you withdrew it.
Registered Education Savings Plan (RESP)
A Registered Education Savings Plan (RESP) is another tax shelter you can use to avoid capital gains tax. RESPs help you save for your child's education. When it's time for them to withdraw the money, your child will be taxed, but presumably at a very low rate, since most students aren't exactly raking it in.
First Home Savings Account (FHSA)
The First Home Savings Account (FHSA) is a newer registered account that combines the features of an RRSP and a TFSA. Contributions are tax-deductible (like an RRSP), and qualifying withdrawals used to buy your first home are completely tax-free (like a TFSA). Any investment growth inside the account — including capital gains — is sheltered from tax.
Claim the principal residence exemption
Under Canada's tax laws, your principal residence is exempt from capital gains tax. The principal residence exemption is a significant tax break for Canadian homeowners. The exemption covers a home where you, your spouse or common-law partner, or your children resided for part of the year — even if you didn't live there yourself.
A cottage or seasonal home can qualify for the exemption, but you can only designate one property as your principal residence for any given tax year. If you own both a house and a cottage, you'll need to decide which property to designate for each year you owned them, based on which one had the larger gain. The Canada Revenue Agency (CRA) requires you to report the sale of your principal residence on your tax return, even though the gain is exempt.
Investment properties and rental units don't qualify for this exemption — any capital gain on those properties is taxable.
Offset capital losses
If, in the same year, you earn a $1,000 profit from selling ABC stock (fist bump!), but lose $1,000 when you sell XYZ stock (argh!), then your profit is effectively zero. The win and loss cancel each other out, and you won't have to pay any capital gains tax.
But what if you have only losses to report? You can carry your losses forward indefinitely or backward up to 3 years, applying them to different years to offset any gains you'd be taxed on. There are some instances where you can claim your capital losses against other kinds of income, but you should consult a qualified accountant to discuss this strategy.
One quick thing to note: in order to properly offset capital losses, you have to have a real loss — you can't sell a stock and quickly re-purchase it. You also can't sell a stock and tell your spouse to buy it. That's considered a "superficial loss," which the CRA will pick up on and doesn't allow.
Tax-loss harvesting
There is a clever way to work around the superficial loss rule. It's called "tax-loss harvesting," in which you purposely sell an investment that has decreased in value while purchasing a similar (but not identical) investment.
Say you bought shares in a cannabis company at $1,000, but those shares dropped to $500. You sell the stock, claim the $500 loss, and then immediately purchase a different cannabis stock or an exchange-traded fund (ETF). You're reducing your tax burden but still potentially capturing gains in a sector you're confident will go up (although there are no guarantees).
Time your sale strategically
Because capital gains are taxed at your marginal rate, when you sell matters almost as much as what you sell. If you know your income will be lower in a particular year — maybe you're between jobs, on parental leave, or recently retired — that could be a good time to trigger a capital gain.
A lower income means a lower marginal tax rate, which means less tax on the same gain. You might also consider spreading sales across two calendar years (selling some in December and some in January) to split the gain between two tax years.
Defer capital gains
You can defer paying capital gains tax on shares you received from a spouse or common-law partner — whether because they passed away or because of a separation. If your spouse bought 100 shares of ABC stock and then transferred them to you, neither of you will have to pay capital gains tax at that time. You owe capital gains tax only after you sell the shares, and the profit or loss is calculated from the value at the time your spouse purchased them, not when they gave them to you.
Take advantage of the lifetime capital gains exemption
The lifetime capital gains exemption applies to some small business owners when they sell private qualifying shares, and farm and fishery property. Shares that qualify are those in a company that actively operates in Canada and is owned by Canadians. The taxpayer or a relative must have owned the shares for at least 24 months prior to the sale.
The rules for this are complex, so consult a qualified tax professional. There is no lifetime capital gains exemption for publicly traded stocks.
Donate your shares to charity
Instead of donating cash to charity, you could consider donating your shares. Not only is the "profit" from the shares considered zero, but you get a donation tax credit based on the market value of the shares at that time. It's a tax-efficient way to support the causes you care about.
Use a capital gain reserve
It may be possible to spread the proceeds of a capital property sale over 5 years. Because Canada has a progressive tax system, you're taxed more for every additional dollar you make.
Say you sell a capital property, like an investment condo, to your children for a profit. Instead of paying the full tax in year one, you could coordinate with your kids to spread that gain out over 5 years so your marginal tax rate drops to a lower bracket. In order for this to work, the buyer has to spread out their payments to you over that time — so kiss that lump sum goodbye. (This can get a little risky: the buyer could default on their promise as the years go by.)
If you're transferring certain kinds of property, like a family farm, to your children or grandchildren, it may be possible to spread out the gain over 10 years.
Deduct eligible selling expenses
One often-overlooked way to reduce your capital gain is to make sure you're deducting all eligible expenses from the sale. The CRA allows you to subtract certain costs from your proceeds, which directly lowers your taxable gain.
Eligible expenses can include:
Real estate: legal fees, real estate commissions, transfer taxes, and the cost of any improvements (not regular maintenance) you made to the property
Investments: brokerage commissions and fees paid when buying and selling
Keep all receipts and records — they're your proof if the CRA asks questions.
Reduce your capital gains tax bill
No single strategy will eliminate capital gains tax entirely, but combining a few of them can make a real difference. For most people, the biggest wins come from maxing out tax-sheltered accounts and using capital losses to offset gains. If you own property, the principal residence exemption is also worth understanding.
If your situation is more complex — you're selling a business, dealing with an estate, or managing a large portfolio — it's worth talking to a tax professional who can help you build a plan tailored to your circumstances.



