Get My Trading BotGet My Trading BotBuild, test and learn
FREE PERFORMANCE TOOL

Stock Average Cost Calculator

Find weighted average price across multiple purchases.

No signupInstant calculationEducational use
01

Choose a market reference

Search by company name or ticker. Selecting a suggestion automatically fills the current reference price.

AA
Loading market reference…

Fetching the latest available price.

LoadingPlease wait
02

Enter your assumptions

The latest reference price is filled automatically. You can still edit every value manually.

Live calculation mapPerformance
First purchase quantity100
First purchase price20
Second purchase quantity50
Second purchase price17

Visual proportions are provided for quick comparison only; the result cards use the exact values entered.

03

Your calculated results

Review the estimate based on the selected market reference and your assumptions.

Total shares150Updates instantly
Total cost$2,850.00Updates instantly
Average cost per share$19.00Updates instantly
ⓘ The market price is a planning reference, not a guaranteed execution price. You may override any populated value for a hypothetical scenario.

What is a Stock Average Cost Calculator?

An average cost calculator combines purchases made at different prices and quantities. It provides the weighted average cost per share rather than a simple average of the listed prices.

Formula

Average cost = Total purchase value ÷ Total shares

Example calculation

100 shares at $20 and 50 shares at $17 create 150 shares with an average cost of $19.

How to use this tool responsibly

  • Use quantities for every purchase.
  • Include fees when needed.
  • A lower average cost does not reduce market risk.

Frequently asked questions

Is this tool free?

Yes. This tool is free to use and does not require an account.

Does this tool provide financial advice?

No. Results are educational estimates, not financial, investment, tax, or legal advice.

Are fees and slippage included?

Only when the calculator provides an input for them. Real results may differ because of spread, slippage, commissions, taxes, and execution quality.

Ready to test a complete strategy?

Build, backtest and paper trade a rule-based bot without writing code. Test carefully before relying on any strategy.

Create a free account

Important disclaimer

This tool is for education and planning only. It does not provide financial advice or guarantee any result. Market orders, stop orders and limit orders may execute differently from estimates because of liquidity, volatility, spread, slippage and platform behavior.