How it works
Average cost = total purchase cost ÷ total shares. Sum the existing and new positions before dividing.
Use the same security and currency. Include fees in the entered costs if appropriate. This is a weighted average, not a tax-lot basis calculation or investment recommendation.
Worked example
Buying 5 more shares at $26 on top of 10 shares at an average cost of $20 brings the average cost to $22 a share across 15 shares, $330 in total.
Before you rely on the result
Calculations keep full browser-number precision. Money amounts are displayed to two decimal places; other results use up to 12 significant digits. Very large values may lose precision.
How the new average cost changes with existing shares
Other inputs keep their starting values: Existing average cost per share: 20; Additional shares: 5; Additional cost per share: 26. Examples only, not recommendations.
| Existing shares | New average cost |
|---|---|
| 5 | 23 |
| 10 | 22 |
| 20 | 21.2 |
Cite this page
ToolOctopus. “Stock average calculator.” Updated . https://tooloctopus.com/stock-average-calculator.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.