Stock average calculator: your average price per share

Enter the number of shares and the price for each purchase. You see your average price, the total you invested and your result at the current price.

Free and without an account. The calculation runs in your browser; what you enter is not stored anywhere.

SharesPrice per shareFees

Result and buying more

Enter the current price to see your result. With a target average you see how many shares that would take.

Average purchase price
$45.00
per share, including fees
Total shares
20
Total invested
$900.00
Result at the current price
-$200.00
-22.22%
Needed for an average of $40.00
20 shares
costs $700.00 at the current price

How the calculation works

Your average price is the total amount you paid divided by the number of shares you hold. Purchases with more shares weigh more heavily.

Transaction fees are part of it: they raise what you paid per share. Enter them with the purchase they belong to.

Buying below your average lowers the average price. The calculator shows how many shares that takes at the current price. It says nothing about whether buying more is wise.

The formula

Average price = (sum of shares × price + fees) ÷ total shares

For a target average: shares to buy = current shares × (average − target) ÷ (target − current price).

Worked example

You buy 10 shares at 50 dollars and later 10 at 40 dollars. You paid 900 dollars for 20 shares: 45 dollars on average. If the price is 35 dollars and you want an average of 40 dollars, that takes 20 more shares, for 700 dollars.

Have your average tracked automatically

Insiviz imports your transactions from DEGIRO, Trading 212, Interactive Brokers or Bitvavo and shows the return, dividends and costs of your whole portfolio in one place.

Create a free account

Frequently asked questions

How do you calculate the average stock price?

For each purchase multiply shares by price, add them up together with the fees, and divide the total by the total number of shares.

Do transaction fees count?

Yes. Fees paid on a purchase raise your cost basis and therefore your average. Brokers usually show the average price including fees as well.

What happens to your average when you sell?

Under the average cost method the average price of the shares you keep does not change when you sell. Only a new purchase moves the average.

What is averaging down?

Buying more at a price below your average, which lowers your average price. It does mean putting more money into the same position.

Does this work for ETFs and crypto too?

Yes. The calculation is the same for any investment; you can enter fractions of a share or coin as well.

This tool calculates with the assumptions you enter yourself. It is information and not investment advice.