CryptoPaperTrading

What is liquidation in crypto futures, and how do you calculate your liquidation price?

When you trade a perpetual future with leverage, you put up a small amount of money, the margin, to control a much larger position. Liquidation is what happens when the market moves against you far enough that the margin can no longer cover the loss.

Leverage shrinks the room you have

With $1,000 of margin at 10x, you control a $10,000 position. A 1% move is $100, which is 10% of your margin. A 10% move against you is the whole $1,000. At 25x the same $1,000 controls $25,000, and roughly a 3.5% move ends the trade. Bitcoin moves that much on an ordinary day.

Maintenance margin

Exchanges do not wait for your margin to hit exactly zero. They require you to keep a small maintenance margin, here 0.5% of the position value. When your equity (margin plus unrealised P&L) falls to that level, the position is liquidated and the remaining margin is lost.

The liquidation price formula (isolated margin)

For a position of size q coins, entry price E, margin M and maintenance rate m:

Long liquidation price  = (E·q − M) / (q·(1 − m))
Short liquidation price = (E·q + M) / (q·(1 + m))

For a fresh position this is approximately E × (1 − 1/leverage + m) for a long and E × (1 + 1/leverage − m) for a short. A 20x long liquidates about 4.5% below entry; a 5x long about 19.5% below.

Worked example

You go long 0.25 BTC at $80,000 with 20x leverage. The position is worth $20,000, so your margin is $1,000.

Liquidation = (80,000 × 0.25 − 1,000) / (0.25 × 0.995) = $76,382

A 4.5% dip and the trade is over. At 5x the same position would liquidate near $64,400.

LeverageApprox. move to liquidation (long)
2x−49.5%
5x−19.5%
10x−9.5%
20x−4.5%
25x−3.5%

Why your stop-loss must sit before the liquidation price

A stop-loss only helps if the market reaches it before your liquidation price. If you set a stop below liquidation on a long, the exchange closes you out first and the stop never fires. CryptoPaperTrading refuses those stops and tells you why. In real trading, nobody warns you.

How to avoid liquidation

Frequently asked questions

What happens to my money when I get liquidated?

With isolated margin, you lose the margin you put into that position and your other balance is untouched. With cross margin, every cross position is closed and your whole cross wallet, free balance included, is lost.

Does higher leverage mean a closer liquidation price?

Yes. Roughly, a long liquidates after a move of (1/leverage − maintenance rate). At 25x that is about 3.5%.

Can I add margin to avoid liquidation?

Yes, on many exchanges and on this simulator: adding margin to an isolated position moves the liquidation price away without changing its size. Here, use Add margin in the Positions table. Reducing leverage up front does the same thing.

Is liquidation the same as a stop-loss?

No. A stop-loss is your own exit at a price you chose. Liquidation is the exchange closing you out because the margin ran out, and you lose the whole margin.

Practise this: Practise futures and leverage in the simulator with $10,000 in virtual USD.