This adjusted cost base calculator for Canada keeps the ACB of each stock, ETF or mutual fund you own in a taxable account, using the CRA's average-cost rule for identical properties, and works out the capital gain or loss on every sale. The example on the page buys 100 XEQT units, reinvests a distribution, records return of capital, then sells 50 units at a loss and buys 40 back two weeks later: 40/50 of the $110.76 loss ($88.61) is a superficial loss added to the ACB, and only $22.15 counts.
Enter each transaction with its date, shares, price and commission, plus an exchange rate for US-dollar trades, which the CRA wants in Canadian dollars at the rate of each transaction's date. Return of capital lowers the ACB, and if it ever goes below zero the excess is a capital gain right away. A tax-year summary across all your securities gives the proceeds, ACB and outlays to carry into the Canadian capital gains tax calculator. Your data is saved only in this browser and can be downloaded or imported as CSV. The rules were checked against the CRA's T4037 guide on November 14, 2026; it is not tax advice.
How to use
- Name the security (for example its ticker), or import a CSV of your trades.
- Add each transaction in any order: buys and sales with shares, price and commission; DRIPs; return of capital and reinvested capital gains from your T3 slip; splits.
- For US or other foreign trades, enter that day's exchange rate (CAD per unit) on each transaction.
- Read the ACB per share and the gain or loss under each sale; a superficial loss is flagged and moved into the ACB automatically.
- Pick a tax year in the summary, copy the sales and enter them in the capital gains tax calculator; download the CSV to keep a record.
Frequently asked questions
How do you calculate adjusted cost base in Canada?
Add up everything you paid for identical shares, including commissions, and divide by the number of shares you hold: that is the ACB per share. Every new purchase changes the average; a sale removes shares at the current average and does not change it. Example from the CRA's T4037: 100 shares at $15 and 150 at $20 cost $4,500 for 250 shares, so the ACB is $18.00 a share.
How does return of capital affect ACB?
Return of capital (box 42 of the T3 slip, or the fund's annual tax breakdown) is not taxed when you receive it; it lowers your ACB instead, so the gain shows up when you sell. If return of capital pushes the ACB below zero, the negative amount is a capital gain in that year and the ACB is reset to zero. Reinvested capital gains distributions that don't add units ("phantom" distributions) do the opposite: they raise the ACB.
How is a superficial loss added to the ACB?
If you, or someone affiliated with you, buy identical shares from 30 days before to 30 days after selling at a loss and still hold them 30 days after, the loss is superficial: you can't deduct it now, but it is added to the ACB of the shares you hold, so it reduces a later gain. When fewer shares are bought back than sold, only part of the loss is denied: the loss × the least of shares sold, shares bought in the 61-day period and shares held at its end, divided by the shares sold.
How do I calculate ACB for US stocks?
Convert each purchase to Canadian dollars at the exchange rate on the day you bought, and each sale at the rate on the day you sold, then use the CAD amounts for the average. The calculator has an exchange-rate field on every transaction for this; the Bank of Canada publishes a daily rate. Currency moves alone can create a gain or a loss.
Do DRIPs change my adjusted cost base?
Yes. Each reinvested dividend or distribution buys new shares, and their cost (the reinvested amount) is added to your ACB, so the ACB per share changes. Forgetting DRIP purchases is the most common reason people pay tax twice on the same money: the dividend was already taxed as income when it was paid.
Is there a US version of this calculator?
No. US cost basis works differently: brokers report it on Form 1099-B, investors can choose specific lots or first-in first-out instead of the average cost that Canada requires for identical shares, and the wash-sale rule adjusts lots rather than an average pool. For the tax on US sales, see the US capital gains tax calculator.
The CRA's two average-cost examples, step by step
Example 1 in T4037: 100 STU Ltd. shares at $15 ($1,500) and then 150 at $20 ($3,000) give 250 shares for $4,500, or $18.00 each. Selling 200 removes $3,600 of ACB and leaves 50 shares at $900, still $18.00 each. Buying 350 more at $21 ($7,350) makes 400 shares for $8,250: $20.63 a share. Press "Load the CRA T4037 example" to see the calculator produce the same numbers.
Example 2 covers a mutual fund whose distributions are reinvested: each reinvestment is a purchase of new units at that day's price, so the ACB per unit drifts from $18.00 to $18.10, $18.29 and $18.38 over the years. The CRA rounds the ACB per unit to cents before multiplying; the calculator keeps full precision, so its totals can differ from the guide's table by a few cents to a dollar on large holdings.
What this calculator does not handle
• Options, short sales and margin interest.
• Purchases made by your spouse or common-law partner, a corporation you control, or in your RRSP or TFSA: they also make a loss superficial, but the ledger only sees the transactions you enter.
• Mergers, spin-offs and other corporate reorganisations (only splits and consolidations), shares owned before 1972, and the principal residence or lifetime capital gains exemptions.
Use the settlement date for exchange trades: the CRA treats it as the date of sale, so a December 31 trade belongs to the next tax year. Shares in an RRSP, TFSA, RESP or FHSA don't need an ACB at all, since gains there are not taxed as capital gains.
