How liquidation works on Hyperliquid: maintenance margin, cross and isolated

· 7 min read

On Hyperliquid a position is liquidated when its equity — margin plus unrealized PnL — falls below the maintenance margin. That moment comes earlier than most traders expect: not when the margin is gone, but when only a small cushion is left. Below is how the exchange calculates it, what happens at the liquidation price and how to keep a position away from it.

Maintenance margin depends on the coin

Every market has a maximum leverage, and the maintenance margin is half of the initial margin at that maximum. On BTC with 40x it is 1.25% of the position, on a coin with 20x — 2.5%, on a coin with 5x — 10%. The lower the maximum leverage, the bigger the cushion the exchange keeps, and the closer the liquidation price is to your entry at the same leverage.

Here are the current numbers for the largest markets: how far the price can move against a long before liquidation.

CoinPriceMax leverageMaintenance marginTo liquidation at 10xAt 20x
BTC80,86540x1.25%−8.9%−3.8%
ETH2,337.325x2.00%−8.2%−3.1%
SOL100.8220x2.50%−7.7%−2.6%
HYPE76.38310x5.00%−5.3%—
XRP1.258120x2.50%−7.7%−2.6%
DOGE0.0764510x5.00%−5.3%—

Live data from Hyperliquid, updated every few minutes.

Isolated and cross margin

How the liquidation price is calculated

The formula from Hyperliquid’s documentation:

liq_price = entry − side × margin_available / size / (1 − l × side)
l = maintenance margin rate = 1 / (2 × max leverage)
margin_available = margin − position value × l
side = 1 for a long, −1 for a short

Example: a $10,000 long on a coin with 50x maximum leverage, opened at 10x with isolated margin. The margin is $1,000, the maintenance margin $100, so $900 can be lost. Liquidation comes after a drop of about 9.1%, not 10%. Run your own numbers in the liquidation price calculator — it takes the live price and maximum leverage of every coin.

What happens at the liquidation price

Why liquidations come in waves

A liquidation is a forced market order: a long is sold, a short is bought. If many positions have their liquidation prices close together and the order book there is thin, the first liquidations push the price into the next ones. On Hyperliquid every position is public, so these clusters can be seen in advance on the liquidation map, and the squeeze guide explains how to read them.

How to stay away from liquidation

Questions and answers

At what loss does Hyperliquid liquidate a position?

When equity falls below the maintenance margin — half of the initial margin at the coin’s maximum leverage. At 10x on a coin with 50x maximum leverage that is a move of about 9.1% against the position.

Does leverage change the liquidation price in cross margin?

No. In cross margin all free USDC on the account backs the position, so the liquidation price depends on the account value and the size of all positions, not on the leverage setting.

Is liquidation triggered by the last price?

No, by the mark price, which combines the oracle price and the exchange’s own prices. A short wick in the order book alone does not liquidate a position.

What happens to my margin after liquidation?

If the position is closed by market orders, what is left above the maintenance requirement stays on the account. If the liquidator vault has to take the position over, the remaining margin is lost.