Sub topic 6
Isolated versus cross margin
This chapter assumes you know what initial margin, maintenance margin and a liquidation price are, and that you can read short Python functions. Here you will see how the choice of margin mode changes which collateral backs a position, where the liquidation price lands, and how far a loss can spread.
What a margin mode decides
A margin mode answers one question: when a position loses money, which of your funds can the exchange use to cover the loss?
- Isolated margin assigns a fixed amount of collateral to each position. The loss on that position is limited to the assigned margin, and the rest of your account balance is untouched.
- Cross margin backs all positions with the whole account balance. Profit on one position supports losses on another, and any loss can draw on every dollar in the account.
Both modes use the same maintenance rule. A position is liquidated when its equity falls to the maintenance requirement. The modes differ in what counts as "its equity."
| Property | Isolated | Cross |
|---|---|---|
| Collateral behind a position | Only the margin assigned to it | The whole account balance, including other positions' profit |
| Worst-case loss per position | The assigned margin (plus rare shortfalls) | The entire account |
| Liquidation price for the same size and leverage | Closer to entry | Farther from entry, if spare balance exists |
| Effect of one bad position on others | None | Drains shared collateral |
| Typical management effort | Manual top-ups | Little, but you must watch total account equity |
Exact behavior varies by exchange. Some exchanges offer extras such as portfolio margin, which nets the risk of offsetting positions, so check the documentation of the venue you use.
Isolated margin in detail
When you open an isolated position at 10x leverage, the exchange locks the initial margin, which is position value divided by leverage. That margin is the only collateral the position can lose. If the price reaches the liquidation price, the exchange closes the position and you lose the margin. Your other balance stays in your account.
This gives you a hard budget. If you decide a trade is worth risking 100 USDT, an isolated position with 100 USDT of margin enforces that limit.
Two details matter:
- Adding margin moves the liquidation price. Most exchanges let you add margin to an isolated position by hand. More collateral gives a larger buffer, so the liquidation price moves away from entry. Some exchanges also offer automatic top-ups from the free balance. Enabling that feature turns the position into something close to cross margin for that one trade.
- Leverage choice still sets the starting buffer. With isolated margin, higher leverage means less margin and a liquidation price closer to entry, exactly as in the liquidation price chapter.
Cross margin in detail
In cross mode, the exchange computes one account equity figure:
account equity = wallet balance + sum of unrealized profit and loss across all positions
It compares that figure to the sum of the maintenance requirements of all positions. Liquidation starts when equity falls to that total. Because the whole balance is available, the same position needs a much larger price move to be liquidated, as long as spare balance exists.
Cross margin has two effects that look opposite:
- Fewer forced exits. A temporary adverse move in one position can be absorbed by balance or by profit elsewhere. A trader running a hedge, such as a long in one asset and a short in a correlated one, avoids liquidation caused by one leg moving ahead of the other.
- Contagion. A position that keeps falling can consume the entire account, including funds you thought of as savings. The loss is capped only by your deposit, so a single leveraged position held with no stop can wipe out a trader who has no other funds on the exchange.
Computing the liquidation price in each mode
For a single linear long with size q units, entry E, collateral C and maintenance rate m, liquidation happens when:
C + q(P − E) = m·q·P
Solving gives P = (qE − C) / (q(1 − m)). For a short, the equation is C + q(E − P) = m·q·P, which gives P = (qE + C) / (q(1 + m)).
In isolated mode, C is the assigned margin. In cross mode, C is the wallet balance available to this position. The next program evaluates both modes.
def liquidation_price(entry, size, collateral, maintenance_rate, side):
"""Liquidation price of one linear position.
collateral is the isolated margin, or the whole wallet balance in cross mode
when this is the only open position. Fees and funding are ignored.
"""
notional = entry * size
if side == "long":
return max(0.0, (notional - collateral) / (size * (1 - maintenance_rate)))
if side == "short":
return (notional + collateral) / (size * (1 + maintenance_rate))
raise ValueError("side must be long or short")
entry, size, m = 100.0, 10.0, 0.005 # notional 1000, so 10x leverage needs 100 margin
isolated_margin = 100.0
wallet = 300.0
for side in ("long", "short"):
iso = liquidation_price(entry, size, isolated_margin, m, side)
cross = liquidation_price(entry, size, wallet, m, side)
print(side, "isolated:", round(iso, 2), "cross:", round(cross, 2))
# long isolated: 90.45 cross: 70.35
# short isolated: 109.45 cross: 129.35The isolated results match the formula from the liquidation price chapter. Cross margin with a 300 USDT wallet pushes the long's liquidation price from 90.45 down to 70.35. The effective leverage of the account is about 3.3x (1000 notional on 300 of equity), even though the position was opened as "10x".
Two positions: protection and contagion
The single-position case hides the main difference. Suppose you hold two longs. Position A is 10 units at 100. Position B is 5 units at 200. Each has a notional value of 1000 and 100 USDT of margin at 10x. Your wallet holds 300 USDT in total. Now B falls 12%, from 200 to 176, while A stays flat.
MAINTENANCE = 0.005
positions = {"A": (10, 100), "B": (5, 200)} # name -> (signed size, entry price)
isolated_margin = {"A": 100, "B": 100}
wallet = 300
def isolated_status(positions, margins, prices, m=MAINTENANCE):
result = {}
for name, (size, entry) in positions.items():
equity = margins[name] + size * (prices[name] - entry)
maintenance = m * abs(size) * prices[name]
result[name] = "liquidated" if equity <= maintenance else "safe"
return result
def cross_status(positions, wallet, prices, m=MAINTENANCE):
equity = wallet + sum(size * (prices[n] - entry) for n, (size, entry) in positions.items())
maintenance = m * sum(abs(size) * prices[n] for n, (size, _) in positions.items())
return ("liquidated" if equity <= maintenance else "safe"), equity
prices = {"A": 100, "B": 176}
print(isolated_status(positions, isolated_margin, prices))
print(cross_status(positions, wallet, prices))
# {'A': 'safe', 'B': 'liquidated'}
# ('safe', 180)Under isolated margin, B loses its 100 USDT and is closed, while A keeps its margin and the 100 USDT of unallocated balance stays in your wallet. Under cross margin, nothing is liquidated: equity is 180, far above the roughly 9.4 USDT maintenance requirement. B's loss is paid from the shared balance, and you are still holding a losing position.
The cross result is better only if B recovers or you act. If B and A both keep falling, the same shared balance covers both losses until the whole 300 USDT is gone. Under isolated margin, the most you could lose across both positions is 200 USDT.
Choosing a mode
Pick the mode from the shape of the trade and your tolerance for shared risk, not from habit.
- Use isolated margin for speculative, high-leverage trades where you want a fixed maximum loss, for trading several unrelated ideas at once, and when you keep long-term holdings on the same exchange.
- Use cross margin for hedged or paired positions whose profits and losses offset, for low-leverage positions with large buffers, and when you can monitor total equity and add funds quickly.
Common errors:
- Assuming cross is safer. It delays liquidation of one position by exposing the whole account. A low displayed liquidation price may reflect a very large unprotected loss.
- Forgetting that isolated positions can still be wiped out fast. A 20x isolated long is liquidated after a move of about 5% against it. Isolation limits the amount lost, not the speed.
- Switching modes with open positions. Many exchanges restrict or recalculate this, and the liquidation price can change immediately.
- Counting unrealized profit as safe collateral. In cross mode, profit on one position supports others only while it lasts. If that position reverses, the support disappears just when you need it.
- Ignoring fees and funding. The formulas here leave them out. In practice, funding payments and fees reduce equity over time, so real liquidation prices sit slightly closer to the market than the formulas suggest.
Exercise
You hold one long of 5 units, entry price 200 (notional 1000), maintenance rate 1%. Compute the liquidation price (a) in isolated mode with 5x leverage, and (b) in cross mode with a 400 USDT wallet and no other positions. Which is farther from entry, and what does the difference mean?
Show answer
Use P = (qE − C) / (q(1 − m)). With q = 5, E = 200, qE = 1000, and 1 − m = 0.99, the denominator is 5 × 0.99 = 4.95. (a) At 5x leverage the isolated margin is 1000 / 5 = 200, so P = (1000 − 200) / 4.95 ≈ 161.62. (b) In cross mode C = 400, so P = (1000 − 400) / 4.95 ≈ 121.21. The cross liquidation price is farther from entry (about 39% below entry versus about 19% below). The extra distance exists only because 200 more USDT of wallet balance backs the position. That money is at risk too, so the larger buffer comes with a larger possible loss.