When trading derivatives with leverage, understanding how your liquidation price is calculated becomes crucial to managing risk effectively. The liquidation price represents a critical threshold where your position will be automatically closed, and this price is determined by several interconnected factors. Whether you’re using isolated margin or cross margin mode, knowing how to calculate liquidation price ensures you can trade with confidence.
What is Liquidation Price and Why It Matters
Liquidation occurs when the mark price reaches your liquidation price level, triggering an automatic position closure at the bankruptcy price (representing 0% margin). This event means your position margin has fallen below the required maintenance margin threshold.
Consider this scenario: if your liquidation price is set at $15,000 USDT and the current mark price stands at $20,000 USDT, your position remains safe. However, once the mark price drops to $15,000 USDT, it touches your liquidation price level. At this point, your unrealized losses have consumed your maintenance margin buffer, and liquidation will be automatically triggered. Understanding this mechanism is the foundation of building a liquidation price calculator in your trading routine.
Isolated Margin Mode: How to Calculate Your Liquidation Price
In isolated margin mode, the margin you allocate to a position stays separate from your account balance. This approach limits your maximum potential loss to only the margin you’ve assigned to that specific position, giving you predictable risk parameters.
The Core Calculation Method
For long positions in isolated margin mode, use this formula:
Breaking down the components: your position value equals contract size multiplied by entry price. Your initial margin is calculated as position value divided by leverage. Maintenance margin depends on your position value and the maintenance margin rate specific to your risk tier.
Real-World Application
Suppose Trader A opens a long position with 1 BTC at $20,000 USDT using 50x leverage, with a maintenance margin rate of 0.5%:
This liquidation price calculator approach shows that your position gets liquidated if BTC falls to $19,700 USDT, giving you a $300 USDT buffer before liquidation triggers.
When You Add More Margin
If Trader B places the same 1 BTC short position at $20,000 USDT with 50x leverage, then manually adds $3,000 USDT to position margin:
By adding extra margin, the liquidation price moves further away from the current price, giving you more breathing room against adverse price movements.
When Funding Fees Impact Your Position
In some cases, funding fees get deducted directly from your position margin if your available balance is insufficient. This reduces your position margin and moves the liquidation price closer to the current mark price. Using the same 1 BTC long position example, if $200 USDT in funding fees are deducted:
Cross margin mode presents a more complex calculation scenario because your available balance is shared across all positions. This means your liquidation price for any single position isn’t static—it changes as your account balance fluctuates due to unrealized profits and losses across all open positions.
Understanding the Dynamics
Under cross margin, liquidation only triggers when you have zero available balance and your position lacks sufficient maintenance margin. The liquidation price calculation formula for cross margin differs significantly:
For long positions with unrealized profit:
LP (Long) = [Entry Price - (Available Balance + Initial Margin - Maintenance Margin)] / Net Position Size
For short positions with unrealized profit:
LP (Short) = [Entry Price + (Available Balance + Initial Margin - Maintenance Margin)] / Net Position Size
Scenario 1: Single Position Calculation
Trader A wants to open a 2 BTC long position at $10,000 USDT using 100x leverage with $2,000 USDT available balance:
Total Sustainable Loss = $2,000 - $100 = $1,900 USDT
Price Loss Capacity = $1,900 / 2 BTC = $950 per BTC
Liquidation Price = $10,000 - $950 = $9,050 USDT
After opening the position (requiring $200 USDT initial margin), your available balance drops to $1,800 USDT.
If the price rises to $10,500 USDT, your unrealized profit becomes $1,000 USDT:
New Total Sustainable Loss = $1,800 + $200 - $100 + $1,000 = $2,900 USDT
Price Loss Capacity = $2,900 / 2 = $1,450 per BTC
New Liquidation Price = $10,500 - $1,450 = $9,050 USDT
Scenario 2: Multiple Positions Across Different Symbols
When holding positions in different trading pairs (like BTCUSDT and ETHUSDT), the liquidation price calculator becomes more nuanced. Each position’s liquidation price depends on the shared available balance.
Trader C holds:
1 BTC long at $20,000 USDT with 100x leverage (unrealized loss: $500 USDT)
10 ETH short at $2,000 USDT with 50x leverage (unrealized profit: $100 USDT)
Available balance: $2,500 USDT
For the BTCUSDT position:
LP = $19,500 - ($2,500 + $200 - $100) / 1 = $16,900 USDT
For the ETHUSDT position:
LP = $2,000 + ($2,500 + $400 - $100) / 10 = $2,280 USDT
The Hedging Effect
A perfectly hedged position (equal long and short size in the same symbol) will never liquidate because unrealized profit from one side compensates for losses on the other. A partially hedged position, where long and short sizes differ, only calculates liquidation based on the net exposure.
Practical Examples of Liquidation Price Calculation
Case Study 1: The Perfectly Hedged Position
When you hold 1 BTC long and 1 BTC short in the same symbol under cross margin, the positions perfectly offset each other. Regardless of price movement, neither position can be liquidated because profits from one side automatically cover losses from the other.
Case Study 2: Multi-Symbol Risk Management
Trader B simultaneously holds:
2 BTC long at $10,000 USDT (100x leverage)
1 BTC short at $9,500 USDT (100x leverage)
Available balance: $3,000 USDT
Mark price: $9,500 USDT
The short position enjoys protection because the long position’s unrealized profit can cover any loss. Only the net 1 BTC exposure matters for liquidation calculation, resulting in LP = [9,500 - (3,000 + 100 - 50)] / 1 = $6,450 USDT.
Case Study 3: Funding Fees Impact on Multiple Positions
When the available balance is fully utilized and funding fees are incurred, these fees are deducted from position margin rather than available balance. This moves liquidation prices closer to current mark prices, increasing liquidation risk across all positions simultaneously.
Key Takeaways for Mastering Liquidation Price Calculation
Understanding how to calculate liquidation price isn’t just about plugging numbers into formulas—it’s about grasping how leverage, margin allocation, and market movements interact to create liquidation risk.
In isolated margin mode, your liquidation price remains relatively stable because it depends only on your position-specific margin. In cross margin mode, watch how unrealized losses reduce your available balance and move liquidation prices closer to the mark price for all positions.
Remember that unrealized profits don’t increase your available balance for opening new positions or hedging losses, but unrealized losses definitely reduce it. This asymmetry makes cross margin mode particularly important to monitor when managing multiple positions.
Whether you’re building your own liquidation price calculator mentally or using platform tools, the underlying principle remains constant: liquidation price represents the price level where your margin buffer has been completely consumed by losses. By consistently calculating and monitoring this level, you stay in control of your trading risk and avoid unwelcome surprises when markets move against your positions.
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.
Understanding Liquidation Price Calculation in Crypto Trading
When trading derivatives with leverage, understanding how your liquidation price is calculated becomes crucial to managing risk effectively. The liquidation price represents a critical threshold where your position will be automatically closed, and this price is determined by several interconnected factors. Whether you’re using isolated margin or cross margin mode, knowing how to calculate liquidation price ensures you can trade with confidence.
What is Liquidation Price and Why It Matters
Liquidation occurs when the mark price reaches your liquidation price level, triggering an automatic position closure at the bankruptcy price (representing 0% margin). This event means your position margin has fallen below the required maintenance margin threshold.
Consider this scenario: if your liquidation price is set at $15,000 USDT and the current mark price stands at $20,000 USDT, your position remains safe. However, once the mark price drops to $15,000 USDT, it touches your liquidation price level. At this point, your unrealized losses have consumed your maintenance margin buffer, and liquidation will be automatically triggered. Understanding this mechanism is the foundation of building a liquidation price calculator in your trading routine.
Isolated Margin Mode: How to Calculate Your Liquidation Price
In isolated margin mode, the margin you allocate to a position stays separate from your account balance. This approach limits your maximum potential loss to only the margin you’ve assigned to that specific position, giving you predictable risk parameters.
The Core Calculation Method
For long positions in isolated margin mode, use this formula:
Liquidation Price (Long) = Entry Price - [(Initial Margin - Maintenance Margin)/Position Size] - (Extra Margin Added/Position Size)
For short positions, the calculation reverses:
Liquidation Price (Short) = Entry Price + [(Initial Margin - Maintenance Margin)/Position Size] + (Extra Margin Added/Position Size)
Breaking down the components: your position value equals contract size multiplied by entry price. Your initial margin is calculated as position value divided by leverage. Maintenance margin depends on your position value and the maintenance margin rate specific to your risk tier.
Real-World Application
Suppose Trader A opens a long position with 1 BTC at $20,000 USDT using 50x leverage, with a maintenance margin rate of 0.5%:
This liquidation price calculator approach shows that your position gets liquidated if BTC falls to $19,700 USDT, giving you a $300 USDT buffer before liquidation triggers.
When You Add More Margin
If Trader B places the same 1 BTC short position at $20,000 USDT with 50x leverage, then manually adds $3,000 USDT to position margin:
By adding extra margin, the liquidation price moves further away from the current price, giving you more breathing room against adverse price movements.
When Funding Fees Impact Your Position
In some cases, funding fees get deducted directly from your position margin if your available balance is insufficient. This reduces your position margin and moves the liquidation price closer to the current mark price. Using the same 1 BTC long position example, if $200 USDT in funding fees are deducted:
Notice how the liquidation price shifted from $19,700 to $19,900 USDT, making your position more vulnerable to liquidation.
Cross Margin Mode: Dynamic Liquidation Price Calculation
Cross margin mode presents a more complex calculation scenario because your available balance is shared across all positions. This means your liquidation price for any single position isn’t static—it changes as your account balance fluctuates due to unrealized profits and losses across all open positions.
Understanding the Dynamics
Under cross margin, liquidation only triggers when you have zero available balance and your position lacks sufficient maintenance margin. The liquidation price calculation formula for cross margin differs significantly:
For long positions with unrealized profit: LP (Long) = [Entry Price - (Available Balance + Initial Margin - Maintenance Margin)] / Net Position Size
For short positions with unrealized profit: LP (Short) = [Entry Price + (Available Balance + Initial Margin - Maintenance Margin)] / Net Position Size
Scenario 1: Single Position Calculation
Trader A wants to open a 2 BTC long position at $10,000 USDT using 100x leverage with $2,000 USDT available balance:
After opening the position (requiring $200 USDT initial margin), your available balance drops to $1,800 USDT.
If the price rises to $10,500 USDT, your unrealized profit becomes $1,000 USDT:
Scenario 2: Multiple Positions Across Different Symbols
When holding positions in different trading pairs (like BTCUSDT and ETHUSDT), the liquidation price calculator becomes more nuanced. Each position’s liquidation price depends on the shared available balance.
Trader C holds:
For the BTCUSDT position: LP = $19,500 - ($2,500 + $200 - $100) / 1 = $16,900 USDT
For the ETHUSDT position: LP = $2,000 + ($2,500 + $400 - $100) / 10 = $2,280 USDT
The Hedging Effect
A perfectly hedged position (equal long and short size in the same symbol) will never liquidate because unrealized profit from one side compensates for losses on the other. A partially hedged position, where long and short sizes differ, only calculates liquidation based on the net exposure.
Practical Examples of Liquidation Price Calculation
Case Study 1: The Perfectly Hedged Position
When you hold 1 BTC long and 1 BTC short in the same symbol under cross margin, the positions perfectly offset each other. Regardless of price movement, neither position can be liquidated because profits from one side automatically cover losses from the other.
Case Study 2: Multi-Symbol Risk Management
Trader B simultaneously holds:
The short position enjoys protection because the long position’s unrealized profit can cover any loss. Only the net 1 BTC exposure matters for liquidation calculation, resulting in LP = [9,500 - (3,000 + 100 - 50)] / 1 = $6,450 USDT.
Case Study 3: Funding Fees Impact on Multiple Positions
When the available balance is fully utilized and funding fees are incurred, these fees are deducted from position margin rather than available balance. This moves liquidation prices closer to current mark prices, increasing liquidation risk across all positions simultaneously.
Key Takeaways for Mastering Liquidation Price Calculation
Understanding how to calculate liquidation price isn’t just about plugging numbers into formulas—it’s about grasping how leverage, margin allocation, and market movements interact to create liquidation risk.
In isolated margin mode, your liquidation price remains relatively stable because it depends only on your position-specific margin. In cross margin mode, watch how unrealized losses reduce your available balance and move liquidation prices closer to the mark price for all positions.
Remember that unrealized profits don’t increase your available balance for opening new positions or hedging losses, but unrealized losses definitely reduce it. This asymmetry makes cross margin mode particularly important to monitor when managing multiple positions.
Whether you’re building your own liquidation price calculator mentally or using platform tools, the underlying principle remains constant: liquidation price represents the price level where your margin buffer has been completely consumed by losses. By consistently calculating and monitoring this level, you stay in control of your trading risk and avoid unwelcome surprises when markets move against your positions.