Finance 100 #41 · Investing View source on GitHub

ACB Tracker (Canada)

Adjusted cost base and capital gains for Canadian investors, transaction by transaction.

Your numbers

Types: buy, sell, roc (return of capital), drip (reinvested distribution) and cgd (phantom capital gains distribution). Buy, sell and drip use units and price. Roc and cgd use the total dollar amount. Everything stays in this browser.

Import transactions from CSV

Header row with date (YYYY-MM-DD), security, type, units, price, fees, amount. Importing replaces the table.

Results

Gains by tax year

Current holdings

Running ACB

What to do next

How it works

Pooled average cost. Identical units of one security share one adjusted cost base. A buy or a reinvested distribution adds units x price + fees. A sale removes ACB x units sold / units held, and the gain is proceeds - fees - ACB removed.

Return of capital reduces the ACB. If it takes the ACB below zero, the excess is a capital gain and the ACB is reset to zero. A phantom capital gains distribution adds to the ACB without adding units.

Superficial losses. A loss on a sale is flagged when identical units were bought in the 30 days before or after the sale and are still held 30 days after it. The denied part is loss x min(units sold, units bought, units still held) / units sold. It is added to the ACB of the pool, so the repurchased units carry it.

Tax year. Gains and allowed losses are netted by calendar year of the sale, then multiplied by the inclusion rate (default 50%) to get the taxable amount.

Distributions reported on your T3 slip (including the capital gains distribution itself) are taxed separately and are not part of the gains table. Limits: one currency (enter CAD values), no foreign exchange, no registered accounts (gains inside an RRSP or TFSA are not taxed), no affiliated-person rules, no carry-forward of losses. Figures are editable; verify them for the current year.