Maximum Drawdown, Calmar Ratio and Ulcer Index Calculator

Compute maximum drawdown, time underwater, the Calmar ratio and the Ulcer index from a series of period returns.

Maximum Drawdown -10.40% Longest stretch underwater: 7 periods
Annualised return 8.99%
Calmar ratio 0.86
Ulcer index 4.36
Inputs
Try:
Amounts are treated in the selected currency; no foreign-exchange conversion is applied.
%
One return per period, separated by commas. Monthly percentages are the usual input.
periods
Twelve for monthly returns, 52 for weekly, 252 for daily trading days.
Results & Graph
Maximum Drawdown
-10.40%
Longest stretch underwater: 7 periods
Annualised return
8.99%
Calmar ratio
0.86
Ulcer index
4.36
Cumulative return
18.79%
Periods supplied
24

Underwater Curve

Graph 1 • Drawdown From the Running Peak The line sits at zero at every new high and falls whenever the account is below a prior peak.
-10.4% -4.7% 1.1% P1: 0 % 0 P1 P2: 0 % P3: -1.8 % -1.8 P3 P4: 0 % P5: -6.5 % -6.5 P5 P6: -9.4 % P7: -7.41 % -7.4 P7 P8: -2.41 % P9: -1.33 % -1.3 P9 P10: -4 % P11: -0.35 % -0.3 P11 P12: 0 % P13: -4.4 % -4.4 P13 P14: -2.87 % P15: 0 % 0 P15 P16: 0 % P17: -1.2 % -1.2 P17 P18: 0 % P19: 0 % 0 P19 P20: -8.2 % P21: -10.4 % -10.4 P21 P22: -5.83 % P23: -2.44 % -2.4 P23 P24: 0 % 0 P24
Graph 2 • How Often the Account Sat at Each Depth A long bar near zero means a strategy that recovers quickly; mass on the left means it does not.
-10.4% to -9.5%: 1-9.5% to -8.7%: 1-8.7% to -7.8%: 1-7.8% to -6.9%: 1-6.9% to -6.1%: 1-6.1% to -5.2%: 1-5.2% to -4.3%: 1-4.3% to -3.5%: 1-3.5% to -2.6%: 1-2.6% to -1.7%: 3-1.7% to -0.9%: 2-0.9% to -0.0%: 1 Max drawdown -10.40%
Graph 3 • Return Against Drawdown Calmar is annual return per unit of worst drawdown; Ulcer weights depth and duration together.
Annualised return 8.99% Maximum drawdown -10.40% Ulcer index 4.36
Summary: The curve sits at zero whenever the account is at a new high and falls to -10.40% at the worst point.
Summary: The worst peak-to-trough fall is -10.40% and the account spent 7 consecutive periods below a prior peak. A Calmar of 0.86 means 0.86 units of annual return per unit of worst drawdown.
Interactive chart & math engine powered by CalculatorGraph

Formula: Drawdown, Calmar and Ulcer

DDt = (Vt / max(V1..Vt)) - 1
Calmar = CAGR / |max DD|
Ulcer = sqrt(mean(DDt2))
DD_t = (V_t / max(V_1..V_t)) - 1 ; Calmar = CAGR / |max DD| ; Ulcer = sqrt(mean(DD_t^2))
  • Vt: Cumulative value of the account at period t
  • DDt: Drawdown at period t, as a negative percentage from the running peak
  • CAGR: Compound annual growth rate implied by the series and the periods per year
  • Ulcer: Root mean square of every drawdown reading, so depth and duration both count

Rounding: Percentages are shown to two decimal places; ratios to two.

Worked example: Example: 24 monthly returns with two losing stretches

A two-year monthly series containing a -6.5% month and a later -8.2% month.

  1. Compound the returns into an equity curve starting at 100.
  2. Track the running peak and record the percentage below it at every period.
  3. The most negative of those readings is the maximum drawdown.
  4. Square every drawdown reading, average them and take the square root to get the Ulcer index, so a long shallow decline scores worse than a single sharp one that recovers.
