Calculators · Capital gains

ACB Calculator: Adjusted Cost Base and Capital Gain

This ACB calculator works out your adjusted cost base per share with the average cost method used for identical shares and units, then the capital gain or loss on each sale. List your buys, sales, reinvested distributions, returns of capital and splits in the order they happened. For example, 100 shares bought for $5,000 and 50 more for $3,000 give a total ACB of $8,000, or $53.33 a share. Selling 60 of them for $4,200 uses $3,200 of that ACB, so the capital gain is $1,000 and the 2026 taxable capital gain is $500. The 90 shares left keep an ACB of $4,800.

Written by a CPASharad Gondaliya, CPA Ontario No. 61040184
CFA charterholder reviewerNeha Gupta, CFA reviews our investing and account pages; each page shows its review status
Figures checkedOctober 28, 2026
Free calculator, no sign-upEvery example on this page is what the calculator returns

At a glance

What the calculator answers. Your adjusted cost base per share and in total after every transaction, the capital gain or loss on each sale, the net gain or loss for everything you list, and the taxable part at the 2026 one-half inclusion rate.

What you need. The date, number of shares or units and dollar amount of every purchase and sale of one security in all your non-registered accounts, plus reinvested distributions, return of capital amounts from box 42 of your T3 slips, and any split or consolidation.

The method. Average cost. Each purchase or reinvested distribution adds its full cost, commissions included, to the total ACB. Each sale removes the average cost of the shares sold: total ACB divided by shares held, times shares sold.

Return of capital and splits. A return of capital lowers the total ACB without changing the share count. If it would take the ACB below zero, the excess is a capital gain for that year and the ACB becomes zero. A split or consolidation changes the share count, never the total ACB.

What it leaves out. It does not test the superficial loss rule or separate registered from taxable accounts, so please leave registered-account trades out. It works through transactions in the order you list them, not by date.

List each transaction in the order it happened, and the calculator shows your ACB per share, the shares you still hold and the gain or loss on every sale, step by step.

$53.33ACB per share after buying 100 shares for $5,000 and 50 for $3,000
$1,000Capital gain on selling 60 of those shares for $4,200
50%Of a capital gain is taxable in 2026
Box 42The T3 box whose positive amount lowers your ACB

1. How to Use the ACB Calculator

One security at a time. Use the calculator for one stock, ETF or fund at a time. Add a row for every transaction in that security across all your taxable accounts, including joint and margin accounts, because identical shares you own in different non-registered accounts share one ACB.

Date. Optional, but worth filling in. The calculator works through rows in the order you list them. If the dates you enter are out of order, it warns you, because averaging in the wrong order gives a wrong cost.

Type. Choose Buy, Sell, Reinvested distribution, Return of capital, or Split or consolidation. Each type moves the share count and the ACB in a different way, as the table below shows.

Shares or units and total amount. Enter the number of shares or units, and the total dollar amount for the whole transaction, not the price per share. For a buy or reinvested distribution, the amount is the cost including commissions. For a sale, it is the proceeds after commissions. For a return of capital, it is the amount returned. For a split, enter the shares you hold after it and leave the amount alone.

What to enter for each transaction type
TypeShares or unitsTotal amountEffect on sharesEffect on total ACB
BuyNumber boughtCost, commissions includedUp by the number boughtUp by the cost
SellNumber soldProceeds after commissionsDown by the number soldDown by the average cost of the shares sold
Reinvested distributionNew units received (0 if units were consolidated)Amount reinvestedUp by the new unitsUp by the amount reinvested
Return of capitalNot usedAmount returnedNo changeDown by the amount, never below zero
Split or consolidationShares held after the eventNot usedReset to the new numberNo change

Reading the results. The headline is your ACB per share after the last row. Below it are the shares or units you still hold, the total ACB, the net capital gain or loss on the sales you listed and the taxable half if it is a gain. The step-by-step table repeats every row with the shares held, total ACB and ACB per share after it, and the gain or loss on each sale.

