Skip to content

Trading9 min read

Isolated vs cross margin: how each works and when to use it

Isolated vs cross margin with worked numbers: how each mode handles losses, how Hyperliquid liquidates positions and how to choose for each trade.

, Founder of Hypr Markets

Published

On this page

Every leveraged position needs collateral behind it. The margin mode decides which collateral: only the amount you set aside for that trade, or everything in your account. That choice moves your liquidation price and decides how much a liquidation can take. Isolated vs cross margin is one of the first settings a perp trader meets.

This guide explains initial and maintenance margin, how each mode behaves when a position moves against you, and how Hyperliquid liquidates positions according to its documentation, with worked numbers. It is education, not financial advice. If perpetual futures are new to you, start with what Hyperliquid is and the glossary.

Initial margin and maintenance margin

Initial margin is the collateral needed to open a position. On Hyperliquid it is position size times mark price divided by the leverage you choose, and leverage is a whole number from 1 up to the asset's maximum (Margining). A $10,000 position at 10x needs $1,000.

Maintenance margin is the minimum equity a position must keep. Below it, liquidation starts. Hyperliquid sets it at half the initial margin at the asset's maximum leverage. Maximum leverage ranges from 3x to 40x depending on the asset, so maintenance margin ranges from 1.25% to 16.7% of position value (Liquidations).

Asset's max leverageMaintenance marginOn a $10,000 position
40x1.25%$125
25x2%$200
20x2.5%$250
10x5%$500
3x16.7%$1,667

Three details matter later. Leverage is checked only when a position opens; after that, keeping it safe is your job. Liquidations use the mark price, which combines prices from other large exchanges with Hyperliquid's own order book and can differ from the last trade in fast markets (Liquidations). And some assets lower their maximum leverage for very large positions: BTC allows 40x up to $150 million of position value and 20x above it (Margin tiers).

What cross margin means

Cross margin is Hyperliquid's default (Margining). All cross positions share one pool of collateral: your account value, including unrealized profit and loss. A cross position is liquidated when account value falls below the maintenance margin of all open cross positions combined.

Two consequences follow. Unrealized profit in one cross position can serve as margin for new positions. And Hyperliquid's docs state that the liquidation price of a cross position does not depend on the leverage you set: lower leverage only locks up more collateral. What matters is how large your positions are compared with your account. To reduce risk on a losing cross position, you close part of it or deposit more USDC.

What isolated margin means

Isolated margin puts a fixed amount of collateral behind one position. Only that margin and that position's value count toward its liquidation, and the docs state that liquidations in an isolated position do not affect other isolated or cross positions, and the reverse.

Here leverage does change the liquidation price, because leverage sets how much margin the position gets. You can add or remove margin after opening, and unrealized profit adds to that position's margin. Some assets are strict isolated: margin cannot be removed and is released only as the position closes.

Worked example: one $10,000 position at 10x in each mode

The prices below are examples chosen for round numbers, not forecasts. A trader has $5,000 USDC in the account. BTC is at $100,000. They open a long of 0.1 BTC, a $10,000 position, at 10x. BTC's maximum leverage is 40x, so maintenance margin is 1.25%, or $125 at entry.

Isolated. The position gets $1,000 of margin; the other $4,000 stays free. Hyperliquid's formula gives the liquidation price:

liq_price = price - side * margin_available / position_size / (1 - l * side)

Here side is 1 for a long, l is 1 / 80 = 0.0125, and margin_available is $1,000 minus $125 = $875. So the liquidation price is 100,000 minus 875 / 0.1 / 0.9875 = about $91,139, a fall of about 8.9%. If it is liquidated, the loss is capped at the $1,000 assigned to it, before fees: about $886 if the book closes it near that price, all $1,000 in a backstop. The other $4,000 is untouched.

Why 8.9% and not 10%? At 10x, a 10% fall would wipe out the margin. The position must keep 1.25% of its value as maintenance margin, so liquidation starts a little earlier.

Cross. All $5,000 backs the position, so margin_available is $5,000 minus $125 = $4,875. The liquidation price is 100,000 minus 4,875 / 0.1 / 0.9875 = about $50,633, a fall of about 49.4%. If BTC gets there, about $4,937 of the $5,000 is gone, and a backstop liquidation would take the rest.

IsolatedCross
Collateral at risk$1,000$5,000
Liquidation priceabout $91,139about $50,633
Fall before liquidationabout 8.9%about 49.4%
Loss if liquidated$886 to $1,000$4,937 to $5,000
Position size divided by collateral at risk10x2x

The leverage setting is 10x in both, but the cross trade behaves like 2x leverage on a $5,000 account. Two checks on the arithmetic: adding $500 to the isolated margin at entry moves its liquidation price to about $86,076, and with only $1,000 in the account, cross and isolated would liquidate at the same $91,139.

Worked example: two positions in one cross account

