Average Cost Calculator

Calculate average cost per share, coin or unit from total spent and units bought.

Formula

Average cost per unit = total spent divided by total units bought. Include fees in total spent if you want a fee-inclusive average cost.

Formula

Average cost per unit = total spent / total units. The result is useful when several purchases are being treated as one combined position.

Example

If you spend 300 across 12 units, the average cost is 25 per unit. Later purchases at different prices will move that average.

Common mistake

Average cost is not the same as current value. Compare it with current or sale price to estimate gain or loss.