Deep Dive: How Liquidations Work on Hyperliquid
A comprehensive breakdown of Hyperliquid's liquidation mechanics — maintenance margin, partial liquidations, the HLP backstop, and practical tips for managing liquidation risk.
Why Liquidations Exist
Perpetual futures trading involves leverage — borrowed capital. When a trader opens a 10x leveraged long, they post 10% of the position's value as margin and borrow the rest. If the price moves against them beyond that margin, their losses would exceed their collateral, leaving the exchange and its users holding bad debt.
Liquidation prevents this by forcibly closing positions before losses exceed collateral. Every perpetual futures platform has liquidation mechanics, but the design varies significantly. Hyperliquid emphasizes partial liquidation, transparent execution, and a vault-based backstop system.
Key Concepts
Initial Margin
The collateral required to open a position. A $10,000 position at 10x leverage requires $1,000 in initial margin.
Maintenance Margin
The minimum collateral to keep a position open — always less than initial margin. On Hyperliquid, the maintenance margin rate is typically around half the initial margin rate. For a 10% initial margin (10x leverage), maintenance might be 5%. On a $10,000 position, liquidation begins when margin falls below $500.
Margin Ratio
Your current margin divided by the maintenance margin requirement. When this ratio reaches 100%, the position enters liquidation territory.
The Liquidation Process Step by Step
Step 1: Mark Price Monitoring
Hyperliquid continuously monitors positions against the mark price, which incorporates the oracle price from external spot markets. This prevents a single large trade from artificially triggering liquidations through temporary price manipulation.
Step 2: Maintenance Margin Breach
When the mark price moves against a position until the margin ratio reaches 100%, the position is flagged for liquidation. The trader can no longer increase the position — only reduce it or add margin.
Step 3: Partial Liquidation
This is where Hyperliquid diverges from cruder implementations. Rather than liquidating the entire position at once, the liquidation engine closes only enough to bring the margin ratio back above maintenance.
Partial liquidation is significantly better for traders. If a large position barely crosses the maintenance threshold, only a fraction is closed. The remainder stays open, and if the price reverses, the trader retains exposure to the recovery. Under full liquidation (as used by some platforms), the entire position is closed regardless.
The process works as follows:
- Calculate the minimum position reduction to restore margin ratio above maintenance
- Close that portion against the order book at market price
- The remaining position continues with an improved margin ratio
- If price continues moving adversely, another partial liquidation may trigger
Step 4: The Liquidation Fee
A liquidation fee is charged to incentivize the backstop system and buffer against slippage during liquidation processing. This is deducted from remaining margin.
Step 5: Full Liquidation
If repeated partial liquidations fail to restore the margin ratio — typically during rapid price moves — the remaining position is fully liquidated and taken over by the backstop system.
The HLP Backstop
The Hyperliquid Provider vault (HLP) is a distinctive feature of Hyperliquid's risk architecture. It accepts deposits from users and deploys that capital to absorb liquidated positions.
When a long position is liquidated, HLP effectively buys it at the liquidation price. When a short is liquidated, HLP sells. Because liquidations tend to occur at price extremes — near local bottoms for longs, near local tops for shorts — absorbing these positions has been statistically profitable for HLP depositors over time. This profitability attracts capital, which provides a deep backstop for the system.
Beyond HLP, an insurance fund serves as a secondary backstop. If a liquidation creates bad debt, the insurance fund covers the shortfall, preventing cascade risk to other traders.
What Determines Your Liquidation Price?
Leverage: Higher leverage means a closer liquidation price. At 50x, a 1-2% adverse move triggers liquidation. At 5x, you have roughly 20% of room.
Position size: Maintenance margin rates increase for larger positions, meaning very large positions are liquidated sooner — a systemic risk management feature.
Cross vs. isolated margin: In cross margin mode, your entire account balance serves as collateral for all positions. Profitable positions offset losing ones. In isolated margin mode, only the allocated margin is at risk for each position.
Tips to Avoid Liquidation
Use Appropriate Leverage
The single most effective way to avoid liquidation is using less leverage. A 20x position is liquidated by a 5% move — routine in crypto. Starting with 3-5x leverage gives positions room to breathe through normal volatility.
Set Stop-Losses Before Entry
Every position should have a stop-loss. A 2% stop-loss is far better than a 5% liquidation with additional fees. Stop-losses let you control your risk rather than leaving it to the liquidation engine.
Monitor Margin Ratio
PnL tells you how much you have gained or lost. Margin ratio tells you how close you are to liquidation. Make checking your margin ratio a habit, especially during volatile conditions.
Avoid Adding to Losing Positions
Adding to a losing leveraged position increases total size, raises maintenance requirements, and pulls your liquidation price closer to market. Unless your strategy specifically calls for it, do not average down under leverage.
Use Isolated Margin for Speculative Trades
For high-leverage speculative positions, isolated margin limits your maximum loss to the allocated margin and prevents one bad trade from endangering your entire account.
Liquidations as a Market Signal
Large liquidation events often coincide with local price extremes. A cascade of long liquidations during a selloff can indicate that excessive leveraged positioning has been flushed out, potentially setting up a bounce. Because all Hyperliquid liquidations happen on-chain, this data is publicly available and verifiable — not an estimate from exchange-reported data of questionable accuracy.
Understanding how liquidations work protects your capital. But observing how liquidations flow through the market can also inform your trading decisions.
Avoid Liquidation with HyperX
HyperX provides multiple tools to help you stay safe. Our risk warnings alert you to high-leverage exposure, Market Analysis shows liquidation clusters, and trader analysis reveals the risk profile of wallets before you copy them.