Average cost calculator

Enter your purchases at different prices and instantly get your weighted average price, the total cost of the position and your current gain or loss.

Purchase
Number of sharesPrice per share
$
$
$

Enter the current market price to see your gain or loss.

Weighted average price

$88.00

Total shares

25

Total cost

$2,200.00

You know the price; now know the company

Knowing your average price is only the start. STKtracker shows you whether the company behind your position is financially solid or hides warning signs.

Analyse my stock for free

What is the weighted average price?

When you buy the same stock at several points in time and at different prices, your real cost per share is not the simple average of those prices but the average weighted by the number of shares in each purchase. In other words, larger purchases carry more weight in the result.

Knowing your true average price is key to understanding at what price you start to profit (your break-even point) and to accurately assess your unrealised gain or loss.

How to use the calculator

Add one row per purchase, entering the number of shares and the price you paid for them. The calculator adds up the shares, works out the total cost and derives your weighted average price.

If you enter the current market price, you will also see the current value of your position and your gain or loss, both as an amount and as a percentage.

This tool is for educational and informational purposes only. Past performance does not guarantee future results. It is not financial advice or a recommendation to buy or sell. Investing involves risk of loss.

© 2026 STKtracker LLC. All rights reserved.