Understanding how liquidation works is essential for any trader engaging in futures or leveraged trading. On OKX, one of the world’s leading digital asset exchanges, the liquidation mechanism is designed to manage risk effectively while minimizing market impact. This article explains how liquidation price is calculated on OKX, what triggers liquidation, and how the platform's advanced risk controls protect traders.
Understanding Margin Ratio: The Core of Liquidation
The key metric that determines whether a position will be liquidated on OKX is the margin ratio. When your margin ratio drops to or below 100%, the system may trigger auto-deleveraging or full liquidation, depending on your account mode and position size.
Unlike traditional systems that instantly close all positions, OKX uses a gradual liquidation mechanism—a smart risk control method that reduces large positions incrementally to avoid sudden market shocks.
👉 Discover how OKX’s intelligent risk engine protects your trades.
There are different formulas for calculating margin ratio based on your trading mode: single-currency margin, multi-currency margin, and isolated margin.
1. Single-Currency Margin Mode (Cross Margin)
In cross-margin mode, all funds in a specific currency wallet are shared across positions in that currency. The margin ratio is calculated as:
Margin Ratio = (Currency Balance + PnL - Sell Order Amount - Option Buy Requirements - Isolated Position Requirements - Total Fees) / (Maintenance Margin + Liquidation Fee)- Maintenance Margin: Sum of maintenance margins for leveraged loans, futures, perpetual contracts, and options (including pending orders).
Liquidation Fee: Includes taker fees for:
- Leveraged positions: Position value × taker fee rate
- Futures & Perpetuals: Position value × taker fee rate
- Options: Position value × taker fee rate
This structure ensures that pending orders don’t unexpectedly increase risk exposure upon execution.
2. Multi-Currency Margin Mode (Cross Margin)
In multi-currency mode, collateral can come from multiple assets. The formula becomes:
Margin Ratio = Effective Collateral / (Maintenance Margin + Deleveraging Fee)Both maintenance margin and deleveraging fee are calculated using:
- Current position size
- Open order size (including limit orders)
This proactive inclusion of open orders helps maintain stability even during high volatility.
3. Isolated Margin Mode (Single or Multi-Currency)
Isolated margin isolates risk to a single position. The margin ratio differs for long and short positions:
Long Position:
Margin Ratio = [Position Value - (Liability + Interest) / Mark Price] / (Maintenance Margin + Fee)Short Position:
Margin Ratio = [Position Value - |Liability + Interest| × Mark Price] / (Maintenance Margin + Fee)
These calculations ensure precise risk assessment tailored to each trade’s direction and funding structure.
How to Calculate Your Exact Liquidation Price
While understanding the formula is useful, most traders prefer a quick and accurate way to estimate their liquidation price. OKX offers an easy-to-use liquidation price calculator available on both mobile and web platforms.
Using the Liquidation Price Calculator on Mobile (App)
- Go to the [Trade] page.
- Tap the trading pair at the top (e.g., BTC/USDT).
- Switch trading mode → Select Perpetual → Choose USDT-Margined Contracts → Pick a contract like BTCUSDT Perp.
- Tap the calculator icon in the top-right corner.
Select:
- Contract type: e.g., BTCUSDT Perpetual
- Position mode: Cross or Isolated
- Trade direction: Long or Short
- Leverage level
Enter:
- Entry price
- Position size
- Available margin
- Click Calculate — your estimated liquidation price appears instantly.
Using the Liquidation Price Calculator on Web
- Visit the OKX homepage and click [Trade] in the top-left.
- Select [Derivatives Trading] → Choose your preferred contract.
- Scroll down and click the calculator icon at the bottom-left.
Choose:
- Contract: e.g., BTCUSDT Perpetual
- Side: Long or Short
- Margin mode: Isolated or Cross
- Leverage
Input:
- Entry price
- Quantity
- Additional margin (if applicable)
- Click Calculate — view your estimated liquidation level.
⚠️ Note: In unified accounts with multiple concurrent positions, the estimated liquidation price may differ slightly from actual due to dynamic changes in portfolio margin usage.
👉 Try OKX’s real-time liquidation calculator and optimize your trading strategy today.
What Triggers Liquidation on OKX?
Liquidation occurs when your margin ratio falls to or below 100%. However, OKX does not immediately close your entire position. Instead, it uses a tiered deleveraging system:
- The system first reduces part of your position (auto-deleveraging) to restore margin health.
- If after reduction the new tier’s maintenance margin requirement is still not met, another partial close occurs.
This process continues until either:
- Risk levels return to safe thresholds, or
- The entire position is closed.
This step-by-step approach prevents abrupt market sell-offs caused by mass liquidations—a common issue during volatile periods.
Additionally, OKX uses mark price-based liquidation triggers rather than last traded price, reducing the chance of unfair liquidations due to temporary price spikes or manipulation.
Frequently Asked Questions (FAQ)
Q1: What happens when my position gets liquidated?
When liquidation begins, OKX automatically closes part of your position through auto-deleveraging. If risk remains high, more of the position is closed until sufficient margin is restored or the position is fully closed.
Q2: Why is my estimated liquidation price different from the actual one?
Estimates assume static conditions. With multiple positions or changing market prices, actual liquidation levels can vary—especially in unified accounts where shared margin affects overall risk.
Q3: Can I avoid liquidation?
Yes. You can reduce leverage, add more margin manually, or set stop-loss orders to exit before reaching critical levels. Monitoring your margin ratio in real time is crucial.
Q4: Does OKX charge fees during liquidation?
Yes. A liquidation fee is applied, based on your taker fee rate and position value. This covers execution costs and discourages excessive risk-taking.
Q5: What is mark price, and why does it matter?
Mark price is a fair value estimate derived from spot prices and funding rates. It prevents unfair liquidations during flash crashes or pump-and-dump scenarios.
Q6: How does tiered maintenance margin work?
Larger positions face higher maintenance requirements across tiers. As your position size grows, so does the minimum margin needed to stay open—encouraging responsible leverage use.
Final Thoughts
Successfully navigating leveraged trading on OKX requires a solid understanding of how margin ratios, liquidation prices, and risk controls interact. By using OKX’s built-in tools like the liquidation price calculator and staying informed about your account’s health, you can trade with greater confidence and control.
Whether you're a beginner or experienced trader, mastering these mechanics helps you avoid unexpected losses and optimize performance in volatile markets.
👉 Stay ahead of liquidation risks with OKX’s advanced trading tools and analytics.