This average price calculator works out the weighted average entry of several fills at different prices. Use it as a stock average calculator for PSX shares, for gold bought in tola or grams, or for CFD positions measured in lots. It also shows the break-even price once costs are included.
Fill in the empty fields to see the result.
Average = Σ(price × quantity) / Σ quantity. Leave unused rows empty. Adding to a losing position raises the size and the risk, not the chance of a recovery.
How to use the calculator
The inputs start with neutral sample values. Replace them with your own figures.
- Choose the direction: buys (long) or sells (short).
- For each fill, enter the price and the size. Size can be shares, grams, tola, ounces or lots. Use the same unit on every row.
- Add rows for further fills, or remove rows you don't need.
- Enter your total costs, such as commission, spread cost, swap or brokerage fees, in the same currency as the price.
- Read the results beside the inputs: total size, weighted average price, break-even price and the move needed from the current price to reach break-even.
The formula
Weighted average price = Σ(price × size) / Σ size
Each fill counts in proportion to its size. A large fill at a low price pulls the average down more than a small fill at a higher price. That is why the weighted average is usually different from a simple average of the prices.
Break-even price including costs:
- Long position: average price + (total costs / Σ size)
- Short position: average price − (total costs / Σ size)
Move needed to break even = break-even price − current price. For a long position, a positive result means the price has to rise by that amount. For a short position, a negative result means the price has to fall by that amount.
When the calculator loads, it shows a worked example built from the pre-filled values. Change any input and every result is recalculated.
Ready to try it on a real or demo account?
Partner link · trading carries a high risk of loss
Averaging down: what the numbers show
"Averaging down" means adding to a losing position at a lower price, so the average entry falls. An average down calculator shows how far the average moves. It does not show whether adding is a sensible decision.
Here is what the result does and does not tell you:
- A lower average entry also means a larger total position. Each further move against you now costs more than before.
- The break-even price comes closer, but the market has no reason to return to it.
- On leveraged products, extra size uses more margin. Leveraged CFD and forex trading can lose money fast, and a larger position can reach margin call or stop-out sooner. You can test this with the margin call simulator.
- For a loss measured as a percentage of the account, the drawdown recovery calculator shows the gain needed to get back to the starting balance.
Averaging up works the same way in reverse. Adding to a winning position raises the average entry and brings the break-even price closer to the current price.
Before you add size, decide how much of the account you are willing to lose on the whole position. The risk management section and the lot size calculator cover this.
Stocks, gold and CFDs: units and costs
| Market | Size unit | Typical costs to include |
|---|---|---|
| PSX shares | Number of shares | Brokerage commission, taxes and exchange fees on each fill |
| Physical gold | Tola, grams or ounces | Making charges or the dealer's buy/sell difference |
| CFDs (forex, gold, indices) | Lots | Spread, commission, overnight swap |
Notes for each market:
- Shares: costs are charged on every buy, so add them all up before you enter the total. See PSX basics for how share trading works.
- Gold: convert everything to one unit before averaging. The gold karat calculator helps with tola and gram conversions.
- CFDs: the price unit is the instrument's quote. To turn a price move into money, use the pip value calculator. For spread and commission, use the trade cost calculator. For overnight holding cost, use the swap calculator.
If you buy fixed amounts of money at regular intervals rather than fixed quantities, the DCA calculator fits that pattern better. More tools are listed under calculators.
Frequently asked questions
Is this the same as an averaging calculator?
Yes. Averaging calculator, average price calculator and stock average calculator all describe the same calculation: a size-weighted average of several entry prices.
Why is my average different from the average of the prices?
A simple average treats every price equally. The weighted average gives each price a weight equal to its size, so larger fills have more influence.
Should I include costs?
For a realistic break-even, yes. Without costs, the result is only the average entry. Total costs spread over the full size move the break-even price away from that entry.
Does it work for short positions?
Yes. Choose the sell direction. The average uses the same formula, and costs move the break-even price below the average.
Does a lower average mean the trade will recover?
No. The calculator shows arithmetic only. Prices can keep moving against the position, and adding size increases the possible loss.
What if I closed part of the position?
For the remaining part, keep the average entry the same and reduce the size. Costs already paid still count toward that position's overall result.
