Hyperliquid liquidation price calculator
The price where a Hyperliquid long or short gets liquidated, isolated or cross, with each market's max leverage and Hyperliquid's own formula.
8.86% below entry. A fall to this price liquidates the position.
Where everyone else on BTC would be liquidated: the liquidation map.
How it is calculated
A position is liquidated when the account's equity falls below its maintenance margin. Hyperliquid publishes the price where that happens as one formula, in its liquidations docs:
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 leverage = 2 x max leverage)
margin_available isolated margin - maintenance margin (isolated)
account value - maintenance margin (cross)The maintenance margin is half of the initial margin at the market's max leverage (margining docs), so a 40x market keeps 1.25% of the position's value and a 3x market 16.7%. Opening takes size x price / leverage. A worked example:
BTC long, isolated, entry 100,000, size $10,000 (0.1 BTC), 10x on a 40x market
margin 10,000 / 10 = 1,000
maintenance 10,000 x 1 / 80 = 125
margin_available 1,000 - 125 = 875
liq_price 100,000 - 875 / 0.1 / (1 - 1/80) = 91,139- The calculator works at the moment the position opens, at the entry price.
- In cross margin it assumes the account holds only this position. Other positions move the real number.
- It uses the market's first margin tier. Very large positions on tiered markets need more margin (margin tiers).
- Liquidations trigger on the mark price, not the last trade.
To see the same rule applied to every open position on a market, open the liquidation map; the map guide explains how it is built and checked.
Questions
How do I calculate my Hyperliquid liquidation price?
Hyperliquid's formula is liq_price = price - side x margin_available / position_size / (1 - l x side), with side 1 for a long and -1 for a short, l = 1 / maintenance leverage, and margin_available the isolated margin, or the cross account value, minus the maintenance margin. Enter the side, entry, size and leverage above and the calculator applies it.
What is the maintenance margin on Hyperliquid?
Half of the initial margin at the market's max leverage: 1.25% of the position's value on a 40x market, 2.5% on a 20x market and 16.7% on a 3x market. On markets with margin tiers, large positions fall into a tier with a lower max leverage and need more margin.
Does leverage change the liquidation price in cross margin?
No. Hyperliquid's docs say the cross liquidation price does not depend on the leverage set; lower leverage only uses more collateral. What moves it is the account value against the size of the position.
Why does my cross position show a different liquidation price?
In cross margin the whole account backs the position. Other positions add their own maintenance margin, and their gains and losses move the price. The calculator assumes this is the account's only position; Hyperliquid's app shows the live number for your account.
Which price triggers a liquidation on Hyperliquid?
The mark price, which combines prices from other exchanges with Hyperliquid's own book. Positions larger than 100,000 USDC are liquidated 20% at a time, with a 30-second cooldown between steps.
Can I get an alert before my liquidation price?
Yes. With a free API key, one POST to /v1/alerts posts a market's long or short liquidations to Discord, Slack, Telegram or a webhook as they happen. In Telegram, /watch 0x... to @ironflow_liquidations_bot messages you when a wallet's position gets within 10%, 5% and 2% of its liquidation price.
Where would other traders on Hyperliquid be liquidated?
The liquidation map shows where every open position on a Hyperliquid perp would be liquidated, by price, built from our own node's state snapshot and re-priced every minute.