A liquidation price calculator helps traders understand when their positions will be forcibly closed. Liquidation occurs when the mark price reaches a predetermined level, triggering automatic position closure at the bankruptcy price (0% margin level). This critical moment arrives when your position margin falls below the required maintenance margin threshold. For instance, if your liquidation price is set at $15,000 USDT and the current mark price sits at $20,000 USDT, any drop to $15,000 means your position will be liquidated—your unrealized losses have consumed the maintenance margin buffer. Understanding how a liquidation price calculator works is essential for risk management in derivatives trading.
How Does the Liquidation Price Calculator Work?
The core concept behind any liquidation price calculator is straightforward: it measures how much price movement your account can sustain before liquidation. Three key metrics drive this calculation:
Mark Price - The fair price reference used to trigger liquidation events
Position Margin - The collateral backing your open position
Maintenance Margin - The minimum margin level required to keep positions active
When your available margin shrinks due to unrealized losses, the liquidation price gets recalculated and moves closer to the current market price, increasing liquidation risk. The severity depends on which margin mode you’re using.
Liquidation Price Calculation in Isolated Margin Mode
Isolated margin mode represents the simpler margin system. Your collateral stays isolated within each individual position, separate from your main account balance. This isolation creates a built-in safety feature: maximum losses are capped at the position margin you allocated.
Formulas for Isolated Margin Liquidation Pricing
For Long Positions:
Liquidation Price = Entry Price − [(Initial Margin − Maintenance Margin) / Position Size] − (Extra Margin Added / Position Size)
For Short Positions:
Liquidation Price = Entry Price + [(Initial Margin − Maintenance Margin) / Position Size] + (Extra Margin Added / Position Size)
Trader places 1 BTC long at $20,000 with 50x leverage. The initial liquidation price is $19,700. However, $200 in funding fees accrue and the trader lacks available balance to cover them. The system deducts these fees from the position margin, moving the liquidation price closer to current price:
The position becomes more vulnerable to liquidation as its safety buffer shrinks.
Cross Margin Mode Liquidation Price Logic
Cross margin mode operates differently. Instead of isolating collateral per position, your total available balance is shared across all open positions. This creates a dynamic liquidation price calculator—the price constantly updates as your account-wide available balance fluctuates.
Under cross margin, liquidation only triggers when available balance reaches zero AND the position lacks sufficient maintenance margin. Meanwhile, unrealized losses from losing positions reduce available balance, while unrealized gains from winning positions do NOT increase available balance (platforms don’t permit using unrealized profits to open new trades).
Understanding Total Sustainable Loss
The key to cross margin liquidation pricing is calculating your total sustainable loss:
Total Sustainable Loss = Available Balance − Maintenance Margin
With this figure, you can determine how many dollars of price movement the position can absorb:
Maximum Sustainable Loss (per contract) = Total Sustainable Loss / Contract Quantity
Cross Margin Formulas
For Positions with Unrealized Profit:
LP (Long) = [Entry Price − (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
LP (Short) = [Entry Price + (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
For Positions with Unrealized Loss:
LP (Long) = [Current Mark Price − (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
LP (Short) = [Current Mark Price + (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
Cross Margin Liquidation Examples
Scenario 1: Single Position Calculation
Trader A wants a 2 BTC long at $10,000 USDT with 100x leverage, current available balance is $2,000.
Maintenance Margin = 2 × $10,000 × 0.5% = $100 USDT
Total Sustainable Loss = $2,000 − $100 = $1,900 USDT
Sustainable loss per BTC = $1,900 / 2 = $950
Liquidation Price = $10,000 − $950 = $9,050 USDT
After opening the position, initial margin consumed is $200 (2 × $10,000 / 100), leaving available balance at $1,800.
Scenario 2: Price Movement Effects on Liquidation Price
After Trader A’s position opens, price rises to $10,500, creating a $1,000 unrealized profit (500 × 2 BTC):
Total Sustainable Loss = $1,800 + $200 − $100 + $1,000 = $2,900 USDT
Sustainable loss per BTC = $2,900 / 2 = $1,450
New Liquidation Price = $10,500 − $1,450 = $9,050 USDT
Notice the liquidation price remains the same—unrealized profits don’t improve liquidation levels in cross margin.
Scenario 3: Perfectly Hedged Positions
A perfect hedge exists when holding identical contract quantities of long and short positions in the same symbol. For example, 1 BTC long and 1 BTC short at any prices creates a perfectly hedged position. These positions never liquidate because the unrealized profit from one side exactly offsets unrealized losses from the other.
Scenario 4: Partially Hedged Multi-Position Risk
Trader B holds two positions under 100x leverage with $3,000 available balance:
Long Position: 2 BTC at $10,000, unrealized loss of $1,000
Short Position: 1 BTC at $9,500
Net exposure = 2 − 1 = 1 BTC long. Only this net exposure determines liquidation pricing:
This demonstrates the critical principle: when one position develops larger unrealized losses, it consumes shared available balance, pushing other positions’ liquidation prices closer to current market prices.
Advanced Insights for Liquidation Risk Management
The Available Balance Mechanism
In cross margin mode, unrealized losses immediately reduce available balance, while unrealized profits provide no buffer. This asymmetry means a bad trade quickly endangers your entire portfolio. Once available balance hits zero, liquidation pricing depends entirely on initial margin—losing positions must then survive on their position-specific collateral alone.
Funding Fee Impact
When available balance is zero and funding fees accrue, the system deducts these from position initial margin itself. This recalculates the liquidation price, moving it closer to the mark price and increasing liquidation danger. This mechanism penalizes traders holding funded positions without sufficient account reserves.
Strategic Use of Liquidation Price Calculator
Experienced traders use liquidation price calculators before opening positions to determine appropriate position sizing and leverage. By reverse-engineering from acceptable risk levels, traders calculate which leverage and position size keep their liquidation price at a comfortable distance from predicted support/resistance levels.
Mastering the liquidation price calculator transforms how you approach margin trading. Rather than viewing liquidation as a mysterious system mechanic, you gain the ability to forecast exactly where positions become vulnerable. This foresight enables three key advantages:
Risk Calibration - You can select leverage and position size knowing your precise liquidation levels before risking capital.
Portfolio Coordination - In cross margin, you understand how one position’s losses cascade into liquidation danger for other positions, allowing strategic hedging decisions.
Opportunity Timing - You identify when your liquidation price is favorably positioned relative to technical levels, only then committing capital.
The liquidation price calculator ultimately represents the difference between reactive trading (closing positions after liquidation warnings) and proactive trading (positioning before danger zones). Master these calculations, and you master margin trading risk.
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 Calculator: Essential Guide for Margin Trading
A liquidation price calculator helps traders understand when their positions will be forcibly closed. Liquidation occurs when the mark price reaches a predetermined level, triggering automatic position closure at the bankruptcy price (0% margin level). This critical moment arrives when your position margin falls below the required maintenance margin threshold. For instance, if your liquidation price is set at $15,000 USDT and the current mark price sits at $20,000 USDT, any drop to $15,000 means your position will be liquidated—your unrealized losses have consumed the maintenance margin buffer. Understanding how a liquidation price calculator works is essential for risk management in derivatives trading.
How Does the Liquidation Price Calculator Work?
The core concept behind any liquidation price calculator is straightforward: it measures how much price movement your account can sustain before liquidation. Three key metrics drive this calculation:
Mark Price - The fair price reference used to trigger liquidation events Position Margin - The collateral backing your open position Maintenance Margin - The minimum margin level required to keep positions active
When your available margin shrinks due to unrealized losses, the liquidation price gets recalculated and moves closer to the current market price, increasing liquidation risk. The severity depends on which margin mode you’re using.
Liquidation Price Calculation in Isolated Margin Mode
Isolated margin mode represents the simpler margin system. Your collateral stays isolated within each individual position, separate from your main account balance. This isolation creates a built-in safety feature: maximum losses are capped at the position margin you allocated.
Formulas for Isolated Margin Liquidation Pricing
For Long Positions: Liquidation Price = Entry Price − [(Initial Margin − Maintenance Margin) / Position Size] − (Extra Margin Added / Position Size)
For Short Positions: Liquidation Price = Entry Price + [(Initial Margin − Maintenance Margin) / Position Size] + (Extra Margin Added / Position Size)
Key Definitions:
Isolated Margin Examples
Scenario 1: Long Position with Standard Maintenance
Trader A opens 1 BTC long at $20,000 USDT with 50x leverage. The Maintenance Margin Rate is 0.5%, with no additional margin added.
Initial Margin = 1 × $20,000 / 50 = $400 USDT Maintenance Margin = 1 × $20,000 × 0.5% = $100 USDT Liquidation Price = $20,000 − ($400 − $100) = $19,700 USDT
Scenario 2: Short Position with Additional Margin
Trader B shorts 1 BTC at $20,000 USDT with 50x leverage, then adds $3,000 USDT to the position margin:
Initial Margin = 1 × $20,000 / 50 = $400 USDT Maintenance Margin = 1 × $20,000 × 0.5% = $100 USDT Liquidation Price = [$20,000 + ($400 − $100)] + ($3,000 / 1) = $23,300 USDT
Scenario 3: Funding Fees Impacting Liquidation Price
Trader places 1 BTC long at $20,000 with 50x leverage. The initial liquidation price is $19,700. However, $200 in funding fees accrue and the trader lacks available balance to cover them. The system deducts these fees from the position margin, moving the liquidation price closer to current price:
Initial Margin = $400 USDT Maintenance Margin = $100 USDT Liquidation Price = [$20,000 − ($400 − $100)] − (−$200 / 1) = $19,900 USDT
The position becomes more vulnerable to liquidation as its safety buffer shrinks.
Cross Margin Mode Liquidation Price Logic
Cross margin mode operates differently. Instead of isolating collateral per position, your total available balance is shared across all open positions. This creates a dynamic liquidation price calculator—the price constantly updates as your account-wide available balance fluctuates.
Under cross margin, liquidation only triggers when available balance reaches zero AND the position lacks sufficient maintenance margin. Meanwhile, unrealized losses from losing positions reduce available balance, while unrealized gains from winning positions do NOT increase available balance (platforms don’t permit using unrealized profits to open new trades).
Understanding Total Sustainable Loss
The key to cross margin liquidation pricing is calculating your total sustainable loss:
Total Sustainable Loss = Available Balance − Maintenance Margin
With this figure, you can determine how many dollars of price movement the position can absorb:
Maximum Sustainable Loss (per contract) = Total Sustainable Loss / Contract Quantity
Cross Margin Formulas
For Positions with Unrealized Profit: LP (Long) = [Entry Price − (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size LP (Short) = [Entry Price + (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
For Positions with Unrealized Loss: LP (Long) = [Current Mark Price − (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size LP (Short) = [Current Mark Price + (Available Balance + Initial Margin − Maintenance Margin)] / Net Position Size
Cross Margin Liquidation Examples
Scenario 1: Single Position Calculation
Trader A wants a 2 BTC long at $10,000 USDT with 100x leverage, current available balance is $2,000.
Maintenance Margin = 2 × $10,000 × 0.5% = $100 USDT Total Sustainable Loss = $2,000 − $100 = $1,900 USDT Sustainable loss per BTC = $1,900 / 2 = $950 Liquidation Price = $10,000 − $950 = $9,050 USDT
After opening the position, initial margin consumed is $200 (2 × $10,000 / 100), leaving available balance at $1,800.
Scenario 2: Price Movement Effects on Liquidation Price
After Trader A’s position opens, price rises to $10,500, creating a $1,000 unrealized profit (500 × 2 BTC):
Total Sustainable Loss = $1,800 + $200 − $100 + $1,000 = $2,900 USDT Sustainable loss per BTC = $2,900 / 2 = $1,450 New Liquidation Price = $10,500 − $1,450 = $9,050 USDT
Notice the liquidation price remains the same—unrealized profits don’t improve liquidation levels in cross margin.
Scenario 3: Perfectly Hedged Positions
A perfect hedge exists when holding identical contract quantities of long and short positions in the same symbol. For example, 1 BTC long and 1 BTC short at any prices creates a perfectly hedged position. These positions never liquidate because the unrealized profit from one side exactly offsets unrealized losses from the other.
Scenario 4: Partially Hedged Multi-Position Risk
Trader B holds two positions under 100x leverage with $3,000 available balance:
Long Position: 2 BTC at $10,000, unrealized loss of $1,000 Short Position: 1 BTC at $9,500
Net exposure = 2 − 1 = 1 BTC long. Only this net exposure determines liquidation pricing:
Initial Margin = (1 × $10,000) / 100 = $100 USDT Maintenance Margin = 1 × $10,000 × 0.5% = $50 USDT LP (Long) = [$9,500 − ($3,000 + $100 − $50)] / 1 = $6,450 USDT
The short position stays safe because long profits always exceed short losses when price rises.
Scenario 5: Multiple Symbols Across Account
Trader C holds positions across different symbols with $2,500 available balance:
BTCUSDT: 1 BTC long at $20,000, 100x leverage
ETHUSDT: 10 ETH short at $2,000, 50x leverage
When Trader C adds another short position in BITUSDT (10,000 BIT at $0.6, 25x leverage):
Updated liquidation prices:
This demonstrates the critical principle: when one position develops larger unrealized losses, it consumes shared available balance, pushing other positions’ liquidation prices closer to current market prices.
Advanced Insights for Liquidation Risk Management
The Available Balance Mechanism
In cross margin mode, unrealized losses immediately reduce available balance, while unrealized profits provide no buffer. This asymmetry means a bad trade quickly endangers your entire portfolio. Once available balance hits zero, liquidation pricing depends entirely on initial margin—losing positions must then survive on their position-specific collateral alone.
Funding Fee Impact
When available balance is zero and funding fees accrue, the system deducts these from position initial margin itself. This recalculates the liquidation price, moving it closer to the mark price and increasing liquidation danger. This mechanism penalizes traders holding funded positions without sufficient account reserves.
Strategic Use of Liquidation Price Calculator
Experienced traders use liquidation price calculators before opening positions to determine appropriate position sizing and leverage. By reverse-engineering from acceptable risk levels, traders calculate which leverage and position size keep their liquidation price at a comfortable distance from predicted support/resistance levels.
Why Understanding Liquidation Price Calculator Matters
Mastering the liquidation price calculator transforms how you approach margin trading. Rather than viewing liquidation as a mysterious system mechanic, you gain the ability to forecast exactly where positions become vulnerable. This foresight enables three key advantages:
Risk Calibration - You can select leverage and position size knowing your precise liquidation levels before risking capital.
Portfolio Coordination - In cross margin, you understand how one position’s losses cascade into liquidation danger for other positions, allowing strategic hedging decisions.
Opportunity Timing - You identify when your liquidation price is favorably positioned relative to technical levels, only then committing capital.
The liquidation price calculator ultimately represents the difference between reactive trading (closing positions after liquidation warnings) and proactive trading (positioning before danger zones). Master these calculations, and you master margin trading risk.