Formula
P̄ = Σ(Pₖ·Qₖ) / ΣQₖ
Worked example
With these values
- Price of buy 1
- 100
- Quantity of buy 1
- 10
- Price of buy 2
- 80
- Quantity of buy 2
- 15
- Price of buy 3
- 0
- Quantity of buy 3
- 0
The calculator gives
- Average cost per unit
- 88
- Quantity
- 25
- Total invested
- $2,200
These values are only an illustration. Replace them with yours in the form above.
How "Average cost per unit" changes with "Price of buy 1"
| Price of buy 1 | Average cost per unit |
|---|---|
| 50 | 68 |
| 80 | 80 |
| 100 | 88 |
| 120 | 96 |
| 150 | 108 |
All other values stay as in the example.
When to use it
- Know your cost per unit after buying in several steps, before deciding on a new order.
Limits of this calculation
- Prices are the ones you type: check the real execution price, the spread and the fee grid of your platform.
- Taxes are not included, and a past or hypothetical result says nothing about the future. This is not investment advice.
Official and scientific sources
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Questions
How is the result calculated?
The calculator applies this rule: P̄ = Σ(Pₖ·Qₖ) / ΣQₖ
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.