Formula
Sortino = (average return − T) / DD, DD = √( sum of min(r − T, 0)² / N )
Here r is the return of each period (day, month), T is the target return (zero or the risk-free rate) and N is the number of all periods. Only periods below the target enter the denominator, but the sum of their squares is divided by all N — that is the downside deviation.
Example: two strategies with the same Sharpe
Strategy A over six months: +4, −2, +3, −1, +5, −3%. The average return is 1%. Deviations below zero are −2, −1 and −3; their squares are 4, 1 and 9, summing to 14; divide by 6 months and take the root — 1.53%. Sortino = 1 / 1.53 ≈ 0.65 per month. The Sharpe ratio without a risk-free rate is 1 / 3.41 (the standard deviation of all six months) ≈ 0.29.
| Strategy | Months, % | Sharpe | Sortino |
|---|---|---|---|
| A | +4, −2, +3, −1, +5, −3 | 0.29 | 0.65 |
| B | +3, +2, +2, −6, +3, +2 | 0.29 | 0.41 |
Both strategies have the same average return and the same Sharpe, but B has one deep losing month — and Sortino catches it. To annualize, multiply the monthly ratio by √12: for A that gives 2.27.
How it differs from the Sharpe ratio
- Sharpe divides by total variability, so a sharp rally is «penalized» just like a fall. Sortino treats only downside moves as risk.
- Sortino is more useful for strategies with lopsided results: rare large wins or rare deep losses.
- Neither sees the order of periods: how deep the account sank is shown by maximum drawdown. Sharpe, Z-score and AHPR are covered in Sharpe ratio, Z-score, AHPR and GHPR.
Common mistakes
- Dividing by the standard deviation of losing periods only. In example A it equals 1%, which gives a Sortino of 1.0 instead of 0.65; the rarer the losses, the bigger the overstatement.
- Comparing Sortino ratios computed from days and from months, or with different targets T.
- Trusting the number on a short history: with one or two losing periods the denominator is near zero.
- Measuring return by account value including deposits: you need return without cash flows — TWR.
Sortino in Davinchu
In a portfolio (the «Investments» tab of the «Accounts» page) the «Overview» tab shows a «Sharpe / Sortino» tile, and the «Analytics» tab has a separate «Sortino» card captioned «Risk of negative days only». It is computed from the daily returns of the portfolio's TWR index, so deposits and withdrawals do not distort it; the downside deviation uses days below zero averaged over all days, and a year is 365 daily observations. The «Risk-free rate, %» from the portfolio settings, 4% by default, is subtracted from the annual return. At least 14 days of history are needed — until then the card shows a dash and how many days it needs. How TWR works is explained in portfolio return with deposits: TWR and XIRR.
Frequently asked questions
What is a good Sortino ratio?
There is no universal norm: the number depends on the period (days or months), the target T and how it is annualized. Compare the Sortino of strategies computed the same way over the same span.
Why can Sortino be higher than Sharpe?
Its denominator holds only deviations below the target, and for a strategy with sharp winning periods they are well below total variability. The more such spikes, the further Sortino pulls away from Sharpe.