Purchase Transactions
This calculator applies the CRA's identical properties (averaged ACB) rule. For special situations — stock splits, return of capital distributions, employee stock options — adjustments may be needed. See the T4037 guide for full details.
On this page
- How do you calculate ACB per share?
- The inputs and what the calculator returns
- The CRA's own example, step by step
- Worked example: a partial sale with commissions
- Adjustments the calculator does not make for you
- Superficial losses and your ACB
- Which shares are pooled together?
- Reading the gain and tax result
- Keeping ACB records the CRA will accept
This calculator works out your adjusted cost base (ACB) when you have bought the same stock or ETF more than once. Add each purchase lot with its share count, price, and commission; it pools them into one average cost per share, as the CRA requires, then estimates the capital gain and tax if you sold everything at the price you enter. It is for informational purposes only: results are estimates, and your broker's statements and your own records are what the CRA will rely on.
How do you calculate ACB per share?
Add up everything you paid for all the shares you hold, including commissions, and divide by the number of shares. Each time you buy more, recalculate. When you sell some, the ACB per share of the shares you keep does not change; only the total falls in proportion. This is the identical property rule in the CRA's capital gains guide, T4037, which says you must calculate the average cost of each property in the group at the time of each purchase.
ACB per share = (ACB of shares already held + cost of new purchase + commission) ÷ total shares after the purchase
The inputs and what the calculator returns
| Input | What to enter |
|---|---|
| Shares | Number of shares in each purchase lot |
| Price per share | What you paid per share, in Canadian dollars |
| Commission | The total commission for that lot (not per share) |
| Current or selling price per share | The price you sold at, or today's price for a what-if |
| Selling commission | Total commission on the sale |
| Combined marginal rate | Your federal plus provincial rate |
The calculator returns total shares, total ACB, ACB per share, gross proceeds, the capital gain, the taxable half, and the estimated tax. It assumes you sell every share you entered. To model a partial sale, read the ACB per share from the results and multiply it by the number of shares you are selling, as in the example below.
The CRA's own example, step by step
Guide T4037 uses this sequence, which shows both rules: purchases change the average, sales do not.
| Transaction | Shares | Cost | Total shares | Total ACB | ACB per share |
|---|---|---|---|---|---|
| Buy at $15 | 100 | $1,500 | 100 | $1,500 | $15.00 |
| Buy at $20 | 150 | $3,000 | 250 | $4,500 | $18.00 |
| Sell 200 | −200 | −$3,600 | 50 | $900 | $18.00 |
| Buy at $21 | 350 | $7,350 | 400 | $8,250 | $20.63 |
The sale removes 200 × $18.00 = $3,600 of ACB, which is what is subtracted from the proceeds to compute that sale's gain or loss. The 50 remaining shares keep their $18.00 cost until the next purchase blends them with the new shares.
Worked example: a partial sale with commissions
Sam holds shares outside his registered accounts and lives in British Columbia.
- He buys 200 shares at $25 with a $9.99 commission: cost $5,009.99.
- He buys 100 more at $31 with a $9.99 commission: cost $3,109.99.
- Total: 300 shares, ACB $8,119.98, so the ACB per share is $8,119.98 ÷ 300 = $27.0666.
In 2025 he sells 120 shares at $38 and pays $9.99:
- Proceeds net of commission: (120 × $38) − $9.99 = $4,550.01
- ACB of the shares sold: 120 × $27.0666 = $3,247.99
- Capital gain: $4,550.01 − $3,247.99 = $1,302.02
- Taxable capital gain: $651.01
With $80,000 of other income, his 2025 combined rate is 28.2% (20.5% federal plus 7.7% BC, from the CRA's 2025 rate table), so the tax is about $183.59.
He keeps 180 shares with a total ACB of $8,119.98 − $3,247.99 = $4,871.99, still $27.07 each. Later he buys 50 shares at $40 plus $9.99 ($2,009.99). His new pool is 230 shares with an ACB of $6,881.98, or $29.92 per share.
To reproduce the sale in the calculator, enter the two purchase lots, read the $27.07 ACB per share, and do the 120-share multiplication yourself. Then, for the later purchase, enter one lot of 180 shares with a $4,871.99 total cost (180 shares at $27.0666) and a second lot of 50 shares at $40 with $9.99 commission.
Adjustments the calculator does not make for you
Several events change your ACB without a purchase. Adjust your lots for these before relying on the result:
| Event | Effect on ACB | Where to find the number |
|---|---|---|
| Return of capital (ROC) | Reduces total ACB | Box 42 of the T3 slip, or the fund's annual tax breakdown |
| Reinvested distributions (DRIP) | Adds the reinvested amount, plus new units | Your broker's DRIP confirmations |
| Reinvested capital gains distribution with no new units (phantom distribution) | Increases total ACB | Fund's annual tax breakdown; it is reported as income on the T3 |
| Stock split or consolidation | Total ACB unchanged; per-share ACB changes | Corporate action notice |
| Superficial loss on a repurchase | Denied loss is added to the replacement shares | Your own trade history |
| Purchases in US dollars | Convert each purchase and sale to Canadian dollars at the exchange rate for that day | Bank of Canada daily rates |
Return of capital. Suppose you own 500 units of an ETF with a total ACB of $10,000 ($20 per unit), and in 2025 the T3 shows $200 of return of capital in box 42. Your ACB falls to $9,800, or $19.60 per unit. ROC is not taxed when received; it is taxed later through a larger gain when you sell. If ROC ever drives your ACB below zero, the negative amount is treated as a capital gain in that year and your ACB resets to zero.
Splits. In a 3-for-1 split, 100 shares with a $6,000 ACB become 300 shares with the same $6,000 ACB, so the ACB per share drops from $60 to $20. Enter the post-split share count and an adjusted price that keeps the total cost the same.
Free · 1-page PDF-ready sheet
Canadian capital gains rules, on one page
Inclusion rate, ACB math, superficial-loss rules, and carryback windows — the CRA rules you actually need at tax time.
- The 50% inclusion rate and how it is applied
- Adjusted cost base (ACB) formula with an example
- Superficial-loss 30-day rule
- Capital-loss carryback (3 years) and carryforward
Unlocked — the Canada Capital Gains Cheat Sheet is ready.
Open the Canada Capital Gains Cheat SheetSuperficial losses and your ACB
If you sell at a loss and you, or a person affiliated with you such as your spouse or a corporation you control, buy the same or identical shares within 30 calendar days before or after the sale, and still hold them 30 days after, the loss is superficial. You cannot deduct it. Instead, you usually add it to the ACB of the replacement shares, as T4037 explains.
Example: you own 100 shares with an ACB of $5,000 and sell them for $4,000, a $1,000 loss. Ten days later you buy 100 shares back for $4,100. The loss is denied, and the new shares carry an ACB of $4,100 + $1,000 = $5,100, or $51 per share. When you eventually sell them without repurchasing inside the window, the deferred loss reduces your gain or increases your loss. The calculator does not detect this, so add the denied amount to the repurchase lot's commission field to carry it into the average.
Which shares are pooled together?
- Pooled: all shares of the same class of the same company, or units of the same fund series, held in any of your non-registered accounts, even at different brokers.
- Not pooled: shares in your RRSP, RRIF, TFSA, or FHSA. Trades inside those accounts do not produce capital gains or losses on your return.
- Not pooled with yours: your spouse's shares. Gains in a joint account are generally taxed according to who contributed the money, and each person tracks the ACB of their own share of the holdings.
- Different properties: two ETFs tracking the same index from different providers are not the same security, even if they hold similar stocks.
Crypto-assets follow the same averaging logic. The CRA describes the ACB of a crypto-asset as usually its weighted average cost; see the crypto tax guide for the specifics.
Reading the gain and tax result
The tax figure multiplies the taxable half of the gain by the single rate you enter. If the sale pushes you across a bracket line, run the calculator at both rates. For province-specific rates and loss carryforwards, take the gain into the Canadian capital gains tax calculator. If the result is a loss, the capital loss planner shows how to use it.
Keeping ACB records the CRA will accept
Brokers often show a "book value" that is not your tax ACB: it may ignore return of capital, mix accounts, or reset after an account transfer. Keep a running spreadsheet with the date, shares, price, commission, and resulting ACB per share for every transaction and adjustment, and save trade confirmations and T3 and T5008 slips. The T5008 slip from your broker reports proceeds, and sometimes a cost amount, but the CRA expects you to report your own correctly calculated ACB on Schedule 3. For the full method, including real estate and reinvested dividends, read how to calculate adjusted cost base in Canada.
Frequently asked questions
How do I calculate ACB per share in Canada?
Can I choose which lot I sell, like FIFO?
Do shares in my TFSA or RRSP count toward my ACB?
How does return of capital affect my ACB?
How we build our calculators
Formulas follow the published IRS, Treasury, or agency rules cited on the page, and run entirely in your browser — we never see the numbers you type. Results are estimates for informational purposes only and are not tax, legal, or investment advice. Editorial standards.