Stock Average Cost Calculator

Average cost per share is the total amount you paid, including fees, divided by the total number of shares bought. Add one row per purchase to see your blended cost.

Your purchases

$
$

Results

Total shares

Total invested

Average cost per share

Results are illustrative. Calculations run entirely in your browser, nothing you enter is sent anywhere, and no figure here is a forecast, a guarantee or investment advice. Markets can rise or fall.

How the calculation works

Average cost = (Σ shares × price + Σ fees) ÷ Σ shares. Nothing is stored and no account is needed.

Frequently asked questions

Should fees be included?

Including transaction fees gives the true cost per share you paid, which is what most cost-basis methods use.

Does this handle sales?

No. It averages purchases only. Sales and their tax treatment depend on the cost-basis method your jurisdiction and broker use.