Hyperliquid Calculator: Liquidation Price, Margin, Fees, Funding & PnL

↓ Result

Pick any Hyperliquid perp, set side, size, leverage and margin mode, and get the numbers Hyperliquid itself uses: initial margin, maintenance margin, the liquidation price from the official formula (with margin tiers), entry and exit fees, hourly funding and your net PnL and ROE. It works as a Hyperliquid liquidation calculator, margin calculator and PnL calculator in one. Example: a $10,000 BTC long at 10x isolated at $82,073 needs $999.98 of margin and liquidates at $74,800.7, 8.86% below entry.

Side
Size in

Whole number, 1–40x for BTC (Hyperliquid caps leverage per asset and size).

Margin mode

Cross only: the USDC equity backing your cross positions.

Fees and funding options

Your Hyperliquid position

Mark prices and funding: Hyperliquid API, Tue, 20 Oct 2026 03:53 UTC

Liquidation price

$74,800.7

8.86% below entry · triggered by the mark price

Net PnL at exit

+$487.76

Net ROE +48.78% on $999.98 margin · gross +$499.99

Initial margin

$999.98

10x isolated · max 40x at this size

Maintenance margin

$125.00

1.25% of notional (half the initial margin at 40x)

Fees (entry + exit)

$9.22

Entry $4.50 + exit $4.72 · tier 0

Funding

$3.00/day paid

0.00125%/hour · 24 h hold: $3.00 paid

With code HOLYGRAIL this trade's fees would be $8.86 instead of $9.22 (−4% on your first $25M of volume).

Join Hyperliquid with HOLYGRAIL →

BTC Long 10x isolated: liquidation $74,800.7 (−8.86%), margin $999.98, fees $9.22, net PnL +$487.76 at $86,176.7.

Full breakdown
Market
BTC-USD perp · mark $82,073 · max 40x
Position
0.12184 BTC = $9,999.77 notional (lot 0.00001)
Entry → exit
$82,073 → $86,176.7 (+5%)
Initial margin
$999.98 (10x)
Maintenance margin
$125.00 (1.25%)
Margin backing the position
$999.98 isolated margin
Liquidation price (mark)
$74,800.7 (8.86% below entry)
Liquidation after 24 h of funding
$74,825.6
Entry fee
$4.50 (0.045% taker)
Exit fee
$4.72 (0.045% taker)
Funding per hour
$0.12 paid
Funding per day
$3.00 paid
Funding over 24 h
$3.00 paid
Gross PnL
+$499.99
Net PnL (after fees and funding)
+$487.76
ROE on margin (price only / net)
+50% / +48.78%
Break-even exit price
$82,171.5
Minimum order
$9,999.77 ≥ $10 ✓

Open this position on Hyperliquid

Code HOLYGRAIL takes 4% off these fees: $8.86 instead of $9.22 for this trade, on your first $25M of volume.

Open Hyperliquid with HOLYGRAIL →

Hyperliquid stops accepting a code once an account passes $10,000 of volume, so join through the link before your first trade.

Disclosure: we earn a commission when you sign up through our links; it never raises your fees.

1. How the calculator works: Hyperliquid's formulas

Every number above follows Hyperliquid's own documentation (margining, margin tiers, liquidations, funding and fees), with each market's limits read from Hyperliquid's public API at build time. Nothing is a generic "exchange" approximation:

Initial margin = position size × mark price ÷ leverage
Maintenance margin = notional × MM rate − deduction; MM rate = 50% × (1 ÷ max leverage of the tier)
Liquidation price = price − side × margin_available ÷ size ÷ (1 − l × side)
margin_available = isolated margin (cross: account value) − maintenance margin; l = MM rate of the tier at the liquidation price
Fee per fill = notional × fee rate (tier) × (1 − referral discount)
Funding per hour = size × oracle price × hourly funding rate (positive: longs pay shorts)
Net PnL = side × (exit − entry) × size − entry fee − exit fee − funding; ROE = PnL ÷ initial margin

