Home › Templates › Max drawdown spreadsheet

Max Drawdown Spreadsheet

A free drawdown calculator for Excel and Google Sheets. Log your account value or each trade's P/L, and it tracks the running peak, the drawdown in $ and %, the maximum drawdown, how long you stayed below a peak, the current drawdown, the 5 deepest drawdowns, the gain needed to recover and the Calmar ratio. Two charts show the equity curve and the drawdown.

Download Excel template (.xlsx) 559 KB · no macros · Excel 2016+ and Google Sheets · v1.0, 7 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no add-in.

Preview: the Example tab. The 180 trades, dates and amounts are fictional and say nothing about any real strategy.
18.2%maximum drawdown ($4,910, 2025-03-19 to 2025-05-20)
222 dayslongest time below a peak (78 trades)
4.1%current drawdown, 10 days after the last peak
22.3%gain that was needed to recover the max drawdown
0.37Calmar ratio: CAGR 6.67% ÷ max drawdown 18.21%
#DateTrade P/LEquityRunning peakDrawdown $Drawdown %Rows below peak
12025-01-06−$305$24,695$25,000$3051.22%1
22025-01-09$515$25,210$25,210$00.00%0
32025-01-13−$195$25,015$25,210$1950.77%1
42025-01-17−$245$24,770$25,210$4401.75%2
52025-01-20−$190$24,580$25,210$6302.50%3
62025-01-22−$360$24,220$25,210$9903.93%4
72025-01-27$635$24,855$25,210$3551.41%5
82025-01-29$330$25,185$25,210$250.10%6
92025-01-31−$365$24,820$25,210$3901.55%7
102025-02-03$510$25,330$25,330$00.00%0
112025-02-05$805$26,135$26,135$00.00%0
122025-02-10−$185$25,950$26,135$1850.71%1
$20k$22k$24k$26k$28k$30k0%−5%−10%−15%−20%Apr 2025Jul 2025Oct 2025Jan 2026Apr 2026max drawdown 18.2%Equity (solid) and running peak (dashed)Drawdown below the peak (underwater chart)

What maximum drawdown measures

A drawdown is how far an account sits below its highest value so far. The maximum drawdown is the largest of those falls over a period, in percent of the peak. It answers a plain question: what was the worst stretch, from a high to the low that followed, before a new high?

US commodity pool rules define it precisely. The CFTC's regulation 17 CFR 4.10 says:

"Draw-down means losses experienced by a pool or account over a specified period."17 CFR 4.10(k), eCFR
"Worst peak-to-valley draw-down means the greatest cumulative percentage decline in month-end net asset value due to losses sustained by a pool, account or trading program during any period in which the initial month-end net asset value is not equaled or exceeded by a subsequent month-end net asset value."17 CFR 4.10(l), eCFR

Commodity pool operators and trading advisors must show this figure in their disclosure documents, "expressed as a percentage" and with the months and year of the draw-down (17 CFR 4.25). Note the words month-end: a daily or per-trade log, like this template, usually finds a deeper drawdown than month-end values, because it sees the lows inside the month.

Academic work uses the same idea. Magdon-Ismail and Atiya open their paper with: "The maximum loss from a market peak to a market nadir, commonly called the maximum drawdown (MDD), measures how sustained one's losses can be" (Risk, October 2004). Goldberg and Mahmoud call maximum drawdown, "the largest cumulative loss from peak to trough", "one of the most widely used indicators of risk in the fund management industry, but one of the least developed in the context of measures of risk" (Mathematics and Financial Economics, 2017).

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, formulas in plain words, colour key, limits, sources, disclaimer
DashboardOptional: any drawdown % for the recovery checkYour key numbers next to the Example's; recovery table from 5% to 90% with the gain and equity multiple needed
Equity logUp to 1,000 rows: date, then the account value or the trade P/L; starting equity and start date when you log P/LPer row: equity, running peak, drawdown $ and %, rows and days below the peak, episode helpers. Results: max drawdown ($ and %, dates, recovery date), longest time underwater, number of drawdowns, current drawdown, gain needed to recover, CAGR, Calmar, the 5 deepest drawdowns, equity and underwater charts
ExampleAlready filled: 180 fictional trades from a $25,000 startThe same tab with every result visible

