OFFCODE
Sign inCreate account

How liquidation actually works on perpetuals — and why a price your chart never printed can still close you out

Liquidation is the most feared and least understood event in perpetual trading. It is not the exchange punishing you — it is a mechanical, rule-based process. Here is what triggers it, why it can fire at a price you never saw, and what the insurance fund and auto-deleveraging really do.

28/06/2026 · 8 min de leitura · perpetuals · liquidation · risk-management · leverage · dex

Liquidation is not a penalty — it is arithmetic

The word liquidation sounds like punishment, as if a desk decided to teach you a lesson. It is the opposite. Liquidation is the single most mechanical event in perpetual trading: a rule, written in advance, that fires the instant a defined number crosses a defined line. No human is watching your position. A program checks one inequality, position by position, many times a second, and acts when it flips.

Almost every painful liquidation story is really about a trader who did not know which number was being watched. Name that number and see the line it must not cross, and liquidation stops being random cruelty and becomes something you can measure, anticipate, and usually avoid. This post is about that number and that line.

Margin and the line: maintenance margin

When you open a leveraged perpetual you post collateral, called margin. On a venue where perpetuals are margined in USDC, that collateral is a stablecoin balance set aside to absorb the position losses. As the market moves against you, unrealized losses are subtracted from your margin, and the engine asks one question continuously: does the remaining margin still cover the minimum the position needs to stay open?

That minimum is the maintenance margin — a small fraction of the position value that must always stay backed. Your initial margin is the cushion you start with; the maintenance margin is the floor you cannot fall through. The liquidation price is simply the market price at which losses eat the cushion down to that floor. It is not invented by the platform; it follows directly from your size, leverage, and collateral, and it is knowable the moment you open the trade.

This is why higher leverage feels more dangerous: it does not change the rules, it shortens the runway. A larger position against the same collateral puts the maintenance floor closer to your entry, so a smaller adverse move reaches it. The mechanism is identical at every leverage level — only the distance to the line changes.

Why you got liquidated at a price your chart never printed

A disorienting experience is being liquidated at a level you swear the market never touched: the wick stops short of your liquidation price, yet the position is gone. The usual culprit is the gap between the last traded price and the mark price.

The last price is just the most recent trade on one venue, and it can wick on thin liquidity or a single large order. If liquidations triggered off that, an unrepresentative spike could wipe out solvent positions. So serious systems liquidate against a mark price: a smoothed valuation anchored to an index of external spot markets and the funding basis, built to reflect fair value rather than one venue noise.

The candle you are staring at shows the last price, while the engine watched the mark the whole time. The mark can sit above or below the last during fast moves — which is exactly why a position closes at a level your chart appears never to have reached. It is not a glitch; it is the protection that stops one bad print from liquidating everyone, working as designed.

When liquidation is not enough: the insurance fund and ADL

Ideally a position closes just before margin runs out. But in a violent move — a gap, a cascade of liquidations feeding on each other — it can close at a price worse than its liquidation price, leaving a shortfall. Someone must absorb that gap, because the winning side is still owed its profit in full.

The first backstop is the insurance fund: a reserve built from liquidations that closed better than expected, which pays the difference when one closes worse. In normal conditions it quietly nets out. Its job is to keep the system whole so profitable traders get paid even when a counterparty blew through their margin.

When even that cannot cover an extreme cascade, the last resort is auto-deleveraging (ADL): the system closes part of opposing positions — usually the most profitable, highest-leverage ones — at the bankruptcy price to settle the shortfall. ADL is rare and unwelcome, but it is transparent and rule-based, and it lets a venue guarantee the other side gets paid without socializing losses in the dark.

On-chain and in the open: liquidation on a DEX

On a custodial, centralized venue every step happens inside a private system. You are told the liquidation price, the mark, the insurance fund balance, the ADL queue — and you take the platform word for each. When something goes wrong in a chaotic moment, you cannot independently check whether the engine followed its own rules.

On a global decentralized exchange the difference is structural: positions, margin, the mark price feed, liquidations, and the insurance fund live on-chain, where anyone can inspect them. The same arithmetic runs, but in public. You do not have to ask whether a liquidation was fair — you can look at the settlement and see the rule that fired and the price it fired at. This is verify, do not trust, applied to the moment when trust is hardest.

It does not make liquidation pleasant or leverage safe. What changes is who gets to audit the event. In an opaque system the liquidation engine is a black box you hope is honest; in an open one it is a public process you can check — the accountability a decade of exchange failures showed was missing.

How to keep your distance from the line

If the liquidation price is knowable from the start, the whole game is managing your distance from it. Traders who rarely get liquidated share a few unexotic habits: they size positions so the liquidation price sits well outside the range they expect the market to travel, and they treat added margin and reduced size as levers they pull before trouble, not during the panic.

Two structural choices matter as much as size. Cross versus isolated margin: in isolated mode only the margin assigned to a position is at risk, capping the damage of one bad trade; in cross mode your whole balance backs it, pushing the line further away but putting everything on the table. And the humble stop-loss: an exit you choose, at a price you choose, instead of the one the engine chooses at the maintenance floor.

None of this is financial advice, and none of it makes leverage low-risk — leverage amplifies losses as readily as gains, and markets move faster than any plan. The point is narrower: liquidation is not fate and not punishment. It is a line you can see from the start, and your distance from it is one of the few things in trading you actually control.

← Todos os artigos