Stock Average Calculator: Average Cost, Break-even and Averaging Down
By FindMySum · Last reviewed
A stock average calculator tells you what you have actually paid per share when you have bought the same stock more than once at different prices. That number is your break-even price, the figure to compare with today's quote, and in Canada it is the starting point for the adjusted cost base (ACB) you report when you sell. This calculator takes up to four purchases, an optional commission per purchase and the current market price, and returns your average cost, total investment and unrealised gain or loss. The examples below are run through the calculator from its default inputs.
Why the simple average of prices is wrong
If you bought at $100 and later at $85, it is tempting to call your average $92.50. That is only true if you bought the same number of shares each time. The correct figure is a weighted average: every dollar you spent counts, so a large purchase at a low price pulls the average down more than a small one. The calculator always uses the weighted figure.
The inputs
- Purchases 1 and 2: price per share and number of shares for each buy. The defaults are 100 shares at $100 and 150 shares at $85.
- Purchases 3 and 4 (advanced): two more buys, set to 0 shares by default so they are skipped. Their default prices are $75 and $70.
- Commission per purchase (advanced): the brokerage fee charged on each buy, $0 by default. It is added once to every purchase that has shares.
- Current market price: today's price per share, $90 by default.
The formula
For each purchase, cost = price × shares + commission. Then:
Average cost per share = total cost ÷ total shares
Current value = total shares × current price, and unrealised gain or loss = current value − total cost, also shown as a percentage of total cost. The break-even price is the average cost per share: above it the position is in profit, below it at a loss, before any selling costs. Including purchase commissions in the cost follows the CRA's definition of adjusted cost base, which counts outlays such as commissions as part of what you paid.
Worked example: the default inputs
Purchase 1 is 100 shares at $100, costing $10,000. Purchase 2 is 150 shares at $85, costing $12,750. Together that is $22,750 for 250 shares:
- Average cost: $22,750 ÷ 250 = $91.00 per share
- Total investment: $22,750
- Current value at $90: 250 × $90 = $22,500
- Unrealised loss: $250, or 1.10% of cost
- Break-even price: $91.00
The second purchase did its job. Before it, the break-even was $100 and the position was $1,000 under water at $90. After it, the stock needs to rise just $1.00 to break even. The cost is that you now have $22,750 riding on this one company instead of $10,000.
Adding commissions
Set the commission to $9.99 a purchase and the two buys cost $19.98 more. Total investment becomes $22,769.98, the average cost rises to $91.08 and the unrealised loss at $90 grows to $269.98, or 1.19%. On a large position a flat commission barely moves the average, but on small, frequent purchases it adds up, and leaving it out understates your ACB.
Averaging down further
Open the advanced section and enter 100 shares in purchase 3 at its default price of $75. You now own 350 shares for $30,250, an average of $86.43. At $90 the position shows a profit of $1,250, or 4.13%. If the price instead slid to $80, the same three purchases would show a loss of $2,250, or 7.44%, with $30,250 at risk. Compare that with stopping after two purchases: at $80 those 250 shares would be down $2,750, or 12.09%. Averaging down lowers the percentage loss and the break-even price, but it increases the dollars exposed to a stock that has been falling. Whether that is sensible depends on why the price fell, not on the arithmetic.
Average cost and the Canadian ACB
In Canada, when you own identical shares bought at different times, the CRA requires you to use their average cost, not the cost of a particular lot. That average, including commissions, is your ACB per share. When you sell, the capital gain or loss is the proceeds minus the ACB of the shares sold minus selling costs, and only half of a capital gain is included in income. For straightforward purchases the calculator's average cost is the ACB per share. It does not apply the adjustments that change ACB over time, such as return of capital distributions, reinvested distributions from funds, or superficial losses. Shares held in a TFSA or RRSP are not subject to capital gains tax, so ACB matters only for non-registered accounts; the TFSA calculator shows how tax-free growth compounds. In the United States the rules differ: you may identify specific lots when you sell, and first-in, first-out is the default for shares when you don't.
What the calculator leaves out
It handles up to four purchases of a single security with the same commission on each. It does not include selling commissions, currency conversion, dividends received, stock splits, return of capital or superficial-loss adjustments, and it shows an unrealised gain or loss, not tax. To judge the result as a return over time, enter the total cost and current value in the ROI calculator, or the start and end values and the holding period in the CAGR calculator.
More questions
What happens to my average cost when I sell some of the shares?
Under the Canadian average-cost method, nothing. Selling part of a position removes shares at the current ACB per share, so the remaining shares keep the same per-share cost. If you own 250 shares at $91.00 and sell 100, the other 150 still have an ACB of $91.00 each. The average changes only when you buy more, or when an event such as a return of capital adjusts the cost base.
How does a stock split change my average price?
A split changes the number of shares, not what you paid. In a 2-for-1 split, 250 shares at $91.00 become 500 shares at $45.50, and the total cost of $22,750 stays the same. To keep using the calculator after a split, divide each past purchase price by the split ratio and multiply the share counts by it.
Do reinvested dividends change my average cost?
Yes. Each dividend reinvestment buys new shares at that day's price, so it is a purchase like any other and adds to your cost base. Leaving reinvested dividends out understates your ACB, which means paying tax on a larger gain than you really made when you sell. Add DRIP purchases as separate purchases, or keep a running record.
How do I handle shares bought in US dollars?
For Canadian tax, each purchase is converted to Canadian dollars at the exchange rate on the day you bought it, and each sale at the rate on the day you sold. Enter the Canadian-dollar cost of each purchase (price per share in CAD) to get an ACB that matches what the CRA expects. Averaging the US-dollar prices and converting once at the end gives a different, incorrect figure.
Is averaging down the same as dollar-cost averaging?
No. Dollar-cost averaging means investing a fixed amount on a fixed schedule whatever the price, which is how regular TFSA or RRSP contributions to an index fund often work. Averaging down is a decision to buy more of one holding specifically because its price has fallen. Dollar-cost averaging is a habit; averaging down is a bet that the price will recover.
Can I average down to claim a loss and keep the shares?
Not in a way the CRA will accept. If you sell shares at a loss and you, or someone affiliated with you, buy identical shares in the 30 days before or after the sale and still own them 30 days after it, the loss is a superficial loss and is denied. The denied loss is added to the ACB of the new shares instead, so it is deferred rather than lost.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.