We keep saying “leveraged” — now let’s make it exact. Leverage is the lever that makes perps thrilling and lethal in equal measure, and it leads directly to the most important number a perp trader watches: the liquidation price, the level at which the engine forcibly closes you out. This lesson derives that price from first principles, distinguishes the two margin modes, and opens up the keeper-bot machinery that enforces it.
Before you read — take a guess
What does leverage actually mean for a perp position?
Leverage: a small lever moving a big weight
Analogy. Leverage is a crowbar. A short crowbar (low leverage) moves a small rock with a forgiving margin for error. A long crowbar (high leverage) moves a boulder with the same effort — but the tip whips violently, and a tiny slip at your hand becomes a huge swing at the rock. The longer the lever, the more you move per unit of effort, and the less room you have before it slips out of control.
Definition. Leverage is the ratio of your position’s notional to the margin backing it:
Equivalently, your margin is a fraction of the notional. At 10×, you back $10,000 of exposure with $1,000 of collateral; your margin is 10% of notional.
Why it cuts both ways. Your PnL is measured on the notional, but your survival is measured on the margin. A 1% adverse move on a $10,000 notional is a $100 loss — which is 10% of your $1,000 margin. So a price move of becomes a margin move of . Crank leverage to 50× and a mere 2% adverse move wipes out your entire margin. This is the seed of the liquidation price.
You open a 20× long with $500 of margin. The price moves 1% in your favor. What is the gain on your margin?
Initial margin, maintenance margin, and the liquidation price
Two margin thresholds govern a position:
- Initial margin — the collateral required to open the position. At 10× leverage, initial margin is 10% of notional. It sets your maximum leverage.
- Maintenance margin — the minimum equity you must keep, as a fraction of notional, to keep the position open. It’s smaller than initial margin (e.g. 0.5%). When your equity falls to the maintenance margin, you’re liquidated.
The liquidation price, derived. Your position equity is margin + unrealized PnL. For a long with entry price , notional (in asset units , so ), and margin , the equity at price is
Liquidation triggers when equity falls to the maintenance requirement (maintenance fraction of current notional). Setting equity equal to that and solving for the liquidation price :
For a quick, accurate-enough approximation, ignore the tiny term against and note . The price has to fall by about
before you’re liquidated. In words: a long is liquidated after an adverse move of roughly (1 ÷ leverage − maintenance fraction). A short is the mirror image — liquidated after an adverse move up of the same size.
The headline rule of thumb
For a long: liquidation move ≈ 1/leverage − maintenance margin. At 10× with 0.5% maintenance, that’s 1/10 − 0.005 = 9.5% — price can fall ~9.5% before you’re closed. At 100× it’s 1/100 − 0.005 = 0.5% — a half-percent wick ends you. Higher leverage doesn’t just amplify PnL; it shrinks the survivable distance to nearly nothing.
Think first
Two traders both go long BTC at $30,000. Alice uses 4× leverage, Bob uses 25×. Roughly how far can price fall before each is liquidated (ignore the small maintenance term)?
Hint: Liquidation move ≈ 1/leverage. Convert each to a percentage, then to a price.
Worked example: the full liquidation arithmetic
Let’s nail every digit. You go long 1 BTC perp at $30,000, posting $3,000 margin (so leverage = 30,000 / 3,000 = 10×). Maintenance margin is 0.5% of notional.
Step 1 — the survivable move. Liquidation move ≈ 1/lev − m = 1/10 − 0.005 = 0.10 − 0.005 = 0.095 = 9.5%.
Step 2 — the liquidation price. Price must fall 9.5% from $30,000:
So if BTC’s mark touches roughly $27,150, the engine liquidates the long.
Step 3 — sanity check via equity. At $27,150, the loss is 1 × (30,000 − 27,150) = $2,850. Equity = margin − loss = 3,000 − 2,850 = $150. Maintenance requirement = 0.5% × notional ≈ 0.005 × 27,150 ≈ $136. Equity ($150) has fallen to roughly the maintenance floor ($136) — confirming the trigger is right around there.
Step 4 — the bankruptcy price. Keep falling to where equity hits zero: that’s the bankruptcy price, 30,000 − 3,000 = $27,000. The gap between liquidation ($27,150) and bankruptcy ($27,000) is the engine’s working room — the cushion it needs to actually close the position before equity goes negative. If it can’t close in that window, the position goes bankrupt and the insurance fund (next lesson) eats the shortfall.
Drag the meter below: set 10× and you’ll see a liquidation around $27,150 with a ~9.5% buffer; push leverage toward 100× and watch the buffer collapse to a fraction of a percent.
- Position size
- $5,000
- Liquidation price
- $24,150
- Move to liquidation
- 19.50%
Entry $30,000, $1,000 margin, 0.5% maintenance. At low leverage the liquidation price sits far below entry and the survivable buffer is wide. Crank leverage up and the buffer — 1/leverage minus maintenance — collapses toward zero, so an ordinary wick liquidates you. Flip to short to mirror everything upward.
A long is opened at $30,000 with 10× leverage and 0.5% maintenance margin. The approximate liquidation price is:
Fill in the leverage and liquidation mechanics.
Pick the right option for each blank, then check.
Leverage equals notional divided by . A position's PnL is measured on the , so a 1% price move at 10× is a swing on collateral. A long is liquidated after an adverse move of roughly , and the price is where equity hits exactly zero — the engine must close the position in the gap between liquidation and that price.
Isolated vs cross margin: how far a loss can reach
A crucial risk choice: which collateral backs the position?
- Isolated margin. Only the margin you assigned to this position is at risk. If it’s liquidated, you lose that margin and nothing else — the blast radius is contained. Great for ring-fencing a degenerate high-leverage punt.
- Cross margin. Your entire account balance backs the position. That gives a much wider buffer (the liquidation price is far further away, because all your equity defends it), but a single bad position can drain your whole account. It’s more capital-efficient and survives deeper drawdowns, at the cost of correlated blow-up risk.
Analogy. Isolated margin is putting $200 of chips on one table and leaving your wallet in the hotel safe — you can only lose the $200. Cross margin is dumping your whole wallet on the table — you can ride out a bad streak that would have busted the $200 stake, but a catastrophic hand can take everything.
The cross-margin trap people learn the hard way
A common misconception: “cross margin is safer because the liquidation price is further away.” The liquidation price is further away, yes — but only because your whole account is now on the line. The downside is that one position’s liquidation can cascade into your other positions, since they all share the same collateral pool. Isolated caps the damage; cross maximizes survival and maximizes contagion. Neither is universally “safer” — they trade containment against buffer.
A trader runs three positions under one cross-margin account. One position blows up badly. What is the distinctive risk of cross margin here?
The liquidation engine: keepers, partial liquidation, and the close
When the mark price hits your liquidation level, who actually closes you, and how? In DeFi, there’s no broker to call — the work is done by a liquidation engine plus a swarm of keeper bots.
- Keepers / liquidator bots. Permissionless actors who monitor every open position. The instant a position’s mark crosses its liquidation threshold, they race to submit the liquidation transaction. Their incentive is a liquidation fee or penalty carved out of the position’s remaining margin (and on-chain, this is a flavor of the liquidation MEV you may have met in the MEV course — landing the liquidation first is worth money).
- Partial vs full liquidation. A good engine doesn’t always nuke the whole position. Partial liquidation closes just enough of the position to restore the maintenance buffer, leaving the trader with a smaller, healthy position rather than wiping them out — gentler, and it reduces market impact. Full liquidation closes everything, used when the position is too far gone or too small to partially unwind.
- The bankruptcy / insurance handoff. The engine tries to close the position in the window between the liquidation price and the bankruptcy price. If the market is moving too fast (a gap or a thin book) and it closes below bankruptcy, the position has gone negative — and the shortfall is covered by the insurance fund, the subject of the next lesson.
Why the maintenance margin exists at all: it’s the engine’s head start. By triggering liquidation while you still have a sliver of equity (not at zero), the engine gives keepers time and price room to actually execute the close before your loss becomes the protocol’s loss. The maintenance margin is the buffer that protects everyone else from your blow-up.
Why do perp protocols trigger liquidation at the maintenance margin, while the trader still has a little equity left, instead of waiting until equity hits zero?
Big picture
Leverage and liquidation — the whole mechanism
- Leverage & liquidation
- Leverage
- leverage = notional / margin
- PnL on notional → amplified on margin
- High lev → tiny survivable move
- The liquidation price
- Move ≈ 1/leverage − maintenance
- Maintenance < initial margin
- Bankruptcy price = equity hits 0
- Margin mode
- Isolated → contained blast radius
- Cross → wider buffer, contagion risk
- The engine
- Keeper bots race to liquidate
- Partial vs full liquidation
- Shortfall → insurance fund
- Leverage
Recap: leverage and liquidation
Leverage is defined as:
Check your answer to continue.
You can now compute a liquidation price in your head and explain who pulls the trigger. But we left a dangling thread: what happens when the engine can’t close in time and a position goes negative? That shortfall has to land somewhere. Next: the insurance fund that absorbs bad debt, and auto-deleveraging (ADL) — the last-resort mechanism that socializes losses onto the most-profitable traders when even the insurance fund runs dry.