Formula
Average cost = (Shares₁ × Price₁ + Shares₂ × Price₂ + …) ÷ Total shares
About this calculator
When you buy a stock in several lots, your break-even price is the weighted average of the purchase prices. Leave the third purchase at zero if you only bought twice.
Amounts are shown without a currency symbol, so the calculator works for any currency: enter all values in the same one.