If a row is rejected. A sale of more shares than you hold at that point stops the calculation and names the row. Usually a purchase is missing or out of order. Please check your statements and add it.

2. The Average Cost Rule Behind the Numbers

Identical shares are pooled. When you buy the same security more than once, you do not track each lot separately for Canadian tax. The cost of every share you hold is the average of all of them. That is why this tool is also a stock average cost calculator: after each purchase it recomputes the average cost per share for the whole holding.

The formula. ACB per share = total ACB ÷ shares held. The cost of shares sold = ACB per share × shares sold. Capital gain or loss = proceeds after commissions − cost of shares sold. After a sale, the total ACB falls by the cost of the shares sold, so the average for the shares you keep does not change.

What raises the ACB. Purchases at their full cost including commissions, and reinvested distributions, which are added as new units at their cost with the average recalculated. A negative amount in box 42 of a T3 slip is also added to the ACB.

What lowers it. Sales, by the average cost of the shares sold, and a positive box 42 amount on a T3 slip, which is usually a return of capital and is subtracted from the ACB of the units.

The floor at zero. If the ACB of a property would become negative, the negative amount is deemed a capital gain for that year and the ACB is then zero. The calculator reports that gain on the return of capital row.

Why average cost matters. In the sample, the second purchase cost $60 a share and the first $50. Using the last price as the cost of the 60 shares sold gives $3,600 and a $600 gain; using the first price gives $3,000 and a $1,200 gain. The average cost rule gives $3,200 and a $1,000 gain. Our adjusted cost base (ACB) guide explains the rule in depth.

3. Worked Examples

This example is hypothetical. Three investors enter their transactions in the ACB calculator. Each figure is what the calculator returns for the same rows.

  1. Priya, one stock, two purchases and a sale (the calculator’s sample rows). She buys 100 shares for $5,000 on February 1, 2024, and 50 shares for $3,000 on January 15, 2025. Total ACB: $8,000 for 150 shares, or $53.33 a share ($8,000 ÷ 150). On June 10, 2026 she sells 60 shares for $4,200 after commission. Cost of the shares sold: $3,200 ($8,000 × 60 ÷ 150). Gain: $1,000 ($4,200 − $3,200). Taxable capital gain: $500. She keeps 90 shares with an ACB of $4,800 ($8,000 − $3,200), still $53.33 a share.
  2. Owen, an ETF with a reinvested distribution and a return of capital. He buys 200 units for $10,010 including commission, or $50.05 a unit. A distribution of $255 is reinvested in 5 units: 205 units, ACB $10,265. His T3 shows $120 in box 42, so the ACB falls to $10,145, or $49.49 a unit. He buys 100 more units for $5,310: 305 units, ACB $15,455, or $50.67. He then sells 150 units for $8,240. Cost: $7,600.82 ($15,455 × 150 ÷ 305). Gain: $639.18. He keeps 155 units with an ACB of $7,854.18.
  3. Grace, a stock split. She buys 40 shares for $6,000, or $150 a share. A three-for-one split leaves her with 120 shares; she enters a split row with 120 shares, and the ACB stays $6,000, now $50 a share. She buys 30 more for $1,650: 150 shares, ACB $7,650, or $51 a share. Selling 50 shares for $3,200 uses $2,550 of ACB ($51 × 50), for a $650 gain. She keeps 100 shares with an ACB of $5,100.

What the examples show. Priya’s case is the plain average. Owen’s shows that a reinvested distribution raises the ACB while a return of capital lowers it, and that both change the cost of later sales. Grace’s shows that a split changes only the share count: if she had entered the split as a purchase with a dollar amount, she would have inflated her cost and understated her gain.

Checking the arithmetic yourself. After each row, divide the total ACB by the shares held. If that average ever jumps without a buy, a reinvested distribution, a return of capital or a split, a row is wrong.

Have your gain? Turn it into a tax figure for your province with the calculator below.

4. Reference Tables: Average Cost Per Share, Row by Row

