A common misconception: when a position gets liquidated, the margin is assumed to be completely gone. In reality, there's usually still a small buffer of a few tenths of a percent between the liquidation price and the point where truly nothing is left — and understanding that gap explains a lot about how exchanges actually manage risk.

Two different prices

The liquidation price is the point where your margin hits the maintenance margin threshold — the exchange begins force-closing your position here. The bankruptcy price sits further from entry: it's the theoretical point where your margin would be exactly zero, the absolute worst case with nothing recoverable.

Between the two lies exactly the amount of maintenance margin (assuming no other fees). That gap is what pays for the liquidation clearance fee some exchanges charge when force-closing a position, and it's also the buffer that protects against slippage during the forced close itself.

Why this buffer exists

Maintenance margin is deliberately sized not just to absorb the trigger itself, but to leave enough room to close the position in a controlled way and cover any associated fees — before the account actually goes negative. Without this buffer, every liquidation would risk leaving the trader owing the exchange money, which creates a much harder collections and risk-management problem than simply losing the deposited margin.

A worked example

Take a long position with a 0.65% maintenance margin rate. At the moment of liquidation, roughly 0.65% of the position's notional value in margin is still present — that's not "zero," it's the threshold itself. If the closing fee for that liquidation comes to, say, 0.4% of notional, there's still a small residual amount that could theoretically be returned to the trader. If the fee were instead 1.25% of notional — higher than the remaining maintenance margin — the buffer isn't enough to fully cover it, and the shortfall is absorbed by the exchange's insurance fund rather than by the trader going into negative balance.

This is also why maintenance margin rates and clearance fees aren't independent numbers picked in isolation — exchanges size them together, at least roughly, so that the buffer covers the typical cost of closing a position under normal market conditions.

The insurance fund and ADL

Only in extremely fast market moves (flash crashes, thin liquidity, a sudden large liquidation cascading into more liquidations) can actual execution be meaningfully worse than the calculated liquidation price. In that case, the exchange's insurance fund — a pool built up largely from the leftover margin of liquidations that closed with room to spare — steps in to cover the difference, rather than the trader's account going negative or the exchange failing to pay the profitable counterparty in full.

If the insurance fund itself were ever insufficient during an extreme event, most exchanges have a further mechanism called auto-deleveraging (ADL): profitable positions on the opposite side get force-closed, in order of leverage and profitability, to make up the shortfall. It's rare, it's disclosed in every major exchange's terms, and it's precisely the kind of tail-risk scenario that a normal liquidation-price calculation doesn't capture — which is why it's called out separately as a disclaimer rather than folded into the math.

Whether a shortfall can ever reach you personally depends on the exchange's terms rather than on the math. Negative balance protection in crypto futures explains where that protection starts and where it stops.

Where the fee belongs — and where it doesn't

Not every exchange handles the clearance fee the same way, and this genuinely changes the math, not just the terminology:

Neither approach is "wrong" — they're just different engineering choices for the same underlying goal (make sure the exchange, and other traders, are never left short). But it means the same maintenance margin rate can produce a slightly different real-world buffer depending on which model your exchange uses, which is exactly why the calculator on this site asks you directly which category your exchange falls into, rather than assuming one universal formula.

The liquidation fees guide compares how Binance, Bybit, OKX, KuCoin and MEXC each handle it.

FAQ

Do I always get money back when I get liquidated?

Often a small amount survives after fees, but not always. In fast-moving markets the actual execution price during liquidation can be worse than the calculated liquidation price, which can consume the entire remaining buffer or more. In that case the exchange's insurance fund covers the gap, not you personally — but you should not count on receiving a refund as the expected outcome.

What is an insurance fund?

A pool of funds each exchange maintains, largely built from the leftover margin of liquidations that closed with room to spare. It exists to cover the gap when a liquidation executes worse than expected (during a fast market move) and would otherwise leave the trader's account negative or leave the exchange unable to pay the counterparty in full.

Does every exchange handle the liquidation fee the same way?

No. Some exchanges (Binance in isolated mode, for example) deduct the clearance fee from remaining margin only after the liquidation trigger — it doesn't shift when liquidation happens. Others (Bybit, OKX, KuCoin) build a comparable fee directly into the trigger formula itself, which means liquidation happens slightly earlier, closer to entry price, than a maintenance-margin-only calculation would suggest.

See the difference for your own exchange's rules →