Crypto Derivatives

Mark Price and Liquidation Mechanics

Why your liquidation price isn't what you think it is.

Crypto derivative exchanges do not liquidate your position when the last traded price touches your liquidation threshold — they use a mark price computed from spot indices. Understanding this distinction, and how the liquidation engine, insurance fund, and auto-deleveraging system interact, can mean the difference between an orderly stop-out and an unexpected forced closure.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

Direct Answer

The mark price is a fair-value estimate for a derivative contract, computed by the exchange from a weighted average of spot prices across multiple external exchanges — not from the contract's own order book. Exchanges use the mark price (not the last traded price) to determine unrealized P&L and to trigger liquidations. This design prevents manipulation: a large trader cannot print a false last traded price on a thinly traded derivatives order book to force liquidations of other traders.

Your liquidation price is the mark price at which your margin balance equals the exchange's maintenance margin requirement. For a long position in isolated margin mode: Liquidation Price ≈ Entry Price × (1 − Initial Margin Rate + Maintenance Margin Rate). At 10x leverage with a 0.5% maintenance margin rate: Liquidation ≈ Entry × (1 − 0.1 + 0.005) = Entry × 0.905, meaning a 9.5% decline from entry triggers liquidation. The exchange's liquidation engine takes over the position, attempts to close it in the market, and uses the insurance fund to cover any shortfall if the position cannot be closed above zero equity.

Key Takeaways

Core Concepts

How the Mark Price Is Calculated

On most major exchanges (Binance, Bybit, OKX), the mark price for a perpetual contract is calculated as: Spot Index Price + Exponential Moving Average of the Funding Premium. The spot index price itself is a volume-weighted average of the underlying asset's price across 3–7 major spot exchanges. The funding premium component represents the time-decayed difference between the perp's own order book mid-price and the spot index.

By anchoring mark price to external spot prices, the exchange ensures that even a momentary flash crash in the perp order book — caused by a large market sell order or temporary illiquidity — does not trigger cascading liquidations. During the May 2021 BTC sell-off, for example, the BTC perp on some exchanges traded 2–3% below the spot index for brief periods; without mark price protection, thousands of short positions would have been incorrectly liquidated during those transient spikes.

For quarterly futures contracts, the mark price formula is slightly different, typically using a fair value calculation that accounts for the remaining time to settlement and the implied interest rate embedded in the basis, rather than adding a funding premium to spot.

The Liquidation Cascade: What Happens When a Position Is Liquidated

When the mark price reaches your liquidation price, your position enters the liquidation queue. The exchange's internal liquidation engine takes control of the position and attempts to close it in the open market. On Binance and most large exchanges, this happens incrementally — the engine first tries to partially reduce the position at the best available order book price, then fully closes it if partial reduction is insufficient to restore the margin ratio above maintenance.

