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.
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.
| # | Date | Trade P/L | Equity | Running peak | Drawdown $ | Drawdown % | Rows below peak |
|---|---|---|---|---|---|---|---|
| 1 | 2025-01-06 | −$305 | $24,695 | $25,000 | $305 | 1.22% | 1 |
| 2 | 2025-01-09 | $515 | $25,210 | $25,210 | $0 | 0.00% | 0 |
| 3 | 2025-01-13 | −$195 | $25,015 | $25,210 | $195 | 0.77% | 1 |
| 4 | 2025-01-17 | −$245 | $24,770 | $25,210 | $440 | 1.75% | 2 |
| 5 | 2025-01-20 | −$190 | $24,580 | $25,210 | $630 | 2.50% | 3 |
| 6 | 2025-01-22 | −$360 | $24,220 | $25,210 | $990 | 3.93% | 4 |
| 7 | 2025-01-27 | $635 | $24,855 | $25,210 | $355 | 1.41% | 5 |
| 8 | 2025-01-29 | $330 | $25,185 | $25,210 | $25 | 0.10% | 6 |
| 9 | 2025-01-31 | −$365 | $24,820 | $25,210 | $390 | 1.55% | 7 |
| 10 | 2025-02-03 | $510 | $25,330 | $25,330 | $0 | 0.00% | 0 |
| 11 | 2025-02-05 | $805 | $26,135 | $26,135 | $0 | 0.00% | 0 |
| 12 | 2025-02-10 | −$185 | $25,950 | $26,135 | $185 | 0.71% | 1 |
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
| Tab | What you type | What it calculates |
|---|---|---|
| Start here | Nothing | Steps, formulas in plain words, colour key, limits, sources, disclaimer |
| Dashboard | Optional: any drawdown % for the recovery check | Your key numbers next to the Example's; recovery table from 5% to 90% with the gain and equity multiple needed |
| Equity log | Up to 1,000 rows: date, then the account value or the trade P/L; starting equity and start date when you log P/L | Per 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 |
| Example | Already filled: 180 fictional trades from a $25,000 start | The same tab with every result visible |
How to use it
- 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.
- 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.
- 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.
- Read the results in column V, the top 5 table below them and the two charts. The Dashboard repeats the key numbers.
- 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.
| Field | Formula |
|---|---|
| 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:
| Rank | Depth | Depth $ | Peak date | Low date | Recovered on | Days peak to low | Days below peak | Trades below peak |
|---|---|---|---|---|---|---|---|---|
| 1 | 18.21% | $4,910 | 2025-03-19 | 2025-05-20 | 2025-10-27 | 62 | 222 | 78 |
| 2 | 9.48% | $2,605 | 2025-11-04 | 2026-03-02 | 2026-05-15 | 118 | 192 | 64 |
| 3 | 4.18% | $1,105 | 2025-02-13 | 2025-02-24 | 2025-02-27 | 11 | 14 | 5 |
| 4 | 4.10% | $1,170 | 2026-05-18 | 2026-05-28 | Not yet | 10 | 10 | 3 |
| 5 | 4.08% | $1,100 | 2025-03-07 | 2025-03-14 | 2025-03-19 | 7 | 12 | 5 |
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
| Drawdown | Gain needed to get back | Equity 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.
- Return: equity ends at $27,365, a total return of 9.46% over 1.40 years, so CAGR = (27,365 / 25,000)1/1.399 − 1 = 6.67%.
- Maximum drawdown: the peak of $26,970 on 2025-03-19 fell to $22,060 on 2025-05-20: (26,970 − 22,060) / 26,970 = 18.21%, or $4,910. Equity got back above that peak on 2025-10-27.
- Time underwater: that episode lasted 222 days and 78 trades, the longest in the log. The Example had 10 drawdown episodes in all; 4 of the top 5 recovered.
- Recovery: a 18.21% drop needed a 22.26% gain to get back: 1 / (1 − 0.1821) − 1.
- Current drawdown: the last row is $1,170 (4.10%) below the $28,535 peak, 10 days after it.
- Calmar: 6.67% / 18.21% = 0.37. The return per unit of worst drawdown is low here because the deepest fall is large compared with the yearly gain.
Common mistakes
- Using the lowest equity instead of the fall from a peak. Drawdown is measured from the highest value before the low, not from the start or the overall high.
- Measuring from the starting balance only. If equity first rises to $30,000 and then falls to $26,000, the drawdown is 13.3%, even though the account is still above a $25,000 start.
- Counting deposits as gains. A deposit hides a drawdown and a withdrawal creates a fake one. Log P/L, or adjust the account values.
- Comparing different frequencies. Month-end, daily and per-trade logs give different maximum drawdowns for the same account. Compare like with like.
- Ignoring open trades. Closed-trade P/L does not see a loss that recovered before the trade closed.
- Treating the past maximum as a limit. A short record has had fewer chances to hit a bad run. The next drawdown can be deeper; the risk of ruin calculator shows how the odds of a deep fall depend on risk per trade.
Limits
- Drawdown is measured only at the rows you enter, so lows between rows are missed.
- Rows must be continuous and dated oldest first; the status cell blocks results until they are.
- No adjustment for deposits, withdrawals, fees outside the P/L or currency changes.
- CAGR and Calmar from less than a year of data are flagged and should not be compared with longer records.
- Calmar here uses the whole log, not a fixed 36-month window.
- Recalculation was tested in LibreOffice. The file uses only functions that exist in Excel 2016+ and Google Sheets.
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
- Risk of ruin calculatorOdds of a deep drawdown
- Trading performance reportWin rate, expectancy and more
- Trading risk management spreadsheetLimits per trade, day and account
- Backtesting spreadsheetTest a setup before trading it
- Sharpe ratio calculatorReturn per unit of volatility
- CAGR calculatorAnnualized growth rate
- Trading journalLog trades and review them
- All templatesFree spreadsheets
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.