Liquidation on Hyperliquid happens when the mark-to-market loss on a perpetual position exhausts your available margin minus the maintenance-margin reserve. The exchange auto-closes the position. The formula is simple; the practical implications for sizing and stop-loss placement matter more than the math.
A perpetual-futures position on Hyperliquid is held against margin you post upfront. As the mark price moves, your unrealized P&L moves with it. If the mark moves far enough against you, your remaining margin drops below the exchange's maintenance threshold, and Hyperliquid's liquidation engine closes the position automatically. The trader's loss is capped at the posted margin (for isolated positions); the exchange's insurance fund absorbs any residual.
Understanding the exact liquidation price for a given trade is the foundation of capital management on a leveraged venue. Three things determine it: your entry price, the leverage you chose, and the maintenance-margin fraction Hyperliquid requires for that position size.
For an isolated position, the math reduces to:
long : liq = entry × (1 − 1/L + mmr)
short : liq = entry × (1 + 1/L − mmr)
L = leverage
mmr = maintenance-margin fraction (HL tier-1 default: 0.5 / L)Worked example. You open a long BTC perp at $50,000 with 10x leverage on Hyperliquid (isolated, tier-1). Then L = 10 and mmr ≈ 0.05. The liquidation price is 50000 × (1 − 0.1 + 0.05) = 50000 × 0.95 = $47,500. The cushion to liquidation is 5% of entry.
At 20x leverage the same trade liquidates at $48,750 (2.5% cushion). At 50x it liquidates at $49,500 (1% cushion). The cushion shrinks with leverage in a tight, predictable way.
The maintenance-margin fraction is what you must hold to keep the position open after entry. Hyperliquid's default for tier-1 (small positions on liquid pairs) is half the initial margin, i.e. mmr = 0.5 / L. That's what the formula above uses.
Larger position sizes can fall into deeper tiers with higher mmr. The exchange does this to limit risk concentration — if you're holding $5M+ in a single perp, the mmr ratchets up, which moves your liquidation closer to entry. Check Hyperliquid's per-market margin tier table for the precise brackets if you're trading institutional-size positions.
The liquidation calculator lets you override mmr to model deeper tiers. The default uses tier-1; if you know you'll be in tier-3, manually enter that mmr to get an accurate liquidation price.
Hyperliquid supports both margin modes. The choice has meaningful risk implications.
For systematic strategies running multiple positions simultaneously, cross-margin lets you scale exposure with less capital. For manual or single-position trades, isolated is cleaner and more honest about risk per trade.
The liquidation calculator computes the isolated-equivalent number even in cross-margin mode. Use it as the floor — the actual cross-margin liquidation depends on the full account state and can fire earlier if other positions are also drawing down.
Treating the liquidation engine as your stop loss is a costly mistake. At liquidation, you've lost essentially all your isolated margin — there's almost no recovery path within that position. Three better practices:
Before opening a position, use the liquidation calculator to see exactly where your liquidation sits. Enter side, entry, leverage, and margin mode. It returns the liquidation price plus the cushion-to-liquidation percentage — a single check that catches over-leveraged positions before they cost you.
For systematic strategies, the Keel backtest engine accounts for liquidation automatically — every fill is sized against margin tiers, and positions that would have liquidated in the historical sample show up as full losses in the backtest output. Use that to validate that strategy sizing keeps liquidation risk manageable in the worst historical regimes.
Keel is a Strategy OS for AI-assisted systematic trading on Hyperliquid. Backtest, optimize, and run live strategies across single-stock perps, indices, and crypto majors — realistic fees, slippage, and funding modeled.
Free to start — connect a Hyperliquid wallet when you’re ready to go live.
Liquidation is the automatic closure of a perpetual-futures position when the trader's collateral can no longer cover potential losses — the exchange forces an exit to prevent your loss from exceeding the margin you posted.
For an isolated position, the formula is: long → entry × (1 − 1/L + mmr); short → entry × (1 + 1/L − mmr), where L is leverage and mmr is the maintenance-margin fraction. HL's tier-1 default mmr is half the initial margin (i.e. mmr ≈ 0.5/L). Higher position sizes can fall into deeper tiers with larger mmr, which moves the liquidation price closer to entry.
Isolated: each position has its own collateral. Liquidation of one position doesn't touch the rest of your account. Cross: all positions share the account balance as collateral. A loss on one position can liquidate other positions if total equity drops below maintenance. Isolated gives clean per-position risk; cross gives more capital efficiency but couples positions.
Typically yes (or close to it). The position is closed at the current mark price; if that price is at or beyond your liquidation level, your isolated margin is largely consumed. Sometimes a small residual remains; sometimes the loss exceeds isolated margin and the exchange's insurance fund absorbs the gap.
Three things. (1) Use lower leverage — a 10x position has a 10% cushion to liquidation; 20x has 5%; 50x has 2%. (2) Set explicit stop losses inside the cushion, much tighter than the liquidation price. The liquidation engine should be a last resort, not your stop. (3) Monitor margin in volatile regimes — drawdowns on other positions in cross-margin can compound the risk.
Hyperliquid's UI displays the liquidation price for every open position in real time. For pre-trade sizing decisions, use the liquidation calculator — input side, entry, leverage, and margin mode to see the liquidation price and cushion percentage before opening the position.