The sample, as the calculator shows it. These are the calculator’s starting rows and the result for each, so you can check the method before entering your own trades.

The calculator’s sample transactions, step by step
RowDateTypeSharesAmountShares held afterTotal ACB afterACB per shareGain or loss
1February 1, 2024Buy100$5,000.00100$5,000.00$50.00None
2January 15, 2025Buy50$3,000.00150$8,000.00$53.33None
3June 10, 2026Sell60$4,200.0090$4,800.00$53.33$1,000.00

Average cost per share after a second purchase. Someone holds 100 shares bought for $5,000 ($50 a share) and buys 100 more at five different prices. The table shows the new average and the gain or loss on later selling 100 shares for $5,500.

Average cost after a second purchase of 100 shares, and the result of selling 100 for $5,500
Second purchase priceSecond purchase costACB per share afterGain or loss on selling 100 for $5,500ACB of the 100 shares left
$30$3,000.00$40.00$1,500.00$4,000.00
$40$4,000.00$45.00$1,000.00$4,500.00
$50$5,000.00$50.00$500.00$5,000.00
$60$6,000.00$55.00$0.00$5,500.00
$70$7,000.00$60.00−$500.00$6,000.00

What it shows. Buying more at a lower price pulls the average down, and buying at a higher price pushes it up. The same $5,500 sale is a $1,500 gain or a $500 loss depending only on what you paid for the second lot. That is the job of an average cost per share calculator: one figure for the whole position, recomputed after each purchase.

Owen’s ETF, row by row. The second example in section 3 gives this ledger.

An ETF position with a reinvested distribution and a return of capital
RowTypeUnitsAmountUnits held afterTotal ACB afterACB per unitGain or loss
1Buy200$10,010.00200$10,010.00$50.05None
2Reinvested distribution5$255.00205$10,265.00$50.07None
3Return of capitalNone$120.00205$10,145.00$49.49None
4Buy100$5,310.00305$15,455.00$50.67None
5Sell150$8,240.00155$7,854.18$50.67$639.18

5. Entering Splits and Consolidations

A split. In a three-for-one split, every share becomes three. Choose Split or consolidation and enter the total number of shares you hold right after it. The calculator replaces the share count and leaves the total ACB alone, so the ACB per share falls to one-third.

A consolidation. A reverse split works the same way in the other direction. If a one-for-five consolidation turns 500 shares into 100, enter 100. The total ACB stays the same, so the ACB per share rises five times.

Cash for a fraction. Some consolidations pay cash for a fractional share instead of issuing it. One practical way to record it is as a small sale of that fraction for the cash received, after the consolidation row, so the cost of the fraction comes off your total ACB.

Do not enter a split as a buy. The new shares cost you nothing. Entering them as a purchase with a dollar amount inflates your ACB, and entering them with $0 as a buy works only if the count is right; the split row is simpler and leaves a clearer record.

Name and symbol changes. A new name or ticker on the same shares is not a transaction. Keep the same rows going. Where a company exchanges your shares for shares of another company, the tax result depends on the terms of the deal, and you may need the issuer’s tax information before entering anything.

Check the date. Put the split row in date order. A sale before the split uses the old share count and the old ACB per share; a sale after uses the new ones.

6. Entering Reinvested Distributions and DRIP Purchases

Dividend reinvestment plans. When a dividend buys more shares through a DRIP, the new shares cost what the dividend paid for them. Enter each one as a reinvested distribution, with the shares received, including fractional shares, and the dollar amount reinvested. The calculator keeps up to four decimals of a share.

Fund and ETF distributions. Reinvested distributions are added as new units at their cost, and the average cost per unit is recalculated. They are still taxable in the year they are paid: you report the amounts on your slips, because the CRA considers you to have received them before they were reinvested. If you leave them out of your ACB, your ACB is too low and your gain on a later sale too high, so you would pay tax on the same dollars again.

