Hyperliquid liquidation price: the formula and how to calculate it
How to calculate a Hyperliquid liquidation price with the formula from its docs, worked examples for isolated and cross margin, and what moves it.
9 min read
Free calculator
A Hyperliquid liquidation price is the price at which a position's equity falls to its maintenance margin, which is half the initial margin at the asset's maximum leverage. Hyperliquid's formula is liq_price = price - side × margin_available / position_size / (1 - l × side). A $10,000 isolated ETH long at $4,000 and 10x, on a 25x asset, liquidates at about $3,673.47, a fall of 8.2%. Enter your own position below.
Estimated liquidation
$3,673.47
A 8.16% fall from entry
Ignores fees, funding and margin tiers for very large positions. An estimate, not a guarantee.
The calculator uses the formula on Hyperliquid's Liquidations page. Side is 1 for a long and -1 for a short, position size is in coins, and l is 1 divided by the maintenance leverage, which is twice the asset's maximum leverage. In isolated margin, margin_available is the margin on the position minus its maintenance margin; in cross margin it is the account value minus the maintenance margin of every cross position.
It is the same formula our trading terminal uses for the estimate on its order ticket. It ignores trading fees, funding paid while the position is open and margin tiers for very large positions, so treat the result as an estimate and check the number on your exchange screen after every change.
In cross margin, Hyperliquid's docs state that the liquidation price does not depend on the leverage you set. What counts is the account value behind the position against the position's size, so the cross mode here asks for account value instead of leverage. Lower leverage only locks up more collateral. The trade-off is that a cross liquidation can take the whole cross balance, while an isolated one is limited to the margin on that position.
Adding margin, depositing USDC to a cross account or closing part of the position moves the liquidation price away from the market. Paying funding, losses on other cross positions and withdrawals move it closer. A stop loss placed before the liquidation price means liquidation is never the planned exit.
How to calculate a Hyperliquid liquidation price with the formula from its docs, worked examples for isolated and cross margin, and what moves it.
9 min read
Isolated vs cross margin with worked numbers: how each mode handles losses, how Hyperliquid liquidates positions and how to choose for each trade.
9 min read
What a liquidation heatmap shows, how it is estimated from open positions, how traders read clusters and cascades, and the misreadings to avoid.
9 min read