Investing

How to Calculate Average Stock Cost

Calculate weighted average cost per share after multiple purchases and understand what the result does not say about tax basis.

ReviewedAugust 18, 2026
ANSWER IN BRIEF

Add the cost of each purchase, including any fees you choose to include, then divide the combined cost by the total shares acquired. Do not average the quoted share prices without weighting them by the number of shares in each purchase.

01

Weight every price by shares

A small purchase at a high price should not influence the average as much as a large purchase. Multiplying price by shares creates the cost contribution for each lot.

02

Choose how to handle fees

For a planning average, be consistent about whether transaction fees are included. Tax cost basis can follow account type, jurisdiction, wash-sale, corporate-action, and lot-identification rules beyond a simple weighted average.

03

Use the average as a position measure

Average cost helps compare current price with the blended entry price. It does not predict the next price or by itself determine which lot should be sold.

SEE IT IN PRACTICE

Example: two stock purchases

100 shares at $20 cost $2,000; 50 shares at $32 cost $1,600. Combined cost is $3,600 across 150 shares, for a weighted average of $24 per share.

BEFORE YOU DECIDE

What to check before you decide

  • The result is an educational weighted average, not tax-lot accounting.
  • Corporate actions, reinvested dividends, and wash sales can alter basis.
SOURCES

Sources behind this guide

These official and primary sources let you verify rules, definitions, and terms that may change.

Investor.gov — Investing glossary↗

Common questions

Questions you may have next

Can I just average $20 and $32?+

Only if the share counts are equal. Otherwise each price must be weighted by shares.

Is average cost the same as market value?+

No. Market value uses the current price; average cost describes the blended acquisition cost.

Does this equal tax cost basis?+

Not always. Taxes may require lot-level adjustments and account-specific rules.

Same topic

Continue with investing

How to Choose an Investment Return Assumption for Planning ↗How Investment Fees Reduce Long-Term Returns ↗Dividend Yield vs Dividend Income ↗
Browse all 52 guides →