Liquidation Calculator: Risk Management in Isolated Margin Mode on a Unified Trading Account

Effective risk management in margin trading begins with understanding how the liquidation calculator works. This tool allows traders to precisely determine the price at which their position will be forcibly closed. The Unified Trading Account supports three margin modes: isolated margin, cross margin, and portfolio margin. In isolated margin mode, funds allocated for a specific position are completely separated from the main account balance. This means that a trader’s maximum loss is limited solely to the margin posted for that particular open position.

Purpose of the liquidation calculator and its role in risk management

The liquidation calculator performs a critical function: it shows the point at which the margin balance of a position falls below the required maintenance margin level. When the mark price reaches the calculated liquidation price, the position is automatically closed at the bankruptcy price with a zero margin level. Understanding this mechanism is essential for choosing the correct position size and leverage level. Each trading mode — perpetual contracts and futures — has its own calculation formula that considers initial margin, maintenance margin, and closing fees.

Calculation principles for inverse contracts

Inverse perpetual and futures contracts use their own method to determine the liquidation price via the liquidation calculator.

For long positions:

Liquidation Price (Long) = Contract Quantity / [Position Value + (Initial Margin - Maintenance Margin)] - (Additional Margin / Contract Quantity)

For short positions:

Liquidation Price (Short) = Contract Quantity / [Position Value - (Initial Margin - Maintenance Margin)] + (Additional Margin / Contract Quantity)

The following parameters are used:

  • Position Value = Contract Quantity × Average Entry Price
  • Initial Margin = (Position Value / Leverage) + Estimated Closing Fee
  • Maintenance Margin = (Position Value × MMR) - Maintenance Margin Deduction + Estimated Closing Fee

The maintenance margin rate (MMR) depends on the risk limit level. It’s important to remember that small discrepancies between the calculated and actual liquidation price may occur due to closing fees.

Practical example of using the calculator:

A trader opens a long position of 60,000 USD in BTCUSD contract at a price of 50,000 USD with 10x leverage. Maintenance margin is 0.5%, and no additional margin is added:

  • Position value = 60,000 / 50,000 = 1.2 BTC
  • Initial margin = 1.2 / 10 = 0.12 BTC
  • Maintenance margin = 1.2 × 0.5% = 0.006 BTC
  • Liquidation price = 60,000 / [1.2 - (0.12 - 0.006)] = 55,248.61 USD

Calculating the liquidation price for USDT contracts

For perpetual USDT contracts, the calculation method differs from inverse contracts.

For long positions:

Liquidation Price (Long) = Entry Price - [(Initial Margin - Maintenance Margin) / Contract Quantity] - (Additional Margin / Contract Quantity)

For short positions:

Liquidation Price (Short) = Entry Price + [(Initial Margin - Maintenance Margin) / Contract Quantity] + (Additional Margin / Contract Quantity)

Variables used:

  • Position Value = Contract Quantity × Average Entry Price
  • Initial Margin = (Position Value / Leverage) + Estimated Closing Fee
  • Maintenance Margin = (Position Value × MMR) - Maintenance Margin Deduction + Estimated Closing Fee

Calculations should account for possible discrepancies due to closing fees.

Practical scenario using the calculator:

A trader opens a long position of 1 BTC at 40,000 USDT with 50x leverage. Later, they add 3,000 USDT to the margin. The new liquidation price is calculated as:

  • Initial margin = 1 × 40,000 / 50 = 800 USDT
  • MMR = 0.5%
  • Maintenance margin = 1 × 40,000 × 0.5% = 200 USDT
  • Liquidation price = [40,000 - (800 - 200)] - (3,000 / 1) = 36,400 USDT

Calculation method for USDC contracts

The formulas for perpetual USDC and futures contracts in isolated margin mode are similar to USDT contracts but have an important feature.

For long positions:

Liquidation Price = Entry Price - [(Initial Margin + Additional Margin - Maintenance Margin) / Position Size]

For short positions:

Liquidation Price = Entry Price + [(Initial Margin + Additional Margin - Maintenance Margin) / Position Size]

Parameters used:

  • Position Value = Contract Quantity × Average Entry Price
  • Initial Margin = (Position Value / Leverage) + Estimated Closing Fee
  • Maintenance Margin = (Position Value × MMR) - Maintenance Margin Deduction + Estimated Closing Fee

USDC contracts feature an 8-hour calculation cycle. During these periods, the average entry price updates to the current mark price, affecting the recalculation of closing fees and maintenance margin. However, in isolated margin mode, the initial margin displayed in the position interface remains unchanged. Any changes are reflected through adjustments in fee differences and realized P&L.

Illustrative example of using the liquidation calculator:

A trader opens a short position of 1 BTC in BTC-Perp at an entry price of 10,000 USDC with 10x leverage. They subsequently add 3,000 USDC to the margin. The liquidation price is calculated as:

  • Initial margin = 1 × 10,000 / 10 = 1,000 USDC
  • MMR = 0.4%
  • Maintenance margin = 10,000 × 0.4% = 40 USDC
  • Liquidation price = 10,000 + [(1,000 - 40) / 1] = 10,960 USDC

At the calculation time (16:00 UTC), the mark price is 9,900 USDC, and realized P&L is 100 USDC. The average entry price updates to 9,900 USDC for recalculating fees and maintenance margin:

  • New closing fee = (9,900 × 1) × (1 + 1/10) × 0.06% = 6.534 USDC
  • Initial margin = 10,000 × (1/10) + 6.534 = 1,006.534 USDC
  • Maintenance margin = 9,900 × 0.4% + 6.534 = 46.134 USDC
  • Liquidation price = 9,900 + [(1,006.534 + 100 - 46.134) / 1] = 10,960.4 USDC

Application of the liquidation calculator in position management

Understanding how the liquidation calculator works is an integral part of effective trading on the Unified Trading Account. Each of the three contract types requires careful calculation of the liquidation price before opening a position. The isolated margin mode gives traders full control over risks, limiting potential losses to the posted margin. Using these formulas and understanding their components will help traders make more informed decisions about position size, leverage choice, and adding extra margin to protect against unexpected market movements. The liquidation calculator is not just a mathematical tool but a practical means of capital management and risk reduction on the platform.

BTC0,18%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
0/400
No comments
  • Pin

Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate App
Community
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)