What is the Ulcer Index? Definition, Formula, and Example
The Ulcer Index is a downside-risk metric that measures the depth and duration of drawdowns from prior highs, penalizing sustained declines more than brief ones.
Ulcer Index Definition
The Ulcer Index is a risk measure developed by Peter Martin in 1987 that quantifies how deeply and how long an investment trades below its previous peak. Where standard deviation treats upside and downside volatility identically, the Ulcer Index counts only downward excursions from running highs — and because it squares the percentage drawdowns, a deep or prolonged decline dominates the score. It answers the question investors actually feel: how bad was the ride down, and how long did it last?
How the Ulcer Index Is Calculated
For each period i in the lookback window (commonly 14 days for trading, or full history for fund evaluation):
1. Compute the percentage drawdown from the running maximum:
Rᵢ = 100 × (Priceᵢ − MaxPrice) / MaxPrice
where MaxPrice is the highest closing price in the lookback up to period i.
2. Square each drawdown and average:
UI = √( Σ Rᵢ² / n )
The squaring makes depth nonlinear: a 20% drawdown contributes four times as much as a 10% drawdown, and because every day spent below the peak adds another squared term, duration compounds the score. The companion metric, the Ulcer Performance Index (also called the Martin Ratio), divides excess return by the Ulcer Index:
UPI = (Annualized Return − Risk-Free Rate) / UI
It plays the same role as the Sharpe ratio but punishes only harmful volatility.
Worked Example
Compare two funds over four weeks of weekly closes. Fund A: 100, 95, 90, 100. Fund B: 100, 99, 98, 100.
Fund A running max = 100 throughout. Drawdowns: 0%, −5%, −10%, 0%.
UI = √((0² + 5² + 10² + 0²)/4) = √(125/4) = 5.59.
Fund B drawdowns: 0%, −1%, −2%, 0%.
UI = √((0 + 1 + 4 + 0)/4) = √(5/4) = 1.12.
Both funds end flat, but Fund A's Ulcer Index is five times higher. Now contrast with a fund that dips 5% once and recovers next week: UI = √((0 + 25 + 0 + 0)/4) = 2.50 — lower than Fund A despite an identical worst point, because Fund A stayed underwater for two periods. Duration is priced in.
Applied to real markets: during the 2022 bear market, the Nasdaq 100 spent roughly 12 months below its November 2021 peak with a maximum drawdown near −35%, producing an Ulcer Index far above the S&P 500's for the same window, even though daily-volatility readings were closer than most investors assumed.
When Traders Use the Ulcer Index
- Strategy comparison: Two systems with equal returns and equal Sharpe ratios are differentiated by UI; the one with shallower, shorter drawdowns is more capital-efficient and easier to size up.
- Risk-adjusted screening: The Martin Ratio ranks funds and CTAs on return per unit of ulcer, avoiding the Sharpe ratio's distortion when a strategy's "volatility" is mostly upside spikes.
- Position sizing: A strategy with UI of 12 requires roughly half the leverage of one with UI of 6 to deliver the same psychological and margin stress.
- Drawdown-aware exits: Systematic traders trigger de-risking when a portfolio's rolling UI breaches a threshold, capturing deterioration that daily volatility misses because slow grinds produce small daily moves.
Limitations and Common Misconceptions
The Ulcer Index is entirely backward-looking; a low UI in a quiet regime says nothing about tail risk lurking in untested conditions. It is sensitive to lookback choice — a 14-day UI for trading and a full-history UI for fund evaluation are different instruments sharing a name. It also ignores maximum drawdown as a discrete worst-case: two paths with identical UI can have very different single-trough depths if one grinds and the other spikes. Finally, like all drawdown measures, it penalizes strategies that recover slowly even when the underlying thesis is intact — it measures pain, not probability of ruin.