Ulcer Index Calculator
Measure the depth and duration of drawdowns in a return series.
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
- Paste a list of periodic returns as percentages, separated by commas or spaces.
- Enter a starting level. The scale does not change the index but keeps numbers readable.
- Read the Ulcer Index in the main result.
- Check the deepest drawdown, which is the largest peak to trough decline.
- Compare values only for series measured over the same period length.
- Try adding a large negative return to see how the index responds.
Formula
- 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.
- Starting from 100, a 5 percent gain gives 105 and a peak of 105.
- A 10 percent loss brings wealth to 94.5, a drawdown of 10 percent below the peak.
- The running peak updates whenever wealth reaches a new high, so later drawdowns are measured from that point.
- The deepest drawdown in this series is about 16.3030 percent.
- Squaring each drawdown, averaging and taking the square root gives 10.4823.
- The tool reports Ulcer Index 10.4823, deepest drawdown -16.3030 percent and 8 observations.
- A series with no losses would have an index of zero.
Reference table
| Measure | Value | Focus |
|---|---|---|
| Ulcer Index | 10.4823 | Depth and duration of drawdowns |
| Deepest drawdown | -16.3030 % | Single worst peak to trough fall |
| Observations | 8 | Length 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
- Ulcer Index and UPI: original description by Peter Martin
- McBride and Dastan, Ulcer Index 2.6: A Better Risk Measure?, Journal of Wealth Management 2022