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.
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
| Quantity | Unit price | Costs |
|---|---|---|
| 10 | 100 | 0 |
| 20 | 120 | 10 |
Formula:
(10 × 100 + 0 + 20 × 120 + 10) / (10 + 20)
Average unit cost = 113.666666666667
| Result | Value |
|---|---|
| Average unit cost | 113.666667 |
| Total quantity | 30 |
| Cost basis | 3,410 |
| Costs | 10 |
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.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Quantity (row 1) | 10 | 11 | Average unit cost | 113.666667 | 113.225806 |
| Unit price (row 1) | 100 | 110 | Average unit cost | 113.666667 | 117 |
| Costs (row 1) | 0 | 1 | Average unit cost | 113.666667 | 113.7 |
