Hyperliquid liquidation price calculator
Liquidation price for a Hyperliquid perpetual, worked out the way Hyperliquid documents it: live maximum leverage and margin tiers, cross or isolated margin, and the drift from hourly funding.
What this Hyperliquid calculator does
Hyperliquid closes a perpetual position when its equity falls below the maintenance margin. This calculator finds the mark price where that happens, using the rules Hyperliquid publishes: maintenance margin is half of the initial margin at the asset’s maximum leverage, larger positions move into margin tiers with a lower maximum leverage, and liquidation is checked against the mark price, not the last trade.
When the page loads it asks Hyperliquid’s public information API for the list of perpetual markets, each market’s maximum leverage, its margin tiers, the current mark price and the hourly funding rate. Nothing about you is sent. If that request fails, the calculator falls back to a few preset coins and you type the mark price and maximum leverage you see in the app.
The liquidation price formula
Hyperliquid’s documentation gives one formula for both margin modes:
liq_price = price − side × margin_available ÷ position_size ÷ (1 − l × side)
- side is +1 for a long and −1 for a short.
- l is 1 ÷ maintenance leverage. Maintenance leverage is twice the maximum leverage, so a 40× market has l = 1.25%, a 20× market 2.5% and a 10× market 5%.
- margin_available is isolated margin minus maintenance margin in isolated mode, or account value minus maintenance margin in cross mode.
- position_size is in coins, not dollars.
For a coin with margin tiers, maintenance margin is notional × tier rate − tier deduction, and the tier depends on the position value at the liquidation price. The calculator therefore solves for the price where equity equals maintenance margin instead of plugging one rate into the formula. For a single-tier market the two give the same answer.
Worked example: BTC long, isolated and cross
A long of $10,000 notional on BTC at 100,000 is 0.1 BTC. Take a maximum leverage of 40×, so the maintenance rate is 1.25%.
- Entry 100,000. 0.1 BTC, $10,000 of exposure.
- Isolated 10×: 91,139.24. $1,000 of margin minus $125 maintenance leaves $875 of room, an 8.86% fall.
- Cross with $2,000: 81,012.66. The whole account backs the position, so the room is $1,875, an 18.99% fall.
- A 5% dip. Both survive it. Cross survives more, but it can also lose the whole account.
On the real screen: The calculator above uses Hyperliquid’s formula; switch the margin mode to compare.
Good habitDecide how much of the account a single position may consume before choosing cross.
Common mistakeThinking cross margin is safer without noticing what it puts at risk.
| Step | Isolated at 10× | Cross, $2,000 account |
|---|---|---|
| Margin behind the position | 10,000 ÷ 10 = $1,000 | $2,000 account value |
| Maintenance margin at entry | 10,000 × 1.25% = $125 | $125 |
| Margin available | 1,000 − 125 = $875 | 2,000 − 125 = $1,875 |
| Liquidation price | 100,000 − 875 ÷ 0.1 ÷ 0.9875 = 91,139.24 | 100,000 − 1,875 ÷ 0.1 ÷ 0.9875 = 81,012.66 |
| Fall from entry | 8.86% | 18.99% |
The cross position survives a deeper fall only because more money stands behind it. If the $2,000 also supports other positions, their maintenance margin comes off first; type it in the “other cross positions” box and the liquidation price moves closer.
Cross or isolated: what changes the answer
- Isolated: the leverage you pick sets the margin locked to the position, so leverage decides the liquidation price. Adding margin later moves it further away. A loss can never take more than that isolated margin.
- Cross: the leverage setting does not change the liquidation price on its own; your account value and the maintenance of every open position do. A loss can take the whole account.
- Size: in a single tier, doubling an isolated position at the same leverage does not move the liquidation price, because the margin doubles too. In cross, doubling the size with the same account moves it closer.
How funding moves the liquidation price
Hyperliquid settles funding every hour. When the rate is positive, longs pay shorts. Each payment comes out of the position’s margin, so a long that pays funding for days has a liquidation price that creeps up even if the market does not move. The “after hours of funding” tile shows that drift at the current rate. A rate of 0.00125% an hour on $10,000 is $3 a day; at 0.01% an hour it is $24 a day, which is 2.4% of a $1,000 isolated margin every day.
Finding a safe leverage or size
Type a price your position must survive, for example the level under a recent swing low. In isolated mode the calculator finds the highest leverage whose liquidation price stays beyond it. In cross mode it finds the largest notional your account value can carry. These are limits, not targets; a stop-loss placed before the liquidation price keeps the remaining margin instead of handing it to the liquidation process.
Hyperliquid oracle price, CEX sources and the mark price
Hyperliquid does not liquidate on the last trade alone. Its documentation splits the job between an oracle price and a mark price, and both update about every three seconds.
The oracle is a weighted median of spot prices from centralised exchanges (CEX). The published weights are Binance 3, OKX 2, Bybit 2, Kraken 1, KuCoin 1, Gate.io 1, MEXC 1 and Hyperliquid spot 1. Each validator submits a price, and the clearinghouse uses the stake-weighted median of those submissions. Funding is calculated from the oracle price.
The mark price is the median of three inputs: the oracle plus a 150-second moving average of the gap between Hyperliquid’s mid price and the oracle; the median of Hyperliquid’s best bid, best ask and last trade; and a weighted median of perpetual mid prices on Binance, OKX, Bybit, Gate.io and MEXC, with weights 3, 2, 2, 1 and 1. Margin, liquidations, stop and take-profit triggers and unrealised P&L all use the mark price, which is why this calculator asks for it.
This page turns the size and margin you type into a liquidation price. It is not a feed of other traders’ Hyperliquid liquidation data. The venue list and weights are Hyperliquid’s published method and can change; the links under Sources show the current version.
What the calculator leaves out
Does Hyperliquid do full or partial liquidation?
The estimated liquidation price is the mark-price threshold where equity reaches maintenance margin. The amount closed depends on the exchange’s execution rules. Hyperliquid documents that a liquidatable position above 100,000 USDC can start with a 20% order. Later liquidation orders can cover the entire remaining position during the documented cooldown. Check the liquidation rules and your position history for what was actually closed.
- Trading fees on the closing order and any liquidation-related fee.
- Partial liquidations and auto-deleveraging, which Hyperliquid can use on large positions or in fast markets.
- Mark-price spikes: the mark can briefly touch a level the last-traded price never prints.
- Changes to maximum leverage or margin tiers after you open; reload the page to fetch the current values.
Using the formula in Excel or Google Sheets
For a single-tier market, with entry in B1, leverage in B2, maximum leverage in B3 and side (1 or −1) in B4, the isolated liquidation price is:
=B1*(1-B4/B2)/(1-B4/(2*B3))
Check it against the worked example: 100,000, 10, 40 and 1 give 91,139.24. For cross margin or tiered sizes use the calculator, or download the price ladder as CSV and open it in your spreadsheet.
A note for readers in India
Hyperliquid is a decentralised exchange and is not registered with SEBI or the Financial Intelligence Unit. TradeProfy does not show a Hyperliquid link and this page is not a suggestion to use it. If you do hold crypto, gains on virtual digital assets are taxed at 30% plus cess in India, losses cannot be set off against other income, and 1% TDS can apply on transfers; see the crypto tax calculator.
Questions people ask
Does Hyperliquid liquidate on the last price or the mark price?
On the mark price, which Hyperliquid builds from external exchange prices and its own order book. Type the mark price from the app in the “mark price now” box to see how close you are.
Why does higher leverage bring the liquidation price closer in isolated mode?
Because the margin behind the position is notional ÷ leverage. At 20× there is half the margin of 10×, but the maintenance margin is the same, so there is half as much room before equity reaches it.
Is the result the same as the number in the Hyperliquid app?
It should be close for the same inputs. Differences usually come from a different mark price, unrealised profit in cross mode, funding already paid, or a margin tier change. Treat the app as final.
How is this different from the general crypto liquidation calculator?
The crypto liquidation calculator uses a maintenance percentage you type and suits most exchanges. This page reads Hyperliquid’s own maximum leverage and margin tiers and models cross margin and hourly funding.
How do I work out the average entry after adding to a position?
Multiply each fill’s price by its size, add the results and divide by the total size. For example, 0.5 BTC at 60,000 and 0.5 BTC at 56,000 gives an average entry of 58,000. For more fills, use the average price calculator, then type the average as the entry price here with the combined size. Adding to a position moves the liquidation price, so recalculate after every fill.
Funding while the position is open
Funding is paid every hour on Hyperliquid and comes out of the margin behind the position. The Hyperliquid funding rate calculator turns the hourly rate or the premium index into dollars per hour and per holding period. At the baseline 0.00125% an hour, a $10,000 long pays about $3 a day.
Related tools
- Crypto liquidation calculator (any exchange)
- Funding rate calculator
- Derivatives terminal: live funding and open interest
- Position size calculator
- Crypto exchange fee calculator
Sources
- Hyperliquid docs: Liquidations — liquidation price formula, margin available, mark price (checked 11 November 2026).
- Hyperliquid docs: Margin tiers — maintenance rate and deduction per tier (checked 11 November 2026).
- Hyperliquid docs: Robust price indices — how the mark price is built (checked 15 November 2026).
- Hyperliquid docs: Oracle — spot sources and weights (checked 15 November 2026).
- Income Tax Department of India — tax on virtual digital assets (checked 11 November 2026).
