Capital Gains Tax in Canada: Adjusted Cost Base, the Principal Residence Exemption and Losses
How capital gains are taxed in Canada: 50% inclusion, adjusted cost base with averaging, the principal residence exemption and using capital losses.

Selling shares, a fund or a cottage for more than you paid creates a capital gain, and in Canada part of that gain is taxed. The rules are simple in principle but the details, especially working out your cost and the principal residence exemption, trip up many people. This guide explains them and shows how to calculate the tax with the free Canada Capital Gains Tax Calculator.
The basic rule
A capital gain is the proceeds of disposition minus the adjusted cost base (ACB) and selling costs. In Canada, half of a net capital gain, the taxable capital gain, is added to your income and taxed at your marginal rate. In 2024 the government proposed raising the inclusion rate to two-thirds for gains above $250,000, but the proposal was cancelled in March 2025, so 50% still applies in 2026.
Because only half is taxed, the effective tax rate on capital gains is half your marginal rate. For an Ontario resident in the top bracket, that is about 26.8%.
Adjusted cost base and averaging
For identical properties, such as shares of the same company or units of the same mutual fund or ETF, the CRA requires you to use an average cost:
- Each purchase adds its cost, including commissions, to the total ACB.
- The ACB per share is the total ACB divided by the number of shares.
- When you sell, the shares sold leave at the current ACB per share, and the total ACB falls by that amount.
- The ACB per share does not change on a sale; only purchases and some adjustments change it.
The averaging applies across all your non-registered accounts, even at different brokers. Reinvested distributions add to the ACB; return of capital reduces it. Brokers' statements are often wrong or incomplete on ACB, so keeping your own ledger is wise.
The principal residence exemption
The gain on your home can be tax-free under the principal residence exemption. The exempt portion is:
(1 + number of years designated as principal residence) ÷ number of years owned × gain
The "plus one" means a home owned and lived in throughout is fully exempt, and it helps people who buy a new home before selling the old one. A family unit (you, your spouse and children under 18) can designate only one property per year. Owners of a house and a cottage choose which property to designate for each year, usually the one with the larger gain per year.
Since 2016 you must report the sale of a principal residence on Schedule 3 and Form T2091 even when the gain is fully exempt. Properties owned for less than 12 months may be treated as business income under the residential property flipping rule, with no exemption.
Capital losses
A capital loss happens when you sell for less than the ACB. Half of it is an allowable capital loss. Losses first offset gains in the same year. Unused net capital losses can be carried back three years to recover tax paid on earlier gains, or carried forward indefinitely, but only against capital gains, not against salary or other income.
Watch the superficial loss rule: if you or an affiliated person, including your spouse, buys the same property within 30 days before or after selling at a loss, and still owns it 30 days after the sale, the loss is denied and added to the cost of the new shares.
How to use the calculator
- Choose your province and enter your other taxable income for the year.
- Enter your share trades with date, buy or sell, number of shares, price and commission.
- If you sold a home or cottage, enter the sale price, purchase price, selling costs and improvements, years owned and years designated.
- Add any other capital gains or losses and net capital losses carried forward.
The calculator builds the ACB ledger, shows the gain on each sale, applies the principal residence exemption, totals your net capital gain, the taxable half and the extra federal and provincial tax at your income level. The ledger downloads as CSV.
A worked example
An investor bought 100 shares at $52.10, 50 at $61.40 and 50 at $48.75, each with a $9.95 commission. The ACB per share after the three purchases is $53.74. Selling 120 shares at $74.30, less commission, gives a gain of $2,457.64. For an Ontario resident with $85,000 of other income, the extra tax is about $364. The remaining 80 shares keep the same $53.74 ACB per share.
A family sells a cottage for $650,000 that cost $300,000, with $40,000 of costs and improvements, owned for 12 years. They designated it for 4 years, using the rest for their city home. The gain is $310,000; the exempt portion is (1 + 4) ÷ 12 × $310,000 = $129,167, leaving $180,833 as a capital gain, of which half is taxable.
Ways to reduce capital gains tax
- Use registered accounts. Gains in a TFSA are never taxed; gains in an RRSP or RRIF are taxed only as withdrawals.
- Harvest losses. Selling losing positions before year end can offset gains, avoiding the superficial loss rule.
- Spread sales across years to keep income in lower brackets.
- Donate securities. Donating publicly traded shares with gains to a registered charity eliminates the capital gains tax and earns a donation credit.
- Plan principal residence designations carefully if you own more than one property.
The bottom line
Track your ACB carefully, understand how the principal residence exemption works and use losses wisely. The calculator handles the averaging and the exemption formula, but it is a planning tool, not tax advice; keep records and report everything on Schedule 3.



