How to calculate your average purchase price
The weighted average price is the total cost of all purchases divided by the total number of shares. Averaging the prices alone isn’t enough — bigger purchases must carry more weight.
Example: you buy 10 shares at 120, 5 at 98.50 and 8 at 110. The total cost is 2,572.50 for 23 shares, so the average price is 111.85. At the current price of 115 the position is worth 2,645, or 72.50 (+2.82%) in profit.
Why the average price matters
- It shows the price at which the whole position starts to make a profit.
- With regular buying (dollar-cost averaging, e.g. a fixed amount every month) the average smooths out price swings.
- For tax, the rules differ: some countries use first-in-first-out (FIFO) when you sell part of a holding, others an average cost. The average here is for judging the position, not for your tax return.
Frequently asked questions
How do I enter purchases?
One purchase per line: first the quantity, then the price, separated by a space, e.g. “10 120”. Fractions (such as crypto) work too: “0.5 45000”.
Should I include fees?
If you want your real cost, add the fee to the price: buying 10 shares at 120 with a 5 fee means entering a price of 120.50.