Finance, Investing and Stock Market
Stock Average Calculator
Work out your new weighted average purchase price after buying more shares, with optional brokerage fees, a target-average planner and a profit and loss estimator. Your figures stay in your browser.
Calculation History
Your recent calculations on this device. Stored only in your browser, never uploaded.
No calculations yet on this device.
How to Use
Enter the shares you already hold and their average purchase price, then add one or more purchases with a price and a share count — use Add purchase for extra rows and Remove to take one away. Optionally set brokerage fees and choose whether they count in the average. Optionally enter a target average with the price you would buy at, or a market price to estimate profit or loss. Press Calculate; the result updates whenever you change a value after the first calculation.
Formula and Methodology
Existing value = existing shares x existing average price. Each purchase value = shares bought x purchase price. Total shares = existing shares + all shares bought. Total investment = existing value + all purchase values, plus brokerage fees only when you enable that option. New average price = total investment / total shares. The average is weighted by the money spent, never a simple average of the prices. Percentage change in the average = (new average - existing average) / existing average x 100. Break-even price = (existing value + all purchase values + all fees) / total shares, so it includes fees even when they are excluded from the average itself. Target average: required shares = (target average x existing shares - existing value) / (purchase price - target average), calculated from your existing holding only. Profit and loss: portfolio value = total shares x market price; unrealised profit or loss = portfolio value - total investment. This is a mathematical scenario, not investment advice.
Examples
Press "Try an example" in the calculator above to fill in these values.
- Exshares
- 100
- Exprice
- 50
- Price
- 40
- Shares
- 100
Tips
Averaging down only lowers your average when the new purchase price is below your existing average. Buying above it raises the average, even if the price later recovers.
Fees matter more on small purchases. A fixed brokerage fee on a small order can push your break-even price noticeably above your average price.
The target-average planner uses your existing holding only. If you have already added purchases in the form, the target result describes the holding before those purchases.
Frequently Asked Questions
Because the average must reflect how much money went into each purchase. Buying 100 shares at 40 and 50 shares at 50 gives an average of 43.33, not 45, because twice as much money went in at the lower price.
The new average includes fees only if you enable that option. The break-even price always includes all fees, because you must recover the fees as well as the shares before you are in profit.
No. It is a mathematical scenario that shows how many shares at a price you choose would move your average to a target you choose. It is not investment advice, and it cannot tell you whether a share is worth buying.