Average cost calculator (DCA)

FI-18Finance

Work out the average purchase price across several buys and your profit at the current price.

Total quantity
23
Total cost
2,572.50
Value at current price
2,645.00
Profit / loss
+72.50 (+2.82%)

Last updated: October 2026 · Report a calculation error

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.

See alsoWhole category

  1. FI-01Poland salary calculator (gross to net)Work out your take-home pay in Poland from gross salary: ZUS social security, health insurance, PIT income tax and the under-26 relief.
  2. FI-02Loan payment calculatorWork out your monthly loan payment — equal or decreasing installments — and the total interest.
  3. FI-03VAT calculatorAdd VAT to a net price or remove it from a gross price at any rate.
  4. FI-04Simple interest calculatorCalculate simple interest for a given amount, annual rate and number of days.