Result: The worst fall is -10.40%, the account spends seven consecutive months below a prior peak, and with an annualised 8.99% the Calmar is 0.86 against an Ulcer index of 4.36.

Frequently Asked Questions

Why use drawdown instead of standard deviation?

Standard deviation counts an unexpectedly good month as risk, which is not how anyone experiences it. Drawdown only measures loss from a prior peak, so it describes the thing an investor actually reacts to. It is also the number that triggers redemptions: people leave a fund because it is down 20% from its high, not because its volatility rose.

What does the Ulcer index add over maximum drawdown?

Maximum drawdown is one number from one moment and says nothing about how long the pain lasted. The Ulcer index squares every drawdown reading across the whole series, so a strategy that spends two years grinding 8% below its peak scores worse than one that falls 12% and recovers in a month. It is the better measure when you care about the experience of holding the thing.

What is a good Calmar ratio?

Above 1 means the strategy earned more in annual return than its worst drawdown, which is a reasonable bar for a long-only equity manager over a full cycle. Managed futures and macro funds are often judged on a three-year Calmar. Treat any figure from fewer than three years of data as noise, and be suspicious of a very high Calmar from a short series, which usually means the strategy has not met its bad market yet.

Should I enter returns as percentages or decimals?

Percentages. Enter 3.1 for a 3.1% month, not 0.031. The calculator treats every number as a percentage of the period, so a decimal series will produce a drawdown near zero and an annualised return that looks wrong.

Why is the longest time underwater not during the worst drawdown?

Depth and length are separate. In the default series the deepest fall, 10.40%, happens late and recovers within a few months. An earlier, shallower dip of 9.40% takes 7 periods to get back to a new high. The engine reports the longest underwater stretch from anywhere in the series, so it can come from a different episode than the maximum drawdown.

Does the first period count as a peak?

The starting value of 100 counts as the first peak, before any return is applied. So if the first return is a loss, the account is in drawdown from period one. Entering minus 5, 2, 2 and 2 gives a maximum drawdown of minus 5.00% and 3 periods underwater, because only the third gain lifts the account back above where it began.

How is time underwater counted?

The engine counts consecutive periods in which the account is below its running peak. The count resets to zero whenever a new high is reached and the longest run is kept. A period that ends exactly at the old peak counts as recovered. The figure is in periods, so 7 means seven months for monthly data or seven weeks for weekly data. It is not converted to years.

Why did my Calmar ratio show n/a?

Calmar divides the annualised return by the size of the maximum drawdown. If the series never falls below a previous high, the drawdown is zero and the division has no finite answer, so the engine shows n/a. Five months of 2, 1, 3, 2 and 1 percent produce exactly that. Add more history, ideally including a losing stretch, for a meaningful ratio.

Can I calculate the Ulcer index by hand to check the page?

Yes. Write down the drawdown for every period, including zeros at new highs. Square each one, add them, divide by the number of periods and take the square root. For minus 12, 14, 2, 1, 1 and 1, the readings are minus 12 and five zeros, the mean square is 24 and the Ulcer index is 4.90, matching the engine.

Should I use daily returns instead of monthly?

Daily data captures falls that recover within a month, so the maximum drawdown is usually deeper and the Ulcer index has more readings. Monthly data smooths those out. Neither is wrong, but compare funds only at the same frequency. Set periods per year to match, or the annualised return and Calmar will be badly off.

Does the order of the returns matter?

For drawdown, completely. The same set of returns in a different order can produce a very different worst fall, because drawdown depends on which losses come together. The cumulative and annualised returns do not change with order, since multiplication does not care about sequence. Paste returns oldest first so the drawdown follows real time. Sorting by size will ruin the result.

Can I use this for my own portfolio with deposits and withdrawals?

Only if you first convert it to time weighted period returns that strip out cash flows. The engine compounds the returns you give it with no money added or removed. Feeding it raw account balances or returns distorted by a large deposit will show a drawdown that reflects your saving pattern rather than how the investments performed. The page cannot detect that problem for you.

