Learn

How Hyperliquid Liquidation Works

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.

By Keel Research Team · Updated May 13, 2026

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.

The liquidation formula

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.

Maintenance margin and tier brackets

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.

Isolated vs cross margin

Hyperliquid supports both margin modes. The choice has meaningful risk implications.

  • Isolated: the position has dedicated collateral. If it liquidates, only the isolated margin is consumed; the rest of your account is untouched. Clean per-position risk; useful for sizing each trade independently.
  • Cross: all positions share the account balance as collateral. Liquidation is computed against total account equity vs total maintenance-margin requirement. More capital-efficient, but a deep loss on one position can liquidate others.

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.

Practical risk management

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:

  1. Set explicit stops well inside the cushion. If your liquidation cushion is 5%, your stop should fire at 2-3% — far enough that normal volatility doesn't trigger it, close enough that you exit with most of your margin intact.
  2. Size positions by risk, not by leverage availability. Just because you can trade 20x doesn't mean you should. Use the position size calculator to compute a position that risks a fixed % of account on a stop-out — leverage falls out as a derived consequence.
  3. Monitor volatility-of-volatility. Tight cushions are fine in normal regimes; they're disasters during volatility expansion. Tighter leverage in high-vol environments saves accounts.

Compute it for any position

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.

This article is educational. Liquidation parameters and margin tiers on Hyperliquid can change; consult the venue's documentation for current rules. Not financial advice.
Automate it

Trade systematically on Keel

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.

What you can do
  • Backtest any strategy with realistic fees, slippage, and funding.
  • Optimize parameter grids by Sharpe, drawdown, hit rate.
  • Deploy live to HL with stops + position limits + funding-aware execution.
  • Iterate with AI — describe a thesis, get a tradeable pipeline.
FAQ

Hyperliquid liquidation — questions

What is liquidation, in one sentence?

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.

How is the liquidation price computed on Hyperliquid?

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.

What's the difference between isolated and cross margin?

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.

What happens at liquidation — do I lose 100% of my margin?

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.

How can I avoid liquidation?

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.

Where can I see my liquidation price live?

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.