TradingView Backtest & Robustness Lab

Maximum Drawdown Explained: Calculation, Recovery and Risk Metrics

Maximum Drawdown Explained: Calculation & Recovery | SG Group

Learn / Backtest Evaluation — BT05

Maximum Drawdown Explained: Calculation, Recovery and Risk Metrics

Maximum drawdown is the deepest peak-to-trough decline within the observed period. The currency and percentage formulas differ, and the gain required to recover is not symmetric with the loss that caused it. This guide walks through the maximum drawdown calculation, the peak, trough and recovery timeline, the underwater curve, and how to read the Calmar ratio, Ulcer Index and Recovery Factor across three lenses: depth, duration and frequency.

  • The currency-based and percentage-based maximum drawdown formulas
  • Reading the peak, trough and recovery point, and separating drawdown from recovery duration
  • Why the loss and the required recovery are asymmetric, with a quick-reference table
  • The role of the underwater curve and the Calmar, Ulcer and Recovery Factor metrics
  • Comparing drawdowns across strategies by depth, duration and frequency
Reading time about 10 min Updated 2026-07-13 Level Beginner to Intermediate

Key takeaways

  • Maximum drawdown is the deepest peak-to-trough decline in the observed period. In currency it is peak minus trough; in percentage it is (peak minus trough) divided by peak.
  • Loss and required recovery are asymmetric: a 20% loss needs a 25% gain, and a 50% loss needs a 100% gain to return to the prior peak.
  • Judge more than depth. Weigh recovery duration (time spent underwater) together with the frequency and shape of drawdowns.
  • The Calmar ratio, Recovery Factor and Ulcer Index are comparable only when computed under matching definitions.

An equity curve that trends upward can still hide how deep the account sank along the way and how long it stayed underwater. Until you look at that dip, you cannot judge whether a strategy is survivable in practice. The central measure of that sinking is maximum drawdown. If you want the full picture first, the complete TradingView backtesting workflow sets out where this lesson fits in the wider process.

01 — Definition

What maximum drawdown is

Drawdown is the distance an equity curve falls from a previous high, or peak, down to its current value or trough. Maximum drawdown is the largest peak-to-trough decline within the observed period. In other words, it captures the worst fall measured from the best prior moment the account had reached.

The key point is that the peak is not a fixed value: it is updated every time equity sets a new high. At each point you keep a record of the running high, measure the fall from it, and take the deepest of those falls as the maximum drawdown. Even if price temporarily bounces, a deeper trough that appears later will update the maximum drawdown to that new low. For how each metric fits together, the guide on how to read backtest results is a useful companion.

02 — Formula

How to calculate maximum drawdown

Maximum drawdown can be viewed in currency terms or in percentage terms. Every figure below is fictional educational data. Suppose the peak at one point is 1,200,000 and the subsequent trough is 900,000.

Currency max DD = Peak − Trough = 1,200,000 − 900,000 = 300,000
Percentage max DD = (Peak − Trough) ÷ Peak = 300,000 ÷ 1,200,000 = 25.0%

The currency view makes the scale of the loss easy to feel, but it is hard to compare strategies that run different amounts of capital. The percentage view does not depend on capital size and is easier to compare, which is why percentage is used most often when weighing strategies against each other.

Balance-based versus equity-based drawdown

A second important choice is which series you measure the drawdown on. Balance reflects only profit and loss from closed trades. Equity, by contrast, is a mark-to-market value that also includes the unrealized profit and loss of open positions. Strategies that hold through open losses tend to show a deeper trough on an equity basis, which is the more conservative and often more realistic view. Even for the same strategy, the balance-based and equity-based maximum drawdowns will not match, so always state which one you measured. This choice of series also shapes results in Monte Carlo testing of risk of ruin.

03 — Timeline

Peak, trough, recovery and duration

Maximum drawdown is not only a measure of depth. The figure below uses the same fictional dataset to mark the peak, trough and recovery point, along with two distinct spans of time.

Fictional educational data Equity curve showing peak, trough and recovery A fictional equity curve showing a peak of 1,200,000 at month 6, a trough of 900,000 at month 10 (a 25% maximum drawdown), and a return to the prior peak at month 16. Drawdown duration is 4 months and recovery duration is 6 months. Max DD 25% Peak 1,200,000 Trough 900,000 Recovery ← DD duration 4 mo → ← Recovery 6 mo → Mo 0 Mo 18
The peak is 1,200,000 at month 6 and the trough is 900,000 at month 10, so the percentage-based maximum drawdown is 25.0%. The drawdown duration from peak to trough is 4 months, and the recovery duration from trough back to the prior peak is 6 months. All figures are fictional educational data.

Drawdown duration is the time taken to fall from the peak to the trough, and recovery duration is the time taken to climb back to the prior peak. Their sum, the time spent underwater (10 months in this example), is as important as depth when gauging how long capital is tied up and how heavy the psychological load becomes.

04 — Asymmetry