Distributions that do not add units. Some ETFs reinvest a year-end distribution and consolidate the units straight away, so your unit count does not change. Enter it as a reinvested distribution with 0 units and the amount from your fund’s tax information. The calculator adds the amount to your ACB and leaves the unit count alone. The distribution is still taxable on your slip, even though no new units appear. Our guide to mutual fund and ETF distributions tax explains why these happen.

Where to find the amounts. Your brokerage statements show each reinvestment. For funds, the T3 slip reports what the distribution consisted of: for example box 21 shows total capital gains and box 49 the actual amount of eligible dividends. The T3 slip guide covers each box.

Many small rows. A monthly DRIP over ten years is 120 rows. Entering them is tedious, but each one raises your ACB. Recording them once a year from your December statement keeps the job manageable. Our dividend income calculator shows how reinvesting dividends builds a position over time.

7. Entering Return of Capital and Negative ACB

From the slip to the calculator. Box 42 of a T3 slip shows amounts resulting in cost base adjustment. A positive amount is subtracted from the ACB of the units: enter it as a return of capital with the dollar amount. A negative amount is added to the ACB instead: enter it as a reinvested distribution with 0 units and the amount.

When the ACB runs out. If returns of capital would push the ACB below zero, the excess is deemed a capital gain in that year and the ACB becomes zero. From then on, every return of capital is a gain in the year it is paid, and a sale is a gain equal to the full proceeds.

This example is hypothetical. Sam buys 100 units of a fund for $1,000 in 2022. The fund pays a $350 return of capital each year.

  1. 2022. $1,000 − $350 = $650 of ACB. No gain.
  2. 2023. $650 − $350 = $300 of ACB. No gain.
  3. 2024. $300 − $350 = −$50, so Sam has a $50 capital gain for 2024 ($25 taxable) and the ACB becomes $0.
  4. 2025. The ACB is already $0, so the whole $350 is a capital gain for 2025 ($175 taxable).
  5. 2026. Sam sells the 100 units for $800. With an ACB of $0, the gain is $800 ($400 taxable).

Total gains: $1,200 ($50 + $350 + $800), which matches his real result: $1,050 of capital returned before 2025 and $1,150 received afterwards, against $1,000 paid. The calculator shows each of these gains on its own row.

Why it matters. Returns of capital are not taxed when you receive them, which is why they are easy to forget. They reduce your cost instead, so the tax arrives when you sell or when the ACB hits zero. Our page on return of capital covers how ROC distributions are taxed in more depth.

8. From ACB to the Tax on Your Gain

Two calculators, one result. The ACB calculator gives you the cost of the shares you sold. The capital gains calculator turns that into tax for your province and income.

Enter your sale proceeds, the cost of the shares sold from the ACB calculator, your other income and your province, and this calculator shows the 2026 tax on the gain and what you keep.

Avoid counting a commission twice. The ACB calculator takes sale proceeds after commissions. If you enter that net figure as the proceeds in the capital gains calculator, leave its selling costs at $0. If you enter the gross sale price instead, put the commission in selling costs. Do one or the other.

The sample gain in every province. Priya’s $1,000 gain, with $75,000 of other income, costs this much in 2026. With those inputs and Ontario selected, the capital gains calculator rounds the tax to $148.

2026 tax on a $1,000 capital gain with $75,000 of other income
Province or territoryTax on the gainYou keepEffective rate
Ontario$148.25$851.7514.8%
Quebec$180.59$819.4118.1%
British Columbia$141.00$859.0014.1%
Alberta$152.50$847.5015.3%
Manitoba$166.25$833.7516.6%
Saskatchewan$165.00$835.0016.5%
Nova Scotia$185.85$814.1518.6%
New Brunswick$172.50$827.5017.3%
Newfoundland and Labrador$175.00$825.0017.5%
Prince Edward Island$185.50$814.5018.6%
Yukon$147.50$852.5014.8%
Northwest Territories$145.50$854.5014.6%
Nunavut$137.50$862.5013.8%

Your slip and your figure. Your broker’s T5008 shows the proceeds in box 21 and a cost or book value in box 20. The CRA says box 20 may or may not reflect your ACB, and you must make any adjustments yourself. Report your own figure on Schedule 3. Our T5008 slip guide and our pillar on capital gains tax in Canada cover reporting, rates and losses.

