How the Maximum Drawdown Calculator works
Maximum drawdown (MDD) is the single most widely used measure of downside risk in investing. It answers a concrete question: from the worst possible entry point in your data, how much could an investor have lost before the value recovered to a new high? Unlike volatility, which averages fluctuations in both directions, drawdown isolates the one path that actually hurts — the decline from a peak to the lowest point that followed it, before the next record high.
The formula
For a chronological series of values V0, V1, ... Vn, the calculator tracks a running peak — the highest value seen so far at each point in time — and computes the percentage decline from that peak at every step:
Drawdownt = (Peakt − Vt) / Peakt
The maximum drawdown is simply the largest of those declines across the whole series:
MDD = max(Drawdownt) for all t
Whichever point produces that maximum defines the drawdown's peak (the high just before the fall) and its trough (the low point that followed). The dollar drawdown is the difference between those two values, and the recovery gain needed is how large a percentage gain the trough value would need to climb back to the peak: Peak / Trough − 1.
Worked example
Take the default series above: a account that rises from $100,000 to a peak of $112,000, then falls in stages to $89,000 before recovering. The running peak stays at $112,000 through the decline, so the deepest point is (112,000 − 89,000) / 112,000 ≈ 20.5% maximum drawdown — a $23,000 dollar loss. To climb back from $89,000 to $112,000, the account would need a gain of 112,000 / 89,000 − 1 ≈ 25.8%. That asymmetry — a 20.5% drawdown requiring a 25.8% gain to erase — is a defining feature of drawdown math: the deeper the fall, the disproportionately larger the recovery gain required.
Why drawdown recovery is asymmetric
A decline of X% requires a gain of X / (1 − X) to fully recover, not another X%. A 10% drawdown needs an 11.1% gain to recover; a 50% drawdown needs a 100% gain; a 90% drawdown needs a 900% gain. This is why deep drawdowns are disproportionately dangerous to long-term returns and why many risk frameworks weight the depth of a decline more heavily than its frequency.
What the calculator does not tell you
Maximum drawdown reports the size of the worst decline but not how long it lasted or how long recovery took — two series with identical maximum drawdowns can have very different drawdown durations. It also depends entirely on the values you enter: price-only data ignores dividends, and a short data history may simply not contain the worst decline the strategy is capable of producing. Past drawdowns describe what happened in the data provided, not a guarantee about future declines.