Pain Ratio Calculator
Divide excess return by the average drawdown experienced.
What it does
The pain ratio is a risk adjusted performance measure that uses the average drawdown an investor endures rather than the volatility of returns. Its denominator, the pain index, is the average absolute decline from a running peak over the whole series.
The PerformanceAnalytics documentation for R defines the pain ratio as annualised portfolio return minus the risk free rate, divided by the pain index, which is the sum of absolute drawdowns over the number of observations.
A Cologne center working paper on drawdown measures shows that statistics like the pain ratio, Ulcer Index and Calmar ratio fit into a common framework and can rank portfolios differently.
This tool builds a wealth line from your returns, measures the drawdown each period, averages their absolute values and divides annualised excess return by that average.
If a series never falls below a previous peak, the pain index is zero and the ratio is undefined.
How to use
- Paste a list of periodic returns as percentages.
- Enter a risk free rate in percent for the same period basis.
- Enter the number of periods per year.
- Read the pain ratio in the main result.
- Check the pain index, which is the average absolute drawdown.
- Compare with other drawdown measures such as the Ulcer Index.
Formula
- drawdown
- Percentage decline from the highest wealth reached so far.
- pain index
- Average absolute drawdown across all periods.
- annualised return
- Compounded return scaled to a yearly basis.
- risk free
- Risk free rate in the same units.
The engine records a zero drawdown in periods when wealth reaches a new high, so those periods are included in the average. This matches the standard definition of the pain index.
Worked example
Example: six returns
Returns 10, -5, 15, -8, 12, -6 with a 2 percent risk free rate and 12 periods per year.
- Compounding the returns and annualising gives about 32.7972 percent.
- The pain index, the average absolute drawdown across all six periods, is about 3.1667.
- Excess return is 32.7972 - 2 = 30.7972 percent.
- Pain ratio = 30.7972 / 3.1667 = 9.7254.
- The tool reports pain ratio 9.7254, pain index 3.1667 and annualised return 32.7972 percent.
- A smoother ride with the same return would give a higher ratio.
Reference table
| Measure | Value | Meaning |
|---|---|---|
| Annualised return | 32.7972 % | Compounded and scaled |
| Risk free rate | 2 % | Entered by user |
| Pain index | 3.1667 | Average absolute drawdown |
| Pain ratio | 9.7254 | Excess return per unit of pain |
Limits
- The result depends on the observation frequency.
- It does not distinguish short sharp losses from long shallow ones.
- A series with no drawdowns gives an undefined ratio.
- The risk free rate should match the return period basis.
Common mistakes
- Entering price levels instead of returns.
- Using a risk free rate in different units from the returns.
- Mixing daily returns with an annualisation factor of 12.
- Assuming a higher pain ratio always means lower risk in absolute terms.
- Ignoring that the pain index includes zero drawdown periods.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the pain ratio for the worked series?
About 9.7254.
What is the pain index?
The average absolute drawdown across all periods, here about 3.1667.
When is the ratio undefined?
When the return series has no drawdowns, so the pain index is zero.
Questions
What is the pain ratio?
Excess return divided by the average absolute drawdown.
How is it different from Sharpe?
It uses drawdowns rather than standard deviation as the risk measure.
What is the pain index?
The mean absolute drawdown over the whole series.
Does the tool compute drawdowns?
Yes, from a wealth line built from your returns.
What if there are no losses?
The pain index is zero and the tool reports the ratio as undefined.
Is this investment advice?
No. It is an educational calculation.
Sources
- PerformanceAnalytics documentation: Pain Ratio
- Center for Financial Research Cologne, Drawdown Measures: Are They All the Same?