Position Sizing & Leverage: Kelly Criterion Strategy › Leverage Limits and Margin Requirements

Michael BrenndoerferJanuary 23, 20267 min read
Quantitative FinanceAll chapters
Part 14 of 15Strategy Development and Backtesting
Chapter 75Position Sizing & Leverage: Kelly Criterion Strategy › Leverage Limits and Margin Requirements
Reading section 4 of 9 · Leverage Limits and Margin Requirements · 7 minSection 4 of 9 · 7 min

Book contents

Section 4 of 9 · 7 min read

Position Sizing & Leverage: Kelly Criterion Strategy › Leverage Limits and Margin RequirementsOne section · Sections in this chapter4 / 9 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Leverage amplifies both gains and losses. While optimal sizing theory suggests an ideal leverage level, practical constraints impose hard limits on how much leverage can be employed. Understanding these constraints is essential for translating theoretical optimal positions into executable trades.

Understanding Margin and Leverage

When trading on margin, you borrow funds from your broker to increase position size beyond your capital. The key concepts are:

  • Initial margin: The minimum equity required to open a position, typically 25-50% for stocks.
  • Maintenance margin: The minimum equity required to keep a position open, typically 25-30%.
  • Margin call: When equity falls below maintenance margin, requiring additional funds or position reduction.
  • Leverage ratio: The ratio of total position size to equity. With 50% initial margin, maximum leverage is 2x.

For derivatives, margin works differently. Futures require "performance bond" margin representing a small percentage of notional value, enabling leverage of 10x-20x or more. Options require margin based on potential loss scenarios.

Reg T Margin

Regulation T established by the Federal Reserve, sets the initial margin requirement for most U.S. securities at 50%, implying maximum leverage of 2x. Portfolio margin accounts may receive more favorable treatment based on hedged positions and overall portfolio risk.

The Mathematics of Leverage and Drawdown

Leverage has a nonlinear relationship with drawdown risk, making high leverage more dangerous than intuition suggests. Consider a strategy with return volatility σ\sigma. At leverage ℓ\ell, the leveraged volatility is ℓσ\ell \sigma. This linear scaling of volatility translates into highly nonlinear effects on drawdown probability.

Under geometric Brownian motion assumptions, the expected maximum drawdown over time horizon TT for a strategy with Sharpe ratio SS and leveraged volatility ℓσ\ell\sigma is approximately:

E[MaxDD]≈2ℓσT⋅Φ−1(1−e−ℓ2S2T/2)−1\mathbb{E}[\text{MaxDD}] \approx 2\ell\sigma\sqrt{T} \cdot \Phi^{-1}\left(1 - e^{-\ell^2 S^2 T / 2}\right)^{-1}

where:

  • E[MaxDD]\mathbb{E}[\text{MaxDD}]: expected maximum drawdown
  • ℓ\ell: leverage ratio
  • σ\sigma: strategy volatility
  • TT: time horizon
  • SS: Sharpe ratio
  • Φ−1\Phi^{-1}: inverse cumulative standard normal distribution function

The formula combines two components: a baseline volatility scaling term (2ℓσT2\ell\sigma\sqrt{T}) and a risk-adjusted multiplier (the inverse normal term) that accounts for how the strategy's Sharpe ratio and leverage interact to determine tail risk depth. The baseline term grows with the square root of time, while the multiplier depends on the interaction between leverage and strategy quality.

A simpler approximation for the probability of experiencing a drawdown of at least dd follows from the reflection principle for Brownian motion:

P(DD≥d)≈e−2d2/(ℓ2σ2T)P(\text{DD} \geq d) \approx e^{-2d^2 / (\ell^2 \sigma^2 T)}

where:

  • P(DD≥d)P(\text{DD} \geq d): probability of a drawdown exceeding dd
  • dd: drawdown threshold
  • ℓ\ell: leverage ratio
  • σ\sigma: volatility
  • TT: time horizon

This shows that drawdown probability is highly sensitive to leverage. Doubling leverage quadruples the exponent's denominator, dramatically increasing the probability of severe drawdowns. A drawdown that is virtually impossible at 1x leverage may be almost certain at 4x leverage.

In[9]:
Code
import numpy as np


