Skip to content

Free calculator

Hyperliquid liquidation price 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.

Side

Margin mode

$
$

Value of the position at entry

x

Margin is the position size divided by this

Sets the maintenance margin (half the initial margin at this leverage)

Estimated liquidation

$3,673.47

A 8.16% fall from entry

Position size in coins
2.5
Margin on the position
$1,000.00
Maintenance margin2% of the position
$200.00

Ignores fees, funding and margin tiers for very large positions. An estimate, not a guarantee.

How is the liquidation price calculated?

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.

Why does leverage not change a cross margin liquidation price?

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.

What moves a liquidation price after you open?

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.

Frequently asked questions

What is the maintenance margin on Hyperliquid?
Maintenance margin is half the initial margin at the asset's maximum leverage: 1.25% for a 40x asset, 2% for a 25x asset, 5% for a 10x asset and 16.7% for a 3x asset. A position is liquidated when its equity falls to that amount.
Does this calculator include fees and funding?
No. Like Hyperliquid's own formula, it ignores trading fees and funding payments. Both reduce the margin behind a position over time, so the real liquidation price can drift closer to the market than the estimate.
Can a long position have no liquidation price?
Yes. An isolated long at 1x has no positive liquidation price, because the margin covers the whole position, and a cross long with enough account value behind it can be in the same position. The calculator says so instead of showing a number.
Why is my exchange showing a different liquidation price?
Fees already paid, funding, unrealized profit or loss on other cross positions and margin tiers for large positions all change the result. The exchange also uses the mark price, not your entry price, once the position is open.

Read the full guides