How to use it

  1. Open Equity log. If your rows will be trade P/L, type the starting equity in V5 and the start date in V6. If you log account values (daily, weekly or month-end), you can leave both blank.
  2. From row 7, enter one row per date or closed trade, oldest first, with no empty rows: the date in column B, then the account value in column C or the trade's P/L in column D (negative for a loss). If both are filled, the account value wins, which lets you reset to the broker's balance from time to time.
  3. Check that the Status in V9 says OK. If not, it names the problem: a gap, a missing date, dates out of order, a P/L first row without a starting equity, or equity at or below zero.
  4. Read the results in column V, the top 5 table below them and the two charts. The Dashboard repeats the key numbers.
  5. Remove deposits and withdrawals before you log them: they move the balance without being a gain or a loss.

How to calculate maximum drawdown in Excel

The short version needs three columns. With equity in column B from row 2, oldest first:

C2: =MAX($B$2:B2)   → running peak (fill down)

D2: =(C2-B2)/C2   → drawdown below the peak (fill down)

Max drawdown: =MAX(D2:D1000)

That gives the depth, but not when it happened, how long it lasted or whether it recovered. The template adds those with helper columns, using only functions that work in Excel 2016+, Google Sheets and LibreOffice: no LAMBDA, SCAN or dynamic arrays. The running peak compares each row with the previous peak instead of re-scanning the whole range, so 1,000 rows stay fast.

Exact formulas from the Equity log tab (row 8 shown; row 7 starts from the starting equity). Results cells are wrapped in IF($V$9="OK", …, "") in the file so they stay blank until the inputs are valid.

FieldFormula
Equity from a trade P/L (F8)=IF(ISNUMBER(C8),C8,IF(AND(ISNUMBER(D8),ISNUMBER(F7)),F7+D8,""))
Running peak (G8)=IF(F8="","",IF(ISNUMBER(G7),MAX(G7,F8),F8))
Drawdown $ (H8)=IF(F8="","",G8-F8)
Drawdown % below peak (I8)=IF(F8="","",IF(G8<=0,"",H8/G8))
Rows below the peak (J8)=IF(F8="","",IF(H8=0,0,N(J7)+1))
Date of the current peak (K8)=IF(F8="","",IF(H8=0,B8,K7))
Days since the peak (L8)=IF(F8="","",IF(AND(ISNUMBER(B8),ISNUMBER(K8)),B8-K8,""))
Episode depth so far (O8)=IF(N8="","",IF(J8=1,I8,MAX(O7,I8)))
Episode low (P8)=IF(N8="","",IF(J8=1,F8,MIN(P7,F8)))
Episode end key, for ranking (R8)=IF(N8="","",IF(OR(F9="",H9=0),O8-ROW()/10000000000000,""))
Days below the peak, per episode (S8)=IF(R8="","",IF(AND(F9<>"",H9=0),B9,B8)-K8)
Maximum drawdown (V18)=MAX($I$7:$I$1006)
Longest time below a peak (V24)=IF(COUNT($S$7:$S$1006)=0,0,MAX($S$7:$S$1006))
Current drawdown (V29)=INDEX($I$7:$I$1006,$V$10)
Gain needed from now (V32)=1/(1-$V$29)-1
CAGR (V17)=IF($V$16>0,($V$14/$V$13)^(1/$V$16)-1,"n/a: no time elapsed")
Calmar ratio (V34)=IF(NOT(ISNUMBER($V$17)),"n/a",IF($V$18=0,"n/a: no drawdown",$V$17/$V$18))
Row of the k-th deepest episode (AF39)=IF(COUNT($R$7:$R$1006)>=1,MATCH(LARGE($R$7:$R$1006,1),$R$7:$R$1006,0),"")
Depth of that episode (V39)=IF($AF39="","",INDEX($O$7:$O$1007,$AF39))
Recovered on (AB39)=IF($AF39="","",IF(AND(INDEX($F$7:$F$1007,$AF39+1)<>"",INDEX($H$7:$H$1007,$AF39+1)=0),INDEX($B$7:$B$1007,$AF39+1),"Not yet"))

Drawdown duration and the 5 deepest drawdowns

Depth is half the story. A 10% drawdown that lasts two years can hurt more than a 15% one that recovers in a month. The sheet treats each stretch below a peak as one episode: it starts on the first row below a peak and ends when equity is back at or above that peak. For each episode it records the depth, the peak and low dates, the recovery date and the days and trades spent below the peak.

To rank episodes without newer functions, the last row of each episode carries a key: the episode's depth minus a tiny amount based on the row number, so two equally deep episodes never tie. LARGE picks the k-th biggest key, MATCH finds its row and INDEX reads the dates and amounts. The Example's five deepest:

RankDepthDepth $Peak dateLow dateRecovered onDays peak to lowDays below peakTrades below peak
118.21%$4,9102025-03-192025-05-202025-10-276222278
29.48%$2,6052025-11-042026-03-022026-05-1511819264
34.18%$1,1052025-02-132025-02-242025-02-2711145
44.10%$1,1702026-05-182026-05-28Not yet10103
54.08%$1,1002025-03-072025-03-142025-03-197125

