Drawdown Analysis in a Backtest
What Is Maximum Drawdown and Why Does It Matter?
Maximum drawdown is the largest peak-to-trough percentage decline in your account equity during the backtest period. It answers a critical question: At the worst moment, how much money did you lose from your all-time high? A strategy might show impressive average returns, but if the maximum drawdown is 60%, you'd need exceptional psychological strength and sufficient capital to survive that decline without panic-selling.
Maximum drawdown is the first place most traders look after examining returns, because it reveals the cost of pursuing those returns. A strategy with a 20% annual return and a 35% maximum drawdown is more realistic and tradeable than a strategy with a 25% annual return and a 70% maximum drawdown. Understanding drawdown—its magnitude, duration, and frequency—is essential for position sizing, capital allocation, and deciding whether you can psychologically endure the strategy's behavior.
Quick definition: Maximum drawdown is the largest percentage decline from an equity peak to a subsequent trough during the backtest. It's measured as (Trough Value − Peak Value) / Peak Value × 100. Recovery time is how long it took to return to the previous peak.
Key takeaways
- Maximum drawdown reveals the worst-case loss you faced during backtesting and helps you estimate live trading risk
- A strategy with lower returns but controllable drawdown (e.g., 15% return, 20% drawdown) is often more tradeable than a high-return, high-drawdown strategy
- Drawdown analysis should include duration (how long the equity stayed depressed), frequency (how often large drawdowns occurred), and recovery time
- Professional traders typically accept maximum drawdowns of 15–35%, depending on their risk tolerance and capital adequacy
- Understanding drawdown is essential for position sizing using the Kelly Criterion or fixed-fractional methods
Understanding maximum drawdown calculation
Maximum drawdown is typically expressed as a percentage and calculated by tracking your account equity (starting capital plus cumulative profit/loss) across all trades.
Suppose your account started with $100,000. After a series of winning trades, it grows to $145,000 (peak). A losing streak then reduces it to $97,000 (trough). The drawdown from peak to trough is:
Drawdown = (97,000 − 145,000) / 145,000 = −$48,000 / $145,000 = −33%
You've lost 33% of your peak equity. This is measured from the highest point you reached, not from your starting capital. If your account had later recovered to $135,000 and then fallen to $90,000, the new drawdown would be measured from $135,000, not $145,000.
Maximum drawdown is the largest such decline across the entire backtest period. If you experienced a 33% drawdown and later a 28% drawdown, your maximum drawdown is 33%.
Why maximum drawdown matters more than average returns
A strategy returning 15% annually with a 30% maximum drawdown is fundamentally different from a strategy returning 18% annually with a 75% maximum drawdown. Most traders would rationally prefer the first strategy because:
- Capital preservation: Smaller drawdowns mean less capital wiped out, leaving more to recover.
- Psychological sustainability: A 30% drawdown is easier to endure than a 75% drawdown. Panic-selling and rule-breaking are more likely in deep drawdowns.
- Leverage limitations: If you're using leverage, a 75% drawdown might trigger a margin call or force you to exit positions at the worst time.
- Recovery math: After a 30% loss, you need a 43% gain to recover. After a 75% loss, you need a 300% gain to return to break-even.
The math of recovery is crucial. If you lose 50%, you must make 100% to recover. If you lose 70%, you must make 233% to recover. This is why deep drawdowns are particularly damaging—the recovery burden becomes enormous.
Types of drawdown metrics
Beyond maximum drawdown, professional traders analyze:
Drawdown duration: How long was the account in drawdown? If your maximum drawdown was 35% but lasted only two weeks, that's different from a 35% drawdown lasting six months. Longer drawdowns are psychologically harder and represent extended periods of lost opportunity.
Average drawdown: The mean of all drawdowns above a certain threshold (e.g., >5%). This reveals whether large drawdowns are isolated events or habitual.
Drawdown frequency: How often did the strategy experience large drawdowns? If the strategy hit a 30%+ drawdown three times in two years, it's more volatile than a strategy that hit such a drawdown only once.
Recovery time: How many days (or trades) did it take to recover from a major drawdown? A 40% drawdown recovered in two months is very different from a 40% drawdown taking six months to recover.
Decision tree
Analyzing drawdown distribution and frequency
Not all drawdowns are created equal. A strategy with one 45% drawdown and otherwise smooth performance is different from a strategy with multiple 30–35% drawdowns scattered throughout the backtest.
To assess risk accurately, create a histogram of all drawdowns. How many were >10%? How many were >20%? How many were >30%? If 30%+ drawdowns happen twice per year on average, you'll likely experience them regularly in live trading.
Similarly, examine the distribution of drawdown recoveries. If the strategy recovered most drawdowns within one month but one recovery took six months, that's useful information. Longer recovery times often indicate the strategy got stuck in an unfavorable regime—perhaps a trend-following strategy in a choppy market, or a mean-reversion strategy in a trending market.
Position sizing using drawdown targets
Understanding your maximum drawdown allows you to size positions correctly. If your maximum drawdown is 35% and you have $100,000 in capital, you need to be psychologically prepared to see your account drop to $65,000 at some point. Many traders size positions assuming a smaller drawdown, then panic when reality exceeds expectations.
A common approach is the Kelly Criterion, which calculates optimal position size based on your win rate and win/loss ratio. However, even Kelly-sized strategies can produce unexpectedly large drawdowns in adverse market conditions, so a safety margin is prudent.
Another approach is fixed-fractional position sizing: risk a fixed percentage of your account per trade (e.g., 2% per trade). If your maximum drawdown came from 15 consecutive losses, risking 2% per trade would produce a cumulative drawdown of approximately (0.98)^15 = 74% of capital. This highlights that account drawdown is cumulative across trades and can exceed your per-trade risk.
Real-world examples
Consider a swing trading strategy on Treasury futures, backtested over three years of daily data:
- Total return: 22% annually (including compounding)
- Maximum drawdown: 18%
- Average drawdown duration: 8 trading days
- Drawdown frequency: Four instances of >10% drawdown per year
This profile is tradeable for most professional traders. An 18% drawdown is tolerable, recovery is quick, and large drawdowns are infrequent. Position sizing for a $250,000 account would allow risking enough per trade to capture the strategy's expectancy while enduring the historical drawdown.
By contrast, a day-trading scalping strategy shows:
- Total return: 25% annually
- Maximum drawdown: 62%
- Average drawdown duration: 43 trading days
- Drawdown frequency: Two instances of >40% drawdown per year
The higher returns are offset by the large drawdowns. A 62% decline means a $250,000 account would drop to $95,000, requiring $155,000 in gains to recover—a daunting math problem. Many traders would find this psychologically unmanageable, even though the annual return is higher than the first strategy.
Common mistakes
Confusing maximum drawdown with average losses. A strategy might have an average losing trade of $500 but a maximum drawdown of 40% because multiple losses compounded. Understanding that drawdown is a cumulative, account-level metric—not a single-trade metric—is essential.
Ignoring drawdown duration and recovery time. A 30% drawdown lasting two weeks is recoverable; a 30% drawdown lasting six months might force you to abandon the strategy before recovery. Always review how long major drawdowns lasted.
Assuming historical drawdown is the maximum possible. A backtest showing a 35% maximum drawdown might experience a 50% drawdown in live trading if market conditions shift. Assume your live drawdown could be 20–30% worse than the historical maximum, and size positions accordingly.
Underestimating the psychological impact of drawdown. Paper-trading or backtesting a 40% drawdown feels abstract. Living through it with real capital is emotionally brutal. Many traders who pass the intellectual test (understanding the math) fail the psychological test (staying disciplined during the drawdown).
Neglecting regime-specific drawdowns. A momentum strategy might show a moderate drawdown in a diversified backtest but experience a 70% drawdown during a sharp market reversal. Analyze drawdown behavior across different market regimes (trending, range-bound, high-volatility, low-volatility) to catch regime-dependent risk.
FAQ
Is a lower maximum drawdown always better?
Not if it comes at the cost of much lower returns. A strategy with a 10% maximum drawdown and 5% annual return is not superior to a strategy with a 25% maximum drawdown and 15% annual return. The trade-off between return and drawdown is personal; you must decide your acceptable risk-return profile. However, for a given level of return, lower drawdown is always preferable because it means smoother, less volatile equity curves.
How do I know if a drawdown is "acceptable"?
Ask yourself: Would I be comfortable seeing my account drop this far and potentially farther? Can I maintain discipline and not panic-sell? Do I have sufficient capital to endure it without being forced to reduce position size? If the answer to any question is "no," the drawdown is too large for you. Most professional traders accept maximum drawdowns of 15–40%, depending on their experience and capital cushion.
Does a large drawdown early in the backtest matter less than one at the end?
Not necessarily. A large drawdown early in the backtest is still part of the strategy's risk profile. However, drawdowns late in the backtest—especially if followed by poor recovery—are more concerning because they suggest the strategy may not adapt well to recent market conditions. Always check whether large drawdowns are clustered in a particular period or distributed throughout.
How does drawdown relate to Sharpe ratio?
Sharpe ratio measures risk-adjusted returns, factoring in volatility. Drawdown measures the largest loss. A high-volatility strategy might have a modest Sharpe ratio despite good returns because volatility is high. A strategy with low volatility but occasional large drawdowns might have a decent Sharpe ratio but concerning drawdown characteristics. Use both metrics: Sharpe for overall risk, drawdown for tail risk.
Should I reduce position size if I expect large drawdowns?
Yes. If your backtest shows a 40% maximum drawdown and you want to reduce this to a psychologically manageable 20%, you can halve your position size, which would proportionally halve the expected drawdown. However, this also halves your expected returns. Alternatively, you can accept the larger drawdown and ensure sufficient capital cushion to weather it without emotional strain.
Can I eliminate drawdown by diversifying across strategies?
Partially. If you run multiple strategies with non-correlated or inversely correlated equity curves, the combined portfolio drawdown might be smaller than the largest single strategy's drawdown. However, diversification doesn't eliminate drawdown entirely; it usually reduces it by 20–40%. Each strategy must still be designed with drawdown in mind.
Related concepts
- Expectancy and Profit Factor — How average trade size and win rate drive account growth between drawdowns
- Interpreting Backtest Results Correctly — Comprehensive approach to reading all backtest metrics together
- Risk of Ruin Overview — Mathematical framework for capital preservation and drawdown thresholds
- Backtesting Overview — Foundation for understanding what backtest metrics reveal
Summary
Maximum drawdown is the largest peak-to-trough decline in account equity during a backtest. It reveals the real cost of pursuing returns and is essential for position sizing and psychological preparation. Beyond the maximum, analyze drawdown duration, frequency, and recovery time to understand the full risk picture. A strategy with consistent, moderate drawdowns is more tradeable than one with rare but extreme drawdowns. Always cross-reference drawdown with returns and other metrics like Sharpe ratio to make a complete risk assessment. Remember that historical maximum drawdown is likely an underestimate of live trading drawdown; size positions conservatively. A strategy with reasonable returns (15%+), manageable drawdown (<35%), and quick recovery time is a strong foundation for forward testing.