Crypto & DeFi

Liquidation Price Calculator

Find the price at which a leveraged long or short perpetual futures position is liquidated, in isolated or cross margin, and how far that is from your entry.

Liquidation Price

$90,452.26

Distance from Entry

-9.55%

Initial Margin

$1,000.00

Position Quantity

0.100000

Maintenance Margin at Liquidation

$45.23

Effective Leverage

10.00x

An estimate for a USDT- or USD-margined perpetual. Exchanges add tiered maintenance rates for large positions and reserve the closing fee, and they liquidate on the mark price, so their own figure can be slightly closer to entry.

How the Liquidation Price calculator works

The calculator finds the price at which the margin behind a position, plus its unrealised profit or loss, has fallen to the exchange's maintenance margin. That is where a USDT- or USD-margined perpetual is liquidated. In isolated mode the margin is the initial margin, the position size divided by the leverage; in cross mode it is the wallet balance the position can draw on.

Quantity Q = position size / entry price E; m = maintenance margin rate
Long: liquidation price = (Q x E - B) / (Q x (1 - m))
Short: liquidation price = (Q x E + B) / (Q x (1 + m))
B = margin behind the position: isolated B = Q x E / leverage, cross B = wallet balance
Isolated long, simplified: E x (1 - 1 / leverage) / (1 - m)
Liquidation distance and leverage: the price move that liquidates an isolated long or short perpetual position at leverage from two to one hundred and twenty-five times, against one divided by the leverage
The price move that liquidates an isolated long or short perpetual position at leverage from two to one hundred and twenty-five times, against one divided by the leverage

Worked example

A $10,000 long on a perpetual at $100,000, 10x leverage in isolated mode, with a 0.5% maintenance margin rate.

  1. Quantity: $10,000 / $100,000 = 0.1 BTC; initial margin at 10x: $10,000 / 10 = $1,000.
  2. Liquidation price: 100,000 x (1 - 1/10) / (1 - 0.005) = 100,000 x 0.9 / 0.995 = $90,452.26, a fall of 9.55%.
  3. Check: at that price the loss is 0.1 x $9,547.74 = $954.77, leaving $45.23 of margin, which is the maintenance margin: 0.5% x 0.1 x $90,452.26 = $45.23.
  4. The same trade as a short: 100,000 x 1.1 / 1.005 = $109,452.74, 9.45% above entry.
  5. In cross mode with $5,000 in the wallet, the long's liquidation price is (10,000 - 5,000) / (0.1 x 0.995) = $50,251.26.

The 10x long is liquidated near $90,452.26, after a 9.55% fall. Without a maintenance margin it would take a fall of exactly 10%.

Frequently asked questions

What is a liquidation price?

It is the price at which the exchange closes a leveraged position because the margin left in it has fallen to the maintenance margin. The margin that remains usually goes to the exchange's insurance fund or covers the cost of closing.

Why is the liquidation price closer than 1 divided by the leverage?

Because the exchange steps in when the remaining margin reaches the maintenance margin, not zero. At 10x with a 0.5% maintenance rate, a long is liquidated after a 9.55% fall rather than 10%.

What is the difference between isolated and cross margin?

In isolated mode only the margin assigned to that position can be lost. In cross mode the whole wallet balance backs every open position, which moves the liquidation price further away but puts the whole balance at risk.

Why does my exchange show a slightly different number?

Exchanges raise the maintenance rate in tiers for large positions, reserve the fee for closing the position, liquidate on the mark price rather than the last trade, and take funding payments from margin. The calculator shows the core formula, so treat the exchange's own figure as the one that counts.

More tools in the Hub

Premium opens the Hub's Analytics section: market data, research, radars, screeners, macro, calculators and backtesting. The website and the Discord stay free.