The asymmetry of loss and recovery

“Fall 20% and a 20% rise brings you back” is simply wrong. A loss shrinks your base, and the recovery is calculated on that smaller base, so the gain required is always larger than the loss. This is the asymmetry of drawdown.

Required recovery = Loss ÷ (1 − Loss)
Loss percentage and the recovery required to return to the prior peak (fictional educational data)
LossRemaining capitalRequired recovery
5%95%about 5.3%
10%90%about 11.1%
20%80%25.0%
30%70%about 42.9%
50%50%100.0%
60%40%150.0%

While the fall is shallow, the gap between loss and required recovery is small, but it widens sharply as the fall deepens. A 50% loss needs the account to double, and a 60% loss needs a 2.5x rise. That is why avoiding even one deep drawdown carries such weight for the long-run equity curve. If you want to translate a loss into position size, the FX & CFD Lot Size Calculator converts a risk amount into concrete units.

Check this asymmetry on your own backtest

Import your Strategy Tester CSV, XLSX or report and the Lab visualizes the equity curve, the maximum drawdown, the depth of the trough and how recovery unfolds. Start free and see exactly where the peak, trough and recovery point sit in your own data.

Visualize your drawdown free

05 — Underwater

Reading the underwater curve

The underwater curve plots the percentage decline from the running peak at each point, always in the region at or below 0%. While the equity curve is setting new highs the line sits flush against the 0% surface, and when it falls the line dips below by exactly that amount. At a glance it shows not just how deep the account went but how long and how often it stayed underwater.

Fictional educational data Underwater curve for the same dataset A fictional underwater curve dipping from the 0% surface to its deepest point of -25% at month 10, then returning to the surface. It illustrates depth and time spent underwater. Surface 0% -10% -25% Deepest -25% Mo 0 Mo 18
The underwater curve for the same fictional dataset. It reaches roughly -15% at month 8, its deepest point of -25% at month 10, and returns to the 0% surface at month 16. The larger the area below the surface, the longer capital was held underwater.

Two strategies can share the same 25% maximum drawdown, yet if one recovers quickly while the other stays underwater for a long stretch, the risk they feel like is entirely different. The underwater curve is valuable because it shows this time underwater and this frequency alongside depth, all at once.

06 — Ratios

Calmar, Recovery Factor and Ulcer Index

Several metrics tie maximum drawdown back to return and risk. Each one is comparable only when the calculation definition and assumptions match. The figures below are fictional educational data.

Calmar ratio

Calmar ratio = Annualized return ÷ Maximum drawdown (absolute value)

It expresses how much annualized return was earned per unit of downside depth. For example, an annualized return of 18% and a maximum drawdown of 25% gives 18 ÷ 25 = 0.72. A higher value is read as greater efficiency relative to the fall, but because it shifts with the annualization method and the length of the observation window, compare only figures built on the same definition.

Recovery Factor

Recovery Factor = Net profit ÷ Maximum drawdown (currency, absolute value)

It shows how many times the net profit earned over the whole period covers the largest fall. For example, a net profit of 500,000 against a maximum drawdown of 300,000 gives 500,000 ÷ 300,000 ≒ 1.67. It captures how deep the intervening trough was relative to the profit generated.

Ulcer Index

Ulcer Index = √( mean of each point’s squared percentage decline from the peak )

It aggregates only the percentage decline from the peak as a root mean square. Where standard deviation measures dispersion symmetrically in both directions, the Ulcer Index focuses solely on the depth and duration of drawdowns. Because it does not count upside variation as risk, it is often described as closer to the felt discomfort of a sustained fall. The deeper and longer a decline runs, the larger the value grows.

07 — Shapes

Classifying by depth, duration and frequency

The same maximum drawdown can take many shapes. Whether it is a single enormous loss, a long shallow decline, or a run of small repeated dips changes what you need to do about it. Splitting the view into these three lenses makes it easier to organize.

Axis 1 — Depth

Depth

How deep the trough goes. Deep drawdowns, where the required recovery rises steeply, weigh especially heavily on the equity curve.

Axis 2 — Duration

Duration

Time spent underwater. Even a shallow fall ties up capital and creates opportunity cost when recovery is slow.

Axis 3 — Frequency

Frequency

How often declines above a set threshold occur. A high-frequency strategy carries a heavy load to keep running even when each fall is moderate.

The table below compares three fictional strategies across those three axes. Judged on the depth of the maximum drawdown alone, Strategy A looks the worst, but the picture changes once slow recovery and frequency are included.

Three strategies compared by depth, duration and frequency (fictional educational data)
Strategy Max DD Avg. recovery DD count (>5%) Calmar Ulcer
Strategy A (one huge DD)30%9 mo30.609.2
Strategy B (repeated small DDs)15%4 mo80.856.1
Strategy C (long shallow loss)18%14 mo50.7011.5

