Forced liquidation, also known as liquidation, is triggered when the margin ratio of a position reaches 100%, resulting in the loss of all position margin used for that position.
I. Margin Ratio Calculation Formula
1. Isolated Margin Ratio
[Contract quantity * Contract face value * (Average entry price * Maintenance margin rate + Mark price * Liquidation fee rate)] / (Position margin + Unrealized PnL of this position) * 100%
Example:
User A holds a BTCUSDT long position with 100x leverage. The contract quantity is 10,000, the average entry price is 60,000, the contract face value is 0.001 BTC, the maintenance margin rate is 0.25%, the mark price is 59,000, the liquidation fee rate is 0.006, the unrealized PnL is -960, and the position margin is 6,000.
[10,000 * 0.001 * (60,000 * 0.0025 + 59,000 * 0.006)] / (6,000 - 960) * 100% = 100%
2. Cross Margin Ratio
(Total net maintenance margin for cross margin + Total liquidation fees for cross margin) / (Account balance + bonus balance - Frozen isolated margin + Unrealized PnL for cross margin) * 100%
Example:
User A holds a BTCUSDT cross-margin long position. The contract quantity is 10,000, the contract face value is 0.001 BTC, the mark price is 59,000, the maintenance margin for the long position is 3,000, the maintenance margin for the short position is 0, and the liquidation fee rate is 0.006. The account balance is 50,000, the bonus balance is 5,000, the frozen isolated margin is 0, and the unrealized PnL for cross margin is -48,460.
(3,000 + 0.001 * 10,000 * 59,000 * 0.006) / (50,000 + 5,000 - 0 - 48,460 ) *100% = 100%
II. Liquidation Price Calculation Formula:
1. Isolated Liquidation Price
Long position:
[Position margin - Contract face value * Contract quantity * Average entry price * (1 + Maintenance margin rate)] / [Contract face value * Contract quantity * (Liquidation fee rate - 1)]
Short position:
[Position margin + Contract face value * Contract quantity * Average entry price * (1 - Maintenance margin rate)] / [Contract face value * Contract quantity * (Liquidation fee rate + 1)]
2. Cross-Margin Liquidation Price:
(Wallet balance + Bonus balance - Total frozen isolated margin - Total other net maintenance margin for cross margin - Total other liquidation fees for cross margin + Total other unrealized PnL for cross margin - Contract face value * Number of long contracts * Long entry price + Contract face value * Number of short contracts * Short entry price) / (Contract face value * (Number of short contracts - Number of long contracts) + |Contract face value * Number of long contracts * Long maintenance margin rate - Contract face value * Number of short contracts * Short maintenance margin rate| + Contract face value * Total number of contracts * Liquidation fee rate)
※Account balance = Transfers in - Transfers out + Realized PnL
※Maintenance margin = Position value * Maintenance margin rate
※Isolated position value = Contract quantity * Contract face value * Average entry price
※Cross-margin position value = Contract quantity * Contract face value * Mark price