# Ulcer Index (UI): What it is, How it Works

> **Definition**
>
> The Ulcer Index (UI) is a technical indicator that quantifies downside risk by measuring the depth and duration of price declines—higher values indicate greater potential drawdowns from recent highs.

## What Does Ulcer Index Mean?

The Ulcer Index (UI) is a technical indicator that measures [downside risk](https://www.investopedia.com/terms/d/downsiderisk.asp) in terms of both the depth and duration of price declines. The index increases in value as the price moves farther away from a recent high and falls as the price rises to new highs. The indicator is usually calculated over a 14-day period, with the Ulcer Index showing the percentage drawdown a trader can expect from the high over that period.

The greater the value of the Ulcer Index, the longer it takes for a stock to get back to the former high. Simply stated, it is designed as one measure of volatility only on the downside.

## Understanding Ulcer Index (UI)

The Ulcer Index was developed by Peter Marin and Byron McCann in 1987 for analyzing mutual funds. Marin and McCann first published it in their 1989 book, _The Investor's Guide to Fidelity Funds_. The indicator looks only at downside risk, not overall volatility. [Other volatility measures](https://www.investopedia.com/articles/basics/09/simplified-measuring-interpreting-volatility.asp), like standard deviation, treat up and down movement equally, but a trader typically does not mind upward movement; it is the downside that causes stress and stomach ulcers, as the index's name suggests.

## Calculating the Ulcer Index

The indicator is calculated in three steps:

*   Percentage Drawdown = \[(Close - 14-period High Close)/14-period High Close\] x 100
*   Squared Average = (14-period Sum of Percentage Drawdown Squared)/14 
*   Ulcer Index = Square Root of Squared Average

Which price high is used in the Ulcer Index calculation is determined by adjusting the look-back period. A 14-day Ulcer Index measures declines off of the highest point in the past 14 days. A 50-day Ulcer Index measures declines off of the 50-day high. A longer look-back period provides investors with a more accurate representation of the long-term price declines they may face. A shorter-term look-back period provides traders with a gauge of recent volatility.

## Using the Ulcer Index

Martin recommends the Ulcer Index as a measure of risk in various contexts where the [standard deviation](https://www.investopedia.com/terms/s/standarddeviation.asp) is usually used. The Ulcer Index can also be charted over time and used as a kind of technical analysis indicator, to show stocks going into ulcer-forming territory, or to compare volatility in different stocks.

Investors can use the Ulcer Index to compare different investment options. A lower average Ulcer Index means lower drawdown risk compared with an investment with a higher average UI. Applying a moving average to the Ulcer Index will show which stocks and funds have lower volatility overall.

Watching for spikes in the Ulcer Index that are beyond "normal" can also be used to indicate times of excessive downside risk, which investors may wish to avoid by exiting long positions.

![Image](https://www.investopedia.com/thmb/zVoYxz-MG9ZisdfweyFT_Mk2Cx8=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/dotdash_INV-final-Ulcer-Index-UI_Feb_2021-01-92a3560ab7af42249041f626aebfe1a0.jpg)

*— Image by Sabrina Jiang © Investopedia 2021*