Strategy C has only a moderate maximum drawdown, yet it takes the longest to recover and carries the highest Ulcer Index, revealing a heavy underwater load. Separating depth, duration and frequency surfaces qualities that a single number hides. When you handle several strategies together, the guide to multi-strategy portfolio backtesting covering correlation, allocation and combined drawdown is a useful next step.

08 — Tolerance

How to think about acceptable drawdown

“What maximum drawdown is safe to accept” has no universal answer. The fall you can tolerate depends on capital size, objective, the horizon you plan to run, leverage, and your psychological capacity to keep going while holding the loss. Even the same 20% means different things depending on whether it is likely to recover quickly or to sit underwater for a long time.

So rather than judging by a single threshold, the practical approach is to weigh the required recovery, the recovery duration and the frequency and shape of drawdowns together. There is also a risk of overfitting making the drawdown look artificially small, so testing across separated periods is essential. The guide on walk-forward and out-of-sample analysis explains how to confirm behavior outside the fitted window. Costs often deepen the trough as well, so reading it alongside how to model slippage, spread and fees brings you closer to a realistic maximum drawdown.

09 — Tool

Drawdown calculator

Enter a peak value and a trough value to calculate the drawdown amount, the drawdown percentage and the gain required to return to the prior peak. Values are processed only in your browser and are never sent anywhere. The static worked example below lets you follow the same logic even where the calculator does not run.

Static worked example (fictional educational data): peak 1,200,000 / trough 900,000
ItemValueFormula
Drawdown amount300,0001,200,000 − 900,000
Drawdown percentage25.0%300,000 ÷ 1,200,000
Required recovery33.3%300,000 ÷ 900,000

Calculate drawdown from peak and trough

Drawdown amount
300,000
Drawdown percentage
25.0%
Required recovery
33.3%

With a peak of 1,200,000 and a trough of 900,000, the drawdown is 25.0%. Returning to the prior peak requires a 33.3% gain.

Even when the required recovery grows large with your inputs, that alone does not make a strategy good or bad. Use the tool to grasp, neutrally, the plain fact that a deeper fall demands a larger gain to undo it. When you want to go further into drawdown deep dives, rolling statistics and period-by-period robustness, higher plans that support saving, comparison and advanced validation cover it. Compare features and plans

FAQ

Frequently asked questions

How is maximum drawdown calculated?
You track the running high (the peak) at every point, measure the decline from that peak to the current value, and take the largest such decline. In currency terms it is peak minus trough; in percentage terms it is (peak minus trough) divided by peak. The deepest peak-to-trough decline within the observed window is the maximum drawdown. The result changes with the period you choose and the data frequency.
Are balance drawdown and equity drawdown different?
Yes. Balance reflects only closed, realized profit and loss, while equity also includes the unrealized profit and loss of open positions. Strategies that hold through open losses tend to show a deeper trough on an equity basis, which is the more conservative view. Always state which series you used when comparing figures.
Does a 20% loss require a 20% gain to recover?
No. Loss percentage and required recovery are asymmetric. To return capital that fell 20% back to the prior peak you need a 25% gain, because the required recovery equals loss divided by (1 minus loss). The deeper the fall, the more steeply the required gain rises, so a 50% loss needs a 100% gain.
What are drawdown duration and recovery duration?
Drawdown duration is the time taken to fall from the peak to the trough, and recovery duration is the time taken to climb from the trough back to the prior peak. The combined time spent underwater matters too: two strategies with the same depth can feel very different if one takes far longer to recover, tying up capital and testing patience.
What does the Calmar ratio show?
The Calmar ratio is the annualized return divided by the maximum drawdown, so it expresses how much return was earned per unit of downside depth. A higher value is read as greater efficiency relative to the fall, but it shifts with the annualization method and the length of the observation window, so compare only figures built on the same definition.
How is the Ulcer Index different from standard deviation?
Standard deviation measures dispersion symmetrically in both directions, while the Ulcer Index takes only the percentage decline from the peak and aggregates it as a root mean square, focusing on the depth and duration of drawdowns. Because it does not count upside variation as risk, it is often described as closer to the felt discomfort of a sustained fall.
Is there an acceptable maximum drawdown threshold?
There is no universal acceptable percentage. The drawdown you can tolerate depends on capital size, objective, time horizon, leverage and your psychological capacity to hold through the fall. Rather than judging by a single number, weigh the required recovery, the recovery duration and the frequency and shape of drawdowns together.
How should I compare drawdowns across strategies?
Compare more than the depth of the maximum drawdown: line up recovery duration, the frequency of declines and metrics such as the Calmar ratio and Ulcer Index computed under matching definitions. The comparison assumes the same data frequency, the same period and the same balance or equity basis. At the portfolio level, correlation between strategies also matters.

Next

Read next

Walk-Forward Analysis and Out-of-Sample Testing Guide →
The next step for confirming, across separated periods, whether your maximum drawdown recurs.

Sources and further reading

Features, free-plan scope and specifications may change. Confirm the latest details and pricing on the plan page.