Why does the drawdown not change when I change periods per year?

Periods per year is only used to annualise the return. Drawdown, time underwater and the Ulcer index are measured period by period from the series itself, so they ignore it. In the default, changing periods per year moves the annualised return and Calmar but leaves the 10.40% drawdown and the 4.36 Ulcer index exactly where they were.

Is a lower maximum drawdown always the better strategy?

Not on its own. A strategy can show a small drawdown simply because the period measured was calm, or because it earned very little. Look at the drawdown together with the return, the time underwater and the length of the history. These figures describe a past path and are not a recommendation to buy or sell anything. Weigh them against your own situation.

Two years of monthly returns, one worst fall of 10.40%

The preset is 24 monthly returns with periods per year set to 12. Compounded, they turn a starting value of 100 into a cumulative gain of 18.79%, or 8.99% a year. Along the way the worst peak to trough fall is minus 10.40%, the longest stretch below a previous high lasts 7 periods, the Calmar ratio is 0.86 and the Ulcer index is 4.36.

Those numbers come from two separate losing spells in the series. The first starts in month 5 with a 6.5% loss, followed by a 3.1% loss, which takes the account 9.40% below its month 4 high. It then climbs back slowly and only sets a new high in month 12. The second spell is sharper: after a new high in month 19, losses of 8.2% and 2.4% take it 10.40% below that peak in month 21, and by month 24 it is back at a new high.

So the deepest drawdown and the longest drawdown are different episodes. The 10.40% fall is the late one. The 7 periods underwater belong to the early one, which was shallower but took longer to repair. A single headline number hides that, which is why the page reports both.

Working the drawdown by hand

The method is mechanical. Start at 100. Multiply by 1 plus each period's return in turn to build the equity curve. Keep a running peak, the highest value so far, including the starting 100. At every period, divide the current value by the running peak and subtract 1. That is the drawdown for that period, zero when the account is at a high and negative otherwise.

Maximum drawdown is the most negative of those readings. In formula terms it is the largest value of peak minus trough, divided by peak, over every peak and the trough that follows it. In the default series the peak after month 19 is a little over 18% above the start, and two losses later the account sits 10.40% below it.

Note that the losses compound rather than add. An 8.2% loss followed by a 2.4% loss is not a 10.6% fall. It is 0.918 times 0.976, which leaves 89.6% of the peak, a fall of 10.40%.

Because the starting 100 counts as a peak, a series that opens with a loss starts in drawdown straight away. Enter minus 5, 2, 2 and 2 and the engine reports a maximum drawdown of minus 5.00% with 3 periods underwater: the account only climbs back past its starting level on the third gain.

The Ulcer index: squaring every reading

The Ulcer index takes every drawdown reading in the series, squares each one, averages the squares and takes the square root. Periods at a new high contribute zero but still count in the average, so a series that spends most of its time at highs has a low score.

A tiny example makes it concrete. Enter minus 12, 14, 2, 1, 1 and 1. The first period is 12% under water. The 14% gain lifts the account just above 100, so every later reading is zero. The squares are 12 squared and five zeros; their mean is 24; the square root is 4.90, which is what the engine reports.

Compare that with a slow grind: six losses of 2% each followed by a 13% gain. The maximum drawdown is smaller, minus 11.42%, but the account sits under water for 6 periods with readings that get deeper each month. The Ulcer index comes out at 6.94, well above the 4.90 of the sharper fall. That is the point of the measure. It treats a long, deepening slide as worse than a quick drop that recovers.

The default 4.36 sits between those two because it mixes both shapes of loss over 24 readings.

Calmar: annual return per unit of worst fall

The Calmar ratio here is the annualised return divided by the absolute size of the maximum drawdown. At the default that is 8.99 divided by 10.40, which is 0.86. You can read it as earning 0.86 percentage points of annual return for every point of the worst fall.

