Ulcer Index Calculator

Ulcer index15.00%
Maximum drawdown25.00%
Pain index (mean drawdown)11.00%
Periods below the peak3 of 5
How this was calculated
  1. Track the running peak through the 5 values: at each point the drawdown is the percentage below the highest value seen so far — here 0.0%, 0.0%, 25.0%, 10.0%, 20.0%.
  2. Square each drawdown and average the squares: the mean squared drawdown is 225.00 (% squared), which punishes the deep falls far more than the shallow ones.
  3. The Ulcer index is the square root of that average, 15.00% — Peter Martin's root-mean-square of the drawdown series, named for the stomach ulcer a deep, long fall gives an investor.
  4. The worst single point is 25.00% below the peak, and the series spends 3 of its 5 points below a previous peak — the Ulcer index blends that depth with how long the falls last.
  5. Read it against the return: the Martin ratio divides excess return by this index, and values under about 5 are calm for equity-like series while double digits mark a rough ride.

This ulcer index calculator measures how painful a series of values was to hold, by tracking every percentage drop below its running peak. The Ulcer index is the root-mean-square of a series' percentage drawdowns from its running peak, devised by Peter Martin in 1987. Enter your values and the calculator returns the index as a percentage, along with the drawdowns behind it. For the values 100, 120, 90, 108, 96 the drawdowns are 0%, 0%, 25%, 10%, 20% and the Ulcer index is 15.00%. A series falling 100, 80, 88, 64 has drawdowns 0%, 20%, 12%, 36% and an Ulcer index of 21.45%.

The method is the accepted standard for this kind of calculation because squaring before averaging makes deep drawdowns count far more than shallow ones, so a single steep fall is not hidden by many mild ones. The plain average of the same drawdowns is the pain index, a related but less punishing measure. Dividing excess return by the Ulcer index gives the Martin ratio; values under about 5 are calm for equity-like series. This page shows the formula, step-by-step workings, worked examples and sources, so you can check every number yourself rather than take the result on trust.

Worked examples

A rise, a 25% fall and a partial recovery

Primary result: 15.00%. Full step-by-step working is shown with the result. (5 values · 100 · 120 · 90 · 108 · 96 · 0 · 0 · 0 · 0 · 0)

Ulcer index15.00%
Maximum drawdown25.00%
Pain index (mean drawdown)11.00%
Periods below the peak3 of 5

A grinding 36% decline

Primary result: 21.45%. Try it with your own numbers in the calculator above. (4 values · 100 · 80 · 88 · 64 · 0 · 0 · 0 · 0 · 0 · 0)

Ulcer index21.45%
Maximum drawdown36.00%
Pain index (mean drawdown)17.00%
Periods below the peak3 of 4

Shallow dips in a rising series

Primary result: 5.02%. Every intermediate value is printed in the worked steps. (5 values · 100 · 95 · 100 · 90 · 99 · 0 · 0 · 0 · 0 · 0)

Ulcer index5.02%
Maximum drawdown10.00%
Pain index (mean drawdown)3.20%
Periods below the peak3 of 5

What the Ulcer index measures

The Ulcer index measures how much and how long an investment falls below its own high point, rather than how volatile it is in either direction. It begins with drawdown: for each point in a series, compare the value to the highest value reached up to that point, called the running peak. The gap below that peak, expressed as a percentage, is the drawdown at that point. A series that keeps setting new highs has a drawdown of 0%. A series that falls 25% below its peak carries a 25% drawdown until it climbs back above that peak.

The index then combines those drawdowns using a root-mean-square, or RMS, construction. Each percentage drawdown is squared, the squares are averaged across the whole series, and the square root of that average is taken. The result is a single percentage that reflects both the depth of the declines and how many periods were spent in them. This is why an ulcer index calculator is useful: it turns a long list of drawdowns into one comparable figure without ignoring the mild dips or the severe ones.

Two worked examples show the arithmetic in plain terms. For the values 100, 120, 90, 108, 96, the drawdowns are 0%, 0%, 25%, 10% and 20%, and the Ulcer index is 15.00%. For a series falling through 100, 80, 88, 64, the drawdowns are 0%, 20%, 12% and 36%, and the Ulcer index is 21.45%. In each case the index sits above the shallow drawdowns and below the deepest one, because it is an average of squared losses rather than a single reading.

Squaring before averaging is the key design choice. It makes deep drawdowns count far more than shallow ones, so a series with one long, painful decline scores worse than a series that drifts sideways with many small dips. The plain average of the same drawdowns, without squaring, is a separate measure called the pain index. The Ulcer index was devised by Peter Martin in 1987 to capture the discomfort investors actually feel, which comes from losses below the peak rather than from ordinary ups and downs.

The contrast with maximum drawdown is the clearest way to understand what the Ulcer index adds. Maximum drawdown sees only the single worst point in the series: one number describing the deepest trough, with no regard for how long the decline lasted or how often smaller declines occurred. A series that drops 30% once and recovers quickly can show the same maximum drawdown as one that grinds 30% below its peak for years, yet the second is far more wearing to hold. The Ulcer index spreads its attention across every drawdown, so duration and frequency of pain register in the score.

