How Hyperliquid calculates the liquidation price
Hyperliquid's maintenance margin is half the initial margin at the asset's maximum leverage, so a 40x asset has a 1.25% maintenance rate and a 3x asset 16.7%. Some assets have margin tiers by position value, each with its own maximum leverage and a deduction that keeps the requirement continuous. Positions are margined in USDC. The documented formula:
liq_price = price − side × margin_available ÷ position_size ÷ (1 − l × side)side is 1 for a long and −1 for a short, l = 1 ÷ maintenance leverage, and margin_available is the isolated margin (or account value in cross) minus the maintenance margin required. For tiered assets, the tier at the liquidation price decides the maintenance leverage.
Worked example
Long 1 BTC at 60,000 USDC with 10x isolated margin (6,000 USDC) on a 40x asset, so l = 1.25%.
margin_available = 6,000 − 0.0125 × 60,000 = 5,250. Liquidation price = 60,000 − 5,250 ÷ 1 ÷ 0.9875 = 54,683.54 USDC.
Want to see the same position on other exchanges? Compare liquidation prices across all 8 exchanges.
Getting a different number on the exchange? The eight usual reasons.
Isolated or cross margin
In isolated mode only the margin assigned to the position can be lost, so the liquidation price depends on that margin alone. Adding margin to an isolated position moves its liquidation price further away. In cross mode the whole wallet balance backs your positions, which pushes the liquidation price further away but puts the whole balance at risk.
How to move the liquidation price further away
- Use lower leverage, which locks more margin into an isolated position.
- Add margin to an isolated position after opening it.
- Trade a smaller size, which can also keep you in a lower tier.
- In cross mode, keep more balance in the futures wallet.
Frequently asked questions
How does Hyperliquid calculate the liquidation price?
Hyperliquid liquidates a position when its margin balance falls to the maintenance margin, judged on the mark price rather than the last traded price. The tier is chosen from the position's value at the liquidation price, so a long can fall into a lower tier before it is liquidated. The maintenance margin is the position value at the liquidation price times the tier's rate, minus the tier's maintenance amount. The maintenance margin rate is half the initial margin at the contract's maximum leverage, for example 1.25% for a 40x contract.
What is the maximum leverage on Hyperliquid futures?
Up to 40x, on 1 of the 179 USDC perpetuals we track. The limit depends on the contract and falls as the position grows. On BTCUSDC the first tier allows 40x up to 150,000,000 USDC at a 1.25% maintenance rate; larger positions move into tiers with lower leverage and a higher rate.
Why is my liquidation price on Hyperliquid different from this calculator?
The usual reasons are the margin and the price. The calculator uses the margin you enter, while your real position's margin changes with fees, funding payments and any margin you add or remove. In cross mode, your other positions and their unrealized profit count too. Liquidation is triggered on the mark price, and the exchange may change a contract's tiers at any time.
Is liquidation based on the mark price or the last price?
All of these exchanges trigger liquidation on the mark price, which follows a price index across several markets. The last traded price can briefly go past your liquidation price without liquidating you, and the reverse can also happen.
Can I use this for several positions in cross mode?
Not exactly. Cross mode here assumes one open position. With several positions, the unrealized profit and loss and maintenance margin of the others also count, so the real liquidation price on Hyperliquid will differ.
How current is the tier data?
Tiers are pulled from each exchange's API every few hours, and the time of the last update is shown at the bottom of every page. Exchanges change tiers from time to time, so check the tier table against the exchange before a large trade.