side
+1 long, −1 short
size
position size in coins (rounded to the lot)
price
entry / mark price
deduction
keeps maintenance margin continuous across tiers (0 in the first tier)
  • Leverage: per Hyperliquid's margining docs, leverage is any whole number from 1x to the asset's maximum, checked only when the position is opened. The maximum depends on the asset and, for large positions, on the margin tier the notional falls into, so the calculator caps it for you.
  • Maintenance margin is 50% of the initial margin at the tier's maximum leverage: 1.25% of notional for a 40x market, 5% at 10x, 16.67% at 3x. In higher tiers a deduction keeps the requirement continuous.
  • The liquidation price is solved with the tier that applies at the liquidation price, as the docs require, and it is a mark price level: Hyperliquid's mark blends its own book with external exchange prices (Binance (weight 3), OKX (2), Bybit (2), Gate (1) and MEXC (1)).
  • Funding is hourly; the calculator pre-fills each market's current rate from the snapshot and multiplies it by your notional and hold time. Funding you pay comes out of your margin, so the result also shows where the liquidation price will sit after the hold.
  • Size typed in USD is converted to coins and rounded down to the market's lot, because order sizes are rounded to the asset's size decimals (szDecimals).

2. Worked examples (same code as the calculator, prices of October 20, 2026)

Long BTC, isolated, 10x

$10,000 of BTC at $82,073 is 0.12184 BTC after rounding to the lot ($9,999.77 notional). At 10x the initial margin is $999.98 and the maintenance margin $125.00 (1.25%). The isolated liquidation price is $74,800.7, 8.86% below entry. Opening and closing with market orders at tier 0 costs $4.50 + $4.72; with HOLYGRAIL $8.86. Holding 24 hours at BTC's current funding of 0.00125% an hour costs $3.00. If BTC rises 5% to $86,176.7, gross PnL is $499.99 and net PnL $487.76, an ROE of 48.78% on the margin.

Short HYPE, isolated, 5x

HYPE allows at most 10x, so its maintenance margin is 5% of notional, 4 times BTC's. A $5,000 short at 5x from $79.39 posts $1,000.00 and liquidates at $90.7314 (14.29% above entry). Funding is 0.00125% an hour right now: the short receives $1.50 over 24 hours. A 5% drop to $75.4205 nets $247.11 after fees and funding.

Cross margin: the leverage setting does not move the liquidation price

A $50,000 BTC long backed by a $10,000 cross account liquidates at $66,489.4 whether the leverage is set to 10x or 25x: a cross-margin liquidation price does not depend on the leverage setting, while an isolated one does. The same position in isolated margin at 10x has only $4,999.97 behind it and liquidates at $74,800.7. Cross is safer for this position only because the whole account stands behind it, which is also why one bad cross position can take the account with it.

Whale size: the second margin tier

Above $150M of notional BTC drops to 20x maximum leverage. A $200,000,000 position is capped at 20x, its maintenance margin is 2.5% of notional minus a $1,875,000 deduction ($3,125,000 in total), and it liquidates at $79,179.4. Because it is worth more than 100,000 USDC at liquidation, Hyperliquid would first send only 20% of it to the book as a market liquidation order; for the next 30 seconds any further liquidation order is for the whole position.

Trade it on the deepest on-chain order book

Hyperliquid with HOLYGRAIL: 0.0432% taker / 0.0144% maker at tier 0, 4% off your first $25M of volume, isolated or cross margin on every perp.

Open Hyperliquid →

3. Liquidation distance by leverage (isolated, $10,000)

How far price can move against a fresh isolated position before it is liquidated, long / short, using each market's maximum leverage and maintenance margin (mark prices of October 20, 2026). A dash means the market does not allow that leverage.

