Finance calculators

ACB Calculator

Updated Nov 12, 2026 By Infinity Calculator Formulas Sources
Rate
Enter Transactions

Record each purchase (Buy) or disposal (Sell) of shares. Commission is optional and defaults to $0. ACB is recalculated using the weighted average cost method after every transaction.

ACB Summary
Shares Held
0
current position
Total ACB
$0.00
book value of holdings
ACB per Share
$0.00
weighted average cost
Realized Gain / Loss
$0.00
net from all sells
Transaction-by-Transaction ACB Calculation
# Type Date Shares Price / Share Commission Cost / Net Proceeds ACB of Sold Capital Gain / Loss Shares Held Running ACB ACB / Share
Enter transactions above and click Calculate.
ACB per Share vs. Transaction Price

Introduction

The Adjusted Cost Base (ACB) Calculator helps you track what your shares really cost you. ACB is what your shares cost you, plus any fees like commissions. Your ACB per share is that total divided by the number of shares you hold. You need this number to work out your capital gain or loss when you sell.

Just add each Buy or Sell you made. Type in the date, the number of shares, the price per share, and the commission. The calculator then shows your ACB per share, your total book value, and your realized gain or loss after every trade.

It uses the weighted average cost method, the same way the Canada Revenue Agency (CRA) expects.1 So when you buy more shares at a new price, your ACB per share updates right away. When you sell, the tool subtracts the ACB of those shares from your net proceeds to find your gain or loss.

You also get a full table of every step and a chart that compares your ACB per share to the price you paid or got. This makes it easy to see your numbers, keep good records, and get ready for tax time.

How to use our ACB Calculator

Enter each time you bought or sold shares. The calculator works out your adjusted cost base (ACB), your ACB per share, and your capital gain or loss on every sale.

Type: Pick Buy if you bought shares, or Sell if you sold them.

Date: Type the date of the trade. This is optional, but it helps keep your records in order.

Shares: Enter how many shares you bought or sold in that trade. You can use partial shares.

Price / Share: Enter the price you paid or got for one share, before fees.

Commission: Enter the trading fee for that order. Leave it at 0 if there was no fee. Fees on a buy raise your ACB. Fees on a sell lower your proceeds.

Add Transaction: Click this to add another buy or sell row. Add your trades in the order they happened.

Calculate: Click this to see your shares held, total ACB, ACB per share, and total realized gain or loss. A table and chart show how your ACB changes after each trade.

Remove and Reset: Click Remove to delete one trade row. Click Reset twice to clear your trades and go back to the sample trades.

What Is Adjusted Cost Base (ACB)?

Adjusted cost base, or ACB, is the cost of the shares you own. In Canada, the Canada Revenue Agency (CRA) uses your ACB to work out your capital gain or loss when you sell an investment. Your ACB includes the price of the shares plus any fees, like broker commissions, that you paid to buy them.1

How ACB Is Calculated

Canada uses the weighted average cost method. That means all the shares of the same class of a company's stock that you own are pooled together.1 You do not track each buy on its own. Instead:

  • ACB per share = total book value ÷ total shares you hold1
  • When you buy: add the cost plus commission to your total ACB, and add the new shares to your share count. This changes your average cost.
  • When you sell: your ACB per share stays the same.1 You remove the sold shares' share of the ACB from your book value.

Working Out Capital Gain or Loss

When you sell, the math is simple:

Capital gain or loss = net proceeds − ACB of the shares sold1

Net proceeds are the sale price times the number of shares, minus the selling commission.1 If the answer is positive, you have a capital gain. If it is negative, you have a capital loss. In Canada, you normally report 50% of a capital gain as taxable income.1 Capital losses can lower capital gains from the same year, the three years before it, or any later year.1 To estimate the tax owing on those gains, try the Capital Gains Tax Calculator.

A Quick Example

You buy 100 shares at $25 with a $9.99 fee. Your ACB is $2,509.99, or about $25.10 per share. Later you buy 50 more shares at $30 with a $9.99 fee, adding $1,509.99. Now you hold 150 shares with a total ACB of $4,019.98, so your ACB per share is about $26.80. If you then sell 75 shares at $35 with a $9.99 fee, your net proceeds are $2,615.01 and the ACB of those shares is about $2,010. Your capital gain is roughly $605.

Things That Change Your ACB

  • Commissions and fees: buying fees raise your ACB. Selling fees lower your proceeds.1
  • Return of capital (ROC): some mutual funds and trusts pay ROC, which lowers your ACB.4 For a trust, it shows as a positive amount in box 42 of your T3 slip, and you subtract that amount from the ACB of your units.1 If this takes your ACB below zero, the amount below zero counts as a capital gain for that year and your ACB becomes zero.1
  • Reinvested distributions (DRIPs): reinvested amounts raise your ACB, even if you never saw the cash.1
  • Stock splits: the share count changes, so ACB per share changes, but total ACB stays the same.1
  • Foreign stocks: convert both buys and sells to Canadian dollars using the exchange rate on each trade date.1

