Skip to content

Adjusted Cost Base Calculator (Canada) — ACB Tracker With Superficial Loss

Track the adjusted cost base of your Canadian stocks, ETFs and funds the CRA way: average cost, DRIPs, return of capital, splits, superficial losses, CSV in and out.

Canada

Securities

Transactions for XEQT

Transaction 1
$
$
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
Shares held: 100 · total ACB $3,009.99 · ACB per share $30.0999
Transaction 2
$
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
The cash distribution itself is income on your T3 or T5; here it buys new shares at the reinvestment price.
Shares held: 103.2 · total ACB $3,109.99 · ACB per share $30.1356
Transaction 3
$
From your T3 slip (box 42) or the fund's annual tax breakdown. Lowers the ACB.
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
Shares held: 103.2 · total ACB $3,097.59 · ACB per share $30.0154
Transaction 4
$
$
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
Proceeds $1,400.00 − outlays $9.99 − ACB $1,500.77: capital loss $110.76
Superficial loss: $88.61 denied (40 of 50 shares sold were replaced within 30 days) and added to the ACB of the shares you still hold. Loss that counts: -$22.15.
Shares held: 53.2 · total ACB $1,685.43 · ACB per share $31.681
Transaction 5
$
$
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
Shares held: 93.2 · total ACB $2,835.42 · ACB per share $30.4229
Transaction 6
$
$
1 for Canadian dollars. For US trades, the Bank of Canada rate for the transaction date (the CRA requires CAD at that day's rate).
Proceeds $660.00 − outlays $9.99 − ACB $608.46: capital gain $41.55
Shares held: 73.2 · total ACB $2,226.96 · ACB per share $30.4229

XEQT: where you stand now

ACB per share
$30.4229
Total ACB
$2,226.96
Shares held
73.2

Ledger (date order)

DateTypeSharesACB changeTotal ACBPer shareGain / loss counted
2025-03-03Buy100$3,009.99$3,009.9930.0999—
2025-12-29Reinvested distribution (DRIP, new shares)103.2$100.00$3,109.9930.1356—
2025-12-31Return of capital103.2-$12.40$3,097.5930.0154—
2026-06-15Sell53.2-$1,412.16$1,685.4331.681-$22.15
2026-07-02Buy93.2$1,149.99$2,835.4230.4229—
2026-09-01Sell73.2-$608.46$2,226.9630.4229$41.55

Tax-year summary (all securities)

SecurityDateProceedsACBOutlaysSuperficial loss deniedGain / loss counted
XEQT2026-06-15$1,400.00$1,500.77$9.99$88.61-$22.15
XEQT2026-09-01$660.00$608.46$9.99—$41.55
Totals$2,060.00$2,109.23$19.98$88.61$19.40
Net capital gain
$19.40
Net for 2026
Capital gains
$41.55
Capital losses
$22.15

To see the tax on these gains in your province, enter each sale's proceeds, ACB and outlays in the capital gains tax calculator (Canada). Superficial losses are already handled here: for such a sale the copied ACB is reduced by the denied part, so answer "No" to the buy-back question there.

Import, export and saved data

Saved in this browser only (localStorage). Nothing is uploaded.

CSV format: a header row with security,date,type,shares,price,amount,commission,fx_rate,split_ratio. Dates as YYYY-MM-DD; numbers with a dot for decimals and no thousands separators. Type is one of buy, sell, drip, roc, reinvested, split. Blank commission means 0, blank fx_rate and split_ratio mean 1.

How the CRA wants the ACB calculated

  • Identical shares are pooled: every purchase (with its commission) is added to one total cost, and the ACB per share is that total divided by the shares held. A sale removes shares at the average ACB and does not change the ACB per share.
  • Reinvested distributions buy new shares at their price. Return of capital lowers the ACB; reinvested capital gains distributions with no new units raise it. If the ACB would go below zero, the excess is a capital gain at that moment and the ACB becomes zero.
  • A loss is superficial when you buy identical shares from 30 days before to 30 days after the sale and still hold them 30 days after. The denied part (loss × the least of shares sold, shares bought in that period and shares held at its end, ÷ shares sold) is added to the ACB of the shares you keep.
  • Foreign-currency trades: purchases at the exchange rate of the purchase date, sales at the rate of the sale date, fees at the rate when paid.
Not handled: options, short sales, purchases by your spouse, your corporation or in your RRSP or TFSA (they also make a loss superficial, but this ledger only sees the trades you enter), mergers and spin-offs, and shares held before 1972. Superficial-loss checks use only the transactions of the same security as entered.

Sources and rates (checked 2026-11-14)

Every rate and rule in this calculator comes from the official pages below, checked on 2026-11-14.

Saving for a child's education instead? See the RESP calculator.

This is an estimate, not tax or legal advice. Rules change and your situation may differ: check the official source or ask a tax professional before you file.

Runs entirely in your browser: nothing you type is sent anywhere. Browse all free tools.

Found a problem, or something that could be better? We read every message and we fix things quickly.

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

  1. Name the security (for example its ticker), or import a CSV of your trades.
  2. 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.
  3. For US or other foreign trades, enter that day's exchange rate (CAD per unit) on each transaction.
  4. Read the ACB per share and the gain or loss under each sale; a superficial loss is flagged and moved into the ACB automatically.
  5. 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.