Liquidation is the word every leveraged trader learns to respect. It is the mechanism that closes your position when losses approach your collateral, and it is the single most expensive lesson in perps trading. The good news: it is predictable, visible in advance, and avoidable with a few habits.
What liquidation is
When you trade with leverage, your margin backs a position larger than your deposit. The exchange must ensure your losses never exceed the collateral you posted. So when the market moves against you far enough that your remaining margin falls below a safety threshold called maintenance margin, the exchange steps in and closes your position at market. That is liquidation.
For an isolated position, you lose the margin assigned to that position. For cross positions, losses draw on your whole account balance, which gives you more room but puts more at stake.
The two margin thresholds
- Initial margin is what you post to open a position: position value divided by your leverage.
- Maintenance margin is the minimum required to keep the position open. On Hyperliquid it is set at half of the initial margin at maximum leverage. Liquidation triggers when your equity backing the position falls below this level.
Notice something important: maintenance margin depends on the market's maximum leverage, not your chosen leverage. Trading at low leverage on a high-leverage market gives you a very wide buffer.
A worked example
Suppose BTC trades at 100,000 USDC and its market allows up to 40x leverage. Maintenance margin at max leverage would be half of 1/40, which is 1.25 percent of position value.
You open a long worth 10,000 USDC using 10x leverage, posting 1,000 USDC of isolated margin.
- Your maintenance requirement is 1.25 percent of 10,000, which is 125 USDC.
- You get liquidated when losses eat your margin down to that level, roughly an 875 USDC loss.
- That is about an 8.75 percent drop in BTC's price. At 10x leverage, less than a 9 percent move ends the trade.
Run the same trade at 3x leverage with 3,333 USDC of margin and the market needs to fall roughly 32 percent before liquidation. Same position size, radically different survivability.
You never have to do this math yourself. The order form shows your estimated Liquidation Price before you place the order, the Positions tab shows it live for every open position, and it is drawn as a line on the chart.
Mark price, not last price
Liquidations are calculated using the mark price rather than the last traded price. The mark price blends quotes from major outside exchanges with Hyperbeat's own order book, so a single rogue trade printing far from the real market cannot push you into liquidation. Your liquidation triggers on where the market genuinely is, not on one outlier tick.
Under the hood: how a liquidation actually runs
On Hyperliquid, a liquidation is not one brutal event. When your equity hits the maintenance threshold, the system first tries to close your position with ordinary market orders into the book, and you keep any collateral left over. Only if your equity keeps falling, below roughly two-thirds of the maintenance margin, does a backstop step in: a liquidator vault takes over the position, and any surplus flows to the community pool (HLP) rather than to the exchange. Importantly, there is no separate liquidation or clearance fee. For an isolated position only that position and its margin are at stake; for cross positions your whole cross balance is on the line.
If you like formulas, the liquidation price is:
liq_price = price − side × margin_available / position_size / (1 − l × side)
where side is +1 for a long and −1 for a short, l is 1 divided by the market's maximum leverage, and margin_available is your account value (cross) or the position's isolated margin, each minus the maintenance requirement. The order form computes this for you; the formula just shows what moves it.
How to avoid liquidation
- Use less leverage. This is 90 percent of the answer. Liquidation distance scales with leverage: at 20x a roughly 5 percent move can end you, at 3x you can survive a crash.
- Always check the liquidation price before confirming an order. If a normal day's volatility could reach it, your position is too big.
- Use stop losses. A stop loss closes your position at a level you choose, before liquidation does it for you at a worse one. Liquidation should be the backstop you never touch, not your exit plan.
- Add margin to isolated positions when needed. The pencil icon in the Margin column lets you add collateral and push the liquidation price away. Do this deliberately, not as a reflex to defend a losing trade.
- Watch your Unified Account Ratio. For cross positions, the account card shows maintenance margin against total equity. If that ratio climbs toward 100 percent, reduce positions or add funds.
- Beware of funding drains. If you hold a position for weeks, funding payments can slowly erode the margin cushion you started with.
If you do get liquidated
It happens to almost everyone once. Treat it as tuition: review what leverage you used, where your liquidation price was relative to normal volatility, and whether a stop loss would have saved most of the position. Then size smaller. The traders who last are not the ones who never lose, they are the ones whose losses stay survivable.
Keep learning
- Leverage and margin explained
- Managing positions with take profit and stop loss
- Risk management basics for new traders
Nothing in this article is financial advice.