Average Purchase Price Calculator · Calculation guide

Find average purchase cost including entered transaction charges.

Calculation guide

For investors reviewing holdings, income and trading assumptions.

Include only the costs you enter. Purchase averages use quantity weights; portfolio-return weights use beginning values over the same period. Reinvestment retains residual cash and states whether fractional shares are allowed. Rebalancing conserves cash after entered fees. Position size is an illustrative risk budget with no leverage or execution guarantee. Taxes and broker rules are not inferred.

P_avg=Σ(q_k·P_k+F_k)/Σq_k

Inputs

Quantity

Number of shares or amount in the selected package unit. Unit prices use a common base unit.

Unit price

Purchase price of one share, before the separately entered charges.

Costs

Entered transaction or offer charges. Only the costs you enter are included.

Worked example

Purchase lots

QuantityUnit priceCosts
101000
2012010

Formula:

(10 × 100 + 0 + 20 × 120 + 10) / (10 + 20)

Average unit cost = 113.666666666667

ResultValue
Average unit cost113.666667
Total quantity30
Cost basis3,410
Costs10

Interpreting the result

Total purchase costs including fees divided by the number of shares purchased.

Sum of shares purchased across all entered lots.

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Quantity (row 1)1011Average unit cost113.666667113.225806
Unit price (row 1)100110Average unit cost113.666667117
Costs (row 1)01Average unit cost113.666667113.7
Average Purchase Price Calculator →