# Liquidation price explained: where the exchange closes your trade for you

*The formula for linear and inverse contracts, worked at 5x, 10x and 20x, and why your stop has to come first.*

Every leveraged position has a price where the exchange closes it for you and keeps the margin. Most traders know roughly where theirs is. Fewer know why it moves with leverage, why it differs between contract types, or why a stop placed beyond it does nothing. I build Central Command, a trading terminal and agent builder for BloFin, and this is the maths we use.

## What liquidation is

When you open a leveraged position you put up margin, a deposit that covers losses. As the price moves against you, the unrealised loss eats into it. The exchange makes you keep a small cushion called the maintenance margin, a percentage of the position's value. When your margin plus your unrealised profit or loss falls to that cushion, the position is liquidated.

Maintenance margin rates come in tiers that rise with the size of the position. On BloFin, when I checked, BTC-USDT's first tier was 0.3% and SOL-USDT's was 0.4%. The examples below use 0.5% to keep the numbers round.

## The formulas

With L for leverage and m for the maintenance margin rate:

```text
Linear long    entry x (1 - 1/L) / (1 - m)
Linear short   entry x (1 + 1/L) / (1 + m)
Inverse long   entry x (1 + m) / (1 + 1/L)
Inverse short  entry x (1 - m) / (1 - 1/L)
```

A linear contract (BTC-USDT) is margined and settled in USDT. An inverse contract (BTC-USD) is margined and settled in the coin, so when the price falls, your margin is worth less as well. That's why an inverse long is liquidated sooner than a linear long at the same leverage, and an inverse short later than a linear short.

## Worked at 5x, 10x and 20x

BTC at $80,000, maintenance margin 0.5%. The linear long at 10x, by hand:

```text
80,000 x (1 - 0.1) / (1 - 0.005) = 72,000 / 0.995 = $72,362
```

All four, at three leverages:

```text
               5x                  10x                 20x
Linear long    $64,322  (-19.6%)   $72,362  (-9.55%)   $76,382  (-4.52%)
Linear short   $95,522  (+19.4%)   $87,562  (+9.45%)   $83,582  (+4.48%)
Inverse long   $67,000  (-16.3%)   $73,091  (-8.64%)   $76,571  (-4.29%)
Inverse short  $99,500  (+24.4%)   $88,444  (+10.6%)   $83,789  (+4.74%)
```

The rule of thumb for a linear contract: the liquidation price sits about 1/leverage minus the maintenance margin away from entry. That's 20% minus 0.5% at 5x, 10% minus 0.5% at 10x, and 5% minus 0.5% at 20x. Double the leverage and the distance roughly halves.

## Two results that surprise people

- **A 1x long on a linear contract can't be liquidated**, because the price can't fall below zero. A 1x long on an inverse contract is liquidated at about a 50% fall: $40,200 from $80,000.
- **A 1x short on an inverse contract can't be liquidated by price**, because its coin margin gains value as the price rises. A 1x short on a linear contract is liquidated at about a 99% rise.

## Isolated and cross margin

**Isolated margin** gives each position its own margin. Its liquidation price is set by the leverage and any margin you add, and if it's liquidated you lose that margin and nothing else. Adding margin pushes the price away. A long at $100 at 10x on a $10,000 position is liquidated around $90.45. Add $500 of margin and the margin share goes from 10% to 15%, so the price moves to 100 x 0.85 / 0.995 = $85.43.

**Cross margin** backs every position with your free balance. That puts the liquidation price further away, but the balance is shared: losses on your other positions pull it closer, and a liquidation can take far more than one position's margin.

## Why your stop must sit inside the liquidation price

A stop beyond the liquidation price never fills, because the exchange closes the position first. Take a long at $100 at 10x with a stop at $85. Liquidation is around $90.45. A wick to $90 closes the trade and the whole margin is gone, even if the price is back at $105 an hour later and your stop was never touched.

For a long, the most leverage a stop allows is about:

```text
max leverage = 1 / (stop distance + maintenance margin)
```

A 2% stop with 0.5% maintenance margin allows about 40x. A 5% stop allows about 18x. Stay well under that, for the reasons in the next section.

Lowering leverage to make room doesn't change what you lose at the stop. A position sized from its stop loses the same amount at any leverage. Lower leverage only puts up more margin. [This is how to size from the stop](/go/blog-liquidation?to=/blog/crypto-futures-position-size).

## Why your exchange shows a different number

The formulas give the textbook price, and it's an estimate. Exchanges trigger liquidation on the mark price, a reference price built to be harder to push around than the last trade. They may hold back a closing fee, maintenance margin steps up in tiers as the position grows, and funding payments come out of isolated margin over time. Once a position is open, the liquidation price your exchange shows is the one that counts.

## How Central Command handles it

- **The terminal** shows each open position's liquidation price and how far away it is, in percent.
- **Agents** keep the stop inside the liquidation price. Leverage is held below the level that would liquidate a position before its stop.
- **Paper agents** use isolated margin and the rule of thumb above: a position is liquidated at entry minus (for a short, plus) entry x (1/leverage - 0.5%), 9.5% at 10x. A wick through it before the stop closes the position there and loses the whole margin.
- **Backtests** run the account as cross margin, so a test is liquidated only when the whole account's equity runs out. With a stop inside the liquidation price, the two give the same trade.

## Liquidation price FAQ

### Is the liquidation price the same as a stop loss?

No. A stop is your exit and you choose where it goes. Liquidation is the exchange's exit and it takes your margin.

### Can I be liquidated if I have a stop loss?

Yes, if the stop sits beyond the liquidation price. Check both numbers before you enter.

### Does more leverage always bring the liquidation price closer?

Yes, for the same entry on isolated margin. At 20x a linear long is liquidated less than 5% below entry.

### Why is my liquidation price different from my calculation?

The exchange uses the mark price, its own maintenance tiers and fees. Its number on the open position is the real one.

## Try it

[Open the terminal](/go/blog-liquidation?to=/dataterminal) to see the liquidation price beside every position, or [build an agent](/go/blog-liquidation?to=/agents/new) and try it on paper first. It's free with a BloFin account opened through our link, or there's a 10-day free trial with no card.

---

*Disclosure: I build Central Command, which earns a commission from BloFin on members' trading. This article was drafted with AI assistance. It is not financial advice. Leveraged trading can lose all of your money.*

## Start free

Central Command is free with a BloFin account opened through our referral link, for as long as you trade through us. Or take the 10-day free trial: no card, no wallet, nothing renews.

1. Create an account at https://centralcommand.io/signup.
2. Choose **Free with BloFin** and connect BloFin in one click (no BloFin account yet? open one at https://partner.blofin.com/d/centralcommand), or choose the **10-day free trial**.
3. Trade from the terminal at https://centralcommand.io/dataterminal, or describe a strategy in plain English at https://centralcommand.io/agents/new: backtest it, run it on paper, and go live when you choose.

BloFin's normal trading fees still apply. Central Command trades BloFin perpetual futures only.