The deepest episode (18.21%) took 62 days to reach its low and 222 days to get back above the peak. The second (9.48%) lasted 192 days, nearly as long, at about half the depth. The fourth row is still open: equity was below that peak on the last row, so it shows Not yet.

Gain needed to recover a drawdown

After a loss, the account earns on a smaller balance, so the gain needed to get back is larger than the loss:

gain needed = 1 / (1 − drawdown) − 1

DrawdownGain needed to get backEquity multiple needed
5%5.3%1.05×
10%11.1%1.11×
15%17.6%1.18×
20%25.0%1.25×
25%33.3%1.33×
30%42.9%1.43×
35%53.8%1.54×
40%66.7%1.67×
45%81.8%1.82×
50%100.0%2.00×
60%150.0%2.50×
70%233.3%3.33×
80%400.0%5.00×
90%900.0%10.00×

The Dashboard has this table plus a cell for any drawdown you type. The Equity log shows the gain needed from today's equity back to the peak (4.28% in the Example) and the gain the max drawdown required (22.26%).

Calmar ratio

The Calmar ratio sets the annualized return against the maximum drawdown:

Calmar = CAGR / maximum drawdown

CAGR = (ending equity / starting equity)1 / years − 1, years = days / 365.25

Goldberg and Mahmoud note that drawdown-based measures "such as the Calmar ratio, the Sterling ratio and the Burke ratio, are frequently used" among hedge funds and commodity trading advisors. Some versions use a fixed window, such as the last 36 months. This sheet uses the whole log and says so, and it flags logs shorter than a year, where an annualized return is unreliable. For a ratio based on volatility instead of drawdown, use the Sharpe ratio calculator; for CAGR alone, the CAGR calculator.

Worked example from the sample data

The Example tab starts with $25,000 on 2025-01-02 and logs 180 fictional trades up to 2026-05-28.

Common mistakes

Limits

FAQ

How do you calculate maximum drawdown in Excel?

Put equity in column B, oldest first. In C2 type =MAX($B$2:B2) and fill down: that is the running peak. In D2 type =(C2-B2)/C2 and fill down: that is the drawdown below the peak. Maximum drawdown is =MAX(D:D). This template does the same with a faster running peak, and adds the dates, time underwater, the 5 deepest drawdowns, recovery and Calmar.

What is a good maximum drawdown?

There is no single good number. It depends on the strategy, the time period, how often equity is measured and how much loss you can live with. Compare drawdowns measured the same way (same frequency, same period) and compare them with the return earned, which is what the Calmar ratio does. A short record usually shows a smaller drawdown than the strategy can produce.

How much do you need to gain to recover from a drawdown?

Gain needed = 1 / (1 − drawdown) − 1. A 10% drawdown needs an 11.1% gain, 20% needs 25%, 50% needs 100% and 90% needs 900%. Losses and gains are not symmetric because the gain is earned on a smaller balance.

What is the Calmar ratio and how is it calculated?

The Calmar ratio divides the annualized return (CAGR) by the maximum drawdown. With a 10% CAGR and a 20% max drawdown it is 0.5. This sheet uses the whole log for both numbers; some versions use a fixed window, such as the last 36 months, so check the window before comparing two Calmar figures.

What is the difference between drawdown and max drawdown?

Drawdown is the fall from the running peak at one point in time, for example today. Maximum drawdown is the largest of those falls over the whole period. The sheet shows both: the current drawdown on the last row and the maximum over all rows.

Does this max drawdown spreadsheet work in Google Sheets?

Yes. In Google Sheets choose File → Import → Upload and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. It uses only IF, AND, OR, NOT, ISNUMBER, N, MAX, MIN, COUNT, SUMPRODUCT, ROW, INDEX, MATCH, LARGE, which exist in Excel 2016 and later, Google Sheets and LibreOffice. No macros, no LAMBDA or SCAN.

Related tools and templates

Educational template only, not investment advice. Example data is fictional: the trades, dates and amounts are made up to show the formulas and say nothing about any real strategy or future result. Past drawdowns do not limit future ones. Sources: 17 CFR 4.10 and 4.25 (eCFR); Goldberg and Mahmoud, "Drawdown: From Practice to Theory and Back Again", Mathematics and Financial Economics 11, 275–297 (doi; arXiv); Magdon-Ismail and Atiya, "Maximum Drawdown", Risk 17(10), 2004 (SSRN). Retrieved 7 November 2026.