Stock average calculator

Enter up to four purchases with the number of shares and the price paid. The calculator gives your average cost per share. Switch to the target mode to see how many more shares you would need at the current price to reach a target average.

What do you want to find?
Average cost per share90.00
Total shares
20
Total spent
1,800.00

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter the shares and the price for each purchase. Leave unused purchases at 0.
  2. In Average cost mode, read the average, the total shares and the total spent.
  3. In Shares for a target mode, also enter the current price and the average you want.

How it works

  • Average = total spent ÷ total shares.
  • Shares to buy x = shares × (average − target) ÷ (target − current price).
  • After buying, (total spent + x × current price) ÷ (shares + x) equals the target.

Worked example

10 shares at 100 and 10 shares at 80 cost 1,800 for 20 shares: an average of 90. To bring 20 shares held at 90 down to 80 by buying at 70, you need 20 more shares, costing 1,400. The new total is 3,200 for 40 shares, which is 80.

Tips

  • Averaging down adds money to a falling position, so only do it if you would buy at that price anyway.
  • This is a calculation aid, not investment advice.

Frequently asked questions

How is the average cost per share calculated?

Add up what you spent on every purchase (shares × price) and divide by the total number of shares. It is a weighted average, so larger purchases count for more.

How many shares do I need to buy to lower my average?

The calculator uses x = shares × (average − target) ÷ (target − current price). It only has an answer if the target lies between the current price and your average.

Are fees included?

No. Add fees to the price per share yourself if you want them counted, for example by dividing the fee by the number of shares.

Does a lower average mean I am making money?

No. The average only describes what you paid. Whether you are ahead depends on the current price compared with that average.

More in Finance

All tools in this category: Finance ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.