Risk units, not accounts
Liquidation does not evaluate your account. It evaluates a risk unit — a group of positions that share collateral and therefore rise or fall together.
The consequence people miss: liquidating one unit does not touch another. An isolated BTC position can be liquidated while your cross account, holding ETH and SOL, is untouched — and the reverse. Isolation is real, in both directions.
The margin ratio
Health is expressed as a maintenance margin ratio — how much of your available margin the maintenance requirement is currently consuming. Net collateral is your balance plus unrealized P&L, less what is reserved. Maintenance margin is the sum computed per position from its tier — see Leverage.
The boundary is worth stating exactly, because it is easy to assume otherwise: liquidation requires net collateral to fall strictly below the maintenance requirement. Equal is not liquidated.
A worked example
One account, two risk units, at a maintenance rate of 0.50%. Cross positions share collateral and are evaluated together; each isolated position is evaluated on its own.
Neither unit is close to liquidation, but they are not equally safe, and the account has no single ratio. The isolated position is three and a half times nearer its threshold, and adding collateral to the account does not help it — isolated margin is assigned at open and only adding margin to that position changes its ratio.
That is the practical difference between the two modes. Cross pools your collateral, so a gain anywhere offsets a loss elsewhere. Isolated confines both directions.
Maintenance requirements are tiered by position size. A larger position is harder to unwind without moving the market, so it carries a proportionally higher requirement and a lower maximum leverage. The tier table for each market is published in its contract specification.
When the check runs
Rather than scanning every account every block, the protocol checks what could have changed:- On every mark price update — a full scan, since a price move can put any position at risk
- On every block — accounts whose balance or positions changed since the last check: deposits, withdrawals, transfers, fills, and funding
- At funding settlement — every account that was charged
The sequence
When a risk unit crosses the threshold, the protocol works through a fixed sequence, stopping as soon as the unit is healthy again.Recover in place — stops as soon as the unit is healthy
Taken over — the loss moves outward
Net collateral falls strictly below the maintenance requirementEqual is not liquidated — the test is strict
1
Cancel every open order in the unitresting, conditional, take-profit, stop-loss
Reserved margin returns to the unit
2
Net off opposing positionshedge mode only
A long and a short in the same market cancel
3
Liquidation takes overthe position is closed against the order book
You no longer choose the exit price
4
Insurance fund absorbs the shortfallif closing did not cover the loss
Covered by the fund, not by the other side
5
Auto-deleveragingonly if the fund cannot cover it
Profitable opposing positions are reduced
What the protocol does
What it costs you
Steps 1 and 2 are attempts at self-recovery, and they are why an account can cross the threshold and come back without ever having a position closed by the protocol. They also explain why your resting orders can disappear during a sharp move: cancelling them is the first thing the protocol tries.
Reducing your odds
- Watch the ratio, not the price. Distance to liquidation is a function of margin, not of how far price has moved.
- Watch the ratio yourself. Nothing warns you and nothing stops you adding risk on the way up, so the margin you keep in reserve is the only buffer there is.
- Understand which unit is at risk. In mixed mode, the ratio that matters is the one for the unit holding the position you are worried about.
- Size for the tier. Crossing into a higher tier raises your maintenance requirement, which moves your liquidation price against you even if nothing else changed.
Reading the live values
Every figure on this page is on-chain per-market configuration, not a constant of the protocol. The parameters that drive it:
They are published in each contract specification and readable from the chain. An integration that hard-codes them will eventually compute a number the network is not applying — see Developers.
Where to go next
Auto-deleveraging
What happens when the insurance fund cannot absorb a shortfall.
Margin modes
How cross and isolated determine what forms a risk unit.
Add margin
Topping up an isolated position before it reaches the threshold.
Mark price
The price the margin ratio is evaluated against.