The index also feeds the Martin ratio, which divides excess return by the Ulcer index. Values under about 5 are considered calm for equity-like series. That pairing shows the measure's purpose: it is a risk figure built around downside pain, meant to be read alongside return rather than on its own.

Ulcer index: square each percentage drawdown from the running peak, average the squares, then take the square root. Maximum drawdown sees only the worst point; the Ulcer index weighs every drawdown.

How to calculate it, step by step

To calculate the Ulcer index, you work through a series of closing values one at a time, tracking the highest value seen so far. That running peak is the reference point for every measurement. For each value in the series, subtract it from the running peak, divide by the running peak, and multiply by 100 to express the result as a percentage drawdown. If the current value is itself a new high, the drawdown is simply 0%.

Once every drawdown is recorded, square each percentage, add the squares together, divide by the number of observations, and take the square root. That final square root is the Ulcer index. The squaring step is what separates this measure from a simple average: deep drawdowns count far more than shallow ones. The plain average of the same drawdowns is a different measure, the pain index, so don't confuse the two. The Ulcer index was devised by Peter Martin in 1987, and it is defined as the root-mean-square of a series' percentage drawdowns from its running peak.

A worked example makes the steps concrete. Take the values 100, 120, 90, 108, 96. Start with a running peak of 100. The first value, 100, matches the peak, so its drawdown is 0%. The second value, 120, sets a new peak, so its drawdown is also 0%. The third value, 90, sits below the peak of 120: the drop is 30, which is 25% of 120. The fourth value, 108, is 12 below 120, or 10%. The fifth value, 96, is 24 below 120, or 20%. The drawdowns are therefore 0%, 0%, 25%, 10% and 20%.

Now square each one: 0, 0, 625, 100 and 400. The sum is 1,125. Divide by the five observations to get 225, and the square root of 225 is 15.00%. That matches the stated Ulcer index for this series. A second series shows how a deeper fall moves the result: the values 100, 80, 88, 64 produce drawdowns of 0%, 20%, 12% and 36%, and an Ulcer index of 21.45%.

The Ulcer index also feeds into a risk-adjusted measure. Dividing excess return by the Ulcer index gives the Martin ratio. As a rough guide, values under about 5 are calm for equity-like series. If you would rather not repeat the arithmetic by hand, an ulcer index calculator runs the same five steps — running peak, percentage drawdown, square, average, square root — on any series you enter.

  • Find the running peak: the highest value seen so far in the series.
  • Record the percentage drawdown: (peak − value) ÷ peak × 100, or 0% at a new high.
  • Square each percentage drawdown.
  • Average the squares over all observations.
  • Take the square root of that average to get the Ulcer index.
Worked example: for 100, 120, 90, 108, 96 the drawdowns are 0%, 0%, 25%, 10% and 20%. Squaring gives 0, 0, 625, 100 and 400; the average is 225 and the square root is 15.00%.

Ulcer index vs pain index vs volatility

Three measures can look at the same price path and tell you very different things. The ulcer index calculator question usually starts here: why not just use volatility, or the pain index, and be done? The answer lies in what each measure is built to notice. The Ulcer index, devised by Peter Martin in 1987, is the root-mean-square of a series' percentage drawdowns from its running peak. That definition packs in two choices — measuring from the peak, and squaring before averaging — and both separate it from the alternatives.

Start with the pain index. It takes the same drawdowns — the percentage gaps between each value and the highest value reached before it — and simply averages them, without squaring. So the two measures share their raw input but weight it differently. Squaring before averaging makes deep drawdowns count far more than shallow ones; the plain average of the same drawdowns is the pain index. A long stretch of mild dips below the peak can lift the pain index while barely moving the Ulcer index, and a single severe plunge does the reverse. Neither is wrong; they answer different questions about how much the ride hurt.

Standard deviation, the usual face of volatility, is different again. It ignores direction and path order: a series that climbs steadily and one that lurches up and down can post similar standard deviations, because the measure treats upside and downside moves alike and does not care when they happened. The Ulcer index does not have that blind spot. It charges only for falls below the peak, and because every drawdown is measured from the running peak, it charges for depth and for duration — a dip that persists across many observations contributes repeatedly, while a brief one that is quickly recovered contributes little.

The worked numbers show the gap in practice. For the values 100, 120, 90, 108, 96 the drawdowns are 0%, 0%, 25%, 10%, 20% and the Ulcer index is 15.00%. A series falling 100, 80, 88, 64 has drawdowns 0%, 20%, 12%, 36% and an Ulcer index of 21.45%. Notice how the second series, with its deeper and more persistent slide from the peak, earns the higher reading even though its individual drawdowns are not uniformly larger.

