Joy of Tools

Stock average calculator

Enter the price and number of shares for each buy. The average updates as you type.

What you enter stays on this page and is not sent anywhere.

Example: 10 shares at $50 and 15 more at $40. What is my average?

Buy 1
Buy 2
Average cost per share
$44.00
Total shares
25
Total paid
$1,100.00

How to use it

  1. Pick what you want to know: the average, a target average, or profit on a sale.
  2. Type prices, quantities and any fees. Add a row for every extra buy.
  3. Read the average cost, the shares to buy, or the profit and break-even price.

Questions

How is the average cost per share calculated?

Each price is multiplied by its number of shares, the results are added up and divided by the total number of shares. Fees you enter are added to the cost and shown as a separate average.

Why can my target average not be reached?

The new average always lands between your current average and the new buy price. To bring it down to the target you have to buy below the target, and to raise it you have to buy above it.

Does this include capital gains tax?

No. Capital gains rules depend on your country and account, so none is built in. The profit tab has a field for tax withheld from the sale proceeds, such as a transaction tax, next to your broker's fees. It takes a percentage of the money you receive, not of your profit.

Can I use fractional shares or crypto?

Yes. Quantities can have up to 8 decimals, so 0.25 shares or 0.015 BTC work. Use the price per whole share or coin.

More tools