Introduction
The Adjusted Cost Base (ACB) Calculator helps you track what your shares really cost you. ACB is the average price you paid for each share, plus any fees like commissions. 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. 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. If you only need the average buy price without the tax side, the Stock Average Calculator is a quicker option, and the Stock Profit Calculator handles a single round-trip trade.
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 ACB: 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 everything and start again.
What Is Adjusted Cost Base (ACB)?
Adjusted cost base, or ACB, is the average cost you paid for 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.
How ACB Is Calculated
Canada uses the weighted average cost method. That means all shares of the same stock in the same account are pooled together. You do not track each buy on its own. Instead:
- ACB per share = total book value ÷ total shares you hold (the same idea behind any Weighted Average Calculator)
- 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. 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 sold
Net proceeds are the sale price times the number of shares, minus the selling commission. 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. Capital losses can lower capital gains from the same year, past years, or future years. To estimate the tax owing on those gains, try the Capital Gains Calculator or the Capital Gains Tax Calculator, and check how the gain fits your bracket with the Taxable Income 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. To see what that trade returned in percentage terms, run the numbers through the ROI Calculator or the CAGR Calculator.
Things That Change Your ACB
- Commissions and fees: buying fees raise your ACB. Selling fees lower your proceeds. Ongoing fund fees are separate, and the Expense Ratio Calculator shows their long-run drag.
- Return of capital (ROC): some ETFs and trusts pay ROC, which lowers your ACB.
- Reinvested distributions (DRIPs): reinvested amounts raise your ACB, even if you never saw the cash. The DRIP Calculator and Dividend Calculator help you total up those reinvested payouts.
- Stock splits: the share count changes, so ACB per share changes, but total ACB stays the same.
- Foreign stocks: convert both buys and sells to Canadian dollars using the exchange rate on each trade date. The USD to CAD Calculator and Currency Calculator make that step easier.
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. The denied loss is added to your ACB instead.
You must also keep one ACB pool per stock across all your non-registered accounts, not one per account. ACB does not matter inside an RRSP, RRIF, TFSA, or FHSA, because gains in those accounts are not taxed as capital gains. Keep your trade records and slips, since brokers do not always report ACB correctly. The same pooling idea applies to coins and tokens, which the Crypto Tax Calculator and Crypto Profit Calculator cover, and you can project the growth of what you keep invested with the Investment Calculator.