How Hyperliquid Liquidations Work (and How to Avoid Them)
A complete guide to Hyperliquid liquidations: how mark price triggers them, what happens to your margin, and practical steps to avoid getting liquidated.
How Hyperliquid Liquidations Work (and How to Avoid Them)
Liquidation is the single biggest risk in leveraged trading. On Hyperliquid, the mechanics are specific and worth understanding precisely. A few misunderstandings about how liquidation price is calculated, or which price triggers it, can lead to getting stopped out in ways that feel arbitrary but are actually by design.
This guide covers how Hyperliquid liquidations work from the ground up: the margin system, the mark price mechanism, what actually happens when liquidation triggers, and concrete steps to reduce the risk.
HyprSwarm is not financial advice. Liquidation risk is real and can result in total loss of collateral. Always apply your own risk management.
What Triggers a Liquidation on Hyperliquid?
A liquidation triggers when your account equity falls below the maintenance margin threshold. Equity equals your collateral plus your unrealized PnL. When a position moves against you enough that equity drops below maintenance margin, the liquidation engine activates.
This is the core formula:
Margin ratio = Equity / Open Notional
Liquidation triggers when: Margin ratio < Maintenance margin rate
Per Hyperliquid's official documentation, the maintenance margin is approximately half of the initial margin at maximum leverage. For an asset with 40x maximum leverage, the maintenance margin is roughly 1.25% of position notional. For an asset with 3x maximum leverage, it is roughly 16.7%.
In practical terms: higher leverage means a smaller price move wipes out your margin. This is mechanical, not arbitrary.
What is the Mark Price (and Why It Matters)
Liquidation uses the mark price, not the last traded book price. This is the most common source of confusion for traders new to Hyperliquid.
The mark price is calculated from: - The external oracle price (sourced from major centralized exchanges including Binance, OKX, and Bybit) - Hyperliquid's own order book state
The mark price uses a combination of these sources to produce a fair value that is more resistant to temporary book manipulation than the raw last-traded price. Per the Hyperliquid Wiki, the mark price formula takes a median of multiple price inputs including a 150-second EMA of the spread between the oracle price and the book price.
Why does this matter in practice?
During volatile periods, the mark price can differ meaningfully from the displayed book price. If the oracle price lags a sharp move or leads it, your displayed unrealized PnL may not accurately reflect the mark-price-based equity that the liquidation engine is watching. Traders have been surprised to see liquidation trigger when they thought they had adequate margin, because the mark price was different from what they expected.
Check the mark price, not just the last price, when evaluating your liquidation distance.
Isolated vs. Cross Margin: Different Liquidation Risk Profiles
Isolated margin: The margin allocated to a specific position is the only capital at risk. If that position is liquidated, your other funds (other isolated positions, other margin) are not affected. This is the safer approach for managing liquidation risk on individual positions.
Cross margin: All of your cross-margin positions share a common pool of collateral. A losing position draws down the shared equity, which can drag other positions toward liquidation. A single bad trade can affect your entire cross margin account. Cross margin also allows the account's equity to naturally cushion individual losing positions, which can delay liquidation. But it can also mean one position liquidates your whole account if things go badly enough.
Per Hyperliquid's documentation on margining:
- For cross positions: the liquidation triggers when total account equity (including unrealized PnL across all cross positions) falls below maintenance margin times total notional
- For isolated positions: the liquidation calculation is specific to that position's allocated margin and notional
The practical implication: isolated margin gives you fine-grained control over exactly how much you can lose on a specific position. Cross margin is more flexible but creates interconnected risk across your positions.
What Actually Happens During Liquidation
When liquidation triggers, the process has two phases:
Phase 1: Book liquidation. The system sends market orders to close your position on the open order book. If the market orders fully or partially close your position to the point where your equity is back above the maintenance margin, any remaining collateral above that threshold is returned to you. This is the standard liquidation outcome.
Phase 2: Backstop liquidation (HLP). If the book liquidation fails to restore margin requirements (because the position is too large for the available liquidity, or market conditions are extreme), a backstop liquidation occurs through the HLP protocol vault. In this case, the entire isolated position (or all cross positions and margin) is transferred to the liquidator vault. The maintenance margin is not returned because the liquidator vault needs it as a buffer to make backstop liquidations economically viable.
The backstop liquidation is rare under normal market conditions but has been activated during extreme volatility events. HLP is a community vault that accrues the PnL from these liquidation operations.
For isolated positions: only that position's margin is transferred. Your cross-margin account and other isolated positions are unaffected. For cross positions: all cross positions and all cross margin are transferred to the liquidator.
How to Calculate Your Liquidation Price
You don't need to calculate this manually. Hyperliquid's interface shows your liquidation price when you open or hold a position. But understanding the components helps you manage risk more deliberately.
For an isolated long position:
Liquidation price ≈ Entry price × (1 - (1/leverage) + maintenance margin rate)
For an isolated short position:
Liquidation price ≈ Entry price × (1 + (1/leverage) - maintenance margin rate)
The higher the leverage, the closer the liquidation price is to your entry. At 20x leverage on a long position with a 2.5% initial margin and 1.25% maintenance margin, price only needs to move roughly 1.25% against you before liquidation triggers.
For cross margin, the calculation is more complex because equity and notional are aggregated across all positions. The interface shows an approximate liquidation price but this is approximate because the calculation depends on the state of all other positions in your cross account.
Smart Money and Liquidation Clusters
Liquidation events are not random. They cluster at price levels where large numbers of leveraged positions are stacked. When price sweeps through a liquidation cluster, the forced closing of those positions creates additional selling (for long liquidations) or buying (for short liquidations) that amplifies the move.
Experienced traders watch liquidation levels as important technical price points. Smart money positions sometimes anticipate these levels, entering before a liquidation cascade or fading the move after one.
The HyprSwarm Smart Money Positioning table shows what direction elite wallets are positioned relative to current price. Comparing that to known liquidation clusters (visible on CoinGlass or similar tools) can give useful context: if smart money is positioned long and there is a large short liquidation cluster just above current price, a squeeze through that cluster would benefit existing long formations.
Swarm formations that occur near liquidation cluster levels carry specific dynamics. A formation that builds long into a level where many shorts are stacked is expressing a view that a squeeze is more likely than a breakdown. Whether that view is correct is what the Proof Wall tracks over time.
How to Avoid Getting Liquidated on Hyperliquid
This section is practical. These are the levers you actually control.
Use less leverage than you think you need. The leverage selection has a direct, mechanical effect on your liquidation price. Dropping from 20x to 10x doubles the distance between your entry and liquidation. Most traders are better served by lower leverage and larger position size than the reverse.
Use isolated margin for high-conviction trades. Isolated margin contains the damage. If the trade fails, only that position's margin is lost. Your other capital is unaffected. Cross margin creates interconnected risk that can cascade in ways that feel unexpected.
Set stop loss orders above the liquidation price. The difference between a stop loss and a liquidation is control. A stop loss exits your position on your terms with some collateral recovery. Liquidation exits it on the market's terms and may return nothing depending on the phase. Every position that has no stop loss is a position whose downside is the liquidation engine.
Account for funding rate costs in your margin math. On Hyperliquid, funding settles every hour. At elevated positive funding, a long position bleeds margin over time even if price stays flat. A position that looks safely margined at entry can approach liquidation purely from funding costs over multiple days.
Don't add to losing positions. Averaging into a losing position that has unrealized negative PnL brings equity closer to the maintenance margin threshold with each addition. It also increases the notional, which means the maintenance margin threshold itself rises. This double effect is how positions that started at reasonable leverage end up liquidated at seemingly benign price levels.
Monitor the mark price, not just the last traded price. During high-volatility periods, the gap between mark price and book price can widen. Your liquidation is based on mark price. Check it, especially if you're holding a position through a volatile session.
Add margin before you need to. If a position is moving against you and you want to hold it through a pullback, adding margin to an isolated position (or depositing USDC to cross) gives you more distance before liquidation triggers. Do this early. Adding margin when you're already near the threshold is adding into a deteriorating situation.
What Smart Money Does Differently Around Liquidation Risk
One of the patterns visible in how elite wallets manage positions on Hyperliquid is consistent risk management. High-ELO wallets (the ones with strong long-term directional accuracy) tend not to be the wallets that appear in liquidation data.
This is structural: excessive leverage produces short-term spectacular wins and eventual catastrophic losses. A wallet that consistently avoids liquidation by sizing appropriately and exiting losing trades quickly can sustain a strong track record over time. A wallet that maximizes leverage wins big until it doesn't.
The ELO-based performance scoring that HyprSwarm uses naturally selects for wallets that don't blow up. A wallet that gets liquidated loses its equity and, effectively, the ability to influence future signals. The ELO rating falls. The rating system filters toward sustained, non-catastrophic performance by design.
Frequently Asked Questions
How does liquidation work on Hyperliquid?
A liquidation triggers when your account equity falls below the maintenance margin threshold. The system first attempts to close your position through market orders on the open book. If successful, any remaining collateral above maintenance margin is returned. If the book cannot absorb the liquidation, a backstop liquidation occurs through the HLP protocol vault, and the maintenance margin is retained by the liquidator.
What is the maintenance margin on Hyperliquid?
The maintenance margin is approximately half the initial margin at maximum leverage for a given asset. For assets with 40x maximum leverage, maintenance margin is roughly 1.25% of notional. For assets with 3x maximum leverage, it is roughly 16.7%. Per Hyperliquid's official margining documentation, exact rates vary by asset and leverage tier.
What price triggers a liquidation on Hyperliquid?
Liquidations are based on the mark price, not the last book price. The mark price combines oracle prices from major exchanges with Hyperliquid's own book state. During volatile periods, mark price can diverge from the book price, which is why some liquidations appear to trigger at prices traders didn't expect.
What happens to my money when I get liquidated on Hyperliquid?
If the initial book liquidation succeeds, any collateral above the maintenance margin is returned. If a backstop liquidation through the HLP vault is required, the maintenance margin is retained by the liquidator and you receive nothing back from that position. For isolated positions, your other funds are unaffected.
What is the difference between isolated and cross margin liquidation on Hyperliquid?
With isolated margin, only the margin allocated to that position is at risk. A liquidation affects only that position; your other funds are untouched. With cross margin, all cross positions and all cross margin share a common equity pool. A bad trade can draw down equity enough to liquidate all cross positions simultaneously.