Ulcer Index Calculator

Measure the depth and duration of drawdowns in a return series.

Finance and MoneyUpdated 2026-11-202 min read
Ulcer Index Calculator
Percent returns separated by commas or spaces, between 2 and 500 values.
Any positive starting level. The index does not depend on its scale.
Ulcer index
...
Deepest drawdown...
Observations...

What it does

The Ulcer Index is a measure of investment risk introduced by Peter Martin in 1987. It focuses on drawdowns, the declines from earlier peak values that investors actually experience, rather than on the dispersion of returns around an average.

A 2022 article in The Journal of Wealth Management notes that common measures such as the Sharpe ratio treat upside volatility as risk and assume normally distributed returns. The Ulcer Index instead captures the depth and duration of drawdowns.

The calculation builds a running wealth line from the returns, tracks the highest value reached so far, and measures how far below that peak the wealth sits at each period. The index is the square root of the mean squared drawdown.

This tool takes a list of periodic returns and a starting level. It reports the Ulcer Index and the deepest drawdown seen in the series.

Like any single risk number, the index loses information about the timing of losses. It is best used alongside other measures and a visual review of the equity curve.

How to use

  1. Paste a list of periodic returns as percentages, separated by commas or spaces.
  2. Enter a starting level. The scale does not change the index but keeps numbers readable.
  3. Read the Ulcer Index in the main result.
  4. Check the deepest drawdown, which is the largest peak to trough decline.
  5. Compare values only for series measured over the same period length.
  6. Try adding a large negative return to see how the index responds.

Formula

Build wealth W(t) from returns. Drawdown D(t) = 100 x (W(t)/peak(t) - 1). Ulcer Index = sqrt( mean of D(t)² ).
W(t)
Wealth level after applying returns up to period t.
peak(t)
Highest wealth level reached up to and including period t.
D(t)
Percentage drawdown below the running peak, zero or negative.
UI
Root mean square of the drawdowns across all periods.

The engine treats each return as a simple percentage and compounds it into the wealth line. It squares the drawdowns so deeper declines count more, then divides by the number of observations before taking the square root.

Worked example

Example: eight returns

Returns 5, -10, 3, -5, 8, -12, 4, 2 with a starting value of 100.

  1. Starting from 100, a 5 percent gain gives 105 and a peak of 105.
  2. A 10 percent loss brings wealth to 94.5, a drawdown of 10 percent below the peak.
  3. The running peak updates whenever wealth reaches a new high, so later drawdowns are measured from that point.
  4. The deepest drawdown in this series is about 16.3030 percent.
  5. Squaring each drawdown, averaging and taking the square root gives 10.4823.
  6. The tool reports Ulcer Index 10.4823, deepest drawdown -16.3030 percent and 8 observations.
  7. A series with no losses would have an index of zero.

Reference table

Risk measures compared on the worked series
MeasureValueFocus
Ulcer Index10.4823Depth and duration of drawdowns
Deepest drawdown-16.3030 %Single worst peak to trough fall
Observations8Length of the return series

Limits

  • The index compresses timing information into one number.
  • It needs a consistent return period for meaningful comparison.
  • It does not capture recovery speed beyond the drawdown path.
  • Short series can give unstable values.

Common mistakes

  • Entering price levels instead of periodic returns.
  • Mixing monthly and daily returns in one list.
  • Comparing index values from series of different lengths without care.
  • Treating a low index as proof of low future risk.
  • Using a negative or zero starting value, which the tool rejects.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the ulcer index for the eight worked returns?

10.4823, with a deepest drawdown of about 16.3030 percent.

What does a higher ulcer index mean?

Deeper or longer drawdowns over the period.

Does upside volatility raise the index?

No. New highs reset the peak, so only declines contribute.

Questions

What is the Ulcer Index?

A risk measure based on the root mean square of drawdowns from earlier highs.

Who created it?

Peter G. Martin, who described it in 1987.

How is it different from standard deviation?

It counts only downside drawdowns and captures their depth and duration.

What is a drawdown?

The percentage decline from the highest wealth level reached so far.

Does the starting value matter?

No. It only sets the scale of the intermediate wealth line.

Is this investment advice?

No. It is an educational risk calculation.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.