Rules Worth Knowing

The superficial loss rule blocks a capital loss if you (or your spouse, or a company you control) buy the same stock within 30 days before or after the sale and still hold it.1 If you are the one who bought the replacement shares, you can usually add the denied loss to their ACB.1

The averaging rule covers all the identical properties a taxpayer owns, not the ones in a single account.2 So keep one ACB pool per stock across all your non-registered accounts, not one per account. Income you earn in an RRSP is usually exempt from tax as long as the funds remain in the plan, and you generally pay tax when you receive payments from it.3 TFSAs, RRIFs and FHSAs are registered plans too, so ACB does not matter inside any of them. Keep your trade records and slips.1 The cost your broker reports in box 20 of your T5008 slip may or may not be your ACB, and you are the one who has to make any adjustments.5 The same pooling idea applies to coins and tokens, which the Crypto Tax Calculator covers.


Formulas used

Cost of a Buy Transaction
\text{Cost} = \text{Shares} \times \text{Price} + \text{Commission}
Running ACB After a Buy
\text{ACB}_{\text{new}} = \text{ACB}_{\text{prev}} + (\text{Shares} \times \text{Price} + \text{Commission})
ACB per Share (Weighted Average Cost) 1
\text{ACB per Share} = \frac{\text{Total ACB}}{\text{Shares Held}}
ACB of Shares Sold
\text{ACB}_{\text{sold}} = \frac{\text{ACB}_{\text{prev}}}{\text{Shares}_{\text{prev}}} \times \text{Shares}_{\text{sold}}
Net Proceeds of a Sell Transaction
\text{Net Proceeds} = \text{Shares}_{\text{sold}} \times \text{Price} - \text{Commission}
Capital Gain / Loss on a Sale 1
\text{Gain} = \text{Net Proceeds} - \text{ACB}_{\text{sold}}
Running ACB and Share Balance After a Sell
\text{ACB}_{\text{new}} = \text{ACB}_{\text{prev}} - \text{ACB}_{\text{sold}}, \quad \text{Shares}_{\text{new}} = \text{Shares}_{\text{prev}} - \text{Shares}_{\text{sold}}
Total Realized Gain / Loss
\text{Total Gain} = \sum_{i \in \text{sells}} \left( \text{Net Proceeds}_i - \text{ACB}_{\text{sold},i} \right)

Frequently asked questions

How do I handle a stock split?

Splits do not change your total ACB, only your share count.1 Adjust the shares and price on your earlier buy rows to the post split numbers. For a 2 for 1 split, double the shares and halve the price on each buy.1

Why did my ACB per share go up after I bought more shares?

Because you paid more than your old average. New buys are blended into the pool, so a higher price pulls the average up and a lower price pulls it down. Selling never changes your ACB per share.1

Does a sell change my ACB per share?

No. A sell removes shares and removes their share of the book value at the same average cost.1 Your cost per share stays where it was until your next buy.

Should I include shares held in my TFSA or RRSP?

No. Gains in registered accounts are not taxed as capital gains, so ACB does not matter there. Only track your non registered, taxable holdings.

I hold the same stock at two brokers. Do I combine them?

Yes. The CRA works out your ACB as the average cost of all the shares of that stock you own.1 Enter every buy and sell from both brokers into one list, in date order.

Is a capital loss always allowed if I rebuy the same shares within 30 days?

No. If you, or a person affiliated with you such as your spouse, bought the same stock within 30 days before or after the sale and still own it 30 days after the sale, you cannot deduct the loss.1 If you bought the new shares yourself, you can usually add the loss to their ACB instead.1

Why is my gain slightly different from my broker's number?

The cost your broker reports, such as box 20 of your T5008 slip, may or may not be your ACB, and you are the one who has to make any adjustments.5 Your ACB averages every share of that stock you own, not only the ones in one account.2 It also depends on return of capital, reinvested distributions and, for shares bought in a foreign currency, the exchange rate on the day you bought them.4 A broker figure that covers one account, or leaves out one of these, can differ from yours.


Sources

  1. Capital Gains – 2025 (Guide T4037). Canada Revenue Agency. 2025;Definitions; Ch. 3 Identical properties, Stock splits; Ch. 5 Superficial loss. Accessed September 27, 2026.
  2. Income Tax Act, section 47: Identical properties. Justice Laws Website, Government of Canada. 2026;s. 47(1). Accessed October 7, 2026.
  3. Registered Retirement Savings Plan (RRSP). Canada Revenue Agency. 2026. Accessed October 7, 2026.
  4. Tax treatment of mutual funds. Canada Revenue Agency. 2026;How income from mutual funds is taxed; Calculate your ACB. Accessed November 12, 2026.
  5. T5008 Statement of Securities Transactions: slip information for individuals. Canada Revenue Agency. 2025;Box 20. Accessed November 12, 2026.