One practical use of the measure is the Martin ratio: dividing excess return by the Ulcer index gives the Martin ratio, and values under about 5 are calm for equity-like series. That framing keeps the index connected to return rather than treating pain as a standalone verdict. When you run an ulcer index calculator, compare its output against the pain index and standard deviation on the same data — the three together say more than any one alone.

  • Pain index: the plain (unsquared) average of the same drawdowns from the running peak.
  • Standard deviation: ignores direction and path order, so up and down moves count alike.
  • Ulcer index: squares drawdowns, so it charges for the depth and duration of falls below the peak.
Same drawdowns, different weights: squaring makes deep falls dominate the Ulcer index, while the pain index averages them flat.

Reading the number

Once an ulcer index calculator returns a figure, the next question is what that figure means. The Ulcer index is the root-mean-square of a series' percentage drawdowns from its running peak, devised by Peter Martin in 1987. Because it is expressed as a percentage, it reads like a volatility number but measures only downside: how far below its high-water mark a series has traveled, and for how long. Two worked examples make the scale concrete. For the values 100, 120, 90, 108, 96 the drawdowns are 0%, 0%, 25%, 10%, 20% and the Ulcer index is 15.00%. A series falling 100, 80, 88, 64 has drawdowns 0%, 20%, 12%, 36% and an Ulcer index of 21.45%.

The second example shows why the figure can feel larger than the drawdowns suggest. Squaring before averaging makes deep drawdowns count far more than shallow ones; the plain average of the same drawdowns is the pain index. So a series that spends most of its time near its peak but suffers one severe fall will post a higher Ulcer index than the drawdown list alone implies. When you read the output, compare it against the worst drawdown in the series rather than against zero — the index sits somewhere between a typical dip and the deepest one, weighted toward the deep end.

Sampling frequency matters as much as the values themselves. The index is built from drawdowns observed at each point in the series, so a daily series records many more observations than a monthly one, including brief dips that a monthly series would never show. The same investment can therefore produce different Ulcer index readings depending on whether you feed the calculator daily or monthly values. Pick one frequency and stay with it when comparing series; a daily figure and a monthly figure are not interchangeable, and mixing them makes a calm series look turbulent or the reverse.

For return per unit of ulcer, pair the index with the Martin ratio. Dividing excess return by the Ulcer index gives the Martin ratio; values under about 5 are calm for equity-like series. Read it as the return earned for each point of drawdown pain: a higher ratio means the series delivered more return relative to the discomfort it inflicted. Because the denominator is the Ulcer index, the ratio inherits the same sampling sensitivity, so compute it from the same data frequency as the index itself.

A practical reading order: check the worst drawdown first to anchor the scale, then the Ulcer index to see how much of that pain was sustained across the series, then the Martin ratio to judge whether the return justified it.

Same series, different frequency, different number: the Ulcer index only means something alongside the sampling interval used to compute it.

FAQs

What is the Ulcer index?

The Ulcer index is the root-mean-square of a series' drawdowns from its running peak, expressed in percent. It is a downside-risk measure developed by Peter Martin. Instead of looking only at the single worst loss, it captures how deep and how persistent the declines are, so a higher value means a rougher, more painful ride for the investor.

How is the Ulcer index calculated?

Square each period's percentage drawdown from the running peak, average those squares, and take the square root. For example, drawdowns of 0%, 0%, 25%, 10% and 20% give a Ulcer index of 15.00%. Squaring weights the deeper drawdowns more heavily, and the square root returns the result to percentage terms.

What is a good Ulcer index?

Lower is calmer. Under about 5 is smooth for equity-like series, while double digits mark a rough ride. There is no universal cutoff, so always compare like with like over the same period: a figure is only meaningful next to another series measured over the same timeframe and sampling frequency.

How does the Ulcer index differ from maximum drawdown?

Maximum drawdown is the single worst peak-to-trough fall. The Ulcer index blends the depth of every drawdown with how long the series spends below its peak. That means a series with one sharp recovery can look better on maximum drawdown but worse on the Ulcer index if it lingers below its peak repeatedly.

Does the Ulcer index use daily or monthly values?

Either works, but the figure grows with sampling frequency because daily data catches deeper interim falls that monthly data misses. State the frequency when comparing, since a daily-based Ulcer index will generally read higher than a monthly-based one for the same series over the same span.

What is the Martin ratio?

The Martin ratio is excess return over the risk-free rate divided by the Ulcer index. It measures return per unit of drawdown pain, similar in spirit to the Sharpe ratio but using downside risk instead of volatility. A higher Martin ratio means more return earned for each unit of drawdown suffered.

Sources

Related calculators

Max Drawdown Calculator
Maximum drawdown of a value series — the worst peak-to-trough fall and the gain needed to break even again.
Pain Index Calculator
The pain index — the average drawdown of a value series — with maximum drawdown and the Ulcer index alongside.
Burke Ratio Calculator
Score a return stream the Burke way: excess return divided by the root-sum-square of its largest drawdowns.
Calmar Ratio Calculator
Annualized return divided by maximum drawdown — the hedge-fund ratio that asks what a strategy earns for the worst fall it has ever taken.