Stock Average Calculator
This stock average calculator works out the average price you paid per share across several purchases, with and without commissions, and how many shares you would need to buy at today’s price to pull that average down to a target. For example, 100 shares at $50 and 50 shares at $44 cost $7,200, an average of $48.00 a share. If the stock now trades at $40, buying 90 more shares for $3,600 brings the average to $45.00. The calculator solves for averaging down only: the target must sit above today’s price and below your average now.
Enter each purchase with its share count, price and commission, then add today’s price and the average you want, and the calculator returns your average cost per share and the number of shares that would get you to the target.
At a glance
What the calculator answers. Your average price per share across every purchase you list, the same average with commissions added, and, if you enter a current price and a target, how many shares to buy at that price, what they cost and how many shares you would then own.
What you need. The number of shares and the price per share of each purchase of one stock or ETF, plus the commission you paid on each. For the averaging down part, today’s share price and the lower average you are aiming for.
The formula. Average price = total paid for the shares ÷ shares held. Shares to buy = shares held × (average now − target) ÷ (target − current price), using the average without commissions.
Averaging down only. A purchase can pull your average toward the price you pay, never past it. So the calculator answers only when the target is above the current price and below your average now. Anything else shows “Not possible”.
Once you have sold shares. The calculator adds purchases only. After any sale, use the ACB calculator further down this page, and see our adjusted cost base guide for the tax rules.
1. How to Use the Stock Average Calculator
One row for each purchase. The calculator opens with two purchase rows. Each row has three boxes: shares bought, price per share and commission. Press “Add a purchase” for every extra buy, and “Remove” to drop a row. A row with no share count is skipped, so a half-filled row does no harm.
Price per share, not the total. Type the price you paid for one share. The calculator multiplies it by the share count itself. This is the opposite of our ACB calculator, which asks for the total dollar amount of each trade, so please check which box you are filling in if you use both.
Commissions in their own box. Enter the commission charged on each purchase, or 0 if your broker charged none. Keeping it separate lets the calculator show two averages: the plain average price, and the average cost including commissions.
Current price and target, both optional. Leave them blank and you get your averages only. Fill in both to see how many shares you would need to buy at today’s price to reach the target average. The sample starts with a $40 current price and a $45 target.
| Box | What to enter | Used for |
|---|---|---|
| Shares bought | The number of shares in that purchase; fractions are fine | Total shares held and the weight of each price |
| Price per share | The price paid for one share in that purchase | Total cost and the average price |
| Commission | The trading commission on that purchase, or 0 | The average cost with commissions |
| Current share price | Today’s price, or the price you expect to buy at | The shares-to-buy answer |
| Target average price | The lower average you want to reach | The shares-to-buy answer |
Reading the results. The headline is your average price per share without commissions. Under it you see shares held, total cost without commissions, total commissions, and the average cost per share with commissions. When the target can be reached, three more lines appear: the shares to buy at the current price, the cost of that purchase, and the shares you would then hold. The calculator shows fractions to four decimals.
When it says “Not possible”. The message names the band your target has to fall in: above the current price and below your average now. Move the target inside that band, or read section 6 for why no purchase can do what you asked.
2. The Formulas Behind the Numbers
Average price. Multiply each purchase’s shares by its price, add the results, and divide by the total shares. A big purchase counts for more than a small one, which is why this is a weighted average and not a simple average of the prices. Buying 100 shares at $50 and 50 at $44 gives ($5,000 + $2,200) ÷ 150 = $48.00, not the $47.00 you would get by averaging $50 and $44.
Average cost with commissions. Add every commission to the total cost before dividing. In the sample, no commission was charged, so both averages are $48.00. With a $4.95 commission on each of the two buys, the cost would be $7,209.90 and the average with commissions $48.07.
Shares to buy for a target. If you hold S shares at an average of A, and buy n more at price P, your new average is (S × A + n × P) ÷ (S + n). Set that equal to your target T and solve for n: n = S × (A − T) ÷ (T − P). In the sample: 150 × ($48 − $45) ÷ ($45 − $40) = 150 × 3 ÷ 5 = 90 shares.
Cost of the purchase. n × P, so 90 × $40 = $3,600. You would then hold 240 shares that cost $10,800 in total, and $10,800 ÷ 240 = $45.00. The check always works: if the new total cost divided by the new share count is not your target, a box was filled in wrongly.
The gap rule. The formula hides a simple pattern. Call the distance between your average and today’s price “the gap”. To close a share of that gap, you must buy shares in proportion to what you already hold, and the amount grows fast as you ask for more.
| Share of the gap closed | Shares to buy for each share held | Holding 150 shares (the sample) |
|---|---|---|
| 25% | 0.3333 | 50 |
| 50% | 1 | 150 |
| 66.67% | 2 | 300 |
| 75% | 3 | 450 |
| 80% | 4 | 600 |
| 90% | 9 | 1,350 |
Why the sample needs 90 shares. The gap in the sample is $8 ($48 − $40), and the $45 target closes $3 of it, or 37.5%. The multiple is 0.375 ÷ 0.625 = 0.6, and 0.6 × 150 = 90. Closing the whole gap would take an endless number of shares, which is why a target equal to the current price can never be reached.
3. Worked Examples
This example is hypothetical. Three investors use the stock average calculator. Each figure below is what the calculator returns for the same inputs.
- Ravi, the calculator’s sample. He bought 100 shares at $50 and 50 shares at $44, with no commissions. Average price: $48.00 (($5,000 + $2,200) ÷ 150). The stock trades at $40 and he wants to know what an average of $45 would take. Shares to buy: 90 (150 × $3 ÷ $5). Cost: $3,600 (90 × $40). Shares he would then hold: 240, at a total cost of $10,800, which is $45.00 a share.
- Maya, three purchases with an example commission of $4.95 each. She bought 40 shares at $75, 60 at $68 and 50 at $60. Total cost without commissions: $10,080 ($3,000 + $4,080 + $3,000) for 150 shares, an average of $67.20. Commissions: $14.85 (3 × $4.95), so her average cost with commissions is $67.30 ($10,094.85 ÷ 150). The stock is at $55 and her target is $62. Shares to buy: 111.4286 (150 × $5.20 ÷ $7). Cost: $6,128.57. Her broker trades whole shares, so she rounds up to 112, which costs $6,160 and gives an average of $61.98 without commissions.
- Tomas, a target the calculator cannot reach. He holds the same 150 shares as Ravi at a $48.00 average, but the stock has risen to $52. He enters a $50 target. The calculator shows “Not possible”: the target would have to be above $52 and below $48 at the same time. Any purchase at $52 raises his average. Adding a third row of 50 shares at $52 shows the result instead: 200 shares at an average of $49.00 (($7,200 + $2,600) ÷ 200).
What the examples show. Ravi’s case is the plain formula. Maya’s shows the two small gaps that real trades open up: commissions lift the average by a few cents a share, and rounding to whole shares lands you just past the target. Tomas’s shows the limit of the tool: when the price is above your average, buying more can only raise it.
Maya’s commission on the new purchase. The shares-to-buy figure leaves out the commission on the new trade. If Maya adds a fourth row of 112 shares at $55 with a $4.95 commission, her average with commissions comes out at $62.06, just above her target. At 115 shares ($6,325) it is $61.98. Adding the planned purchase as a row with its commission is the quickest way to check where you would land.
Try your own purchases, then see how much the plan would cost before you place an order.
4. Reference Tables for Averaging Down
Shares needed at different prices and targets. These figures come from the stock average calculator for one position: 100 shares bought at $50, so the average is $50.00. Each cell is the number of shares to buy at that current price to reach that target average. “Not possible” means the target is at or below the current price.
| Target average | Current price $30 | Current price $35 | Current price $40 | Current price $45 |
|---|---|---|---|---|
| $49 | 5.2632 | 7.1429 | 11.1111 | 25 |
| $48 | 11.1111 | 15.3846 | 25 | 66.6667 |
| $47 | 17.6471 | 25 | 42.8571 | 150 |
| $46 | 25 | 36.3636 | 66.6667 | 400 |
| $45 | 33.3333 | 50 | 100 | Not possible |
| $44 | 42.8571 | 66.6667 | 150 | Not possible |
| $42 | 66.6667 | 114.2857 | 400 | Not possible |
| $40 | 100 | 200 | Not possible | Not possible |
How to read it. Read down a column to see what each extra dollar off the average costs at one price. Read across a row to see that the same target is cheaper to reach when the price has fallen further, because each new share pulls harder on the average. Reaching a $45 average takes 33.3333 shares at $30 but 100 shares at $40.
The cost climbs faster than the target falls. The second table holds the price at $40 and lowers the target one dollar at a time. The first dollar off the average costs $444.44. The ninth costs $20,000 on its own, the difference between the $41 and $42 rows.
| Target average | Shares to buy at $40 | Cost of the purchase | Shares then held | Total invested |
|---|---|---|---|---|
| $49 | 11.1111 | $444.44 | 111.1111 | $5,444.44 |
| $48 | 25 | $1,000.00 | 125 | $6,000.00 |
| $47 | 42.8571 | $1,714.29 | 142.8571 | $6,714.29 |
| $46 | 66.6667 | $2,666.67 | 166.6667 | $7,666.67 |
| $45 | 100 | $4,000.00 | 200 | $9,000.00 |
| $44 | 150 | $6,000.00 | 250 | $11,000.00 |
| $43 | 233.3333 | $9,333.33 | 333.3333 | $14,333.33 |
| $42 | 400 | $16,000.00 | 500 | $21,000.00 |
| $41 | 900 | $36,000.00 | 1,000 | $41,000.00 |
What it shows. Halving the $10 gap, from a $50 average to $45, takes as many shares as you already own. Getting within $1 of the current price takes nine times your holding and turns a $5,000 position into a $41,000 one. That is the real price of a lower break-even, and it is why the calculator shows the cost of the purchase next to the share count.
5. What Averaging Down Changes, and What It Does Not
It lowers your break-even price. Take a hypothetical holding of 200 shares bought at $30, or $6,000. The price falls to $18, a 40% drop. To get back to $30, the price has to rise 66.67%. Buying 200 more shares at $18, which costs $3,600, brings the average to $24. Now a rise of 33.33%, from $18 to $24, gets the whole position back to break-even.
It does not shrink the loss you already have. Before the purchase, 200 shares worth $18 each are $3,600 against $6,000 paid: a $2,400 paper loss. After it, 400 shares worth $7,200 against $9,600 paid: still a $2,400 loss. Averaging down moves the break-even point. It does not change what the market has already taken.
It puts more money on the same outcome. If the price keeps falling to $12, the loss on the original 200 shares would be $3,600. On the 400 shares it is $4,800. The lower average helps if the price recovers and costs more if it does not, because more of your money now rides on one holding.
The calculator cannot say why the price fell. A lower price can follow market-wide swings or a change in the company’s prospects, and the arithmetic is the same either way. The stock average calculator answers “how many shares”, never “should I”. That decision depends on your plan, your other holdings and your tolerance for loss, which no formula sees.
Averaging down is not dollar-cost averaging. Dollar-cost averaging means investing a set amount on a set schedule, whatever the price, often into a diversified fund. Averaging down means buying more of one holding because its price fell below what you paid. The two produce an average cost the same way, but the reasons for buying differ. Our guides to index investing and ETFs explain why many investors spread money across a whole market instead.
Position size matters more than the average. One practical check is to ask what share of your portfolio the holding would be after the purchase. In the 200-share case, the new money lifts the amount invested from $6,000 to $9,600, a 60% increase in the same stock.
6. Why the Calculator Only Averages Down
A purchase pulls the average toward its own price. Every new share you buy drags the average toward the price you paid for it. It can never drag the average past that price. If you hold shares at $48 and buy at $40, the average can land anywhere between $48 and $40, but never at $39 or $49. That is the whole reason the target has to sit inside the band.
When the price is above your average. If the stock trades at $52 and your average is $48, any purchase raises your average. This is sometimes called averaging up. The calculator has no target to solve for in that case, so it shows “Not possible”. To see the effect of averaging up, add the purchase as a new row: in Tomas’s example, 50 more shares at $52 lift his average from $48.00 to $49.00.
When the target equals the current price. Reaching it would take an endless number of shares, because each share bought only gets you closer. The calculator treats that as not possible. In practice, getting within a few cents of today’s price costs many times your current holding, as the reference table shows.
When the target equals your average. You are already there, so there is nothing to buy. The calculator asks for a target strictly below your average.
| Current price | Target | Result | Why |
|---|---|---|---|
| $40 | $45 | 90 shares | Target is between the price and the average |
| $40 | $38 | Not possible | Target is below the price you would pay |
| $40 | $49 | Not possible | Target is above your average: buying at $40 lowers it |
| $52 | $50 | Not possible | Price is above your average, so any purchase raises it |
| $40 | $40 | Not possible | Would take an endless number of shares |
Selling does not lower your average cost. Some investors expect that selling the shares bought at the highest price will leave a lower average behind. For Canadian tax, identical shares are pooled at one average cost, so a sale removes shares at that average and the shares you keep carry the same cost per share. Our adjusted cost base (ACB) guide sets out that rule.
7. Commissions, Whole Shares and Order Types
Two averages, two purposes. The average price without commissions tells you where the stock has to trade for your shares to be worth what you paid for them. The average cost with commissions is the better figure for your real cost. In Maya’s example the gap is $0.10 a share: $67.20 against $67.30.
The shares-to-buy figure leaves commissions out. It uses your average without commissions and ignores the commission on the new trade. That keeps the formula simple, but it means you can land a few cents above your target once costs are counted. To check, add the planned purchase as a new row with its commission and read the with-commissions average.
Whole shares. The calculator shows fractions to four decimals, such as 111.4286. If your broker trades whole shares only, round up, enter the rounded number as a new row, and confirm the result. Rounding up always lands you at or slightly below the target average; rounding down lands you above it.
The price you get may differ. The current price you type is an assumption. A market order fills at whatever price is available when it executes, and a limit order fills only at your price or better, if at all. Our guide to market vs limit orders explains the trade-off. If an order fills in several parts at different prices, enter each fill as its own row.
Commission costs differ by broker. On a small purchase, a flat commission can move the average with commissions noticeably. Our broker comparison and investment fee calculator show what trading costs at each platform, so you can enter a realistic figure.
Sold any shares already? Switch to the ACB calculator so the sale is counted the way the CRA expects.
8. Average Price vs Adjusted Cost Base
The same number until you sell. If you list every purchase of a security and have never sold any, the stock average calculator’s average with commissions is your adjusted cost base per share. Once you sell, the two tools part ways, because this calculator has no way to record a sale.
Why listing every purchase can mislead after a sale. Say Ravi sells 50 of his 150 shares for $2,300. Under the average cost method, the shares sold take $48.00 each of cost with them, so he records a $100 loss and keeps 100 shares at $48.00. Later he buys 60 shares at $40. His cost per share is now $45.00: ($4,800 + $2,400) ÷ 160. If he typed all three purchases into the stock average calculator and forgot the sale, it would show $45.71 over 210 shares, which is wrong on both counts.
The fix for the stock average calculator. After a sale, enter the shares you still hold as one row at your ACB per share, then add new purchases below it. In Ravi’s case, 100 shares at $48 plus 60 at $40 gives $45.00, the same as the ACB.
The ACB calculator below takes buys and sales in order, with the total amount of each trade, and keeps your cost per share right after every sale.
Where the tax rules live. This page does not repeat them. What goes into your cost, how reinvested distributions and returns of capital change it, and how gains are reported are all covered in our adjusted cost base guide, with the full step-by-step tool on the ACB calculator page. For the tax on a gain, see capital gains tax in Canada and the capital gains tax calculator.
Averaging down after a loss sale. If you sell at a loss and buy the same shares back within 30 days, the superficial loss rule can deny the loss. The superficial loss rule page explains the window, and our tax-loss harvesting guide shows how to plan around it.
9. Putting Your Average Price to Work
Registered accounts. Inside a TFSA or RRSP, gains are not reported, so there is no tax cost to track. Your average price is still useful: it is the price the holding must reach for you to be even. Our TFSA guide and TFSA tax rules cover what that account shelters.
Non-registered accounts. In a taxable account, identical shares in all your non-registered accounts share one cost for tax. The stock average calculator works on one list of purchases, so include buys from every taxable account that holds the same security. The non-registered account guide explains how those accounts are taxed.
Dividend reinvestment. Shares bought through a dividend reinvestment plan are purchases too. Enter each one as a row with the shares received, the price per share and a commission of 0. Our dividend income calculator and guide to dividend investing in Canada show how reinvested dividends build a position.
From average price to return. Your average cost is the starting point for measuring how a holding has done. Enter what you paid and what it is worth now in the ROI calculator to get the total and annualized return. To see how long a given return takes to double your money, use the rule of 72 calculator, and for a projection with regular deposits, the compound interest calculator.
Keep a record. Save each trade confirmation. Your broker’s statements show a book value, but after transfers between brokers it can be wrong. Our T5008 slip guide explains why your own records matter at tax time.
8 Rules for Using the Stock Average Calculator Well
1. Set the target before the price moves
Decide in advance which average, and which total amount, you would accept. Running the numbers in a calm moment is easier than deciding while the price is falling.
2. Price the whole plan
Look at the cost of the purchase line, not just the share count. Many investors keep cash for a planned purchase in a high-interest savings account until they act.
3. Read both averages
The plain average shows the break-even price for the shares. The average with commissions shows what each share really cost you.
4. Round up, then re-run
If you trade whole shares, round the answer up, add it as a new row with its commission, and confirm the average you would end with.
5. Restart after a sale
Enter the shares you still hold as one row at your ACB per share, then add later purchases. Listing every purchase after a sale gives a wrong average.
6. Keep one list per security
Combine purchases of the same stock or ETF from every taxable account. Keep registered accounts in a separate list.
7. Mind the 30-day window
Buying back within 30 days of selling the same shares at a loss can deny that loss for tax. Check the timing before you average down after a sale.
8. Treat “Not possible” as an answer
It means no purchase at that price can produce that average. Either the price is above your average or the target sits outside the band.
Stock Average Calculator FAQ
How do you calculate the average price of a stock?
Multiply the shares in each purchase by the price per share, add the results, and divide by the total number of shares. For 100 shares at $50 and 50 at $44, that is $7,200 divided by 150, or $48.00 a share. Add commissions to the total before dividing to get your average cost with commissions.
How many shares do I need to buy to lower my average?
Shares to buy = shares held × (average now − target) ÷ (target − current price). Holding 150 shares at a $48.00 average with the stock at $40, reaching a $45 average takes 150 × 3 ÷ 5 = 90 shares, which cost $3,600. The calculator does this for you and shows the cost.
Why does the calculator say Not possible?
A purchase can only pull your average toward the price you pay, never past it. So the target must be above the current price and below your average now. If the stock trades above your average, or your target is outside that band, no number of shares can produce it, and the calculator says so.
Can the calculator work out averaging up?
Not as a target. It only solves for a lower average. To see what buying above your average does, add the purchase as a new row. For example, 150 shares at a $48.00 average plus 50 more at $52 gives 200 shares at $49.00, and the calculator shows that new average straight away.
Should commissions be included in my average cost?
For your real cost, yes. The calculator shows both: the average price without commissions, which is your break-even share price, and the average cost with commissions, which is what each share cost you. The shares-to-buy answer uses the average without commissions and leaves out the commission on the new purchase.
Is the average price the same as my adjusted cost base?
Only if you list every purchase, include commissions and have never sold any shares. Then the average with commissions equals your ACB per share. After a sale, use the ACB calculator, and see our adjusted cost base guide for what else changes the cost used for tax.
Does selling shares change my average cost?
Not under the average cost method used for identical shares in Canada. A sale removes shares at your average cost, so the shares you keep carry the same cost per share as before. To keep using the stock average calculator after a sale, enter the remaining shares as one row at that cost.
Does averaging down reduce my loss?
No. It lowers the price at which the whole position breaks even, but the paper loss stays the same. With 200 shares bought at $30 and the price at $18, the loss is $2,400. After buying 200 more at $18, it is still $2,400, now spread over 400 shares with more money invested.
What if my broker only sells whole shares?
Round the calculator’s answer up to the next whole share, then add that purchase as a new row to check the result. For example, 111.4286 shares becomes 112. Rounding up lands you at or just below your target average; rounding down would leave you slightly above it.
Can I use the stock average calculator for ETFs and DRIP purchases?
Yes. It works for any shares or units bought at a price, including ETF units and shares bought through a dividend reinvestment plan. Enter each reinvestment as a row with the shares received and the price per share, and a commission of 0 if none was charged.
Does averaging down affect the superficial loss rule?
It can. If you sell shares at a loss and you or your spouse buy identical shares within 30 days before or after the sale, and still hold them 30 days after it, the loss is denied for tax. Averaging down soon after a loss sale can trigger this, so please check the dates first.
How does WealthScale check this calculator?
Every example on this page was computed with the same formulas the calculator uses, and the tax points were checked against Canada Revenue Agency publications on October 28, 2026. Our editorial standards set out how we date our figures and fix errors when we find them.
Run your own purchases through the stock average calculator, then measure the result with the ROI calculator.
Figures on this page were checked against Canada Revenue Agency publications on October 28, 2026. We update this page when a figure changes.
Meet the Experts Behind WealthScale

