Learn · Guide

How liquidation works on crypto perps — and how to avoid it

Liquidation is the forced close that wipes your margin when the market moves against a leveraged position. Here is exactly how it triggers and how to stay clear of it.

Liquidation is not a market crash. It is a mechanism, and it works the same way every time. When you open a leveraged position on a perpetual futures contract, the exchange holds your margin as collateral. If the market moves against you far enough that your remaining margin can no longer cover the minimum required to keep the position open, the exchange closes you out — immediately, without asking. The result is the loss of your entire posted margin for that position.

Understanding the exact price at which this happens is not optional risk management. It is the first thing you should calculate before entering any leveraged trade.

Why exchanges force-close positions

Exchanges do not liquidate you out of spite. They do it because they are counterparties to your trade and they cannot allow your loss to exceed your collateral. If they let losing positions run below zero margin, the exchange — or its insurance fund — absorbs the deficit. Major exchanges maintain insurance funds for exactly this reason, but those funds are finite. The liquidation system is what keeps them from being depleted.

The threshold is the maintenance margin: the minimum margin ratio required to keep a position open. If your effective margin falls below maintenance margin, liquidation is triggered. On Binance perpetuals for BTC, the maintenance margin rate for positions up to 50,000 USDT notional is 0.5%. For positions between 50,000 and 250,000 USDT, it steps up to 0.65%. This tiered structure means your liquidation price is not a fixed distance from entry — it depends on how large your position is relative to the tier brackets.

Mark price, not last price

This distinction trips up nearly every new participant in perp markets. Your position is liquidated based on the mark price, not the last traded price.

The mark price is a composite index: typically a weighted average of the spot prices across several major exchanges, smoothed with a funding basis component. It is designed to resist manipulation. An exchange cannot liquidate millions of dollars of positions just because someone prints a single large sale on its own order book — the mark price ignores that noise.

In practice, mark price and last price stay within a few basis points of each other during normal conditions. But in volatile moments — a sudden 8% candle, a cascade liquidation event — last price can spike far below mark price on the downside (or above, on the upside). If you are watching your position's unrealized PnL using last price as the reference, you may see a liquidation trigger that seems premature. The engine is not wrong; you were watching the wrong number. Always monitor mark price.

The liquidation price formula

For an isolated long position, the liquidation price approximation is:

liq = entry x (1 - 1/leverage + mmr)

Where mmr is the maintenance margin rate expressed as a decimal. This is the price at which your margin is exactly equal to the maintenance margin requirement — the threshold that triggers the forced close.

Let us run through three concrete examples using a 1 BTC position entered at $60,000, with a 0.5% maintenance margin rate (mmr = 0.005):

5x leverage — initial margin is 20% of notional ($12,000 on a $60,000 position): liq = 60,000 x (1 - 1/5 + 0.005) = 60,000 x 0.805 = $48,300 Price needs to fall 19.5% from entry before liquidation.

10x leverage — initial margin is 10% ($6,000): liq = 60,000 x (1 - 1/10 + 0.005) = 60,000 x 0.905 = $54,300 A 9.5% move against you triggers the close.

25x leverage — initial margin is 4% ($2,400): liq = 60,000 x (1 - 1/25 + 0.005) = 60,000 x 0.965 = $57,900 Less than a 3.5% adverse move and your position is gone.

At 25x, the gap between your entry and your liquidation price is smaller than the average daily range of BTC on a calm day. One ordinary 4% retracement wipes the position.

Isolated margin vs cross margin

How you post collateral has a direct effect on liquidation risk. With isolated margin, only the margin explicitly allocated to that position is at risk. If it liquidates, you lose that margin and nothing else. With cross margin, the exchange draws on your entire account balance to prevent liquidation — which can save a position that would otherwise be closed, but it also means a single bad trade can drain your whole account.

For strategy testing and controlled risk, isolated margin is almost always the right choice. It enforces a hard loss limit per position by construction. Cross margin is appropriate when you are running a delta-neutral or hedged book where positions naturally offset each other and you do not want isolated liquidation events to disrupt the hedge.

How funding bleed pulls liquidation closer

Funding rate payments come out of your margin balance in perpetual futures. If you are long during a period of positive funding — meaning longs pay shorts — each 8-hour settlement reduces your effective margin. On a $60,000 BTC position at 10x with 0.03% funding per interval, you pay $60,000 x 0.0003 = $18 every 8 hours, or $54 per day. Over 30 days that is $1,620 drained from your $6,000 initial margin — 27% of your collateral gone to funding alone.

The liquidation price formula shows the consequence: as your effective margin shrinks, the price at which your remaining margin equals the maintenance requirement creeps upward (for a long). A position you opened with a 9.5% buffer to liquidation may have only a 6% buffer two weeks later if funding has been persistently elevated.

In Quantle's backtest engine, funding is modeled per-interval and deducted from margin at each settlement timestamp. This is the only way to accurately estimate how close a leveraged position gets to its liquidation price over a holding period.

Practical strategies for avoiding liquidation

Use lower leverage than you think you need. The highest-probability path to survival in leveraged crypto trading is operating at 3x to 5x for trend strategies and 1x to 2x for carry or mean-reversion strategies. The extra return from higher leverage rarely compensates for the liquidation risk it introduces.

Place real stop-losses above the liquidation price. A stop-loss at your maximum acceptable loss — say, 5% of position notional — guarantees you exit with partial capital intact. Liquidation takes everything. The two outcomes are not equivalent. A stop at 5% drawdown and a take-profit at 10% gives you a 1:2 risk-reward and a recoverable loss if you are wrong.

Monitor your margin ratio actively. Most exchanges display a margin ratio or liquidation risk indicator on the position panel. A margin ratio under 200% (meaning your margin is less than twice the maintenance requirement) is a warning zone. Under 150% and you should either add margin or reduce position size.

Account for funding in your position sizing. Use the position-sizing tools built for leveraged perp strategies, not the same calculators you would use for spot. The cost of carry matters. At 0.03% per 8-hour interval, annual funding cost on a perpetually-long BTC position is approximately 32.85%. That is not a rounding error.

Partial liquidation and auto-deleveraging

Most major exchanges implement partial liquidation before a full close. When your margin ratio approaches the liquidation threshold, the exchange first reduces your position size — say, closing 25% of the position — to bring your margin ratio back above maintenance. This only happens if the insurance fund has capacity. If it does not, or if the price is moving too fast, a full liquidation follows immediately.

Auto-deleveraging (ADL) is the last resort. When the insurance fund is exhausted and the liquidated position cannot be closed at a price better than bankruptcy price, the exchange automatically deleverages opposing profitable positions — i.e., counterparties who are winning get their positions partially reduced at the liquidation price, whether they like it or not. ADL events are rare on liquid markets but happen during extreme cascade events. It is one more reason to keep leverage conservative and not assume your profitable position will fully realize during a volatile squeeze.

Summary

Liquidation is deterministic. You can calculate exactly where it triggers before you open a trade. Use the formula, model the funding bleed over your expected holding period, place a stop above the liquidation level, and size the position so that the stop represents an acceptable loss — not the liquidation itself. The Quantle backtest engine tracks all of this per-split and flags any scenario where the simulated position approaches the mark-price liquidation threshold, so you can see the risk before you deploy capital.