LeverageBTC (max 40x)ETH (max 25x)SOL (max 20x)HYPE (max 10x)
2x−49.37% / +48.15%−48.98% / +47.06%−48.72% / +46.34%−47.37% / +42.86%
3x−32.49% / +31.69%−31.97% / +30.72%−31.62% / +30.08%−29.82% / +26.98%
5x−18.99% / +18.52%−18.37% / +17.65%−17.95% / +17.07%−15.79% / +14.29%
10x−8.86% / +8.64%−8.16% / +7.84%−7.69% / +7.32%−5.26% / +4.76%
20x−3.8% / +3.7%−3.06% / +2.94%−2.56% / +2.44%—
25x−2.78% / +2.72%−2.04% / +1.96%——
40x−1.27% / +1.23%———

The pattern: distance ≈ 1 ÷ leverage minus the maintenance rate. At an asset's maximum leverage a long liquidates when it has lost about half its margin, because maintenance is half the initial margin at that leverage. The smallest markets, such as VVV, allow only 3x, so even at their maximum the move to liquidation is wide.

4. The Hyperliquid rules this calculator applies

RuleHyperliquid (official)In the calculator
Max leverageSet per asset, 3x to 40x; on October 20, 2026: 1 at 40x, 1 at 25x, 2 at 20x, 30 at 10x, 56 at 5x, 88 at 3xMarket list with each max; leverage rounded down to a whole number and capped
Margin tiersBTC: 40x up to $150M, 20x above; ETH: 25x up to $100M, 15x above; SOL: 20x up to $70M, 10x above; XRP: 20x up to $40M, 10x above; 21 markets: 10x up to $20M, 5x above; 9 markets: 10x up to $3M, 5x aboveTier from the position's notional sets the cap; maintenance uses the tier rate and deduction
Maintenance margin50% of the initial margin at max leverage (1.25% to 16.67%)Applied per tier
LiquidationMark price; equity below maintenance margin; sent to the book as market orders; no clearance fee on liquidationsPrice shown is the mark-price trigger
Large positionsOver 100,000 USDC: only 20% is sent to the book first; for the next 30 seconds every liquidation order is for the whole position; backstop by the liquidator vault below two-thirds of maintenance marginNote shown when the position is that large at liquidation
FundingPaid every hour (interval: 1 hour), capped at 4%/hour; interest component 0.01% per 8 hours; funding is paid on position size × the spot oracle price, not the mark priceCurrent rate per market, or yours; per hour, per day, over the hold
FeesTier 0: 0.045% taker / 0.015% maker, down to 0.024% / 0% at tier 6; referral −4% on the first $25MTier and order type per fill; HOLYGRAIL toggle
Minimum order$10 of value; order sizes are rounded to the asset's size decimals (szDecimals)Checked; size rounded down to the lot
Removing marginAt least 10% of open notional must remainNot modelled (no withdrawals)

Markets, leverage caps, margin tables, lot sizes, mark prices and funding: Hyperliquid info API (metaAndAssetCtxs), Tue, 20 Oct 2026 03:53 UTC. Rules: Hyperliquid docs, read October 1, 2026 (sources below).

5. Isolated vs cross margin on Hyperliquid

Isolated margin puts only the position's own margin at risk: the liquidation price depends on the leverage you set, and you can add margin to push it away. Cross is Hyperliquid's default and shares your whole account value across cross positions, so the liquidation price depends on account value, not on the leverage slider, and unrealised profit on one cross position supports the others. If your account holds less than the initial margin, Hyperliquid's estimate assumes you top it up, and so does this calculator. The full comparison, including when each mode loses less in a crash, is in Hyperliquid cross vs isolated margin.