Two choices in the engine shape that number. The annualised return is a compound rate across the whole series you paste, worked out from the cumulative return and the number of years implied by periods per year. And the drawdown is the worst in that same series. Some fund reports use a fixed trailing window, often three years, so a Calmar from this page will only match a published one if you paste the same window.

The two tiny examples above show how sensitive the ratio is. The sharp fall that recovered quickly earns a Calmar of 0.93 because it ends with a small gain over a short period, which annualises to a big figure. The slow grind ends almost flat, so its Calmar is 0.02. Neither series is long enough to mean much, and both are better read for their drawdown and Ulcer figures.

If the series never falls below a previous high, the maximum drawdown is zero and the Calmar is shown as n/a rather than an infinite number.

Periods per year changes only two of the outputs

Maximum drawdown, time underwater, the Ulcer index and cumulative return depend only on the returns you paste. Periods per year affects nothing but the annualised return and, through it, the Calmar ratio. Set it to 12 for monthly data, 4 for quarterly, 52 for weekly.

Getting it wrong is easy to miss. Paste quarterly returns and leave the box at 12 and the engine thinks a few years of data is a few months, which inflates the annualised return and the Calmar. Running the first 12 default returns as quarterly data, with periods per year at 4, gives a maximum drawdown of minus 9.40%, an annualised return of 3.47% and a Calmar of 0.37. The drawdown is the same as it would be monthly; only the annual figures change.

Short series exaggerate the effect. Five positive months of 2, 1, 3, 2 and 1 percent add up to a cumulative 9.32%, which the engine annualises to 23.83%. That is arithmetic, not a forecast. Annualising five months of good luck tells you very little about a full year.

The box accepts whole numbers from 1 up to daily frequency, and the engine rounds what you type. Use the true sampling frequency of your data, not a guess. The presets show how much this matters: the same 24 returns read as quarterly data annualise to 2.91% with a Calmar of 0.28, and read as weekly data to 45.21% with a Calmar of 4.35.

Pasting a return series without breaking it

Returns go in as percentages, separated by commas. The engine also splits on spaces and semicolons, so a column pasted from a spreadsheet usually works. Anything that is not a number is dropped silently, which means a stray label or a percent sign attached to a value can remove a period without warning. Check the periods supplied line: it should match the count you meant to enter, 24 at the default.

Decimal returns are the classic slip, and they are hard to spot from the Calmar alone. Enter the first five default returns as decimals, 0.031, 0.024 and so on, and the maximum drawdown shows minus 0.06% while the Calmar shows 0.52, a perfectly normal looking ratio. Both the return and the drawdown shrank by the same factor, so their ratio survived. The tiny drawdown and an Ulcer index of 0.03 are the giveaway.

The engine needs at least three returns, and it rejects any single return of minus 100% or worse, since that would wipe the account. It does not check that the returns are in time order. Paste them oldest first, because drawdown depends entirely on the sequence.

One more check is worth the ten seconds it takes. Compare the cumulative return with a figure you already know, such as the fund factsheet for the same dates. At the default the engine shows 18.79%. If your own series gives a cumulative number far from the published one, a period is missing, duplicated or entered with the wrong sign, and every drawdown figure built on it is suspect too.

What one historical path can and cannot tell you

Every figure on this page describes the past of the series you entered. It is a description, not a prediction, and it is not investment advice. A strategy that fell 10.40% at worst over two years can fall much further in the next two.

Use the outputs to compare like with like. Two funds measured over the same months, at the same frequency and net of the same costs can be ranked on maximum drawdown, time underwater and Ulcer index with some meaning. A fund measured over a quiet period cannot be fairly compared with one measured through a crash.

Check what the returns include. If they are gross of fees, the drawdowns and the Calmar describe the strategy before costs, not what an investor in it received. If they come from a backtest rather than live trading, the path may be smoother than real fills would have allowed.

For decisions about your own money, treat these numbers as one input alongside your time horizon, your other holdings and your capacity to sit through a loss, and consider speaking to a qualified adviser.