Liquidation is the single most consequential mechanism in perpetual futures trading. It determines whether you lose part of your capital or all of it. It fires automatically, without warning, and without any ability to intervene once the threshold is breached. And it happens faster than most traders new to leveraged trading expect.
In October 2025, over $19.35 billion in positions were liquidated across perp DEX platforms in a single event. Hyperliquid alone processed $10.31 billion in liquidations. These were not all reckless traders. Many were traders with reasonable positions whose margin buffers were simply too small for the scale of the price move, and whose liquidation fired automatically before they could react.
Liquidation on a perp DEX is the automatic forced closure of a leveraged position when the trader's collateral falls below the maintenance margin requirement. A smart contract enforces this in real time, without human oversight.
This guide explains exactly how liquidation works, how to calculate your personal liquidation price, the difference between partial and full liquidation, what happens to your funds when a position is liquidated, and how to protect yourself.
Key Takeaways
- Liquidation fires automatically when your margin ratio falls below the maintenance margin threshold. Smart contracts enforce this without delay or warning.
- Your liquidation price depends on your entry price, leverage, position direction (long or short), and the platform's maintenance margin rate.
- Funding rate payments also reduce your collateral over time, contributing to liquidation risk even without adverse price movement.
- Most major perp DEXs attempt partial liquidation before full liquidation, closing just enough of the position to bring the margin ratio above maintenance.
- The insurance fund covers shortfalls when the liquidation execution price is worse than your bankruptcy price (zero equity). If the fund is exhausted, auto-deleveraging (ADL) reduces profitable counterparty positions.
- Your maximum loss on a liquidated position is the margin allocated to that position (in isolated margin mode). You cannot lose more than you put up.
What Triggers Liquidation?
Every leveraged position on a perp DEX has two margin levels:
Initial margin, the collateral required to open the position. At 10x leverage, this is 10% of the position's notional value.
Maintenance margin, the minimum collateral ratio required to keep the position open. Typically 0.5% to 2% of notional value, varying by platform and asset. When your margin ratio falls below this level, liquidation fires.
Margin ratio is calculated as:
Margin Ratio = (Remaining Collateral / Position Notional Value) × 100
When this ratio drops below the maintenance margin percentage, the liquidation engine activates.
What reduces the remaining collateral:
- Adverse price movement (primary driver)
- Funding rate payments (ongoing drain, particularly significant during high-rate periods)
- Trading fees (small but present)
What can increase the remaining collateral:
- Adding more margin to the position manually
- Favorable price movement (unrealized PnL)
- Receiving funding payments (when positioned against the crowded side)
How to Calculate Your Liquidation Price
For a long position:
Liquidation Price = Entry Price × (1 - Initial Margin % + Maintenance Margin %)
For a short position:
Liquidation Price = Entry Price × (1 + Initial Margin % - Maintenance Margin %)
Worked example, Long:
- Entry price: $3,500 (ETH)
- Leverage: 10x (Initial margin = 10%)
- Maintenance margin: 1%
- Liquidation price = $3,500 × (1 - 0.10 + 0.01) = $3,500 × 0.91 = $3,185
This means ETH would need to drop approximately 8.9% from your entry before liquidation fires.
Worked example, Short:
- Entry price: $3,500 (ETH)
- Leverage: 10x (Initial margin = 10%)
- Maintenance margin: 1%
- Liquidation price = $3,500 × (1 + 0.10 - 0.01) = $3,500 × 1.09 = $3,815
ETH would need to rise approximately 9% before your short is liquidated.
Important adjustments:
- If you deposit more collateral than the minimum required, your effective leverage decreases and your liquidation price moves further from entry.
- Funding payments reduce your collateral balance, effectively moving your liquidation price closer over time.
- Most platforms display your liquidation price in real time on the position management interface. Always verify this before entering a trade.
Liquidation at Different Leverage Levels
| Leverage | Initial Margin % | Approx. Price Move to Liquidation | Example: ETH Long at $3,500 |
|---|---|---|---|
| 2x | 50% | ~49% adverse move | ~$1,785 |
| 5x | 20% | ~19% adverse move | ~$2,835 |
| 10x | 10% | ~9% adverse move | ~$3,185 |
| 20x | 5% | ~4% adverse move | ~$3,360 |
| 50x | 2% | ~1% adverse move | ~$3,465 |
| 100x | 1% | ~0% adverse move | ~$3,535 |
Assumes 1% maintenance margin. Actual liquidation prices vary by platform and position size.
The numbers make the 50x and 100x leverage cases stark: a 1% or 2% move, something that happens dozens of times per day on an active trading session, liquidates the position. At these leverage levels, you are not trading a market; you are essentially placing a binary bet on the next minute's direction.
The Liquidation Process: Step by Step
Here is the complete sequence from initial trigger to final fund distribution.
Step 1: Monitoring
Smart contracts (often augmented by off-chain keeper bots that interact with the contract) continuously compare each position's current margin ratio against the maintenance requirement. The mark price, derived from oracle data, not from the last trade on the DEX, is used for this calculation. This matters: a temporary spike in the perp's traded price cannot trigger liquidation if the oracle-based mark price hasn't moved. You can read more about how oracles protect mark prices in the oracle-focused article in this series.
Step 2: Partial Liquidation Attempt
Most leading platforms (GMX v2, dYdX v4, Drift Protocol) attempt partial liquidation before full liquidation. The system closes just enough of the position to bring the margin ratio back above the maintenance threshold. If partial liquidation succeeds, the trader retains a reduced position rather than having the entire margin wiped out.
Example: You hold a $20,000 long with $2,000 margin (10x) and 1% maintenance. The position drops to a margin ratio of 0.8%. Partial liquidation closes $4,000 of the position, reducing notional to $16,000 and the remaining margin is redistributed. If the remaining margin now represents at least 1% of $16,000, the position survives in reduced form.
Step 3: Full Liquidation
If partial liquidation cannot bring the account above maintenance, or if the price has moved too rapidly for partial liquidation to be effective, the full position is closed at market price.
The sequence: the smart contract closes the position, the collateral is used to cover the realized loss, and any remaining collateral above the maintenance amount is returned to the trader's account. A liquidation fee (typically 0.5% to 1.0% of position notional) is deducted from the returned amount.
Step 4: Insurance Fund Activation
If the position is closed at a price worse than the bankruptcy price (the price at which the trader's equity is exactly zero), there is a shortfall, the collateral cannot cover the full loss. The insurance fund steps in to cover this gap, protecting the counterparty (who is owed the profit on the winning side of the trade).
The bankruptcy price for a long position: Entry Price × (1 - 1/Leverage). For a 10x long at $3,500: bankruptcy = $3,500 × (1 - 0.10) = $3,150. Liquidation fires before this point (at the maintenance margin threshold). If execution slippage pushes the actual closing price below $3,150, the insurance fund covers the difference.
Step 5: Auto-Deleveraging (ADL), Last Resort
If the insurance fund is completely depleted, the platform activates auto-deleveraging: profitable positions on the opposite side of the market are forcibly reduced to cover the deficit. ADL begins with the most profitable and most leveraged positions. This is the mechanism of last resort and is rare, but it is real and has occurred during significant market dislocations. If you are a profitable trader, ADL can involuntarily close or reduce your winning position during an extreme event.
What Happens to Your Money After Liquidation
This is the question most guides do not answer clearly. Here is the complete flow:
| Scenario | What Happens to Your Collateral |
|---|---|
| Position liquidated above bankruptcy price | Remaining collateral (margin minus realized loss minus liquidation fee) is returned to your account |
| Position liquidated at bankruptcy price | Zero returned; insurance fund covers no gap (exact zero equity) |
| Position liquidated below bankruptcy price (slippage) | Zero returned to you; insurance fund covers the shortfall to counterparty |
| Insurance fund exhausted + below bankruptcy price | Zero returned; ADL applied to profitable counterparties |
The practical takeaway: in most liquidations on well-designed platforms, you receive some small amount back, the difference between your remaining collateral after the loss and the maintenance margin level. It is not a total wipeout in the majority of cases. But in fast-moving markets with significant slippage, the returned amount can be negligible.
The liquidation fee is charged separately and is deducted from whatever collateral remains. At 0.5% to 1.0% of notional, this can represent a significant portion of a small collateral balance. For a $10,000 notional position with a 1% fee, the liquidation fee is $100, which may equal or exceed the remaining collateral on a heavily leveraged position.
Partial vs. Full Liquidation: Platform Examples
| Platform | Partial Liquidation | Full Liquidation | ADL Policy |
|---|---|---|---|
| Hyperliquid | Yes, closes position incrementally to restore margin ratio | Yes, if partial is insufficient | Yes, on insurance fund exhaustion |
| dYdX v4 | Yes | Yes | Yes |
| GMX v2 | Partial supported for cross-margin | Full for isolated positions | Yes |
| Drift Protocol | Yes | Yes | Yes |
| Vertex Protocol | Yes | Yes | Yes |
Mark price-based liquidation (where the trigger uses oracle-derived mark price rather than last traded price) is now standard across all major platforms. This protection prevents manipulation of the DEX's own order book from triggering liquidations at artificial prices.
How Liquidation Cascades Form
Understanding individual liquidation mechanics is useful. Understanding how they aggregate into market events is more important for position sizing.
A liquidation cascade occurs when:
- A price move triggers liquidation of the most overleveraged positions.
- Those liquidations generate forced buy or sell orders at market, moving the price further in the same direction.
- The price movement triggers the next layer of positions.
- The process repeats until leveraged positions are exhausted or price stabilizes.
The cascade is a feedback loop: liquidation generates price movement, price movement generates more liquidation. During the October 2025 event, this loop amplified an initial price decline into one of the largest liquidation events in crypto history.
Liquidation heatmaps, available on Coinglass and some platform dashboards, show where liquidation thresholds are concentrated. A cluster of liquidation levels just below the current price is a potential cascade trigger zone: if the price reaches that cluster, a wave of liquidations fires simultaneously. Understanding where these clusters are helps traders avoid concentrating their own positions in heavily populated zones.
Protecting Yourself from Liquidation
Liquidation cannot be eliminated as a risk in leveraged trading. It can be managed.
Use appropriate leverage. The most effective protection is the most basic: do not use leverage that puts your liquidation price within reach of normal daily volatility. If an asset typically moves 10% in a session, your 10x leveraged position can be liquidated in a single session's normal move. 3x to 5x leverage on major assets gives you 20% to 33% buffer, enough to survive most normal trading days.
Maintain a margin buffer. Depositing more collateral than the minimum required moves your liquidation price further from entry. On a $10,000 notional position, depositing $2,000 instead of $1,000 moves your 10x liquidation price roughly twice as far from entry. The trade-off is lower effective leverage, but that is the point.
Set stop-loss orders. A stop-loss order closes your position automatically when the price reaches a specified level, before liquidation fires. Platforms that support professional order types, including market, limit, take-profit, and stop-loss, make this straightforward; OrangeRock includes all of these within its mobile interface alongside live margin and liquidation price displays. The MetaMask perpetual futures guide covers stop-loss placement and its interaction with liquidation thresholds in more detail. Setting a stop-loss above your liquidation price means you exit with some collateral returned rather than the minimum (or zero) returned in a liquidation. Note: stop-loss orders are not guaranteed to execute at the specified price in fast-moving markets with low liquidity, but they are reliably better than relying on no exit plan at all.
Use isolated margin for speculative positions. If your ETH long is liquidated in isolated margin mode, your BTC short and your remaining wallet balance are untouched. Cross margin can expose your entire capital to a single bad position's liquidation.
Monitor funding rate accumulation. High funding rates drain collateral continuously, moving your effective liquidation price closer over time. Monitor this in real time and add collateral or reduce position size if funding is significantly eroding your buffer.
Reduce exposure during high-volatility events. Major announcements (FOMC decisions, regulatory news, large options expiries) produce outsized volatility that compresses the time window between a price move starting and a leveraged position reaching its liquidation threshold.
Liquidation on Cross Margin vs. Isolated Margin
Isolated margin liquidation:
- Only the collateral allocated to the specific position is at risk.
- Liquidation of one position does not affect other positions or your remaining account balance.
- Your maximum loss on the position equals the margin you allocated.
Cross margin liquidation:
- All available account equity backs all positions simultaneously.
- A large unrealized loss on one position reduces the equity available to maintain other positions.
- Multiple positions can be liquidated in sequence if the first liquidation does not resolve the margin shortfall.
- Your maximum loss in a worst case is the total equity in your account, not just the allocated margin for one position.
Cross margin is capital-efficient for hedged positions (where a profit on one leg offsets a loss on another). It is dangerous for unhedged speculative positions: a single bad trade can drag the entire account toward liquidation.
Conclusion
Liquidation on a perp DEX is not an error or a failure of the system. It is the system functioning as designed: automatically enforcing margin rules in real time through smart contracts, without human discretion or delay.
That automation is both the strength and the danger. It removes the ability of a centralized operator to make poor decisions, but it also removes the ability of the trader to negotiate or respond. The liquidation fires when the threshold is breached. Full stop.
Managing liquidation risk is fundamentally about margin management: keeping your liquidation price far enough from the current market that normal volatility, even unusually high volatility, cannot reach it in a single session. The traders who survive long term in leveraged markets are the ones who treat the liquidation price as a hard boundary that should never come close to being tested, not as a backstop to rely on.
Stay in control of your margin and positions - download the Bitcoin.com Wallet app to connect to top Perp DEXs and manage leveraged trades securely.






