Skip to main content
Trading Mechanics
Beginner·Trading Mechanics

Liquidation Explained: How and Why the Exchange Closes Your Position

Liquidation isn't a punishment, it's the exchange closing you to protect itself from your losses exceeding your collateral. Knowing exactly when and how it triggers is non-negotiable.

9 min readUpdated 2025-07-15

Liquidation is the moment an exchange force-closes your position because your remaining margin is no longer enough to cover potential further losses. It's the failure mode of leveraged trading and the single biggest reason new traders blow up. Understanding the mechanism not just the headline, is what separates traders who use leverage from traders who get used by it.

The basic mechanic

When you open a leveraged position, you post initial margin (your collateral). As the price moves against you, your margin shrinks in real time, every dollar of unrealized loss subtracts from your margin balance.

The exchange has a maintenance margin requirement, typically 0.5%- 1% of position size. When your margin drops to that level, the exchange auto-closes your position. The price at which this happens is your liquidation price.

The exchange does this for one reason: to make sure your losses don't exceed your collateral. If they let you keep the position open past that point, a sharp move could leave you owing the exchange money, which they'd have to recover (good luck) or eat (worse).

What the liquidation price actually depends on

For a long perpetual position, roughly:

liquidation_price ≈ entry_price × (1 − (1 / leverage) + maintenance_margin)

The intuition: at leverage L, your margin is 1/L of the position. You can lose almost all of that margin before maintenance kicks in. So you can withstand roughly a 1/L adverse move before liquidation. For 10x, that's ~10%; for 25x, ~4%; for 100x, ~1%.

Three things that move your liquidation price:

  1. Adding margin moves it further away (safer).
  2. Reducing leverage (closing part of the position) moves it further away.
  3. Cross-margin gains on other positions add to the buffer for all cross positions; isolated positions don't share collateral.

The exchange shows your liquidation price in the position panel. Look at it. Always. It's the single most important number on the screen when you're in a leveraged trade.

Mark price, not last price

Liquidations don't trigger on the price your perp last traded at. They trigger on the mark price, a smoothed, exchange-computed reference usually based on a composite index of major spot venues.

This matters because the perp's order book on a single exchange can spike or crash temporarily during fast moves, a thin book getting hit hard, an order error, a single whale. If liquidations triggered on the last trade price, those wicks would liquidate everyone unfairly. Mark prices are designed to filter that noise out.

In practice this means:

  • Your liquidation price quoted in the UI is in mark price terms.
  • The chart you stare at is usually last price.
  • During fast moves, last can wick well past mark, your liquidation may or may not trigger depending on whether the index (not just this exchange's book) moved with it.

You don't need to memorize the formulas. You do need to know that the chart line is not the line that liquidates you.

The fee on top

Most exchanges charge a liquidation fee on top of the loss, typically 0.5% of position size, deducted from your remaining margin (which by definition is nearly zero by the time liquidation triggers). The fee goes to the exchange's insurance fund, which absorbs losses when liquidations can't be filled at fair prices.

Effectively this means your "real" liquidation price is slightly worse than the formula suggests, and your remaining margin after liquidation is usually zero or near-zero, not just whatever was left after the adverse move.

Cascading liquidations

The dangerous case is when many traders are clustered at similar leverage and similar entries. A single adverse move triggers the first wave of liquidations. Those forced sells push the price further in the same direction, triggering the next wave, and so on. This is a liquidation cascade, and it's why crypto sometimes moves 5-10% in ten minutes for no apparent news reason.

You can see cascades coming on liquidation heatmaps (e.g., Coinglass) which show the dollar volume of leveraged positions clustered at each price level. Big clusters above current price = a fuel pile waiting for an upward move; clusters below = a downward fuel pile. Smart traders don't necessarily fade or chase these, but they understand that a move into a cluster has a different character than a move into thin air.

Auto-deleveraging (ADL)

If a liquidation can't be filled in the order book at a price the insurance fund can absorb, some exchanges trigger ADL, they force-close the most aggressive winning positions on the other side to socialize the loss. This is rare on top-tier exchanges in normal conditions and not-rare during flash crashes.

The practical implication: even if you're winning, very high leverage can get you ADL'd out of a profitable trade through no fault of your own. Top-of-the-list ADL priority goes to the most-leveraged, most-profitable positions on the opposite side of a liquidation cascade. Reducing leverage as profits grow is one defense.

A common mistake: setting stops outside the liquidation price

Set your stop-loss at, say, $66,000 on a long with a $65,500 liquidation price. Adverse move comes, the chart hits $65,500, you get liquidated, and then your $66,000 stop... wait, $66,000 is above $65,500, so the stop fires first. Good.

Now reverse: stop at $65,000, liquidation at $65,500. Price drops to $65,300 → you get liquidated at $65,500 first, eating the liquidation fee and zeroing out your margin. Your stop never fires because there's no position left.

The rule: your stop must always be inside (closer to entry than) your liquidation price, with comfortable margin. If you can't achieve that, your leverage is too high for the stop you want, lower leverage, not move the stop.

A common mistake: ignoring funding-driven liquidation drift

Funding payments come out of your margin. Pay 0.1% of notional in funding, your margin drops by 0.1% of notional. Stay in a position across many funding intervals on the wrong side of skewed funding, and your liquidation price slowly creeps closer even if the price hasn't moved. People hold "winning" trades across a weekend and find themselves liquidated Monday morning despite the chart looking unchanged. The funding silently ate the buffer.

Mental model, liquidation as the bouncer with a stopwatch

The exchange is a bouncer. They let you in (open the position) on a deposit (margin). The deal: you can stay as long as your deposit covers the worst case at any moment. The bouncer watches a single number, your remaining margin against the maintenance line. The moment that number crosses the line, you're physically removed. No appeal, no warning beyond what they showed you on the position panel the entire time.

The bouncer isn't your enemy. They're protecting the room from being left holding your tab. But if you didn't internalize that the line exists and where it is, the eviction will feel sudden.

Why this matters for trading

Hex37 surfaces the liquidation price live as you size and leverage, mirrors real exchange mechanics including isolated vs cross margin, and exposes a liquidation event channel so paper-trading liquidations feel like the real thing. Use that environment to internalize the discipline of looking at the liquidation price every time you adjust size or leverage.

Takeaway

Liquidation is the exchange closing your position when your margin crosses the maintenance line. It triggers on mark price, not the chart price. It's amplified by leverage (thin buffer), funding (slow margin drain), and clusters (cascade risk). Your stop must sit inside your liquidation price with room to spare; if it can't, your leverage is too high for the trade. Learn this on paper, not on a real liquidation.

Related chapters

All chapters