Sub topic 2
How Leverage Multiplies Gains and Losses
Assume you understand basic buying and selling, long and short positions, percentages, and simple Python. This chapter focuses on the arithmetic of leverage. It does not yet cover how an exchange calculates the exact liquidation price.
Margin, position size, and leverage
Margin is the trader’s own collateral deposited for a position. Notional value is the total market value controlled by the position. Leverage is the ratio between notional value and margin:
leverage = notional value / marginFor example, depositing $1,000 to control a $10,000 position uses 10x leverage. The trader is exposed to the price movement of $10,000, but the trader’s own margin is only $1,000.
A long position gains when the asset price rises. A short position gains when the asset price falls. Before fees and funding, the position’s profit or loss is based on the notional value:
profit or loss = notional value × price changeThe return on the trader’s margin is therefore approximately:
margin return = leverage × price changeThis multiplication works in both directions.
| Leverage | Asset move | Approximate return on margin |
|---|---|---|
| 1x | 5% up | 5% gain |
| 5x | 5% up | 25% gain |
| 10x | 5% down | 50% loss |
Worked example: a leveraged long
Suppose a trader deposits $1,000 and opens a 10x long position worth $10,000. If the asset rises by 5%, the position gains:
$10,000 × 0.05 = $500The trader’s margin grows from $1,000 to about $1,500, a 50% return on margin.
If the asset instead falls by 5%, the position loses $500. The trader has about $500 of margin left, a 50% loss.
The same calculation can be expressed in Python:
def equity_return(leverage, price_move):
"""Return on margin, 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% move into a 50% gain or loss.A 10% move against a 10x position could consume roughly all of the original margin. In practice, liquidation usually occurs before that point because the exchange requires maintenance margin and may charge fees.
Why the loss is not always exactly symmetrical
The simple formula ignores trading fees, funding payments, slippage, and changes in the required margin. Funding is a periodic payment between traders in many perpetual futures markets. Slippage is the difference between the expected execution price and the actual price.
These costs reduce a profitable position and deepen a losing position. A position can also be liquidated before its margin reaches zero because the exchange must protect the lender or trading system from unpaid losses.
Exercise
A trader deposits $2,000 and opens a 4x long position. Ignoring fees and funding, what is the approximate dollar loss and margin return after a 6% price fall?
Show answer
The position is worth $8,000. The loss is $8,000 × 0.06 = $480, which is a 24% loss of the $2,000 margin.