Updated Checked by the Tax-Services.ca editorial team How we check
To calculate a capital gain in Canada, subtract your adjusted cost base and your selling costs from the sale price. Half of the result is taxable. This guide works a share sale with two purchases, then covers the cost base, Schedule 3, losses and records.
Run your own numbers with the tax instalments calculator, then read on for the rules behind the result.
What is the formula for a capital gain?
Take what you sold the property for, subtract its adjusted cost base, and subtract the outlays and expenses of selling it. The CRA’s guide T4037 describes the cost base as usually the cost of the property plus the expenses to acquire it. What is left is the capital gain.
Half of the gain is the taxable capital gain. It goes on line 12700 of your return, with the detail on Schedule 3. The inclusion rate is one half for 2026, because the proposed rise to two thirds was cancelled on 21 March 2025.
How do you work out the cost base when you bought at different prices?
Identical properties, such as shares of one company, are averaged. Add up everything you paid for all of them, divide by the number of shares, and multiply by the number you sold. Here is a case with two purchases and a partial sale.
| Step | Amount |
|---|---|
| Buy 100 shares at $50, plus $10 commission | $5,010.00 |
| Buy 100 shares at $70, plus $10 commission | $7,010.00 |
| Total cost of 200 shares | $12,020.00 |
| Average cost per share | $60.10 |
| Cost base of the 150 shares sold | $9,015.00 |
| Sale of 150 shares at $80 | $12,000.00 |
| Selling commission | $10.00 |
| Capital gain | $2,975.00 |
| Taxable half | $1,487.50 |
Keep the 50 shares you still own at the same average of $60.10 each, and adjust it again when you buy more.
What goes into the cost base and what stays out?
Commissions, legal fees and other costs of buying belong in the cost base. Costs of selling come off the proceeds instead. Ordinary upkeep such as repairs and maintenance does not go into the cost base, so do not add it back in.
For property bought or sold in another currency, the CRA says to convert the proceeds, the cost base and the expenses to Canadian dollars at the exchange rate in effect when each one happened. Work that out before you touch a calculator.
How do you report the sale on your return?
List each sale on Schedule 3 with the date, a description, the proceeds, the cost base and the selling outlays, then carry the taxable half to line 12700. A sale in 2026 is reported on the return you file in spring 2027.
Your main home is usually exempt, but you still report the sale and name the property as your principal residence. A large gain can leave a balance at filing and may bring instalments next year. The tax instalments calculator helps you plan for that.
What happens if you sold at a loss?
A capital loss first cancels capital gains in the same year. The CRA says a net capital loss can be applied to taxable capital gains of the three previous years and to any future year, which can mean amending an earlier return.
Say you have a $12,000 gain on one stock and a $5,000 loss on another. Selling both leaves a $7,000 gain and $3,500 is taxable. Selling only the winner leaves $6,000 taxable.
Which records should you keep?
Keep the purchase confirmations, commission slips, receipts for costs you counted in the cost base and the sale paperwork. If the CRA asks, those papers are your proof, and the figures are easy to forget after a few years.
What the gain costs depends on your other income, so see capital gains tax rates by income for the numbers. The capital gains tax calculator gives an estimate once you have the gain.
Where we checked
Checked on 22 November 2026 on canada.ca: the CRA guide T4037, Capital Gains for the formula, identical properties, currency conversion and loss carryover, and the line 12700 instructions. The 2026 inclusion rate comes from the Prime Minister’s release of 21 March 2025. The share example is our own arithmetic. It is an estimate, not a return. Tax-Services.ca is an independent information site. It provides no services, does not represent the CRA, and does not guarantee that the information is accurate or current.
Frequently asked questions
How do I calculate a capital gain on shares?
Subtract the adjusted cost base of the shares you sold, plus your selling costs, from the sale proceeds. If you bought at different prices, average the cost of all identical shares first. Half of the gain is the taxable capital gain, reported on Schedule 3 and line 12700.
What is the adjusted cost base?
The CRA describes it as usually the cost of the property plus the expenses of acquiring it, such as commissions and legal fees. It changes when you buy more of the same property, so recalculate the average each time you add to a holding.
Do I report a sale that lost money?
Yes. A capital loss cancels gains in the same year first. The CRA says a net capital loss can also be applied to taxable gains of the three previous years and to future years, so skipping the report throws away a loss you could use later.
Which year does a gain belong to?
The year you sell, not the year you bought or the year the money reached your bank. A sale that closes on December 28, 2026 goes on the 2026 return, which you file in spring 2027 and normally pay for by April 30, 2027.
How do I convert a foreign currency purchase?
The CRA says to convert the proceeds, the cost base and the expenses to Canadian dollars using the exchange rate in effect when each happened. That means two different rates for one sale, and it is why the cost base is worth working out first.
- RRSP, TFSA, FHSA and retirement income in Canada
How the RRSP, TFSA and FHSA differ, the 2026 limits, what happens when you withdraw, and where CPP and OAS fit into your retirement income