How Hyperliquid Liquidation Price Is Calculated
A plain-language walkthrough of margin, liquidation price and breakeven, and how to estimate all three instantly, free.
What determines a perpetual's liquidation price?
Your liquidation price is the price at which the margin behind a leveraged position stops covering its losses and Hyperliquid closes it for you. Higher leverage puts it closer to your entry, because a smaller adverse move uses up the same margin.
The common shortcut, entry × (1 − 1 ÷ leverage) for a long, assumes you lose your entire margin. Hyperliquid liquidates earlier: once your equity falls to the maintenance margin. That gap is small on BTC and large on most other markets, as the examples below show.
Hyperliquid's actual liquidation formula
Hyperliquid's documentation gives the liquidation price as:
liq_price = price − side × margin_available ÷ position_size ÷ (1 − l × side)
side = 1 for a long, −1 for a short
l = 1 ÷ maintenance leverage
Maintenance margin is half the initial margin at the market's maximum leverage. A market that allows 40x needs 2.5% initial margin at the cap, so its maintenance margin is 1.25% of notional (maintenance leverage 80). A market capped at 3x needs 16.7%. margin_available is your margin minus that maintenance requirement. On an isolated position that means the margin you posted; on cross margin, your account equity.
Max leverage varies a lot across Hyperliquid. On October 4, 2026, BTC allowed 40x, ETH 25x, SOL 20x and HYPE 10x, while 88 of the 178 listed perps were capped at 3x and another 56 at 5x. For most markets, maintenance margin is a large share of the margin you post.
Three worked examples
BTC long, 10x, isolated (max leverage 40x)
- Entry $85,000, size 0.5 BTC: notional $42,500, margin $4,250.
- Maintenance margin: $42,500 × 1.25% = $531.25, so margin available = $3,718.75.
- Liquidation: 85,000 − 3,718.75 ÷ 0.5 ÷ (1 − 0.0125) = $77,468, an 8.9% drop.
- The shortcut says $76,500 (10%). The real liquidation comes about $970 sooner.
HYPE long, 5x (max leverage 10x)
Maintenance is 5% of notional. You post 20%, so 15% is available, and the liquidation move is 15% ÷ (1 − 0.05) = 15.8%. The shortcut says 20%.
A 3x-capped market, long at 3x
Maintenance is 16.7% of notional. You post 33.3%, so 16.7% is available, and the liquidation move is 16.7% ÷ (1 − 0.167) = 20%. The shortcut says 33%. On half of Hyperliquid's markets, the simple estimate puts your liquidation price 13 percentage points further away than it really is.
How Hyperliquid actually liquidates you
- It uses the mark price, which combines external exchange prices with Hyperliquid's own order book. A brief wick on the book alone is less likely to trigger it than a move the wider market agrees on.
- Large positions are liquidated in pieces. Above $100,000 of notional, only 20% of the position goes to the book as a market order at first, followed by a 30-second cooldown.
- Backstop: if equity falls below two-thirds of maintenance margin, the position is transferred to Hyperliquid's liquidator vault instead of being sold on the book.
Mark price vs oracle price: which one liquidates you
Hyperliquid quotes three prices for every perpetual, and only one of them decides liquidations. Knowing which is which explains most “I was liquidated but the price never got there” complaints.
| Price | How it is made | What it is used for |
|---|---|---|
| Book price (last trade, best bid/ask) | Hyperliquid’s own order book | Where your orders fill |
| Oracle price | Each validator takes a weighted median of spot prices on Binance (weight 3), OKX (2), Bybit (2), Kraken, KuCoin, Gate, MEXC and Hyperliquid (1 each); the final oracle is the stake-weighted median of the validators’ submissions. Updated about every 3 seconds. | Funding rates |
| Mark price | The median of three inputs: the oracle plus a 150-second moving average of Hyperliquid’s premium to it; the median of Hyperliquid’s best bid, best ask and last trade; and a weighted median of perp mid prices on Binance, OKX, Bybit, Gate and MEXC. | Margining, liquidations, TP/SL triggers and unrealised PnL |
Because the mark price is a median that includes other exchanges, a single wick on Hyperliquid’s book usually can’t liquidate you on its own, and a crash on the wider market can liquidate you even if Hyperliquid’s last trade lagged. In fast markets the mark can sit noticeably away from the price on the chart, so set stops with a buffer and watch the liquidation price in the app, which uses the mark. Two exceptions to the recipe: for assets whose main spot market is Hyperliquid itself (HYPE, for example) the oracle leaves out external exchanges until they have enough liquidity, and for assets whose main market is elsewhere (BTC) it leaves out Hyperliquid’s own spot price.
Builder-deployed (HIP-3) markets are different again: the deployer supplies the oracle, so read the market’s description on the HIP-3 markets page before trading one with leverage.
Step-by-step: estimating your liquidation price
- Open the position & liquidation calculator. No account or wallet connection needed.
- Choose long or short, then enter leverage, entry price and size.
- Read the PnL tab: estimated liquidation price, liquidation distance, required margin and notional update as you type.
- Check the market's max leverage. Below 40x, move your stop well inside the estimate, using the maintenance-margin math above.
- Enter a target exit to see projected PnL and ROE before you trade.
Margin, breakeven and funding: the other numbers that matter
Liquidation price alone doesn't tell you whether a trade is worth taking. The calculator's other tabs cover the rest:
- Break-even price: the move needed to cover Hyperliquid's taker fee (0.045% per side at the base tier, 0.09% round trip). In the BTC example that's $76.50 above entry. The break-even calculator adds funding and slippage.
- Funding cost: perps pay or receive funding every hour. At the 10.95% APR floor, the $42,500 BTC position pays about $12.75 a day as a long. See how Hyperliquid funding works.
- Position sizing: enter account balance, risk per trade and stop distance to get a risk-based size, or use the position size calculator.
- Average down: model a new blended entry if you add to a position at a different price.
Why estimate before you trade
A loss you take at your own stop and one the exchange takes for you can be the same size on paper. The difference is that a liquidation happens at the worst price of the move, often in pieces, and it ends your ability to manage the trade. The rule that follows from the examples above: your stop must sit inside your real liquidation price, not the simple estimate. On a 3x-capped market that means planning around a 20% move, not 33%.
How far away is liquidation, by market type?
Applying Hyperliquid's formula to each max-leverage tier gives the price move that liquidates an isolated long. The simple estimate (1 ÷ leverage) would say 33.3% at 3x for every market.
| Market max leverage | Maintenance margin | Liquidation move at 3x | At the market's max |
|---|---|---|---|
| 40x (BTC) | 1.25% | 32.5% | 1.3% |
| 25x (ETH) | 2.0% | 32.0% | 2.0% |
| 20x (SOL) | 2.5% | 31.6% | 2.6% |
| 10x (HYPE) | 5.0% | 29.8% | 5.3% |
| 5x (56 markets) | 10.0% | 25.9% | 11.1% |
| 3x (88 markets) | 16.7% | 20.0% | 20.0% |
Two things stand out. At the same 3x, a long on a 3x-capped market is liquidated by a 20% drop, while the same position on BTC survives 32%. And maxing out leverage on BTC leaves a 1.3% buffer, which is less than BTC's ordinary daily range. Leverage counts are from Hyperliquid's market list on October 4, 2026.
Read next
Frequently asked questions
What is the maintenance margin on Hyperliquid?
Half the initial margin at the market's maximum leverage. A market that allows 40x has 1.25% maintenance margin; one capped at 3x has about 16.7%. It is set per market, so check the market's max leverage before estimating your liquidation price.
Is cross margin safer than isolated margin?
Not automatically. Cross margin lets your whole account balance defend a position, which pushes the liquidation price further away, but a liquidation then takes more of your account with it. Isolated margin caps the loss at the margin you assigned to that one position.
Does Hyperliquid liquidate the whole position at once?
Not for large positions. Above $100,000 of notional, Hyperliquid first sends 20% of the position to the order book, then waits 30 seconds before liquidating more. If equity falls below two-thirds of maintenance margin, the position goes to the liquidator vault instead.
Does Hyperliquid liquidate on the mark price or the last price?
The mark price. It is the median of an oracle-based price, Hyperliquid's own book (best bid, best ask, last trade) and other exchanges' perp prices, so it can differ from the last trade on the chart during fast moves. The oracle price on its own is used for funding.
Why was I liquidated before my calculated price?
Usually because the estimate ignored maintenance margin, or because funding and fees reduced your margin while the position was open. Liquidation is also triggered by the mark price, which can differ from the last traded price you were watching.
Ready to estimate a position?
Open the Calculator: it's free No sign-up · Read-only · No wallet connection