6. Limitations

  • An estimate, not trading advice. The liquidation price excludes trading fees (as the docs formula does) and assumes the cross account holds only this position.
  • Liquidation is triggered by the mark price, and funding is charged on the oracle price; the calculator uses your entry price for both at the start. Spread and slippage on the fills are not included.
  • Funding is held constant at the rate you see; real hourly rates change every hour.
  • Prices and funding are a build-time snapshot (Tue, 20 Oct 2026 03:53 UTC); use "Use live price" for the current mark. HIP-3 markets (builder-deployed perps) and unified or portfolio-margin accounts follow other rules and are not covered.

For the venue comparison (Lighter, Aster, edgeX), use the DEX liquidation price calculator; for where other traders' liquidations sit, the Hyperliquid liquidation map; for fee tiers and staking, Hyperliquid fees explained.

Sources (official pages behind every rule, with the date each figure was last verified in our facts registry)

FAQ

How is the liquidation price calculated on Hyperliquid?

Hyperliquid publishes the exact formula: liq_price = price − side × margin_available / position_size / (1 − l × side), where side is +1 for a long and −1 for a short, l is the maintenance margin rate of the margin tier at the liquidation price, and margin_available is the isolated margin (or, for cross, the account value) minus the maintenance margin. The maintenance margin is 50% of the initial margin at the asset's maximum leverage, so 1.25% of notional on BTC (max 40x). A 10x isolated BTC long therefore liquidates about 8.86% below entry, and liquidations are triggered by the mark price, not the last trade.

With 5x leverage and 100 USDC of margin, how big a position can I open?

A position of 500 USDC notional: notional = margin × leverage. Hyperliquid sets the margin required to open a position at size × mark price ÷ leverage, lets you choose any whole leverage from 1x up to the asset's maximum (40x on BTC, down to 3x on the smallest markets), and rejects orders under $10 of value. Very large positions fall into a lower-leverage tier: above $150M of BTC notional the maximum drops to 20x.

Can a 1x Bitcoin position be liquidated on Hyperliquid?

Not by price alone if it is an isolated long: its margin equals the full position value, so the formula gives a liquidation price at or below zero. Funding the long pays still comes out of that margin, though, so over a long hold the liquidation price rises above zero (the calculator shows it after your hold time). A 1x short can, because the price can rise without limit: on BTC an isolated 1x short liquidates about 97.53% above entry. In cross margin, every position shares the account value, so losses on other positions can still liquidate a low-leverage one.

How do I calculate PnL and ROE on Hyperliquid?

PnL = side × (exit price − entry price) × size, minus the fees on both fills (notional × fee rate) and the funding paid while the position was open. ROE is PnL divided by the initial margin, so the same price move gives 10 times the ROE at 10x. In the worked example, a $10,000 BTC long at 10x that exits 5% higher after 24 hours makes $499.99 gross and $487.76 net after $9.22 of taker fees and $3.00 of funding: a net ROE of 48.78%.

How much does funding cost per day on Hyperliquid?

Funding is paid every hour at one eighth of an 8-hour rate, capped at 4% an hour. In a quiet market the rate is the interest component of 0.01% per 8 hours (0.00125% an hour), which costs a long $3.00 a day on a $10,000 position. The calculator pre-fills each market's current hourly rate from Hyperliquid's API (BTC: 0.00125% an hour on October 20, 2026); positive rates are paid by longs to shorts, negative rates by shorts to longs.

Why does the Hyperliquid app show a different liquidation price?

The app uses the live mark price, your real account value and every other cross position, and it updates as funding is paid and fees are charged. Before you trade it estimates the fill from the current order book; after the fill it uses your actual entry. This calculator uses the entry price you type (or the snapshot mark), ignores fees in the liquidation price as the docs formula does, and assumes the cross account holds only this position. Enter your account value for cross positions to get close to the app.

Disclosure: HOLYGRAIL is our Hyperliquid referral code; we earn a share of referred accounts' fees at no extra cost to you. Rules were read from Hyperliquid's official documentation on October 1, 2026; market data comes from Hyperliquid's public API (Tue, 20 Oct 2026 03:53 UTC). The calculator is an estimate, not financial advice.