Same $5,000 account, two longs at 10x: $10,000 of BTC (0.1 BTC at $100,000, maintenance 1.25%) and $10,000 of ETH (2.5 ETH at $4,000; ETH's maximum leverage is 25x, so maintenance is 2%). Initial margin is $2,000 in total, so both fit. Maintenance margin is $125 plus $200 = $325.

At entry, BTC's liquidation price is about $52,658, a little higher than in the single-position example because ETH needs margin too.

Now ETH falls 20% to $3,200 and BTC does not move. The ETH position loses $2,000, account value drops to $3,000, and BTC's liquidation price jumps to about $72,506. BTC has not moved at all; the loss on ETH used up the collateral behind it.

If both fall together by the same percentage, the account is liquidated after a fall of about 23.8%, against 49.4% for BTC alone. In cross, positions that move together share one fate.

In isolated mode with $1,000 behind each, the same 20% ETH fall would have liquidated ETH near $3,673, for a loss of at most $1,000, and left BTC and the other $3,000 alone.

Isolated vs cross margin compared

Cross marginIsolated margin
Collateral behind a positionWhole cross balanceOnly the margin you assign
Most one liquidation can takeAll cross margin and cross positionsThat position and its margin
Room before liquidationMore, set by the whole accountLess, set by leverage
Other positionsTheir gains and losses countNo effect
Leverage setting moves liquidation priceNoYes
Reducing riskDeposit USDC or reduce positionsAdd margin or reduce the position
Unrealized profitMargin for new positionsMargin for that position

How liquidation works on Hyperliquid

The Liquidations page describes the steps:

  1. Trigger. Equity falls below maintenance margin, measured at mark price. In the isolated example above, that is when equity drops to about $114 at a BTC price of about $91,139.
  2. Order book first. Hyperliquid sends market orders for the full position to the book. For positions above 100,000 USDC, only 20% is sent at first, followed by a 30-second cooldown in which liquidation orders cover the whole position.
  3. You keep the remainder. If closing restores the maintenance margin, any remaining collateral stays with you. There is no clearance fee.
  4. Backstop. If equity falls below two thirds of maintenance margin without a successful book liquidation, the liquidator vault, part of HLP, takes over. In cross, all cross positions and cross margin go to it; with no isolated positions, the trader ends with zero equity. In isolated, only that position and its margin go. Maintenance margin is not returned.
  5. Last resort. If an account's value turns negative, auto-deleveraging closes positions of traders on the other side, ranked by profit and leverage, so the exchange carries no bad debt.

The docs suggest stop loss orders, or closing early, to avoid losing maintenance margin. A stop loss triggers at a price you choose and is a market order unless you set a limit price, so in fast markets the fill can be worse than the trigger. Liquidations can also cluster at similar prices; the liquidation heatmap explains how to read where.

How to choose between isolated and cross margin

Risk per trade

If you decide in advance how much one idea may cost, isolated margin enforces a ceiling. Still set a stop loss inside it: being liquidated is the most expensive way to exit, because a backstop keeps the maintenance margin.

Several positions at once

Cross margin lets one pool support several positions, but measure risk across the whole account: total position size divided by account value. If your positions tend to move together, the two-position example shows how quickly the room shrinks.

Hedges

When positions offset each other, such as a long in one asset and a short in a related one, cross margin lets the gain on one leg support the loss on the other. In isolated mode each leg stands alone. With the example prices, a $10,000 ETH short at 10x with $1,000 of isolated margin is liquidated near $4,314, a 7.8% rise, even if a BTC long in another isolated position gained about the same amount. Hedges are imperfect: related assets do not always move together.

The risks of leverage, stated plainly

Funding is paid every hour on Hyperliquid perps (Contract specifications) and changes your equity while you hold a position; funding rates explained covers how. Check your liquidation price after every change to a position, not only at entry.

Frequently asked questions

Is isolated or cross margin safer?

Neither is safer in every case. Isolated margin limits a liquidation to the margin you assigned, but that position is liquidated after a smaller move. Cross margin gives a position more room by using your whole balance, but a liquidation can take the entire cross balance.

What happens to my other positions when one is liquidated?

On Hyperliquid, liquidating an isolated position does not touch your cross positions or other isolated positions. A cross liquidation acts on the account's cross positions together, and a backstop liquidation in cross transfers all cross positions and cross margin to the liquidator vault.

Does leverage change the liquidation price in cross margin?

Not on Hyperliquid. Its docs state that a cross position's liquidation price is independent of the leverage set; lower leverage only uses more collateral. The liquidation price depends on account value and total position size. In isolated margin, leverage does change it.

What is maintenance margin on Hyperliquid?

It is the minimum equity a position must keep, set at half the initial margin at the asset's maximum leverage. That is between 1.25% for assets with 40x maximum leverage and 16.7% for assets with 3x. Below it, liquidation starts.

All articles