Skip to content
Markets with Ivy

How perp liquidation works

Liquidation is the venue closing your perp position because your losses have eaten your margin down to a set minimum. It happens before your margin hits zero, and on most venues it's triggered by the mark price, not the last trade. If you know the formula and where your liquidation price sits, you can keep your stop well clear of it.

By Markets with Ivy · 4 min read · Updated December 5, 2026

What is liquidation?

When you open a perp, the venue holds some of your balance as margin. As the trade moves against you, your unrealized loss comes out of that margin. The venue won't let it run to zero. It sets a floor called the maintenance margin, a small percent of the position's value. When your margin plus your unrealized P&L falls to that floor, the venue closes the position for you. That forced close is liquidation.

The price where that happens is your liquidation price. You can work it out before you open the trade.

The liquidation price formula

These are the formulas for a linear perp, the kind priced and settled in a dollar stablecoin, with isolated margin. They leave out fees and funding.

  • Long. Liquidation price = entry × (1 − 1 ÷ leverage) ÷ (1 − maintenance margin rate)
  • Short. Liquidation price = entry × (1 + 1 ÷ leverage) ÷ (1 + maintenance margin rate)

Here's a long at 10x from $100,000 with a 0.5% maintenance margin rate.

  • 1 ÷ 10 = 0.10, so the top half is $100,000 × 0.90 = $90,000.
  • The bottom half is 1 − 0.005 = 0.995.
  • $90,000 ÷ 0.995 = about $90,452, a drop of about 9.55%.

The same trade as a short works out to about $109,453, a rise of about 9.45%. You can run your own numbers in the perp liquidation price calculator.

Liquidation distance by leverage

Every row below uses a $100,000 entry and a 0.5% maintenance margin rate. The distance is how far price has to move against you before you're liquidated.

LeverageLong liquidates nearDropShort liquidates nearRise
2x$50,25149.75%$149,25449.25%
5x$80,40219.60%$119,40319.40%
10x$90,4529.55%$109,4539.45%
20x$95,4774.52%$104,4784.48%
50x$98,4921.51%$101,4931.49%

Doubling leverage roughly halves the room you have. At 50x, a 1.5% move closes you out, and Bitcoin can move that much in an hour on a volatile day.

Why 10x doesn't mean a 10% move

At 10x, your margin is 10% of the position. If the venue let you lose all of it, a 10% drop would wipe you out. But the venue closes you when your margin hits the maintenance floor, so you're liquidated a little earlier. That's the 9.55% in the example.

Real trades land closer still. Three things pull the liquidation price toward your entry.

  • Trading fees. Fees to open and close come out of your balance, and many venues count them when they work out your liquidation price.
  • Funding. If you're paying funding, each payment shrinks your margin a little. Over a long hold it adds up. See funding rates explained.
  • Tiered maintenance margin. Many venues raise the maintenance rate as positions get bigger, so a large position liquidates sooner than a small one at the same leverage.

Mark price triggers liquidation

A perp has more than one price. The last price is the most recent trade. The mark price is what the venue uses to value your position and decide liquidations. Most venues build it from the spot index on several outside sources, sometimes blended with the perp's own order book.

That matters in a fast market. A single thin trade can print well past your liquidation price on the chart, and you may not be liquidated if the mark price didn't follow. It also works the other way. The chart may never touch your liquidation price while the mark price does. Watch the mark price on your venue, not just the candles.

What happens when you're liquidated

The exact steps vary by venue, but the outline is usually the same.

  1. The mark price reaches your liquidation price.
  2. The venue's liquidation engine takes over the position and closes it, often in pieces if it's large.
  3. With isolated margin, the margin on that position is mostly or fully gone. Many venues also charge a liquidation fee.
  4. Any margin left over after the close often goes to the venue's insurance fund. That fund pays for liquidations that close at a worse price than the trader's margin could cover.
  5. In extreme moves, when the insurance fund can't cover a loss, some venues close part of the winning traders' positions on the other side. That's called auto deleveraging.

Once you're liquidated, the margin on that trade is gone and the close itself can cost extra. A stop loss that fills earlier usually costs less.

Isolated vs cross margin and liquidation

Everything above assumes isolated margin, where each position only uses the margin you gave it. Cross margin lets your whole account balance back your positions. That pushes the liquidation price much further away, but a losing trade can drain far more of your account before it closes. The trade-off is laid out with numbers in isolated vs cross margin.

Common ways traders keep distance from liquidation

  • Knowing it before the trade. Many traders run each trade through the liquidation price calculator with their venue's maintenance margin rate.
  • Stops well before it. A stop at or past the liquidation price never fills, because the venue closes the position first.
  • Sizing from the stop. The trader decides what a stop out should cost, then works back to the position size. The position sizing guide shows how.
  • Leverage below the maximum. The table above shows how fast the room shrinks as leverage climbs.
  • Extra margin on longer holds. On isolated positions most venues let you add margin, which moves the liquidation price away. It also puts more money into the trade, so it only helps if the trade idea still holds.
  • Care around event days. Price can jump on Fed and CPI releases. The economic calendar shows when the next ones land.

Questions traders ask

How is the liquidation price calculated on a perp?+

For a long with isolated margin, take the entry price times (1 minus 1 divided by leverage), then divide by (1 minus the maintenance margin rate). For a short, take the entry times (1 plus 1 divided by leverage), then divide by (1 plus the maintenance margin rate). At 10x with a 0.5% rate, a long from $100,000 liquidates near $90,452.

Why does 10x leverage liquidate before a 10% move?+

Because the venue closes you when your margin falls to the maintenance level, not when it hits zero. That small slice it keeps back is why a 10x long liquidates after about a 9.55% drop with a 0.5% maintenance rate, not a full 10%. Fees and funding paid along the way shrink the gap further.

Does the last trade price trigger liquidation?+

On most venues, no. Liquidation runs off the mark price, which is built mostly from the spot index on outside sources. That stops one thin trade or a wick on a single venue from liquidating everyone. Check your venue's rules, because the exact mark price recipe varies.

What happens to my money when I get liquidated?+

With isolated margin, the margin on that position is mostly or fully gone. Many venues also charge a liquidation fee, and any margin left after the close often goes to an insurance fund. With cross margin, the loss comes out of your whole account balance.

Can I move my liquidation price further away?+

Yes. Lower leverage, a smaller position or adding margin to an isolated position all push the liquidation price further from your entry. Using cross margin on the next trade also pushes it out, but then your whole balance is on the line. Many venues don't let you switch modes with a position open.

Should my stop loss be at the liquidation price?+

No. A stop at or past the liquidation price never gets the chance to fill, because the venue closes you first. Most traders place the stop well before it, then size the trade so a stop out costs an amount they've already decided they can lose.

Keep going

Updated December 5, 2026.