9. What the ACB Calculator Does Not Handle

The superficial loss rule. If you sell at a loss and you or your spouse buy identical property within 30 calendar days before or after, and still hold it 30 days after the sale, the loss is denied. The calculator does not check this. The denied loss can usually be added to the ACB of the shares bought back: add it to the amount on that buy row. Our superficial loss rule guide and the tax-loss harvesting page explain the window.

Registered accounts. Leave out trades in a TFSA, RRSP, RRIF, FHSA or RESP. Those accounts do not track ACB for tax, and their gains and losses are not reported. Our TFSA tax rules page covers the exceptions.

Transfers between brokers. Moving shares in kind to a new broker does not change your ACB, but the new broker may not receive your original cost and can show a wrong book value. Keep your own ledger from the first purchase. Our guide on how to transfer an investment account covers the move itself.

Gifts, inheritances and spouses. Shares you receive as a gift or inheritance generally start with a cost equal to their value when you received them, while some transfers between spouses carry the original cost over. Enter the right starting cost as a buy row, and see our page on attribution rules for gifts within a family.

Options and corporate events. When an option you wrote is exercised, the premium is folded into the proceeds or cost of the shares rather than taxed separately. Mergers, spin-offs and rights offerings each have their own treatment. Our options trading tax page covers options; for corporate events, the issuer’s tax information decides the split of cost.

Business income. If your trading is a business, gains are fully taxable business income and the capital gains figures do not apply. The day trading tax guide sets out the CRA factors.

8 Habits That Keep Your ACB Right

1. Record each trade when it settles

Copy the units and the total cost or proceeds from the trade confirmation into your ledger, or into this ACB calculator, the same week. Memory fades; confirmations get lost.

2. Keep every reinvested amount

Each DRIP purchase and reinvested fund distribution raises your ACB. Missing them means paying tax on the same money twice when you sell.

3. Enter box 42 every spring

When your T3 slips arrive, record each box 42 amount. A positive figure lowers your ACB; a negative one raises it.

4. Pool all taxable accounts

The same security in your cash, margin and joint accounts shares one average cost. Track it in one place, not account by account.

5. Compare with your T5008

Check box 20 against your own figure before you file. Where they differ, find out why rather than accepting the slip.

6. Keep records after a transfer

A new broker may show a wrong book value. Your ledger, with the original purchase dates and costs, is the record that matters.

7. Run the numbers before you sell

Knowing the gain or loss in advance shows the tax cost, and whether selling a different lot of the same security changes anything. It does not: average cost applies to all of them.

8. Mind the 61-day window

Buying identical shares within 30 days before or after a loss sale, and still holding them 30 days after it, denies the loss. If it happens, add the denied loss to the cost of the new shares so it is not lost for good.

ACB Calculator FAQ

How does the ACB calculator work?

It applies the average cost method to the transactions you list, in order. Each purchase or reinvested distribution adds its cost to the total ACB. Each sale removes the average cost of the shares sold and shows the gain or loss. A return of capital lowers the ACB and a split changes the share count. The result is your ACB per share.

How do I calculate adjusted cost base per share?

Divide the total ACB by the number of shares you hold. Total ACB is everything you paid for the shares you still own, commissions included, plus reinvested distributions, minus returns of capital and minus the cost of shares already sold. In the sample, $8,000 for 150 shares is $53.33 a share.

Do commissions go into my ACB?

Yes, on purchases. Enter the total cost of a buy including the commission, because it is part of what the shares cost you. On a sale, enter the proceeds after the commission. That way the calculator’s gain already reflects both commissions, and you should not deduct them again in the capital gains calculator.

How do I enter a stock split in the ACB calculator?

Choose Split or consolidation and enter the number of shares you hold right after the split. Leave the amount alone. The total ACB does not change, so the ACB per share falls. For a three-for-one split of 40 shares, enter 120 shares, and a $150 ACB per share becomes $50.

