Skip to main content
Liquidation is what happens when an account no longer has enough margin to support its open risk. Cross-margin positions share one account, so eligible collateral, unrealized PnL, borrowing, open positions, and open orders are evaluated together. A profitable position can help support a losing one, but a large loss can also put the whole cross account at risk. Isolated positions are handled separately. Liquidation uses mark prices, which can differ from the book price during high volatility. Notional does not liquidate an account while a mark or collateral price it needs is unavailable; it waits until pricing is ready.

Portfolio Margin Ratio

Portfolio Margin Ratio (PMR) measures how close your account is to liquidation. Lower is healthier. Liquidation starts when PMR is 0.95 (95%) or higher. PMR=max⁡(Rbase, DK)Rbase={max⁡(Ma+M, Ua+U)M>0max⁡(Ua+U, max⁡Tmax⁡(0, qT−aT)qT)M=0a=L,aT=qT+LpT\begin{aligned} \mathrm{PMR} &= \max\left(R_{\text{base}},\ \frac{D}{K}\right) \\ R_{\text{base}} &= \begin{cases} \max\left(\frac{M}{a+M},\ \frac{U}{a+U}\right) & M > 0 \\ \max\left(\frac{U}{a+U},\ \max_T \frac{\max(0,\ q_T-a_T)}{q_T}\right) & M = 0 \end{cases} \\ a &= L, \qquad a_T = q_T + \frac{L}{p_T} \end{aligned} L=cash+unrealized profit/loss+∑TqT pT λT−R−H−M−DU=R+max⁡(0, F−S)K=ℓ⋅max⁡(0, min⁡(recoverable, collateral−M))\begin{aligned} L &= \text{cash} + \text{unrealized profit/loss} \\ &\qquad + \sum_T q_T\,p_T\,\lambda_T - R - H - M - D \\ U &= R + \max(0,\ F - S) \\ K &= \ell \cdot \max\big(0,\ \min(\text{recoverable},\ \text{collateral} - M)\big) \end{aligned}
  • MM: maintenance margin for cross positions.
  • aa, aTa_T: available cash in USD, and available balance of token TT.
  • TT: collateral tokens other than USDC with qT>0q_T > 0. qTq_T is the balance after Polymarket holds; pTp_T is the price in USD; λT\lambda_T is the fraction counted for liquidation, 0.5+0.5×max LTV0.5 + 0.5 \times \text{max LTV} (75% for UBTC, ETH and HYPE).
  • HH: spot-order reserves after collateral value adjustments.
  • FF: borrowing for positions and open orders. RR: realized losses and charges still owed.
  • SS: eligible stablecoin collateral value after discounts and Polymarket holds.
  • DD: pUSD financing debt in USD.
  • collateral\text{collateral}: account value after discounts, full spot-order reserves, and RR; before DD.
  • recoverable\text{recoverable}: collateral that can be converted to repay financing, after discounts.
  • ℓ\ell: maximum financing debt as a fraction of collateral before liquidation.
PMR can rise above 100% once an account is past its maintenance requirement. A leg whose denominator is zero or negative has no counted equity left and reads as unbounded; reported values are capped at 100 (10,000%). For example, a cross account holds only cash, has no borrowing, has $500 of account value including unrealized PnL, and has $100 of maintenance margin. Its PMR is $100 ÷ $500 = 20%. If losses reduce account value to about $105.26 while maintenance margin stays at $100, PMR reaches 95% and liquidation starts. The account info endpoint and the accountSummary WebSocket channel report the line that applies to an account as liquidationEntryRatio. If PMR cannot be computed for an account, Notional judges it on the cross-margin ratio (cross maintenance margin ÷ collateral value) instead, with liquidation at 1.0 and full liquidation at 1.5, and reports that ratio’s line. An action that would put PMR at or above the entry line is refused: withdrawals, transfers out, perp orders and modifications that add risk (checked as if they filled at the worst price your slippage or limit allows, with fees), Polymarket buys and splits, and spot sells or modifications that would raise PMR. Withdrawals already pending wait at release while PMR is at or above the line. Closing or reducing positions and adding collateral are never blocked.

What Happens During Liquidation

The account is frozen during liquidation. User orders and withdrawals are blocked, but system liquidation orders can still execute. Active TWAPs are canceled so new suborders do not continue while the account is frozen.

Partial Liquidations

Notional starts with partial liquidation, which tries to bring PMR back below 90% while preserving as much value as possible.

Full Liquidation

Notional fully liquidates the account if its cross account value is zero or negative, if PMR reaches 120% or higher, or if partial liquidation cannot restore health, for example when no positions remain but PMR is still 90% or higher. Full liquidation cancels active orders, closes all positions, and sells non-USDC collateral until liabilities are covered or no recoverable account value remains. Full liquidation uses gradual execution to reduce market impact: Collateral sales are only automatic for collateral with a Hyperliquid spot market against USDC. Other collateral is handled manually while liquidation continues for the rest of the account.

Isolated Positions

Isolated positions, including HIP-3, are liquidated separately. Hyperliquid liquidates an isolated position when its isolated margin falls below the market’s maintenance requirement. It first sends market orders to the book, and any margin left after the close stays with you. If equity falls below 2/3 of the maintenance requirement, Hyperliquid’s backstop liquidator takes over the position and its isolated margin, and that margin is not returned. The result affects only that position’s isolated margin. See Hyperliquid’s liquidations page.

Computing Liquidation Price

Liquidation prices are estimates. Notional uses the same formula as Hyperliquid: liq price=mark price−side⋅margin available∣size∣⋅(1−l⋅side)\text{liq price} = \text{mark price} - \frac{\text{side} \cdot \text{margin available}}{|\text{size}| \cdot (1 - l \cdot \text{side})}
  • side\text{side}: 1 for a long, -1 for a short.
  • ll: the maintenance margin rate, 1/(2⋅max leverage)1 / (2 \cdot \text{max leverage}). Cross positions use the max leverage on Protocol Caps. Isolated positions use Hyperliquid’s max leverage for the market.
  • margin available\text{margin available} on a cross position: collateral value including unrealized PnL, minus cross maintenance margin.
  • margin available\text{margin available} on an isolated position: isolated margin including unrealized PnL, minus that position’s maintenance margin.
A cross position’s liquidation price does not depend on the leverage you select, because lower leverage only uses more collateral. An isolated position’s does, because leverage sets how much margin it holds. On a cross position, this is the mark price at which the account’s maintenance margin would equal its collateral value, with everything else unchanged. Liquidation starts at a PMR of 95%, so it can begin before the mark reaches this estimate. The actual trigger can also differ because PMR counts borrowing and collateral liquidation thresholds, and because funding, fees, interest, collateral prices, other positions, and open orders change account health.

What Moves Liquidation Risk

Your liquidation risk can change even if you do not place a new order.