Investing

Stock Average Cost Calculator

Calculate your new average share cost after an additional stock purchase, including total shares and total invested amount.

What does this calculator answer?

Average stock cost is total invested amount divided by total shares owned. After buying more shares, the key number is the new average cost and how much additional capital you have committed.

Inputs

Results

New average cost

-

Total shares

-

Total invested

-

Before you enter values

How to read the result

  1. Start with 'New average cost'. This is the main output for the current assumptions.
  2. Then compare 'Total shares' so you do not judge the scenario from one number alone.
  3. Then compare 'Total invested' so you do not judge the scenario from one number alone.

Formula

New average cost = (current shares × current cost + new shares × new price) ÷ total shares

Example

If you own 20 shares at $50 and buy 10 more at $40, your total invested amount is $1,400, total shares are 30, and the new average cost is about $46.67.

Common mistakes

Important note

This calculator only models user-provided numbers. It does not provide investment advice or a buy/sell recommendation.

Review and update policy

This page was reviewed on August 6, 2026 for formula wording, default inputs, FAQ coverage, and related calculator links. Investing and AI cost calculators do not pull live market prices or account-specific pricing, so you should enter the latest values yourself.

When official sources are relevant, source links are provided on the page. If a formula, rate, or source is outdated, send the page URL and supporting reference through the contact page.

Frequently Asked Questions

Not necessarily. A lower average cost can also mean more capital is concentrated in the same position.
For exact brokerage reconciliation, include commissions and fees in total invested amount.
Yes. Enter fractional share quantities if your broker supports them.