How do I enter DRIP purchases and reinvested distributions?

Enter each one as a reinvested distribution, with the shares or units received and the dollar amount reinvested. Fractional shares are fine. If a fund reinvests a distribution and consolidates the units so the count does not change, enter 0 units and the amount, and the calculator adds it to your ACB.

How do I enter a return of capital?

Use the amount in box 42 of your T3 slip. If it is positive, enter it as a return of capital with that dollar amount, and the calculator subtracts it from your ACB. If box 42 is negative, the amount is added to your ACB instead, so enter it as a reinvested distribution with 0 units.

What happens if my ACB goes negative?

It cannot stay negative. If a return of capital would push the ACB below zero, the excess is deemed a capital gain for that year and the ACB becomes zero. Every later return of capital is then a gain in the year it is paid, and a sale produces a gain equal to the full proceeds.

Is my broker’s book value the same as my ACB?

Not always. The book value in box 20 of a T5008 slip may or may not reflect your adjusted cost base, and the CRA expects you to make any adjustments. Transfers between brokers, holdings in more than one account and missed returns of capital are common reasons the two differ. Report your own figure on Schedule 3.

Do I need to track ACB for my TFSA or RRSP?

No. Gains and losses inside a TFSA, RRSP, RRIF, FHSA or RESP are not reported, so those accounts need no ACB for tax. Leave their trades out of the calculator. Only shares held in non-registered accounts, such as cash, margin and joint accounts, are pooled into one ACB.

Does the ACB calculator apply the superficial loss rule?

No. It does not check whether you or your spouse bought identical property within 30 days before or after a loss sale and still held it 30 days after. If the rule applies, the loss is denied, and the denied amount can usually be added to the ACB of the shares bought back. Add it to the amount on that buy row.

How does WealthScale check this calculator?

The method follows Canada Revenue Agency publications and the Income Tax Act as checked on October 28, 2026, and every example on this page was run through the same code as the calculator. Our editorial standards explain how we check, date and correct what we publish.

Use the ACB calculator for each holding before you file, then see what the gain costs in tax.

Figures on this page were checked against Canada Revenue Agency publications and the Income Tax Act on October 28, 2026. We update this page when a figure changes.

Meet the Experts Behind WealthScale

Sharad Gondaliya, CPA
Sharad Gondaliya, CPAWriter and tax reviewerCPA Ontario No. 61040184

Sharad is a CPA Ontario member (No. 61040184) and a Certified Public Accountant licensed in Washington and Montana, with more than 15 years in accounting and tax, a Diploma in Banking and Finance and a Certificate in Small Business Finance. He checks WealthScale content against primary sources. WealthScale is independent of his firm, Gondaliya CPA Professional Corporation, and provides general information only, not personal financial, investment, tax or legal advice.

  • Chartered Professional Accountant, CPA Ontario
  • Certified Public Accountant, Washington (No. 57629) and Montana (No. PAC-CPAP-LIC-033176)
  • Writing on tax and registered accounts since 2021
  • Reader’s Choice Award 2025 Winner, Best Accountant (Toronto)

Read Sharad’s profile and verify his credentials

Neha Gupta, CFA, Financial Reviewer at WealthScale
Neha Gupta, CFAFinancial ReviewerCFA charterholder

Neha Gupta is a CFA charterholder based in Winnipeg who has worked in financial markets since December 2005. She has published more than 2,600 investment articles and is Head of Operations and Finance at Whiteland Real Estate. She reviews WealthScale’s investing pages for accuracy.

  • CFA charter, CFA Institute (awarded 2023)
  • Post Graduate Diploma in Business Administration (Finance), 2008
  • In financial markets since December 2005
  • More than 2,600 published investment articles

Read Neha’s profile and verify her credentials

General information only. Not financial, investment, tax or legal advice. WealthScale is independent and is published by WealthScale Media Inc., 55 Queen St E, Suite 1205, Toronto, ON M5C 1R6. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.