Sortino Ratio Calculator
Divide excess return over a target by downside deviation to get a Sortino ratio.
What it does
The Sortino ratio is a risk adjusted performance measure related to the Sharpe ratio. The key difference is the denominator. Sharpe divides by the standard deviation of all returns, while Sortino divides by downside deviation, which ignores returns above the target.
This tool takes a list of period returns and a target, often called the minimum acceptable return. It computes the mean, measures how far each return falls below the target, squares those shortfalls, averages them over every observation, and takes the square root.
The default series is 10, 12, minus 5, 8, 15, minus 2 and 9 percent with a target of 5 percent. The mean is about 6.714 and only two periods fall below target. Downside deviation is about 4.614, giving a Sortino ratio near 0.372.
Averaging squared shortfalls over the full count matters. Dividing only by the number of bad periods understates downside risk and inflates the ratio. The tool deliberately uses the total number of observations.
The discrete calculation shown here is the common practical version. Sortino himself preferred fitting a continuous distribution to returns before measuring downside, which requires more data and software than a simple page can provide.
How to use
- Enter the period returns separated by commas, using the same unit for each.
- Enter the target return in that same unit.
- Read the Sortino ratio as the main result.
- Check the mean return to see the numerator of the ratio.
- Check downside deviation to see how much bad variation was measured.
- Use the below target count to confirm which periods contributed.
Formula
- mean return
- The arithmetic average of the entered period returns.
- target
- The minimum acceptable return, entered here as a percent.
- downside deviation
- Square root of the mean squared shortfall below the target, using all observations in the average.
A period at or above the target contributes zero to the squared shortfall sum but still counts in the denominator average. If no period falls below the target, downside deviation is zero and the ratio is undefined, so the tool reports a clear error instead of dividing by zero.
Worked example
Example: seven annual returns
The page opens with returns of 10, 12, -5, 8, 15, -2 and 9 percent and a target of 5 percent.
- Add the seven returns to get 47, then divide by 7 for a mean of about 6.714.
- Only the returns of minus 5 and minus 2 fall below the target of 5.
- Their shortfalls are minus 10 and minus 7, whose squares are 100 and 49.
- Divide the sum of 149 by all 7 observations to get about 21.286.
- The square root is about 4.614, the downside deviation.
- Excess return is 6.714 minus 5, about 1.714.
- Dividing 1.714 by 4.614 gives a Sortino ratio of about 0.372.
Reference table
| Returns (percent) | Target | Downside deviation | Sortino ratio |
|---|---|---|---|
| 10, 12, -5, 8, 15, -2, 9 | 5 | 4.614 | 0.372 |
| 8, -4, 6, 10, -1 | 2 | 3.000 | 0.600 |
| 3, -6, 9, -3, 12, 0 | 4 | 5.260 | -0.285 |
Limits
- Uses the discrete definition of downside deviation, not a fitted continuous distribution.
- The target must be in the same period units as the returns.
- If no return falls below target, the ratio is undefined and the tool reports an error.
- Accepts 2 to 100 return values.
Common mistakes
- Dividing squared shortfalls by the number of bad periods only.
- Using standard deviation of all returns as the denominator.
- Mixing monthly returns with an annual target.
- Forgetting that a negative ratio simply means the mean missed the target.
- Treating a higher ratio as a guarantee of future performance.
Try it yourself
Quick checks. Answers sit tucked under each question.
Returns 8, -4, 6, 10, -1 with target 2. What is the ratio?
0.600. The mean is 3.8 and downside deviation is 3.0.
Returns 3, -6, 9, -3, 12, 0 with target 4. What is the ratio?
-0.285. The mean of 2.5 is below the target, so the numerator is negative.
Every return exceeds the target. What does the tool report?
An error, because downside deviation is zero and the ratio is undefined.
Questions
How is Sortino different from Sharpe?
Sharpe uses total volatility in the denominator, while Sortino counts only shortfalls below the target.
What is the minimum acceptable return?
It is the target chosen by the investor, often the risk free rate or zero.
Do good periods count in the denominator?
They contribute zero shortfall but still count in the average, which avoids understating downside risk.
Can the ratio be negative?
Yes, when the mean return is below the target.
Why not use only the bad periods in the average?
That convention understates downside risk and makes funds with few losses look better than they are.
Does the formula need a volatility forecast?
No. The discrete version uses only the observed returns and the chosen target.
Sources
- CFA Institute, the Sortino ratio research note
- Financial Planning Association, an intuitive examination of downside risk
- R Project, PerformanceAnalytics documentation for downside deviation