Hyperliquid Calculator

Hyperliquid Liquidation Calculator

Compute the liquidation price for any Hyperliquid perp position. Enter side, entry price, leverage, and margin mode — the calculator returns the liquidation level and the percentage cushion to it, using HL's standard isolated-margin formula.

By Keel Research Team · Updated May 12, 2026
Inputs

The asset label is informational — math depends only on entry, leverage, and side.

Side
Margin mode

Leave blank to use HL tier-1 default (½ × initial margin). Override for deeper position-size tiers or different markets.

Result
Liquidation price (long)
$47,500
Cushion to liquidation
5.00%

The BTC long liquidates when price moves 5.00% down from entry.

Inputs used
Asset · BTC
Side · long
Leverage · 10x
Maintenance margin · 5.000%
How it works

Methodology

Hyperliquid liquidates an isolated perpetual position when mark-to-market loss eats through the available margin minus the maintenance-margin reserve. Mathematically, for a long position the liquidation price is entry × (1 − 1/L + mmr); for a short, it’s entry × (1 + 1/L − mmr). L is leverage; mmr is the maintenance-margin fraction.

HL’s default tier-1 maintenance margin is half the initial margin — i.e. mmr = 0.5 / L. The calculator uses this default unless you override the maintenance-margin field. Larger positions can fall into deeper tiers with a higher mmr, which raises the liquidation price toward your entry — check HL’s per-market margin-tier table for precision on size-sensitive positions.

Cushion percentage is the price move (down for a long, up for a short) that exhausts the position. Use it to sanity-check leverage against expected volatility: a 5% cushion against an asset that swings 8% intraday is a setup designed to liquidate.

Automate it

Run this strategy on Keel

Keel is a Strategy OS for AI-assisted systematic trading on Hyperliquid. Build, backtest, and run live strategies with realistic fees, slippage, and funding modeled. Free to start — connect a Hyperliquid wallet when you’re ready to go live.

What you can do
  • Backtest any strategy with realistic fees, slippage, and funding modeled.
  • Optimize across parameter grids — Sharpe, drawdown, hit rate.
  • Deploy live to Hyperliquid with stop-loss + position limits.
  • Iterate with AI — describe a thesis, get a tradeable pipeline.
FAQ

Calculator questions

How is the liquidation price calculated on Hyperliquid?

Hyperliquid liquidates an isolated position when the mark-to-market loss equals the available margin minus the maintenance-margin requirement. The formula reduces to: long liq = entry × (1 − 1/L + mmr), short liq = entry × (1 + 1/L − mmr), where L is leverage and mmr is the maintenance-margin fraction. This calculator defaults to mmr = ½ × (1/L), Hyperliquid’s tier-1 default.

What is maintenance margin, and what should I use here?

Maintenance margin is the minimum equity Hyperliquid requires you to hold against a position before liquidating. The default in this calculator is half the initial margin, which matches HL’s tier-1 perps. Larger position sizes can fall into deeper tiers with higher maintenance-margin fractions — override the field if you need a precise number from HL’s margin-tier table.

Why is my liquidation price different at higher leverage?

Higher leverage means a smaller move against you exhausts your margin. At 10x leverage the cushion is roughly 5% of entry; at 20x it’s ~2.5%; at 50x ~1%. This calculator surfaces both the absolute price and the cushion percentage so you can size leverage relative to expected volatility.

Does this calculator handle cross-margin?

It computes the isolated-equivalent liquidation. Under cross-margin, liquidation depends on your entire account equity, not just this position — losses on other positions can push this one toward liquidation earlier than the isolated number suggests. Use the isolated price as a floor, then keep margin headroom across the account.

How can I trade Hyperliquid perps with automatic stop-loss handling?

Build a strategy in Keel that includes explicit stop-loss orders sized relative to liquidation distance. The Keel execution engine places stops automatically on every fill and re-prices them on position changes — meaningfully tighter risk control than relying on the liquidation engine.