def simulate_drawdowns(n_sims, n_days, daily_return, daily_vol, leverage):
    """Simulate maximum drawdowns for a leveraged strategy."""
    np.random.seed(42)
    max_drawdowns = []

    for _ in range(n_sims):
        # Generate daily returns
        returns = np.random.normal(
            leverage * daily_return, leverage * daily_vol, n_days
        )
        # Calculate cumulative wealth (starting at 1)
        wealth = np.cumprod(1 + returns)
        # Calculate running maximum
        running_max = np.maximum.accumulate(wealth)
        # Calculate drawdown
        drawdown = (running_max - wealth) / running_max
        max_drawdowns.append(np.max(drawdown))

    return np.array(max_drawdowns)


# Strategy parameters
daily_return = 0.0004  # ~10% annual
daily_vol = 0.01  # ~16% annual
n_days = 252  # One year
n_sims = 5000

# Test different leverage levels
leverage_levels = [1, 2, 3, 4, 5]
drawdown_results = {}

for lev in leverage_levels:
    dd = simulate_drawdowns(n_sims, n_days, daily_return, daily_vol, lev)
    drawdown_results[lev] = {
        "mean": np.mean(dd),
        "median": np.median(dd),
        "p95": np.percentile(dd, 95),
        "p99": np.percentile(dd, 99),
        "prob_50pct": np.mean(dd > 0.5),
    }

# Calculate base strategy statistics for display
annual_return = daily_return * 252
annual_vol = daily_vol * np.sqrt(252)
base_sharpe = annual_return / annual_vol
Out[10]:
Console
Impact of Leverage on Maximum Drawdown (1-year simulation)
======================================================================
Base strategy: 10.1% annual return, 15.9% annual vol
Sharpe ratio: 0.63
----------------------------------------------------------------------
Leverage   Mean DD      Median DD    95th %ile    99th %ile    P(DD>50%) 
----------------------------------------------------------------------
1x         14.3%        13.2%        25.0%        30.6%        0.0%      
2x         26.8%        25.2%        44.8%        52.7%        1.9%      
3x         37.7%        36.1%        60.0%        68.4%        16.6%     
4x         47.2%        45.8%        71.5%        79.3%        39.0%     
5x         55.4%        54.4%        80.2%        86.7%        61.1%
Out[11]:
Visualization
Five box plots of simulated maximum drawdowns for 1x through 5x leverage. The distributions move upward and widen with leverage, crossing a coral dashed 50% drawdown threshold; labels give the probability above that threshold.
Distribution of maximum drawdowns over one simulated year at leverage levels from 1x to 5x. Medians, interquartile ranges, whiskers, and the annotated probabilities of exceeding a 50% drawdown show how tail risk accelerates with leverage.

The simulation illustrates how leverage turns a reasonable strategy into a dangerous one. At 1x leverage, this strategy with a Sharpe ratio around 0.63 has modest drawdowns. At 5x leverage, the probability of a 50%+ drawdown in a single year exceeds 50%. Recovery from a 50% drawdown requires a 100% gain, which at 10% annual returns (before the drawdown) would take nearly 7 years.

Leverage and the Risk of Ruin

Beyond drawdowns, excessive leverage creates a risk of ruin: losing so much capital that continuing to trade becomes impossible. Several mechanisms create this risk:

Margin calls and forced liquidation: When losses erode equity below maintenance margin, positions are forcibly closed at unfavorable prices. This "stop out" crystallizes losses that might otherwise recover.

Gap risk: Markets can move discontinuously, especially over weekends or during crises. A 3x leveraged position in an asset that gaps down 35% overnight faces a 105% loss, exceeding total capital.

Volatility expansion: Leverage is often sized based on historical volatility, but volatility can spike dramatically during crises precisely when you're already losing money.

Correlation breakdown: Strategies that appear diversified in normal conditions often become highly correlated during market stress, magnifying portfolio-level losses.

Case Studies: Leverage Disasters

History provides examples of leverage-induced failures:

Long-Term Capital Management (1998): LTCM's strategies had estimated Sharpe ratios of 1-2, but they applied leverage of 25x or more. When the Russian debt crisis triggered a flight to quality, correlations spiked and spreads widened dramatically. LTCM lost $4.6 billion and required a $3.6 billion bailout coordinated by the Federal Reserve to prevent systemic contagion.

Amaranth Advisors (2006): This multi-strategy fund concentrated heavily in natural gas futures. When positions moved against them, leverage of approximately 8x transformed a significant loss into a $6 billion catastrophe wiping out the fund entirely.

XIV and Volatility ETNs (2018): Leveraged inverse volatility products lost nearly all their value in a single day during the "Volmageddon" event. A 115% spike in the VIX caused products designed to profit from calm markets to collapse.

The common thread: strategies that worked well in normal conditions failed when leverage combined with adverse market moves.