CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Average Price Calculator

Enter each fill's price and size to see your weighted average entry and the price the market must reach for the whole position to break even after costs.

Extrade Pakistan editorial team ·

On this page
  1. How to use the calculator
  2. The formula
  3. Averaging down: what the numbers show
  4. Stocks, gold and CFDs: units and costs
  5. Frequently asked questions

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.

Average price90
Total quantity30
Total paid2,700
Result at the current price-150
Move needed to break even+5.88%

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.

  1. Choose the direction: buys (long) or sells (short).
  2. 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.
  3. Add rows for further fills, or remove rows you don't need.
  4. Enter your total costs, such as commission, spread cost, swap or brokerage fees, in the same currency as the price.
  5. 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:

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.

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:

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:

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.

Related pages