Sub topic 4
Initial Margin, Maintenance Margin, and the Buffer Between Them
Assume you know basic buying, selling, long and short positions, percentages, and simple Python. This chapter uses an isolated, linear futures position and ignores fees, funding, and exchange-specific margin tiers unless stated otherwise.
Initial margin opens the position
Initial margin is the amount of your own capital required to open a leveraged position. It is collateral, not a fee. The exchange holds it to cover potential losses.
The relationship between notional value, initial margin, and leverage is:
\[ \text{Initial margin} = \frac{\text{Position notional}}{\text{Leverage}} \]
Suppose you open a $10,000 long position with 5x leverage:
- Position notional: $10,000
- Leverage: 5x
- Initial margin: $10,000 ÷ 5 = $2,000
You control $10,000 of the asset while committing $2,000 of collateral. A 1% price move changes the position's unrealized profit or loss by about $100, before costs.
Maintenance margin keeps the position open
Maintenance margin is the minimum equity that must remain in the position. Equity is your collateral plus unrealized profit or loss.
If losses reduce equity to the maintenance requirement, the exchange can liquidate the position. Liquidation protects the exchange and other traders from a position losing more than its collateral.
Maintenance margin is usually stated as a percentage of position value:
\[ \text{Maintenance requirement} = \text{Current notional} \times \text{Maintenance rate} \]
For a $10,000 position with a 0.5% maintenance rate, the requirement is $50. In practice, exchanges may use tiered rates, where larger positions have higher maintenance rates.
| Quantity | Meaning | Example |
|---|---|---|
| Notional value | Total market value controlled | $10,000 |
| Initial margin | Collateral required to open | $2,000 |
| Maintenance rate | Minimum collateral rate | 0.5% |
| Maintenance requirement | Equity needed to remain open | $50 |
| Margin buffer | Equity above the requirement | $1,950 initially |
The buffer shrinks as losses accumulate
The margin buffer is the distance between your current equity and the maintenance requirement:
\[ \text{Buffer} = \text{Position equity} - \text{Maintenance requirement} \]
For the example above, the position starts with $2,000 of equity and a $50 maintenance requirement. Its initial buffer is $1,950.
A long position loses money when its asset price falls. If the position loses $1,000, equity becomes $1,000, so the buffer becomes approximately $950. The position is still open, but it has less room for another price decline.
The buffer is not simply the difference between the entry price and the liquidation price. The maintenance requirement changes as the position's notional value changes, and fees or funding can consume collateral. Exchanges also use a mark price and may reserve liquidation fees.
def margin_state(initial_margin, unrealized_pnl, notional, maintenance_rate):
equity = initial_margin + unrealized_pnl
maintenance = notional * maintenance_rate
buffer = equity - maintenance
return equity, maintenance, buffer
equity, maintenance, buffer = margin_state(
initial_margin=2_000,
unrealized_pnl=-1_000,
notional=10_000,
maintenance_rate=0.005,
)
print(f"Equity: ${equity:,.2f}")
print(f"Maintenance requirement: ${maintenance:,.2f}")
print(f"Buffer: ${buffer:,.2f}")From buffer to liquidation
Liquidation becomes possible when:
\[ \text{Equity} \leq \text{Maintenance requirement} \]
For a simplified isolated long, the initial margin is \(1/L\) of the entry notional, where \(L\) is leverage. If the maintenance rate is \(m\), an approximate liquidation price is:
\[ P{\text{liq}} = P{\text{entry}} \frac{1 - 1/L}{1-m} \]
With a $100 entry price, 10x leverage, and a 0.5% maintenance rate:
\[ P_{\text{liq}} \approx 100 \times \frac{0.9}{0.995} = \$90.45 \]
The approximate 9.55% price buffer is much smaller than the trader's 90% unleveraged loss tolerance because leverage consumes most of the position's value with borrowed exposure.
Exercise
A trader opens a $20,000 position with 4x leverage. The maintenance rate is 1%. What are the initial margin and initial maintenance requirement, ignoring fees and funding?
Show answer
Initial margin is $20,000 ÷ 4 = $5,000. Initial maintenance requirement is $20,000 × 0.01 = $200. The initial margin buffer is approximately $4,800.