# Adjusted cost base (ACB) and capital gains calculator

> Work out the adjusted cost base of a stock or ETF across every buy, sale, return of capital and split, then the capital gain, the taxable part and an estimate of the tax.

Canonical: https://looniee.ca/calculators/acb
Last updated: 2026-11-18

The calculator runs in the browser at https://looniee.ca/calculators/acb. Below is the guide printed under it.

Your adjusted cost base (ACB) is what you paid for the shares you still own, commissions included, minus any return of capital, averaged over every share. A sale doesn't change the ACB per share: the gain is the proceeds minus that average cost, and 50% of it is taxable. Enter your transactions below to see your ACB, the gain on each sale and the tax on it.

[Sold at a loss and bought back within 30 days? Read the superficial loss rule](https://looniee.ca/guides/superficial-loss-rule)

## How ACB and capital gains are worked out

- Your adjusted cost base (ACB) is the total you paid for the shares of one security you still own, commissions included. CRA uses the average cost: divide that total by the number of shares to get the ACB per share.
- Every purchase adds its cost and commission to the total. Shares of the same security in all your non-registered accounts, at any broker, share one ACB. Shares in a TFSA, RRSP, FHSA or RESP are left out.
- A sale doesn't change the ACB per share. The shares sold leave at the average cost, and the capital gain is the proceeds, minus the selling commission, minus that cost.
- Return of capital (box 42 of a T3 slip) lowers the total ACB. If it would take the ACB below zero, the excess is a capital gain that year and the ACB stays at zero.
- A split or consolidation changes the number of shares, not the total ACB, so the ACB per share moves the other way.
- Reinvested distributions buy new units, so they add to the ACB like any purchase. A reinvested capital gains distribution that issues no new units still adds its amount to the ACB.
- 50% of a net capital gain is taxable: it is added to your income and taxed at your marginal rate. A net capital loss can't reduce other income; it is carried back up to 3 years or forward indefinitely against capital gains.
- Selling at a loss and buying the same security back within 30 days before or after the sale, and still owning it 30 days after, makes it a superficial loss: the loss is denied and added to the ACB of the shares bought back.
- Amounts in US dollars are converted to Canadian dollars at the exchange rate on the day of each trade, so a change in the exchange rate alone can create a gain or a loss.

Source rules: [CRA: Guide T4037, Capital Gains](https://www.canada.ca/en/revenue-agency/services/forms-publications/publications/t4037.html)

## A worked example: two purchases, a return of capital and a sale

The calculator opens with this history. Each row shows the shares you own and their total ACB after the transaction, in the order CRA applies them.

| Date | Transaction | Shares owned | Total ACB | ACB per share |
| --- | --- | --- | --- | --- |
| 2023-03-15 | Buy 200 at $30.00 + $9.99 commission | 200 | $6,009.99 | $30.05 |
| 2024-06-10 | Buy 100 at $34.00 + $9.99 commission | 300 | $9,419.98 | $31.40 |
| 2025-02-20 | Return of capital, $90.00 | 300 | $9,329.98 | $31.10 |
| 2026-05-12 | Sell 150 at $41.25 − $9.99 commission | 150 | $4,664.99 | $31.10 |

The sale brings in $6,187.50, or $6,177.51 after the $9.99 commission. The 150 shares sold leave at the average cost, $4,664.99 in total, so the capital gain is $1,512.52. The ACB per share of the 150 shares still owned is unchanged at $31.10.

50% of the gain, $756.26, is added to income. For someone with $75,000 of other income in Ontario that is about $224 of tax, from 2026 combined federal and provincial rates.

## Shares bought and sold in US dollars

CRA wants every amount in Canadian dollars at the exchange rate on the day of the trade, so the exchange rate is part of the gain.

| Trade | In US dollars | Exchange rate | In Canadian dollars |
| --- | --- | --- | --- |
| Buy 10 shares at US$100 | US$1,000 | 1.30 | $1,300 |
| Sell 10 shares at US$100 | US$1,000 | 1.40 | $1,400 |
| Capital gain | US$0 |  | $100 |

The shares sold for exactly what they cost in US dollars, but the US dollar rose, so there is a $100 capital gain in Canadian dollars and $50 of it is taxable. Enter each trade in Canadian dollars at its own date's rate.

## Where the numbers go on your tax return

The calculator's results map onto the return like this:

- Each sale goes on Schedule 3 with its proceeds, its ACB and its outlays and expenses (the selling commission).
- The taxable capital gain, 50% of the net gain, goes on line 12700.
- A net capital loss from an earlier year can be applied against this year's gains on line 25300.
- Your broker's T5008 slip shows the proceeds of each sale. The cost it shows, if any, is the broker's book value for that one account, which isn't always your ACB.

## ACB questions, answered

### How do I calculate the adjusted cost base of a stock?

Add up what you paid for every purchase, commissions included, subtract any return of capital, and divide by the number of shares you own. For example, 200 shares at $30 plus a $9.99 commission and 100 shares at $34 plus $9.99 cost $9,419.98 for 300 shares, an ACB of $31.40 a share. The calculator does this for every transaction you enter and shows the total after each one.

### Does selling shares change my ACB per share?

No. A sale removes shares at the average cost, so the shares you keep have the same ACB per share as before. The ACB per share changes only when you buy more at a different price, receive a return of capital or a non-cash distribution, or the shares split or consolidate.

### What is the capital gains inclusion rate in 2026?

One half: 50% of a net capital gain is added to your income. The 2024 federal budget proposed raising it to two-thirds on gains above $250,000 a year. That change was deferred, then cancelled, and Budget 2025 confirmed it won't go ahead, so the rate stays at one half.

### How much tax will I pay on a capital gain?

The taxable 50% is added to your income for the year and taxed at your marginal rate, so the tax is about 50% of the gain times that rate. At a 30% marginal rate, a $10,000 gain adds $5,000 of income and about $1,500 of tax. The calculator works it out from your province's combined federal and provincial brackets, stacked on the rest of your income.

### Do commissions count in ACB?

A commission on a purchase is added to the ACB. A commission on a sale isn't: it comes off the proceeds instead (CRA calls it an outlay or expense), which lowers the gain by the same amount.

### I hold the same stock in two accounts. Do they have separate ACBs?

Not if both accounts are non-registered. CRA treats the shares as identical property, so they share one average cost even at different brokers. Each broker's book value covers only its own account, which is why it can differ from the ACB you report. Shares of the same stock in a TFSA, RRSP or other registered account stay out of the pool.

### How do I handle stocks bought in US dollars?

Convert each purchase and each sale to Canadian dollars at the Bank of Canada exchange rate for the day of the trade, or the rate your broker used, and enter the Canadian-dollar amounts. A US stock sold for exactly what it cost in US dollars can still show a gain or a loss in Canadian dollars if the exchange rate moved in between.

### What is return of capital and how does it change my ACB?

Some ETFs and trusts pay part of their distributions as return of capital, reported in box 42 of the T3 slip. It isn't taxed when you receive it. Instead it lowers your ACB, so the tax comes later as a larger capital gain when you sell. If it would push the ACB below zero, the excess is a capital gain that year.

### Is my broker's book value my ACB?

Often, but not always. Book value is your broker's figure for one account. It misses shares of the same security held at another broker, and it can lag a return of capital or a reinvested capital gains distribution until the year's T3 slips are issued. What you report on your return is the ACB worked out across all your non-registered accounts.

## Related

- [US dividend withholding tax calculator](https://looniee.ca/calculators/us-withholding-tax): See how much of your US dividends the 15% US withholding tax takes in a TFSA, RRSP, FHSA, RESP or taxable account, and whether you can get it back.
- [TFSA contribution room calculator](https://looniee.ca/calculators/tfsa): Work out your remaining Tax-Free Savings Account room from every annual limit since 2009, your contributions and the withdrawals that come back on January 1.
- [The superficial loss rule](https://looniee.ca/guides/superficial-loss-rule): The 30-day test, buying back in a TFSA or RRSP, DRIPs, and the year-end tax-loss selling deadline.
- [Can you claim a capital loss in a TFSA?](https://looniee.ca/guides/tfsa-capital-loss): No: why a loss inside a TFSA can't be claimed, and how it uses up room for good.
- [Year-end deadlines: what has to happen by December 31](https://looniee.ca/guides/year-end-deadlines): Opening an FHSA, the RESP grant, TFSA withdrawals, tax-loss sales and RRSPs at 71, with what missing each one costs.
