How liquidation price is calculated on Hyperliquid
By Chain Almanac. Published 26 November 2026. Data updated 26 Nov 2026, 18:05 UTC.
A $10,000 BTC long at 10x opened at the current price of $60,517 is liquidated at $55,155, a fall of 8.86%. It is less than the 10% the leverage suggests, because Hyperliquid closes the position while some margin is still left.
The formula
Hyperliquid's documentation gives the liquidation price as:
liq_price = price − side × margin_available / position_size / (1 − l × side)
sideis 1 for a long and −1 for a short.lis 1 divided by the maintenance leverage. Maintenance margin is half of the initial margin at the market's maximum leverage, so maintenance leverage is twice the maximum leverage.margin_availableis the margin behind the position minus the maintenance margin it requires. With isolated margin that is the margin you assigned to the position; with cross margin it is your whole account value.
The example, step by step
- BTC allows up to 40x, so maintenance leverage is 80x and
lis 0.01250. - Margin posted at 10x: $1,000.00. Maintenance margin: $125.00. Margin available: $875.00.
- Long: $60,517 minus the available margin per coin, divided by 0.9875, gives $55,155.
- The same position short is liquidated at $65,747, a rise of 8.64%.
Maintenance margin depends on the market
A market with a lower maximum leverage has a higher maintenance margin, so the same position at the same leverage is liquidated sooner there.
| Max leverage | Maintenance margin | Fall that liquidates a 5x long | Markets |
|---|---|---|---|
| 40x | 1.25% | 18.99% | BTC |
| 25x | 2.00% | 18.37% | ETH |
| 20x | 2.50% | 17.95% | SOL, XRP |
| 10x | 5.00% | 15.79% | HYPE, ZEC, NEAR, PUMP, AAVE, ENA and 21 more |
| 5x | 10.00% | 11.11% | LIT, XMR, ZRO, MON, STRK, TAO and 12 more |
| 3x | 16.67% | n/a | VVV, GRASS, AERO, PURR, CASHCAT, MEGA and 5 more |
Source: Hyperliquid info API, maximum leverage per market. Measured 26 Nov 2026, 18:05 UTC. The 60 markets with the most open interest. Where the maximum is below 5x, a 5x position cannot be opened.
What happens at the liquidation price
- Hyperliquid compares your margin with the requirement using its mark price, which blends prices from other exchanges with its own order book.
- When the account falls below maintenance margin, the position is closed with market orders on the order book. Whatever margin is left after that stays yours.
- A position worth more than 100,000 USDC is closed in parts: 20% goes to the book first, and after a 30-second cooldown the rest can follow.
- If the account drops below two-thirds of maintenance margin before the book has closed it, the liquidator vault takes the position over. In that case the maintenance margin is not returned.
What moves the price after you open
Adding margin to an isolated position pushes the liquidation price away; funding payments and fees pull it closer if you are paying them. On markets with margin tiers, a larger position falls into a tier with a higher maintenance margin. Try your own numbers in the liquidation price calculator.