Skip to content

Perp liquidation price calculator for Hyperliquid, Aster and Lighter

Enter your entry price, position size and leverage, and see the price at which the venue closes your position.

Liquidation price calculator

Enter a position and see where it is liquidated. Results update as you type.

Side
Margin mode

Isolated margin is the position size divided by leverage.

Maintenance margin rule

Maintenance is half of the initial margin at max leverage: 1.25% at 40x, as on BTC.

Liquidation price
$91.14Below the entry price
Distance from entry
8.86%
Position loss at that price
$88.61
Margin behind the position
$100.00Can be lost in full if liquidated
Maintenance margin
$12.501.25% of the position

Ignores fees, funding, margin tiers and your other open positions. The venue also uses its mark price, so its own liquidation price can differ. Why the venue's number can differ

See a real liquidation price on the live BTC screen

How it is calculated

A venue closes a position when the money behind it falls to the maintenance margin. The calculator solves for the price where that happens, using the formula Hyperliquid publishes:

margin     = position / leverage        (isolated)  or  account value  (cross)
maintenance = position * rate
available  = margin - maintenance
coins      = position / entry
liq price  = entry - side * available / coins / (1 - rate * side)      side: long +1, short -1

On Hyperliquid the rate is half the initial margin at the market's max leverage: 1 / (2 x max leverage), so 1.25% on a 40x market such as BTC. For Aster, Lighter or any other venue, type the rate from its own table.

Example. A long at an entry of $100 with a $1,000 position at 10x on a 40x market. Margin is $100.00, maintenance is $12.50, so $87.50 is available over 10 coins. That is $8.75 per coin, divided by (1 - 0.0125), and the position is liquidated at $91.14, 8.86% below entry. The same short is liquidated at $108.64.

Not included. Margin tiers (a larger position at the liquidation price can fall into a bracket with a higher rate, which Aster publishes per notional bracket), your other cross positions and their profit or loss, funding paid before the price gets there, fees, and the gap between mark price and last price.

What changes the result

  • Leverage: more leverage means less margin, so the liquidation price sits closer to entry.
  • Isolated or cross: cross lets the whole account absorb the loss, so the price is usually further away, but a loss can reach more of your money.
  • The maintenance rate: a market with lower max leverage has a higher rate and is liquidated sooner.
  • Adding margin: it moves the price away from entry, as long as you add it before the move.
  • Funding and fees: they eat margin over time, so the real price drifts toward entry the longer you hold.

Frequently asked questions

Is this the same number the venue shows?
On Hyperliquid it is the venue's published formula, so it should be close for a single position. The venue uses its mark price and your real account, so treat this as an estimate and check the figure on the order screen before you rely on it.
How do I use it for Aster or Lighter?
Switch the maintenance margin rule to Own rate and type the rate from the venue's table for your market and size. The equation is the same, only the rate differs.
Does leverage change the liquidation price in cross margin?
No. In cross margin the whole account value backs the position, so the result depends on the account value and the position size, not on the leverage you picked.
Why is there sometimes no liquidation price?
A long backed by so much margin that the price would have to fall below zero cannot be liquidated by a price drop. The calculator then says None above $0.