Tool guide · formulas · common mistakes
How to use this tool
This page estimates a linear USDT-margined isolated position. Initial margin is notional divided by leverage, no extra margin has been added, and fees and funding are set to zero. Use it to check scale, not to reproduce the OKX position panel.
Example: BTC at 60,000 USDT, 20x, MMR 0.4%. The simplified long estimate is 57,228.92 USDT, a 4.62% adverse distance; the short estimate is 62,749.00 USDT, a 4.58% distance. At 50x, the estimates are 59,036.14 and 60,956.18 USDT. Long and short are not the same distance pasted on opposite sides.
When its risk ratio reaches the trigger, OKX first cancels orders and may reduce the position by tier. Partial reduction depends on risk ratio and tier; there is no universal 80% or 90% price-path threshold.
The math behind it
Isolated long estimate = Entry × (1 - 1/L) / (1 - MMR)
Isolated short estimate = Entry × (1 + 1/L) / (1 + MMR)
Long distance = (Entry - liq) / Entry
Short distance = (liq - Entry) / Entry
The equations come from the simplified balance between margin balance and maintenance margin. We checked the OKX futures PnL calculation rules and OKX forced-liquidation FAQ in September 2026. MMR varies by tier, and actual triggers also depend on mark price, fees, funding and margin changes.
The default 0.4% is only a sample. The tool rejects negative MMR, leverage outside 1–125, and MMR at or above 1/L. A 1x long reaches zero in the simplified math, which does not guarantee a real position cannot liquidate.
Common mistakes
"Liq price is fixed by entry and leverage." It is not. Actual triggers use mark price, while MMR, margin balance, fees and position tier can change.
"A stop above the estimated liq price is guaranteed to fill." It is still an order. Execution in a fast market depends on order type and liquidity; an estimated liq price is not a fill guarantee.
"Partial liquidation happens at 80% and 90% of the price distance." It does not. OKX describes order cancellation and tier-based reduction driven by risk ratio, not two fixed path percentages.