Stock Average Cost Calculator
Combine share purchases to calculate total shares, total cost, weighted average price and unrealised change.
This mathematical average excludes commissions, tax, corporate actions, currency conversion and jurisdiction-specific tax-lot rules.
How to use this calculator
Enter each purchase lot separately, then add a current price for an optional unrealised estimate.
Formula
Total cost = Σ(shares × price). Weighted average = total cost ÷ total shares. Unrealised change = current value − total cost.
Reference: SEC investor guidance on stocks
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewQasimACCA, CFA, Senior Financial Analyst
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
Why not average prices directly?
That ignores lot size; weighted average gives larger purchases more influence.
Should trading fees be included?
Add applicable fees where brokerage and local cost-basis rules require.
Is an unrealised gain taxable?
Treatment depends on jurisdiction and transaction status; confirm with a qualified adviser.
What is dollar-cost averaging?
It means investing a fixed amount at regular intervals. You buy more shares when prices are low and fewer when they are high, which spreads out your average cost.
Should I average down when a stock falls?
Buying more at a lower price reduces your average cost, but it also increases your exposure to that company. Review why the price fell before adding more.
How do I calculate my average cost per share?
Add up the total amount paid for all purchases and divide by the total number of shares. Buying 10 shares at 50 and 20 shares at 35 costs 1,200 for 30 shares, an average of 40 per share.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- U.S. Securities and Exchange Commission. (n.d.). Stocks. View source
- Dahlquist, J. R., & Knight, R. (2022). Principles of finance. OpenStax. View source
- Brealey, R. A., Myers, S. C., & Allen, F. (2023). Principles of corporate finance (14th ed.). McGraw Hill. View source
- Bodie, Z., Kane, A., & Marcus, A. J. (2024). Investments (13th ed.). McGraw Hill. View source
- Fisher, I. (1930). The theory of interest. Macmillan. View source