L
LiquidationBuffer
OKX Perpetual Swaps

OKX Liquidation Calculator

OKX adds the liquidation fee directly to the maintenance margin rate — the trigger point sits slightly closer to entry price than a pure MMR formula would suggest.

Fee path: in trigger Max leverage: up to 100x (BTC) Margin modes: Isolated, Cross
0h8h24h3d7d

Funding rate: — every 8h (sample data)

Position value falls into tier — · Max leverage this tier: —x
Assumed
—%
Real buffer
—%

Based on OKX's mark price, not the chart/last price.

Isolated margin only. Cross margin depends on your whole account balance and isn't modeled here.

Very large positions get liquidated in steps on OKX (partial liquidation).

Auto-deleveraging (ADL) can close a position in extreme cases regardless of the liquidation price.

What sets OKX apart from other exchanges

OKX is one of the exchanges that adds a liquidation fee (the taker fee rate) directly to the maintenance margin rate before checking the 100% trigger threshold: Denominator = Position × Mark Price × (Tier MMR + Fee Rate). The result sits slightly closer to entry price than a pure MMR formula.

OKX also tiers its maintenance margin rate by position size (notional = margin × leverage). The calculator above automatically warns you if your desired leverage isn't even available for your position size.

Read more on maintenance margin