Sub topic 2
How Leverage Multiplies Gains and Losses
This chapter covers one rule: return on your own margin equals leverage times the price move. It assumes you know what a long and a short position are, can work with percentages, and can read short Python functions. Margin means the deposit you put up to open a position. Leverage means the ratio of position size to that deposit.
The core relationship
Suppose you deposit 1,000 USDT as margin and open a position worth 10,000 USDT. Your leverage is 10x, because the position is ten times your deposit. The position's value moves with the price of the asset. Your deposit absorbs all of that movement.
If the price rises 5%, the position gains 5% of 10,000, which is 500 USDT. Your margin was 1,000, so your return on margin is 50%. If the price falls 5%, you lose 500 USDT, which is 50% of your margin.
The general rule for a long position is:
return on margin = leverage × price moveFor a short position, the sign flips. A price rise hurts you and a price fall helps you:
return on margin (short) = −leverage × price moveThe same factor applies to gains and to losses. Leverage does not improve your odds. It scales the size of the outcome.
Why the factor appears
The factor comes from two quantities:
- Position value = margin × leverage.
- Profit or loss in currency = position value × price move.
Divide profit or loss by margin and the margin cancels on one side:
return on margin = (margin × leverage × price move) / margin = leverage × price moveThis is why the amount you deposit does not change the percentage result. Only the ratio matters.
Worked code example
The function below implements the rule for a long position. It ignores fees and funding, which later chapters cover.
def equity_return(leverage, price_move):
"""Return on the trader's own margin for a long position, ignoring fees and funding."""
return leverage * price_move
for lev in (1, 5, 10):
print(lev, equity_return(lev, 0.05), equity_return(lev, -0.05))
# 10x leverage turns a 5% price move into a 50% gain or loss on margin.Running it prints one line per leverage level. Each line holds the leverage, the return for a 5% rise, and the return for a 5% fall. Expect values such as 1 0.05 -0.05, 5 0.25 -0.25 and 10 0.5 -0.5. Floating-point rounding may add trailing digits to some of these numbers.
| Leverage | Price +5% | Price −5% | Price −10% |
|---|---|---|---|
| 1x | +5% | −5% | −10% |
| 5x | +25% | −25% | −50% |
| 10x | +50% | −50% | −100% |
| 20x | +100% | −100% | −200% (not possible, see below) |
The last cell shows a limit. You cannot lose more than your margin on most venues, because the exchange closes the position first. That forced closing is a liquidation, covered in later chapters. At 10x, a 10% drop would erase the margin exactly. In practice the position is closed earlier, because exchanges require a minimum buffer.
The asymmetry hidden in the symmetry
The multiplier is symmetric in percentage-of-price terms, but your outcomes are not symmetric over time. Two effects cause this.
Losses need larger gains to recover
A loss of 50% on margin needs a 100% gain on what remains to get back to the start. At 10x leverage, a 5% price drop costs you 50% of your margin. To recover from there you need a 100% return on the smaller balance, which at the same leverage means a 10% price rise from the new level. The position has to move twice as far in percentage terms as it fell.
A position has a hard floor
Gains on a long position have no upper limit. Losses stop at the margin you deposited, because the exchange closes the position. That sounds like protection, but it means a leveraged trade often ends with a complete loss of its margin after a modest adverse move. Higher leverage makes that adverse move smaller.
Compounding the leverage through price changes
The rule leverage × price move is exact at the moment you open a position. As the price moves, your effective leverage changes, because your margin changes while your position size stays the same.
Take a 10x long with 1,000 margin and a 10,000 position. After a 5% rise, the position is worth 10,500 and your equity is 1,500. Your effective leverage is now 10,500 / 1,500 = 7x. You have more cushion.
After a 5% fall instead, the position is worth 9,500 and your equity is 500. Effective leverage is 9,500 / 500 = 19x. You hold the same position with half the cushion, so the next 1% drop costs you far more as a share of what remains.
The next function computes effective leverage after a price move.
def effective_leverage(leverage, price_move):
"""Position value divided by current equity for a long position, ignoring fees and funding."""
position = leverage * (1 + price_move)
equity = 1 + leverage * price_move
if equity <= 0:
return float("inf")
return position / equity
for move in (0.05, 0.0, -0.05, -0.09):
print(move, round(effective_leverage(10, move), 2))The function uses a margin of 1 as the unit. It prints approximately 7.0 for +5%, 10.0 for 0%, 19.0 for −5% and 91.0 for −9%. At −9%, a 10x long has only 10% of its margin left, so any further drop is close to fatal. Losing positions get riskier as they lose. This is the mechanism that makes a drawdown on leverage accelerate toward liquidation.
Breakeven and costs
The rule ignores costs, and costs are also scaled by leverage in one sense. Trading fees are charged on position value, not on margin. A fee of 0.05% on a 10,000 position is 5 USDT, which is 0.5% of a 1,000 margin. So fees expressed against your margin are multiplied by the same factor as your returns.
def breakeven_move(leverage, fee_rate, round_trip=True):
"""Price move needed to cover fees, as a fraction of price."""
legs = 2 if round_trip else 1
return fee_rate * legs
def net_margin_return(leverage, price_move, fee_rate):
gross = leverage * price_move
fees_on_margin = leverage * fee_rate * 2 # open and close
return gross - fees_on_margin
print(breakeven_move(10, 0.0005)) # 0.001, a 0.1% price move
print(round(net_margin_return(10, 0.01, 0.0005), 4)) # 0.09 instead of 0.10The breakeven price move does not depend on leverage, since both the fee and the position scale together. What changes is the cost against your margin: at 10x, the same 0.1% round-trip fee takes 1% of your margin, and at 1x it takes 0.1%. Funding payments on perpetual futures work in a similar way and are covered in a later chapter.
Common errors
- Quoting the move on price instead of margin. A "10% gain" at 10x leverage means the price rose 1%. Check which base a percentage refers to.
- Forgetting the sign for shorts. A short at 5x loses 25% of margin when the price rises 5%.
- Treating leverage as fixed. Effective leverage rises as a position loses, so the starting figure understates the risk later.
- Assuming the loss is limited to the move you expect. The loss limit is your margin, and the liquidation point can sit well before the price falls by 1 divided by the leverage.
- Ignoring costs. Fees and funding come out of your margin, so they matter more at high leverage.
Connecting to liquidation
The relationship tells you how far the price must move before your margin is gone. Set the return to −100% and solve:
price move to wipe out margin = −1 / leverageAt 10x, that is −10%. At 20x, it is −5%. At 100x, it is −1%. Exchanges liquidate you before this point, so the real distance is smaller. The next chapters show how to find that point precisely with maintenance margin, and why it matters for the whole market when many traders hold similar positions.
Exercise
A trader opens a 8x short with 500 USDT of margin. The price rises 4%. What is the trader's return on margin, and how much equity is left, ignoring fees and funding?
Show answer
For a short, return = −leverage × price move = −8 × 0.04 = −0.32, a loss of 32% of margin. The loss is 0.32 × 500 = 160 USDT, so 340 USDT of equity remains.
Exercise
A 10x long has 1,000 USDT margin and a 10,000 USDT position. The price falls 6%. What is the effective leverage after the fall?
Show answer
The position is worth 10,000 × 0.94 = 9,400. Equity is 1,000 − 600 = 400. Effective leverage is 9,400 / 400 = 23.5x, up from 10x.
Exercise
Why does a 0.1% round-trip fee take 1% of margin at 10x leverage but only 0.1% at 1x?
Show answer
Fees are charged on position value. At 10x the position is ten times the margin, so the same fee rate costs ten times as much relative to margin. At 1x the position equals the margin, so the fee is 0.1% of it.