Sharad is a CPA Ontario member (No. 61040184) and a Certified Public Accountant licensed in Washington and Montana, with more than 15 years in accounting and tax, a Diploma in Banking and Finance and a Certificate in Small Business Finance. He checks WealthScale content against primary sources. WealthScale is independent of his firm, Gondaliya CPA Professional Corporation, and provides general information only, not personal financial, investment, tax or legal advice.
- Chartered Professional Accountant, CPA Ontario
- Certified Public Accountant, Washington (No. 57629) and Montana (No. PAC-CPAP-LIC-033176)
- Writing on tax and registered accounts since 2021
- Reader’s Choice Award 2025 Winner, Best Accountant (Toronto)

Neha Gupta is a CFA charterholder based in Winnipeg who has worked in financial markets since December 2005. She has published more than 2,600 investment articles and is Head of Operations and Finance at Whiteland Real Estate. She reviews WealthScale’s investing pages for accuracy.
- CFA charter, CFA Institute (awarded 2023)
- Post Graduate Diploma in Business Administration (Finance), 2008
- In financial markets since December 2005
- More than 2,600 published investment articles
General information only. Not financial, investment, tax or legal advice. WealthScale is independent and is published by WealthScale Media Inc., 55 Queen St E, Suite 1205, Toronto, ON M5C 1R6. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.