Savings & investing

Average investment cost calculator

Enter your actual purchases to calculate a weighted average cost. This also works for pound-cost or dollar-cost averaging plans when every figure uses the same currency.

User-entered rates and assumptions; no tax-year calculationUnited Kingdom; mathematical model with user-entered termsReviewed 15 October 2026

Your figures

Example values shown

Replace the example with your details, then calculate.

One purchase per line, three comma-separated numbers. Amount excludes the separate fee. Use GBP for every value; no headings or thousands separators. Up to 100 rows.
£
Manually entered, not a live quote.

Your inputs stay in this browser. No account needed.

BEHIND THE NUMBERS

How this calculation works

Units for each purchase = amount invested / unit price. Average cost including fees = (total invested + total purchase fees) / total units. Current value = total units × entered current price; unrealised gain = current value − total cash cost.

Worked example

The purchases buy 10 and 5 units. £200 divided by 15 is £13.333333 per unit. At £15, those units are worth £225, a £25 unrealised gain before selling costs.

Example result: £13.33

An average of prices gives the wrong answer

Spending equal cash amounts buys more units at a lower price. The meaningful average divides total cash cost by total units rather than averaging the purchase prices.

Keep price units consistent

A UK share quote may be in pence. Convert it to pounds before entering it alongside an investment amount in pounds. Fees are entered separately so they cannot accidentally be treated as extra units.

Assumptions and rounding

  • Purchases only, with fractional units and all values in a single currency.
  • Fees add to the cash cost and do not buy additional units.

Questions about this calculator

Must every purchase be the same amount?

No. Each row has its own amount and price, so unequal contributions are weighted correctly.

Can I use this cost for my tax return?

Do not treat it as a UK tax basis calculator. Disposal matching and other tax rules can produce a different allowable cost.