Liquidations & Risk Management on Hyperliquid
Liquidation is the single most expensive event in a leveraged trader's life — and almost always avoidable. Understand exactly how Hyperliquid decides to close your position, and build the habits that keep it from happening.
15 min read
Leverage is a loan against your collateral, and every loan has a margin call. On Hyperliquid that margin call is automatic, unemotional, and final: when your position can no longer cover its requirements, the protocol closes it for you. This guide explains the machinery — maintenance margin, mark price, the liquidation cascade, and auto-deleveraging — and then gives you a concrete playbook to stay on the right side of it.
The core idea
You are liquidated when your account equity falls below the maintenance margin required for your open positions, measured against the mark price. Everything else is detail on top of that one sentence.
Initial margin vs maintenance margin
When you open a leveraged position, you post initial margin — the collateral required to enter, determined by your chosen leverage. As the trade runs, you must keep at least the maintenance margin, a smaller threshold. Let equity drift below maintenance margin and you are liquidated. On Hyperliquid the maintenance requirement is roughly half of the initial margin at maximum leverage, which translates to a maintenance-margin fraction that depends on the asset’s maximum leverage.
| Max leverage | Approx. maintenance margin | Interpretation |
|---|---|---|
| 3x | ~16.7% | Large buffer; hard to liquidate |
| 10x | ~5% | Moderate buffer |
| 20x | ~2.5% | Thin buffer; small moves matter |
| 40x | ~1.25% | Very thin; a small move liquidates you |
The pattern is blunt: the higher the leverage, the thinner the buffer between you and liquidation. At 40x, a move of a little over 1% against you can be enough. This is why leverage is a risk multiplier, not a returns multiplier — it multiplies both directions.
Why liquidation uses the mark price
Hyperliquid liquidates against the mark price, not the last traded price. The mark price is a smoothed, oracle-anchored reference designed to resist manipulation. This protects you: without it, a single large order could briefly spike the last price on a thin book and trigger unfair liquidations. Because the mark price is deliberately robust, you cannot be wicked out by one manipulated print — but you also cannot rely on a brief favorable spike to save you. It is the fair, slow-moving number that matters.
What actually happens when you are liquidated
Liquidation is not a single event but an escalating sequence designed to keep the whole exchange solvent.
- Market-order liquidation. First, the system attempts to close your position by sending market orders to the book at the mark price. In a liquid market this fills quickly and the process ends here.
- Backstop liquidation. If your equity falls below roughly two-thirds of the maintenance margin — or the position is too large or illiquid to close cleanly — the liquidator (HLP) vault takes over the position directly. See the vaults guide for how HLP absorbs this risk.
- Auto-deleveraging (ADL). As a last resort, if bad debt would otherwise be created, the protocol closes opposing profitable positions to erase it. This is rare but means a winning trader can occasionally have a position closed early to keep the system whole.
| Stage | Trigger | Mechanism |
|---|---|---|
| Market liquidation | Equity < maintenance margin | Position closed via market orders at mark |
| Backstop liquidation | Equity < ~2/3 maintenance margin, or illiquid | Liquidator (HLP) vault takes the position |
| Auto-deleveraging | Bad debt would remain | Opposing profitable positions force-closed |
The real cost of being liquidated
Liquidation is expensive beyond just losing the trade. You typically lose the entire maintenance margin backing the position, you have no control over the exit price, and forced market orders in a fast market suffer slippage. Compare that to closing early yourself: you choose the moment, you keep any remaining margin, and you avoid liquidation-related costs. In almost every case, a manual stop-loss is dramatically cheaper than letting a position run into liquidation.
A practical playbook to avoid liquidation
These habits do most of the work of keeping you solvent:
- Use less leverage than the maximum. The maximum is a ceiling, not a target. Lower leverage widens the gap between your entry and your liquidation price — the cheapest insurance there is.
- Always set a stop-loss. Decide your exit before you enter and place a stop-market order so the trade closes on your terms, not the liquidation engine’s.
- Prefer isolated margin for speculative bets. Isolated margin caps the damage of one position to its assigned collateral, so a single bad trade cannot cascade through your whole account.
- Know your liquidation price at all times. Hyperliquid shows it on every position. If it sits within a normal daily candle of the current price, you are over-leveraged.
- Account for funding. Adverse funding slowly drains equity and pushes your liquidation price closer even in a flat market. Budget for it on multi-day holds.
- Keep a margin buffer. Do not deploy every last dollar of collateral. A reserve lets you add margin to defend a position or simply absorb volatility without being forced out.
Position sizing beats prediction
The traders who survive are rarely the best forecasters — they are the ones who size positions so that being wrong is survivable. Risk a small, fixed percentage of your account per trade, and no single liquidation can end your run.
Fees, discounts and risk are separate levers
Reducing your cost of trading and reducing your risk of ruin are different jobs. The referral discount from code PERPLIST cuts the fees on every trade by 4%, which compounds nicely for active traders — but it does nothing to protect an over-leveraged position. Pair a cheaper cost base with disciplined risk management and you get the best of both. If you have not set up the discount, do it before your next trade on the referral code page.
Hyperliquid Referral Code
Enter the code when you create your account, or use the direct link below — the 4% fee discount is applied automatically.
https://app.hyperliquid.xyz/join/PERPLIST