ACB and capital gains calculator

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 →

Enter every buy, sale, return of capital and split for one stock or ETF. Results update as you type, and a link to this result keeps every row.

Transactions

Any order, in CAD
Transaction 1
Transaction 2
Transaction 3
Transaction 4
Bought or sold in US dollars? Convert each trade at the Bank of Canada rate for its date (or the rate your broker used), then enter the Canadian-dollar amounts.

For the tax estimate

Capital gain on your shares in 2026

$1,513

50% of it, $756, is added to your 2026 income. At $75,000 of other income in Ontario, that's about $224 of tax.

Your gainCost of the shares soldTax on the gain (estimate)Cost base of shares still heldEach coin is $250

Your adjusted cost base now

$31.10
ACB per share
$4,664.99
Total ACB
150
Shares held

2026 on your tax return

$6,178
Proceeds, after commissions
$4,665
ACB of the shares sold
$0
Superficial loss denied
$1,513
Net capital gain
$756
Taxable capital gain (50%), line 12700
$224
Estimated tax on it
14.8%
Of the whole gain

An estimate from 2026 combined federal and provincial rates, stacked on the income you entered. Credits, other deductions and losses carried from other years change the real figure. Report each sale on Schedule 3.

Every sale

DateSharesProceedsCommissionACBGain or loss
May 12, 2026150$6,187.50$9.99$4,664.99$1,512.52

How your ACB moved

DateTransactionShares heldTotal ACBPer share
March 15, 2023Bought 200 at $30.00200$6,009.99$30.05
June 10, 2024Bought 100 at $34.00300$9,419.98$31.40
February 20, 2025Return of capital $90.00300$9,329.98$31.10
May 12, 2026Sold 150 at $41.25150$4,664.99$31.10

ACB and capital gains, coin by coin

Every purchase adds its cost

200 shares at $30.00 plus a $9.99 commission: the cost base starts at $6,009.99.

Then it's averaged over every share

A second purchase of 100 brings 300 shares to $9,419.98 in total: $31.40 a share, whichever ones you sell.

Return of capital lowers it

$90.00 of return of capital takes the total to $9,329.98, or $31.10 a share.

A sale leaves at the average

Selling 150 brings $6,177.51 after commission. They leave at $4,664.99, so the capital gain is $1,512.52.

50% of the gain is taxable

$756 of the $1,513 gain is added to income and taxed at your marginal rate. The shares still held keep their $31.10 cost.

Cost base of shares heldEach coin is $250

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 · Last updated

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.

DateTransactionShares ownedTotal ACBACB per share
2023-03-15Buy 200 at $30.00 + $9.99 commission200$6,009.99$30.05
2024-06-10Buy 100 at $34.00 + $9.99 commission300$9,419.98$31.40
2025-02-20Return of capital, $90.00300$9,329.98$31.10
2026-05-12Sell 150 at $41.25 − $9.99 commission150$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.

TradeIn US dollarsExchange rateIn Canadian dollars
Buy 10 shares at US$100US$1,0001.30$1,300
Sell 10 shares at US$100US$1,0001.40$1,400
Capital gainUS$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.

More calculators

Every one runs on the same engines as the Looniee app, with the rules shown.

Read next

Track it all year?

Looniee Plus's tax toolkit does this for every security you hold: it pools the ACB across all your non-registered accounts from the transactions you import or type, converts US trades at each day's exchange rate and flags superficial losses. Plus has a free trial.