How the liquidation price is worked out
A perp position gets liquidated when the margin you put up, plus your unrealized profit or loss, falls to the maintenance margin. This calculator takes the maintenance margin on the position's value at the liquidation price, a common way venues set it for isolated margin. Check your venue's own formula.
- Long.
Liquidation = Entry × (1 − 1/Leverage) ÷ (1 − MMR) - Short.
Liquidation = Entry × (1 + 1/Leverage) ÷ (1 + MMR)
MMR is the maintenance margin rate as a decimal, so 0.5% is 0.005.
Worked example
A long on Bitcoin at $100,000 with 10x leverage and a 0.5% maintenance rate.
- 1 − 1/10 = 0.9
- 100,000 × 0.9 = 90,000
- 90,000 ÷ 0.995 = $90,452.26
That's 9.55% below entry. The same trade as a short liquidates at $109,452.74, 9.45% above entry.
Leverage and distance to liquidation
At a 0.5% maintenance rate, here is roughly how far price can move against you before liquidation.
| Leverage | Long, move down | Short, move up |
|---|---|---|
| 2x | 49.75% | 49.25% |
| 5x | 19.60% | 19.40% |
| 10x | 9.55% | 9.45% |
| 20x | 4.52% | 4.48% |
| 50x | 1.51% | 1.49% |
Why your venue's number can be different
- Fees and funding. Trading fees and funding payments come out of your margin and pull the liquidation price closer.
- Tiered maintenance. Bigger positions often carry a higher maintenance rate.
- Mark price. Most venues liquidate on a mark price built from several sources, not the last trade, so a quick wick on one venue may not trigger it.
- Cross margin. In cross margin, your free balance and other positions back the trade. The liquidation price sits further away, but a loss can eat into the whole account.
How to keep liquidation further away
- Use less leverage. Going from 20x to 10x roughly doubles the room you have.
- Size the trade from your stop, not from the leverage slider. The position size calculator does this for you.
- Place a stop before the liquidation price, so you exit on your terms.