Start here
How is adjusted cost base calculated when identical investments are bought at different prices and only some are sold?
For ordinary identical investments held as capital property, combine their adjusted costs and divide by the units held to find an average cost. A later purchase or qualifying adjustment changes that pool. A partial sale uses the average immediately before the sale for the units disposed of. Acquisition commissions generally belong in cost; sale commissions are separate selling expenses. Reinvestments, foreign-currency conversions and special tax rules can change the calculation, so a brokerage book value needs reconciliation rather than automatic acceptance.
What you’ll learn
- Track both units and total adjusted cost across identical taxable holdings owned by the same individual.
- A partial sale removes the average cost of units sold; its selling price does not reset the remaining cost.
- Reinvested distributions, currency conversions and loss-sale rules can matter even when a statement appears complete.
A cost record answers a different question from a price chart
An investment account may show market value, book value and unrealized profit. Those numbers are useful, but a sale requires a defensible tax cost. Adjusted cost base, or ACB, connects the acquisition history with the portion of an investment that has been sold.
This article examines a Canadian resident's personally owned, non-registered holdings treated as capital property. Trading carried on as a business, registered accounts, joint ownership and special transactions require different analysis. The exercise calculates a capital gain, not a tax bill; no capital-gains inclusion rate or personal tax rate is assumed.
The CRA's capital-gain calculation guidance separates three ingredients: sale proceeds, ACB and selling expenses. Acquisition commissions generally form part of cost; the commission on a later sale is a selling expense. Recording a fee twice would understate the gain.
Build one pool for identical holdings
For ordinary identical shares or fund units, the Canadian approach generally uses an average cost. A purchase changes total units and total ACB; the new average is total ACB divided by units held. A sale removes the average cost attributable to the units sold. The CRA explains this in its guide to identical properties.
For the same individual, holding identical units in two taxable brokerage accounts does not turn them into two different investments for this calculation. Account statements therefore need to be brought together. Holdings belonging to someone else, or inside an RRSP or TFSA, should not simply be mixed into this taxable pool.
A useful ledger has separate columns for date, event, units, purchase cost, acquisition fees, ACB adjustments, sale proceeds and sale fees. It should also identify the source document. That separation makes an error traceable instead of hiding it inside one changing average.
Fictional CAD example: purchases and a reinvestment
Maya owns no other identical units. Every figure below is invented and expressed in nominal Canadian dollars. Transactions occur in the stated order in one calendar year. There are no splits, return-of-capital amounts, transfers or other adjustments. Purchase and sale commissions are the only transaction costs.
| Event | Units added | Addition to ACB | Units held | Total ACB |
|---|---|---|---|---|
| January: buy at $20, plus $10 commission | 100 | $2,010 | 100 | $2,010 |
| April: buy at $24, plus $10 commission | 150 | $3,610 | 250 | $5,620 |
| June: reinvest $250 at $25, without commission | 10 | $250 | 260 | $5,870 |
After April, average cost is $5,620 ÷ 250 = $22.48. The June distribution is assumed to be entirely taxable income and entirely used to buy additional units. It is not a return of capital. After that purchase, the average becomes $5,870 ÷ 260, approximately $22.576923 per unit.
Reinvestment does not make taxable distributions disappear. The CRA's mutual-fund tax guidance explains that income can remain reportable even when it purchases more units. In the ledger, the acquisition is still recorded. Tax reporting and recording the new purchase perform separate jobs.
Sell part of the position without resetting the rest
In September, Maya sells 80 units at $30 each and pays a $10 sale commission. Gross proceeds are $2,400; cash received is $2,390.
The cost assigned to the sale is 80 × ($5,870 ÷ 260) = $1,806.15, rounded only at the final dollar calculation. The capital gain is therefore $2,400 − $10 − $1,806.15 = $583.85.
The remaining holding is 180 units with ACB of $5,870 − $1,806.15 = $4,063.85, subject to rounding. Average cost per remaining unit stays approximately $22.576923. Selling at $30 changes cash and units; it does not revalue the remaining tax cost to $30.
Nor does the sale let Maya select the January purchase as the particular units sold. In this ordinary pooled example, the average immediately before the sale supplies the cost. Keep more decimal places internally than the display shows so several partial sales do not accumulate avoidable rounding errors.
Change an assumption and locate the effect
Suppose the sale commission were $50 instead of $10, with everything else unchanged. Cash received would be $2,350 and the gain would fall by $40 to $543.85. The remaining holding's ACB would still be approximately $4,063.85. A selling cost changes the disposition calculation, not the acquisition history of unsold units.
Now consider a recordkeeping error: the ledger correctly shows 260 units but omits the $250 reinvestment from ACB. It would assign only $5,620 ÷ 260 × 80 = $1,729.23 to the sale and report a $660.77 gain. That is $76.92 too high. The rest of the missing cost remains embedded in the unsold position.
This error is easy to miss because the unit balance still matches the statement. Reconcile both units and dollars; agreement in one column does not prove the other is correct.
Foreign currency needs a Canadian-dollar timeline
A foreign-currency profit is not automatically the Canadian-dollar gain. The CRA requires proceeds, acquisition cost and expenses to be converted using the rates applicable when those respective amounts arose. Its calculation guidance describes these separate conversion points.
In a separate fictional example, ten shares cost US$50 each when US$1 equals C$1.30. Their cost is C$650. They later sell for US$600 in total when US$1 equals C$1.20, producing C$720. With no fees, other identical holdings or adjustments, the Canadian-dollar gain is C$70.
Multiplying the US$100 gain by the sale-date rate would produce C$120 and miss the acquisition-date conversion. These invented exchange rates are teaching inputs. The example also excludes any separate gain or loss on foreign cash held before purchase or after sale; that is a different recordkeeping question.
Know what the simple ledger cannot settle
The CRA warns that a T5008's cost or book value may differ from the investor's actual ACB. Its T5008 guide identifies the need for adjustments. A useful reconciliation starts with trade confirmations and distribution records, then explains differences from the slip instead of silently choosing whichever number produces less tax.
Loss sales introduce another issue. A superficial loss can arise where the investor or an affiliated person acquires, or has a right to acquire, the same or identical property during the period from 30 calendar days before to 30 calendar days after a loss sale, and still owns, or has a right to acquire, it 30 days after the sale. The deduction may be denied. Affiliated people, automatic reinvestments and registered-account transactions can complicate the result; a negative number in this ledger alone does not establish a deductible loss.
Corporate reorganizations and return-of-capital adjustments also need their own records. This article's arithmetic does not resolve those events or supply a complete tax return.
Learning exercise: finish the ledger
Start a separate fictional holding with 40 units and $1,000 ACB. Buy ten more units at $30 and pay a $5 acquisition commission. Then sell 20 units at $28 with a $5 sale commission. Assume no other holdings or adjustments. Find the new average, the gain and the remaining ACB.
Answer: the purchase adds $305, leaving 50 units and $1,305 ACB. Average cost is $26.10. The sale produces $560 gross, or $555 after its fee; assigned ACB is 20 × $26.10 = $522. The capital gain is $33, and the remaining 30 units carry $783 ACB. The check is $522 + $783 = $1,305: all cost is accounted for.
Evidence behind the explanation
Sources & checks
Linked sources were consulted on October 31, 2026. The examples are original educational calculations. Source consultation and arithmetic checks do not constitute independent professional review.
- Calculating and reporting your capital gains and lossesCanada Revenue Agency · Accessed 2026-10-31
Acquisition costs, selling expenses, capital-gain calculation and transaction-specific Canadian-dollar conversion.
- Capital Gains – 2025: identical propertiesCanada Revenue Agency · Accessed 2026-10-31
Average-cost treatment of identical properties and allocation of cost to a partial sale; cited for mechanics, not a current inclusion-rate assumption.
- Tax treatment of mutual fundsCanada Revenue Agency · Accessed 2026-10-31
Reporting reinvested distributions and their role in acquiring additional units.
- T5008 Guide – Return of Securities TransactionsCanada Revenue Agency · Accessed 2026-10-31
Book value and box 20 may require adjustment to determine the investor’s ACB.
- Capital losses: superficial lossCanada Revenue Agency · Accessed 2026-10-31
Acquisition and continuing-ownership conditions for superficial losses and limits on deductibility.
When this article needs another review
- CRA changes its identical-property, foreign-currency or superficial-loss guidance.
- Tax-slip reporting or fund cost-adjustment procedures change.
- A worked example adds a corporate action, joint ownership or other excluded transaction.
Check the linked official guidance before applying a rule that may have changed.
About this educational article
Published by North of Numbers and created with AI assistance using the sources listed above. This article has not been reviewed by a qualified financial professional. Sources, assumptions and hypothetical examples are shown so readers can examine the reasoning.
This article explains general concepts; it does not assess individual suitability or provide personal financial, investment, tax, insurance, mortgage or legal advice.