Formulas
Average entry = (Q₁ × P₁ + Q₂ × P₂ + …) ÷ (Q₁ + Q₂ + …)Size to reach a target average T, adding at price P = Q × (A − T) ÷ (T − P)Q is the size in coins and A the current average. The target has to lie between your current average and the price you add at: averaging can pull the entry towards the add price, never past it.
Worked example
Long 1 BTC at 100,000. The price drops and you buy another 1 BTC at 90,000.
Average entry = (1 × 100,000 + 1 × 90,000) ÷ 2 = 95,000. To bring the average down to 92,000 instead, you would add 1 × (100,000 − 92,000) ÷ (92,000 − 90,000) = 4 BTC at 90,000, five times the original position.
What averaging does to your liquidation price
In isolated mode each order you add brings its own margin at the leverage you set, so the liquidation price follows the new average and keeps roughly the same percentage distance from it. Because the average moves towards the current price, the liquidation price usually ends up further from where the market is now. The position is also bigger, though: every further move against you costs more, and a larger position can move into a higher margin tier with a higher maintenance rate. The calculator shows the liquidation price before and after, with the tier that applies.
Frequently asked questions
How do I calculate my average entry price on OKX?
Multiply each fill's price by its size, add them up and divide by the total size. Example: 1 BTC long at 60,000 USDT plus 1 BTC at 54,000 gives an average of 57,000. OKX uses this size-weighted average as the entry price of the combined position, and its liquidation price follows the new average and the extra margin.
Does averaging down lower my risk?
It lowers your break-even price but raises the amount at stake. If the price keeps moving against you, the loss grows faster than before because the position is larger. Decide in advance how much you are willing to add in total.
Does the average change if I close part of the position?
No. Closing part of a position realizes profit or loss on that part at the average entry; the remaining position keeps the same average. Only new orders in the same direction change it.
Why does my exchange show a slightly different average?
Exchanges average the prices your orders actually filled at, which can differ from the price you planned, especially for market orders. Fees are also charged separately rather than added to the entry price on most exchanges.