OKX Futures Calculator: Liquidation Price, Fees and PnL
On OKX USDT-margined perpetual swaps, a $10,000 BTC long at 20x from $81,000 sits in the first maintenance-margin tier (MMR 0.400%, up to 100x) and liquidates near $77,297.84, 4.57% below entry, on OKX's own isolated formula. At the 0.05% base taker fee, opening and closing it costs $10.00.
The calculator below is preset to OKX's tiers for BTC, ETH and SOL and its base taker fee. Enter entry, leverage and margin to get notional, liquidation price, fees, funding, PnL and ROE for a long or short; the tier, and with it the maintenance margin rate and the leverage cap, follows the size of the position.
Last updated · How the exchange presets work
Results
- Notional
- —
- Quantity
- —
- Margin
- —
- Liquidation price
- —
- Distance to liquidation
- —
- Est. fees (open + close)
- —
- Est. funding (hold period)
- —
- Break-even exit
- —
At exit
- Gross PnL
- —
- Net PnL
- —
- Net ROE
- —
Scenario table
| Move | Exit | Net PnL | ROE |
|---|
How OKX calculates liquidation
OKX liquidates when the maintenance margin ratio, (margin + unrealised PnL) ÷ (position value × (MMR + fee rate)), falls to 100% or below, measured on the mark price, and reduces large positions in stages through the position tiers before closing them fully. OKX's isolated USDT-margined estimate is LP = (margin − Q × E) ÷ (Q × (MMR + fee rate − 1)) for a long and (margin + Q × E) ÷ (Q × (MMR + fee rate + 1)) for a short, where Q is face value × contracts and the fee rate is the taker rate; the worked numbers below use that with the base taker fee.
Source: Forced liquidation FAQ (OKX, checked 2026-10-23).
Worked example: BTC on OKX
Four BTC positions run through OKX's formula with the tier that matches each size. The large position lands in a higher tier, so its maintenance margin rate is higher and its leverage is capped at that tier's maximum.
| Position (BTC) | Margin | Tier MMR | OKX formula | Distance | Calculator above |
|---|---|---|---|---|---|
| Long $10,000 at 20x | $500.00 | 0.400% | $77,297.84 | 4.57% | $77,274.00 |
| Short $10,000 at 20x | $500.00 | 0.400% | $84,668.99 | 4.53% | $84,726.00 |
| Long $10,000 at 100x | $100.00 | 0.400% | $80,552.49 | 0.552% | $80,514.00 |
| Long $2,000,000 at 20x | $100,000.00 | 0.500% | $77,375.57 | 4.47% | $77,355.00 |
OKX maintenance-margin tiers (BTC, ETH, SOL)
Maintenance margin = position value × MMR for the tier the position falls in. Each tier also caps the leverage you can open.
| Tier | Up to (size in BTC) | Max leverage | Maintenance margin rate |
|---|---|---|---|
| 1 | 10 BTC (≈ $810,000) | 100x | 0.400% |
| 2 | 50 BTC (≈ $4,050,000) | 66.66x | 0.500% |
| 3 | 200 BTC (≈ $16,200,000) | 50x | 0.750% |
| 4 | 400 BTC (≈ $32,400,000) | 40x | 1.25% |
| 5 | 600 BTC (≈ $48,600,000) | 33.33x | 1.75% |
| 6 | 800 BTC (≈ $64,800,000) | 28.57x | 2.25% |
| Tier | Up to (size in ETH) | Max leverage | Maintenance margin rate |
|---|---|---|---|
| 1 | 500 ETH (≈ $1,200,000) | 100x | 0.400% |
| 2 | 1,000 ETH (≈ $2,400,000) | 66.66x | 0.500% |
| 3 | 2,500 ETH (≈ $6,000,000) | 50x | 0.750% |
| 4 | 5,000 ETH (≈ $12,000,000) | 40x | 1.25% |
| 5 | 7,500 ETH (≈ $18,000,000) | 33.33x | 1.75% |
| 6 | 10,000 ETH (≈ $24,000,000) | 28.57x | 2.25% |
| Tier | Up to (size in SOL) | Max leverage | Maintenance margin rate |
|---|---|---|---|
| 1 | 5,000 SOL (≈ $525,000) | 100x | 0.400% |
| 2 | 10,000 SOL (≈ $1,050,000) | 66.66x | 0.500% |
| 3 | 20,000 SOL (≈ $2,100,000) | 50x | 0.750% |
| 4 | 40,000 SOL (≈ $4,200,000) | 40x | 1.25% |
| 5 | 60,000 SOL (≈ $6,300,000) | 33.33x | 1.75% |
| 6 | 80,000 SOL (≈ $8,400,000) | 28.57x | 2.25% |
OKX futures fees used here
| Contract | Maker | Taker | Round trip, $10,000 at taker |
|---|---|---|---|
| BTCUSDT | 0.02% | 0.05% | $10.00 |
| ETHUSDT | 0.02% | 0.05% | $10.00 |
| SOLUSDT | 0.02% | 0.05% | $10.00 |
What this calculator leaves out
Staged position reduction (a partly reduced position is checked against the tier of its new size) and cross margin. OKX tiers are set in contracts; they are shown here in the base asset using each contract's value. Funding is entered by hand (positive rates are paid by longs). Numbers are estimates for planning, not OKX's own figures; your position page on OKX is the reference.
OKX futures calculator FAQ
How is the liquidation price calculated on OKX?
OKX liquidates when the maintenance margin ratio, (margin + unrealised PnL) ÷ (position value × (MMR + fee rate)), falls to 100% or below, measured on the mark price, and reduces large positions in stages through the position tiers before closing them fully. OKX's isolated USDT-margined estimate is LP = (margin − Q × E) ÷ (Q × (MMR + fee rate − 1)) for a long and (margin + Q × E) ÷ (Q × (MMR + fee rate + 1)) for a short, where Q is face value × contracts and the fee rate is the taker rate; the worked numbers below use that with the base taker fee. Example: a $10,000 BTC long at 20x from $81,000 has $500.00 of margin, falls in tier 1 (MMR 0.400%) and liquidates near $77,297.84, 4.57% below entry.
What is the maximum leverage on OKX BTC futures?
The tier snapshot (fetched 2026-10-23 13:15 UTC) gives 100x for BTC-USDT-SWAP up to 10 BTC (about $810,000 at the example price); larger positions move to higher tiers with lower caps, shown in the tier table. Leverage caps change, so check the OKX trading rules before you trade.
Which OKX fee does this calculator use?
It prefills 0.05% per side, the base-tier taker rate for BTC-USDT-SWAP (maker 0.02%). On a $10,000 position that is $10.00 to open and close with market orders. Change the fee field to your own VIP or maker rate.
Why does OKX show a different liquidation price from this calculator?
Staged position reduction (a partly reduced position is checked against the tier of its new size) and cross margin. OKX tiers are set in contracts; they are shown here in the base asset using each contract's value. The calculator above also uses the generic formula with the tier MMR; the worked table shows how far that sits from OKX's own formula. Liquidation is checked against the mark price, so the last traded price can pass your liquidation price without closing the position, or the other way round.
Sources
- Forced liquidation FAQ (checked 2026-10-23)
- Get position tiers (API v5) (tiers fetched 2026-10-23 13:15 UTC)
- OKX fee schedule (announcement published 2026-08-20, checked 2026-10-23)
- OKX public API, BTC-USDT-SWAP (fetched 2026-10-23 13:15 UTC)
- OKX public API, ETH-USDT-SWAP (fetched 2026-10-23 13:15 UTC)
- OKX public API, SOL-USDT-SWAP (fetched 2026-10-23 13:15 UTC)
This page is not made by, endorsed by or affiliated with OKX. OKX is a trademark of its owner and is named here only to describe whose published rules the calculator follows. Not financial advice.