ttt, The Terminal Trader home Start trading

Leverage and liquidation explained, with a worked example

Leverage lets you hold a position worth more than the money you put up. On a perpetual future (a contract that follows the price of a coin and never expires), 20x leverage means a position worth 20 times the margin set aside for it. Profit and loss are worked out on the whole position, so a small move in the price becomes a large change in your balance.

The example below uses the exchange's own rules.

The words you need

Position value
Quantity times price. 1 BTC at 50,000 USDT is a position value of 50,000 USDT.
Margin
The part of your balance set aside for a position: position value divided by leverage.
Mark price
A fair price for the contract, taken from the live market. Profit, loss and liquidation are measured at the mark price, not at the last trade, so one odd trade cannot liquidate you.
Unrealised profit and loss
What you would gain or lose if you closed the position now at the mark price.
Margin balance
Your USDT balance plus the unrealised profit and loss of all your positions.
Maintenance margin
The smallest margin balance you must keep. It is 0.4% of the position value on BTC and ETH positions up to 300,000 USDT, and 0.5% on XRP positions up to 40,000 USDT. Bigger positions have higher rates.
Margin ratio
Maintenance margin divided by margin balance. At 100% you are liquidated.

One balance behind every position

Perpetual futures here use cross margin, and it is the only mode. You have one USDT balance, and all of it stands behind all of your positions. A loss on one position eats into the balance that supports the others. Coins you bought on the spot market do not count as margin.

You choose leverage for each market, up to 150x on BTC and ETH and 100x on XRP for smaller positions. Larger positions get lower caps. If you never choose, it is 20x. The leverage setting decides how much margin a new position takes from your available balance. It does not decide when you are liquidated: your balance and the size of your positions do.

A worked example

You start with 10,000 USDT and buy 1 BTC on the BTC perpetual at 50,000 USDT, with leverage at 20x. It is a market order, so you pay the taker fee of 0.05%: 25 USDT.

The position just after it opens
FigureUSDT
Position value50,000
Fee paid25
Balance after the fee9,975
Margin set aside (50,000 divided by 20)2,500
Available for new orders7,475
Maintenance margin (0.4% of 50,000)200
Estimated liquidation price40,185.74

Your position is worth about 5 times your balance. Each 1% move in the price changes your margin balance by 500 USDT, about 5% of it.

Now the price falls to 45,000. Your unrealised loss is 5,000 USDT, so your margin balance is 4,975 USDT. The maintenance margin is now 180 USDT (0.4% of 45,000), and the margin ratio is 3.62%. You are well clear of liquidation.

When liquidation happens

You are liquidated when your margin balance falls to the maintenance margin of all your positions. In the example that happens at about 40,185.74 USDT, a fall of 19.6% from your entry. At that price your loss is 9,814.26 USDT, which leaves a margin balance of 160.74 USDT: exactly the maintenance margin, 0.4% of 40,185.74.

When an account is liquidated, the exchange:

  1. cancels all your open perpetual orders, including stop-loss and take-profit orders;
  2. closes your positions one at a time against the live order book, the one with the largest unrealised loss first, each in one go where the order book allows;
  3. stops once your margin balance is back above the maintenance margin of what is left;
  4. charges a liquidation fee of 1.25% of the value of each position it closes, in place of the usual trading fee, taking at most what is left in your balance.

In the example the fee would be 1.25% of 40,185.74, which is 502.32 USDT, but only 160.74 USDT is left, so that is what it takes. You end with 0 USDT. Because the fee is larger than the maintenance margin, a liquidation usually closes every position you hold.

So in practice a liquidation takes nearly all of your USDT. Your spot coins and spot orders are not touched.

Why the liquidation price is an estimate

The trading screen shows an estimated liquidation price for each position. It is worked out from your balance and all your other positions at that moment, so it moves when they do:

Keep an eye on the margin ratio as well. You get a warning when it reaches 80% and another at 90%.

When the loss is bigger than your balance

In a fast market a position can close at a price worse than its liquidation price, and the loss can be larger than your balance. While you still hold other positions, the part that could not be charged is owed. It shows as losses owed, and any USDT that becomes free pays it back first. When your last position closes, whatever is still owed is written off. Your USDT balance itself never goes below zero.

Leverage changes how much you can open, not where you are liquidated

Go back to the example and set leverage to 10x instead. The margin set aside doubles to 5,000 USDT, and you have 4,975 USDT available instead of 7,475. The estimated liquidation price stays at 40,185.74, because your balance and your position are the same. What moves it is the size of the position against your balance:

Long BTC at 50,000 USDT from a 10,000 USDT balance
PositionEstimated liquidation priceFall to liquidation
0.2 BTC (10,000 USDT)25.1099.9%
0.5 BTC (25,000 USDT)30,145.5839.7%
1 BTC (50,000 USDT)40,185.7419.6%

A low leverage setting does not protect you on its own. A small position does.

Read next

Try it with paper money

Start with 10,000 USDT in paper money and see how your trades add up.

Start trading