en

How the liquidation price in futures is calculated

The liquidation price is the price at which the exchange closes your position because there is no margin left to keep it open. Knowing it before you open is the difference between a trade that goes wrong and an account that disappears. This is how to calculate it by hand.

By Updated 5 min read

What exactly the liquidation price is

When you open a position with leverage, you put up margin. If the price moves against you, the losses come out of that margin. When what’s left reaches the maintenance margin (the minimum the exchange requires to keep the position open), the system closes it for you. The price at which that happens is the liquidation price.

The exchange calculates it with the mark price, an average across several markets, and not with the last traded price. That way a one-off wick on a single exchange doesn’t liquidate everyone.

The formula, for longs and for shorts

The liquidation price of a long sits below your entry, and that of a short above it, at a distance set mainly by the leverage. In isolated margin, and leaving fees aside, the calculation fits on one line:

  • Long: liquidation = entry price × (1 − 1 / leverage + maintenance margin)
  • Short: liquidation = entry price × (1 + 1 / leverage − maintenance margin)

The maintenance margin goes in as a decimal: 0.5% is 0.005. It is usually between 0.4% and 1% for small positions on the major pairs, and it rises with the position size. The one that applies to you is in your exchange’s risk tier table. To skip the maths, the liquidation price calculator uses this same formula.

Examples with numbers

With an entry at 60,000 USDT and a maintenance margin of 0.5%, a long at x10 is liquidated at 54,300 USDT, 9.5% below; at x20, at 57,300 USDT, just 4.5% away. Shorts work the same way, upwards:

PositionLeverageCalculationLiquidationDistance
Longx1060,000 × (1 − 0.1 + 0.005)54,300 USDT−9.5%
Shortx1060,000 × (1 + 0.1 − 0.005)65,700 USDT+9.5%
Longx2060,000 × (1 − 0.05 + 0.005)57,300 USDT−4.5%
Shortx2060,000 × (1 + 0.05 − 0.005)62,700 USDT+4.5%
Doubling the leverage doesn’t bring liquidation a little closer: it leaves it at less than half the distance.

And in cross margin

In cross margin, the position uses all the free balance in your futures account as a buffer. Liquidation is further away, and it moves: if you open another position or withdraw funds, it changes. The formula above no longer works, because it depends on everything you hold in the account. There, the figure that counts is the one the exchange shows you on the open position.

Liquidation being further away in cross margin doesn’t mean you are risking less: if it comes, it can take the entire balance of your futures account, not just that position’s margin.

Why your exchange gives a slightly different figure

The figure your exchange shows almost never matches the formula to the cent, because the exchange takes into account things the simple formula leaves out. The differences are small, but it helps to know where they come from:

  • It deducts the closing fee it would charge when liquidating you, and that brings liquidation slightly closer.
  • The maintenance margin rises in tiers with the position size.
  • If you add margin or are charged the funding rate, the margin changes and liquidation moves.

Use the formula to get the order of magnitude before you open, and the exchange’s figure to decide.

How to push liquidation further away

To push the liquidation price further away you have four levers: lower the leverage, add margin, set a stop loss before liquidation or reduce the position size. Lowering the leverage is the one that gains the most distance.

  • Lower the leverage. Nothing pushes it further away: from x20 to x5, the distance goes from under 5% to under 20%.
  • Add margin to the open position (almost every exchange allows this in isolated margin).
  • Set a stop loss well before liquidation. If the stop is hit, you close with a loss you chose; if liquidation comes, you choose nothing. More on this in stop loss and take profit.
  • Reduce the size of the position: with the same margin and a smaller size, the effective leverage drops.
Read next →What leverage in crypto is and how it really worksLeverage in crypto futures explained with numbers: what x10 or x50 means, how much you make and lose, and why you can be liquidated sooner than you think.

Frequently asked questions

What happens when you get liquidated?

The exchange closes the position at market price and you lose the margin assigned to it. In cross margin it can affect the balance of the whole futures account.

Does the liquidation price change while the position is open?

Yes: if you add or remove margin, if you pay or receive the funding rate, or, in cross margin, if the account balance changes.

Does a stop loss prevent liquidation?

If you set it before the liquidation price and it executes, yes: you close earlier, with the loss you chose. In very sharp moves a stop market order can execute at a worse price than expected.

Why are there liquidations if the chart never reaches that price?

Because liquidation is calculated with the mark price, not the last price on the chart, and because fees and funding may have reduced your margin.

Keep reading

How can we help?

Does it cost anything?

No. The site, checking whether you're a referral and the Trading Hub cost you nothing. CryptoBruj doesn't sell anything.

What does being a referral mean?

That you opened your exchange account with the CryptoBruj link or code. You can check it in a moment in Am I a referral? with your exchange and your UID.

Where do I find my UID?

In your exchange profile, next to your name or your email, with a button to copy it. Bitget: on the website, hover over your profile in the top right; in the app, tap your profile in the top left, then “Profile”. Bitunix: on the website, click your profile in the top right. BingX: on the website, hover over your profile in the top right; in the app, tap your profile in the top left. OKX: on the website, hover over your profile in the top right; in the app, open the menu, then “Profile and settings”.

How do I join the Trading Hub?

Fill in the Trading Hub form with your exchange, your UID, your email and your Telegram username. Your Telegram username is the one that starts with @: you’ll find it in Telegram’s Settings and, if you don’t have one, you can create it there. If the exchange confirms that you are a referral, we give you a personal link to the Telegram bot, which lets you into the group. Open it from the same Telegram account you entered in the form.

My account doesn't show up as a referral. What do I do?

Check that the UID and the exchange are correct; if you've just created the account, try again in a while. If it still doesn't show up, your account wasn't opened with CryptoBruj's link or code, and the code can't be added to an account that already exists. You have two options: open an account on another of the exchanges from My exchanges and join the Trading Hub with it (it's the quickest, and you can keep using the one you have), or make your account a referral with your exchange's steps: write to us below with your exchange and your UID and we'll tell you how.

Can I be removed from the Trading Hub?

To stay in, your account just needs to remain a referral: the bot checks it every day. If it stops being one, the bot lets you know privately before removing you from the group.

Does CryptoBruj give investment advice?

No. What CryptoBruj publishes is general and educational information, the same for everyone: it isn't advice or a personalised recommendation. The details are in the terms.

Question not here? Write to us and we’ll answer by email.