Importantly, the liquidation engine typically places orders at a price more aggressive than the strict bankruptcy price (the price at which the position's equity hits exactly zero). This buffer — the difference between the liquidation trigger price and the bankruptcy price — is designed to give the engine room to execute in the market and still leave a small amount of equity for the insurance fund. On Binance, this buffer is typically a few basis points.

If the liquidation engine cannot fill the order at or above the bankruptcy price, the position goes bankrupt. The remaining shortfall — the amount by which the loss exceeds the posted margin — is charged to the insurance fund. The insurance fund absorbs these losses to prevent them from being passed on to profitable traders on the other side of the position.

The Insurance Fund: Buffer Against Socialized Loss

The insurance fund is a pool of capital accumulated from the excess margin of successfully liquidated positions — when a position is closed above its bankruptcy price, the surplus stays in the insurance fund rather than being returned to the trader. Over time, in normal markets, this surplus accumulates and provides a buffer against bankruptcy shortfalls.

During volatile periods with many simultaneous liquidations, the insurance fund can be stressed. If it is exhausted, the exchange resorts to auto-deleveraging (ADL): forcibly reducing the most profitable opposite positions on the platform. ADL is deeply unpopular because profitable traders suddenly find their winning positions closed at unfavorable prices without consent — but it is the mechanism of last resort to prevent the platform from becoming insolvent.

Exchange insurance fund sizes are publicly disclosed on most major platforms (Binance, Bybit, OKX) and are worth monitoring as a measure of platform health. A growing insurance fund indicates that liquidations are generally being executed above the bankruptcy price — a healthy sign. A shrinking fund may indicate stressed market conditions or structural problems with the liquidation engine's ability to close positions in time.

Cross Margin vs. Isolated Margin: Impact on Liquidation

In isolated margin mode, each position has its own dedicated margin pool. When that pool is exhausted, only that position is liquidated — other positions in the account are unaffected. The maximum loss per position is capped at the margin allocated to it. This is the safer approach for managing multiple simultaneous positions.

In cross margin mode, all positions share a single margin pool. An unrealized loss in one position draws from the same pool as every other position. This means a losing BTC long can drain the margin available to an ETH short, potentially causing both to be liquidated in a cascade. The advantage of cross margin is that a position with an unrealized gain can effectively subsidize a losing position, reducing the risk of any single position being liquidated during short-term adverse moves. But in extreme markets, cross margin creates dangerous interdependence between unrelated positions.

Worked Scenario

Hypothetical example — for education only.

  1. Setup: Isolated margin long on BTC-USDT perp. Entry price: $60,000. Leverage: 10x. Initial margin: $6,000 (for $60,000 notional). Maintenance margin rate: 0.5%.
  2. Liquidation price: Entry × (1 − 1/leverage + maintenance margin rate) = $60,000 × (1 − 0.1 + 0.005) = $60,000 × 0.905 = $54,300. A 9.5% decline from entry price triggers liquidation.
  3. Price drops: Mark price reaches $54,300. The liquidation engine begins closing the position.
  4. Successful liquidation: The engine sells 1 BTC at $54,400 (0.18% above bankruptcy price of $54,000). Equity at closure: ($54,400 − $54,000) × 1 BTC = $400 surplus goes to the insurance fund. The trader loses the entire $6,000 initial margin.
  5. Failed liquidation (gapped market): Suppose BTC gaps down to $52,000 before the engine can fill. Position closes at $52,000. Shortfall vs. bankruptcy price: ($54,000 − $52,000) × 1 BTC = $2,000 charged to the insurance fund.
  6. ADL trigger: If the insurance fund is depleted and cannot cover the $2,000 shortfall, the exchange selects the most profitable short positions ranked by profit percentage and forcibly closes them at the $54,000 bankruptcy price — crediting those traders at below-market rates.

Measurement Framework

MeasurementWhat it tells you
Mark price vs. last price spreadHow much the derivatives market deviates from spot; large spread signals illiquid or manipulated order book conditions
Distance to liquidation (%)(Mark price − Liquidation price) / Mark price; your safety buffer before forced closure
Insurance fund balance (trend)Growing fund = exchange liquidation engine is functioning; declining fund = stress or structural weakness
ADL indicator rankYour position's rank in the ADL queue (most exchanges publish this); high rank means your winning position could be forcibly closed in extreme scenarios
Liquidation heat map (OI at risk)Aggregated liquidation levels from tools like Coinglass; large OI clusters near current price signal cascade risk zones
Maintenance margin rate at leverageHigher leverage tiers have higher maintenance margin rates on tiered margin exchanges; the effective liquidation distance shrinks at higher leverage

Common Failure Modes

Confusing Last Price with Mark Price for Liquidation Triggers

Traders who set stop-losses based on the last traded price and trust that they will exit before liquidation often discover that in fast-moving markets, the last price diverges from mark price. If a flash crash spikes the last traded price down to $50,000 while the mark price remains at $55,000, limit orders placed at $54,000 last price may execute, but your liquidation trigger is based on mark price at $54,300 — meaning the exchange may simultaneously try to execute your stop and the liquidation engine, leading to confusion and potential double-closure at unfavorable prices.

Always monitor the mark price, not the last traded price, when assessing liquidation proximity. Most exchange interfaces display both — make sure you're reading the right one when under stress.

Underestimating Maintenance Margin at High Leverage

Tiered margin systems increase the maintenance margin rate as position size grows. A $10,000 position at 20x leverage may have a 0.5% maintenance margin rate. The same exchange's rules for a $1,000,000 position at 20x leverage may require a 2% maintenance margin rate, dramatically reducing the liquidation distance. Traders who calculate liquidation prices using the low-tier maintenance rate and then build to a large position find their actual liquidation price is much closer than their model predicted.

Always check the exchange's tiered margin table for your specific position size before assuming a fixed maintenance margin rate applies.

Not Accounting for Funding Payments in Liquidation Distance

In isolated margin mode, funding payments are deducted from the margin pool of the isolated position. Over days or weeks of holding, positive funding payments reduce available margin and therefore bring the liquidation price closer to the current mark price. A position that had a 10% liquidation buffer on day one may have a 7% buffer after two weeks of funding payments, without any adverse price movement at all.

Monitor your effective margin balance and recalculate your liquidation price periodically when holding leveraged positions for more than a few days.

Using Cross Margin Without Understanding Contagion Risk

A common failure mode for new derivatives traders is opening multiple positions in cross margin mode and treating them as independent bets. When one position moves adversely, it silently drains the margin pool available to all other positions. Traders discover this only when an unexpected liquidation notice arrives on a position that seemed healthy — its margin was consumed by losses in an unrelated position.

Either use isolated margin for each position, or explicitly account for the combined margin requirement and combined worst-case scenario across all cross-margined positions when sizing each one.

Assuming ADL Won't Happen to Profitable Positions

During exchange stress events, ADL has been triggered at several major exchanges. Bybit activated ADL in March 2020 during the COVID flash crash. OKX (formerly OKEx) applied socialized loss clawbacks in 2018–2019. FTX's collapse in 2022 effectively rendered open derivative positions unrecoverable. Traders who assume their profitable short position is safe from forced closure have not accounted for the ADL mechanism and its documented activation history.

FAQ

Why doesn't the exchange use the last traded price to trigger liquidations?

Using the last traded price creates a manipulation vector: a trader with enough capital could place a large market sell order on a thinly traded perp order book, print a false low price, trigger other traders' liquidations, and profit from those liquidated positions. The mark price, anchored to external spot exchanges, is far harder to manipulate because it requires moving prices across multiple large spot venues simultaneously.

What is the difference between the liquidation price and the bankruptcy price?

The liquidation price is where the exchange begins the forced closeout process — your position is handed to the liquidation engine at this point. The bankruptcy price is where your margin balance hits exactly zero. The gap between the two gives the engine room to execute in the market. If the engine executes above the bankruptcy price, the surplus goes to the insurance fund; if below, the shortfall is covered by the fund.

Can I add margin to prevent liquidation when the mark price is falling?

Yes, on most exchanges in isolated margin mode you can add margin to a position to push the liquidation price further away. This is called "adding margin" or "de-risking." In cross margin mode, any available account balance automatically subsidizes losing positions. Some traders use this intentionally to maintain leveraged positions during corrections; the risk is that adding margin increases the total loss if the trade ultimately goes against you.

What is auto-deleveraging (ADL) and when does it trigger?

ADL is a mechanism of last resort: when a bankrupt position cannot be closed above zero equity and the insurance fund cannot cover the shortfall, the exchange forcibly closes the most profitable opposing positions at the bankrupt trader's bankruptcy price. The "ADL indicator" on most exchanges ranks your position in the queue — the higher your profit percentage and leverage, the higher your ADL rank, and the more at risk you are of being selected for forced closure.

How do I know if my exchange has a healthy insurance fund?

Most major exchanges (Binance, Bybit, OKX) publish their insurance fund balance publicly and update it in real time. Bybit and Binance also publish historical insurance fund charts. A fund that has been growing steadily over months is a positive indicator; a fund that has sharply declined after a volatile period suggests the exchange processed more bankrupt liquidations than its margin buffer could absorb, which may indicate the need for ADL in future volatile events.

Does partial liquidation help preserve my position?

Partial liquidation — where the engine closes only part of a position to restore the margin ratio — is offered by some exchanges including Bybit and Binance. If partially liquidated, you retain a smaller position at a restored margin ratio. Whether this is beneficial depends on your outlook: if you believe the move is temporary, partial liquidation avoids closing the full position at a potential trough. If the move continues, partial liquidation just delays the full closeout at a worse average exit price.

Is my liquidation price the same as my stop-loss?

No. A stop-loss is a voluntary order you place to exit the position at a specified price before reaching your liquidation threshold. The liquidation price is the forced closure price enforced by the exchange when margin is exhausted. Best practice is to place a stop-loss at least 2–5% above (for longs) or below (for shorts) the liquidation price, so you exit voluntarily before the exchange takes control of the position.

Do decentralized perpetual exchanges use mark price liquidations too?

Yes. Decentralized perp protocols like GMX, Hyperliquid, and dYdX also use oracle-based prices (equivalent to mark price) rather than their own on-chain order book prices to trigger liquidations. Oracle manipulation — a category of attack unique to on-chain systems — is a risk that does not exist on centralized exchanges but is a known vector for decentralized derivatives, with several documented high-value exploits in DeFi derivatives history.

Sources

Disclaimer

This guide is for educational and informational purposes only and does not constitute personalized investment, financial, or trading advice. Leverage magnifies both gains and losses. Liquidation can result in the total loss of posted margin. Exchange-specific rules, margin rates, and insurance fund mechanics vary and can change without notice — always read your exchange's current documentation before trading derivatives.