Sub topic 7
Leverage and Liquidation: How Borrowed Money Magnifies Losses
This chapter assumes you know what a cryptocurrency is and how to trade on an exchange. It also assumes you are comfortable with percentages and can read short Python programs. The earlier chapters on volatility, drawdown and liquidity risk give the background. This is educational material, not financial advice.
What leverage is
Leverage means controlling a position larger than the money you put up. You deposit your own money as margin, which is collateral. The platform lends you the rest. The ratio of position size to margin is the leverage.
With 1,000 of margin at 5x leverage, you control a 5,000 position. Your profit and loss are calculated on the full 5,000, but your capital is only 1,000.
You can get leverage in several places:
- Perpetual futures and margin trading on exchanges.
- Borrowing against crypto collateral on a lending platform, then buying more crypto with the loan.
- Leveraged tokens and DeFi looping strategies, which repeat the borrow-and-buy step.
How leverage magnifies returns
The return on your own capital is roughly the price return multiplied by the leverage. Leverage works in both directions:
| Price move | Return at 1x | Return at 5x | Return at 10x |
|---|---|---|---|
| +5% | +5% | +25% | +50% |
| -5% | -5% | -25% | -50% |
| -10% | -10% | -50% | -100% |
| -20% | -20% | -100% (capped) | -100% (capped) |
Your loss on a position is capped at your margin, but only if the platform closes the position in time. That closing is liquidation.
Liquidation
A liquidation is the forced closing of a leveraged position by the platform. It happens when your losses use up so much of your margin that the lender's money is at risk. You do not choose the timing, and you do not get to wait for a recovery.
Two terms matter here:
- Maintenance margin is the minimum equity the platform requires you to keep in the position. It is usually a small percentage of the position size.
- Liquidation price is the price at which your remaining equity falls to the maintenance margin.
For a long position with leverage L and a maintenance margin rate m, ignoring fees and funding:
liquidation price = entry price × (1 − 1/L + m)
For a short position, the formula is entry price × (1 + 1/L − m).
def liquidation_price(entry, leverage, maintenance=0.005, side="long"):
"""Approximate liquidation price, ignoring fees and funding."""
if side == "long":
return entry * (1 - 1 / leverage + maintenance)
return entry * (1 + 1 / leverage - maintenance)
entry = 100.0
for leverage in [1, 2, 5, 10, 20]:
liq = liquidation_price(entry, leverage)
drop = 1 - liq / entry
print(f"{leverage:>2}x long: liquidated near {liq:6.2f}, a {drop:.1%} fall")Running it prints:
1x long: liquidated near 0.50, a 99.5% fall
2x long: liquidated near 50.50, a 49.5% fall
5x long: liquidated near 80.50, a 19.5% fall
10x long: liquidated near 90.50, a 9.5% fall
20x long: liquidated near 95.50, a 4.5% fallThe liquidation distance shrinks roughly as 1/L. A 10x position survives about a 9.5% fall, and a 20x position survives about 4.5%.
Compare that with the volatility you measured earlier. A coin with a daily volatility of 4% to 5% routinely moves 5% or more in a day. A 20x long is therefore likely to be liquidated by ordinary noise, even if the price later recovers.
Why liquidation is worse than a normal loss
Selling at a loss and being liquidated both lose money, but liquidation adds three problems.
- You lose the recovery. An unleveraged holder who sits through a 30% drop can still recover. A liquidated trader has already been closed out at the bottom.
- Fees and penalties. Many platforms charge a liquidation fee, and DeFi protocols add a penalty. These come out of your remaining collateral.
- Gaps and slippage. Prices can jump past your liquidation price. If the platform cannot close your position at that price, the loss can exceed your margin. Exchanges cover the shortfall from an insurance fund, and if the fund is empty they may use auto-deleveraging, which forcibly closes profitable positions on the other side. Most spot-and-margin accounts cannot go below zero, but you should check the terms for the product you use.
Liquidity risk and leverage risk reinforce each other. When the order book is thin, a forced sale moves the price further, and the wider move triggers more liquidations.
The liquidation cascade
Liquidations are market orders. A long liquidation is a forced sell, and a forced sell pushes the price down, which can trigger the next group of liquidations.
This is why crypto sometimes shows sharp drops in minutes, followed by a partial rebound. The rebound does not help the traders who were already closed out. A short squeeze is the mirror image. A rising price forces short sellers to buy back, which pushes the price up further.
Computing the damage on your capital
This function shows the return on your own margin, including the point where liquidation caps the loss.
def leveraged_return(price_return, leverage, maintenance=0.005):
"""Return on margin for a long position, ignoring fees and funding.
Returns -1.0 (a 100% loss of margin) once the position would be liquidated.
"""
liquidation_move = -(1 / leverage - maintenance)
if price_return <= liquidation_move:
return -1.0
return leverage * price_return
for move in [0.05, -0.05, -0.10, -0.20]:
row = [f"{leveraged_return(move, lev):+.0%}" for lev in (1, 5, 10)]
print(f"price {move:+.0%}: 1x {row[0]}, 5x {row[1]}, 10x {row[2]}")This is a simplification. Real platforms usually liquidate before your equity reaches exactly zero, and they may charge fees on top. Use the output as a rough estimate, not an exact figure.
Details that change your liquidation price
- Isolated vs. cross margin. In isolated margin, only the margin assigned to one position is at risk. In cross margin, your whole account balance backs the position. Cross margin pushes liquidation further away but can lose everything in the account.
- Mark price vs. last price. Most exchanges liquidate on a mark price, an index built from several markets. This protects against a single-venue price spike but means your liquidation can differ from the chart you are watching.
- Funding rates. On perpetual futures, one side pays the other a periodic funding fee. Paying funding steadily erodes your margin and moves your liquidation price closer.
- Fees. Trading and liquidation fees reduce the equity cushion.
- DeFi lending. Protocols express safety as a collateralization ratio or health factor. If your collateral value falls or your debt value rises, anyone can repay part of your debt and take your collateral at a discount. The discount is the penalty you pay. Oracle errors or delays can trigger liquidations at the wrong price.
- Borrowing against volatile collateral. If you borrow a stablecoin against ETH, your debt does not fall when ETH falls. Your collateral does. The same mechanics apply even without a trading product.
Reducing leverage risk
- Prefer no leverage. If you use it, keep it low, and leave a wide gap between your entry and your liquidation price. Aim for a gap larger than the drawdowns you expect.
- Calculate the liquidation price before you open the position, and check the platform's own figure.
- Use isolated margin so one mistake cannot reach your whole account.
- Keep spare collateral available to add margin, but decide in advance a total you will not exceed. Adding money to a losing position increases your exposure.
- In DeFi, keep a health factor well above the minimum, and watch it during sharp price moves.
- Size the position using the method in the position-sizing chapter. Size by the amount you can afford to lose, and do not size to the maximum leverage the platform allows.
Exercise
You open a 10x long position on a coin at an entry price of 2,000 with a maintenance margin of 0.5%. Using the formula in this chapter, what is the approximate liquidation price, and what percentage fall does it represent? What would the liquidation price be at 20x?
Show answer
At 10x: 2,000 × (1 − 1/10 + 0.005) = 2,000 × 0.905 = 1,810, a 9.5% fall. At 20x: 2,000 × (1 − 1/20 + 0.005) = 2,000 × 0.955 = 1,910, a 4.5% fall. Doubling the leverage roughly halves the price move you can survive. Real platforms will differ somewhat because of fees and funding.
Exercise
A trader is 5x long with 1,000 of margin. The price falls 8% but does not reach the liquidation price. How much is the loss on the margin, and why might the position still be dangerous afterwards?
Show answer
The position is 5,000, so an 8% fall loses 400, which is 40% of the margin. The remaining 600 of margin now supports the same 5,000 position, so the effective leverage has risen to about 8.3x and the liquidation price is now much closer to the current price. A further small fall could liquidate the position.