Skip to content

Free calculator

Stock Average Calculator

Work out your average price per share when you bought the same stock more than once. Add each buy with its number of shares and the price you paid, and the calculator shows the average, the total shares and the total cost.

Add a current price if you want to see what the position is worth against what it cost. The starting values are a fictional example.

  1. Cost $500.00

  2. Cost $630.00

  3. Cost $950.00

Add it to see what the position is worth against its cost.

Average price per share
$41.60
Total shares
50
Total cost
$2,080.00

Runs in your browser. Nothing you enter is sent or stored.

How the average is calculated

The average price per share is the total you paid divided by the total shares you bought. Each buy counts in proportion to its size, so a large buy moves the average more than a small one.

  1. Cost of each buy

    Shares multiplied by the price per share.

  2. Total cost and total shares

    Add up the cost of every buy, and add up the shares.

  3. Average price per share

    Total cost divided by total shares.

Worked example

Fictional example: three buys of the same stock
BuyShares × priceCost
Buy 110 × $50.00$500.00
Buy 215 × $42.00$630.00
Buy 325 × $38.00$950.00
Total50 shares$2,080.00
Average price per share$2,080.00 ÷ 50$41.60

These are the calculator's starting values. A plain average of the three prices would be $43.33; the weighted average is lower because the largest buy was at the lowest price.

What the average tells you

  • Your break-even price before fees: the position shows a gain when the price is above your average and a loss when it is below.
  • The effect of a new buy: add a row to see how buying more at a different price would change the average.
  • A check on your broker's figure: the average cost a broker shows may include fees or follow a different method, so a small difference is normal.

What this calculator leaves out

  • Fees and commissions. To include them, add each buy's fee to its cost by raising the price per share.
  • Sales. The average here covers buys only. Selling part of a position changes the cost that remains, depending on the method used.
  • Stock splits and currency differences. Enter every buy in the same currency and on the same share basis.

Calculator questions

How do I calculate the average price of a stock?

Multiply the shares by the price for each buy, add the results, and divide by the total number of shares. The calculator does this as you type.

Why is my average not the middle of my buy prices?

Because buys of different sizes count differently. If you bought more shares at the lower price, the average sits closer to that price.

Can I enter fractional shares?

Yes. Enter shares with decimals, for example 0.25.

How many buys can I add?

Up to 20. Rows you leave empty are ignored.

Is anything I enter saved?

No. The calculation runs in your browser. Nothing you type is sent to Fillfolio or stored.

This calculator gives estimates from the values you enter. It is not investment or tax advice.