LibraryCalculators
Two runners finish a race in the same time. One ran at an even pace, the other sprinted, stopped, and sprinted again. The finishing time alone hides the difference. A list of returns has the same problem: the average return says nothing about how bumpy the ride was.
Education, not advice. Inputs are your own numbers; no market data is used.
| Measure | Value |
|---|---|
| Sharpe ratio (annualised) | 0.1950 |
| Sortino ratio (annualised) | 0.2581 |
| Annual return (arithmetic) | 3.36% |
| Annual volatility | 17.23% |
| Maximum drawdown | 3.64% |
| Mean return per period | 0.01% |
| Number of returns | 30 |
The Sharpe ratio, from Sharpe (1966), divides the average excess return by the volatility, so it measures return per unit of bumpiness. The Sortino ratio, from Sortino and van der Meer (1991), counts only the downside bumps. Maximum drawdown is the worst fall from a peak to a later low. This page computes all of them from a list of returns typed in.
These are the first numbers anyone reads off a backtest, and each one can mislead in its own way. Seeing them side by side on the same list is the quickest way to learn what each captures and what it leaves out.
The Sharpe ratio is annualised excess return per unit of annualised volatility. Higher means more return per unit of bumpiness in this sample. It is a description of the list, and on a short list it is very noisy: its standard error is roughly one over the square root of the number of years in the sample.
The Sortino ratio uses only downside moves in the denominator. When it is much larger than the Sharpe ratio, most of the volatility in the list came from up moves.
Annual return is the arithmetic average return scaled to one year. It is not the compound growth rate, which is lower whenever the returns vary. Annual volatility scales the per-period standard deviation by √m. Maximum drawdown is the worst peak-to-trough fall in the compounded path, as a fraction of the peak.
Sanity check: shuffling the order of the returns leaves Sharpe, Sortino, annual return and annual volatility unchanged, and only maximum drawdown moves. A list of identical returns has zero volatility. The Sharpe ratio is then undefined and the page says so instead of showing a number.
Sharpe = (mean(r) − r_f) / s × √m
Sortino = (mean(r) − r_f) / DD × √m
DD = √[ (1/n) Σ min(r_t − r_f, 0)² ]
Annual return = mean(r) × m
Annual volatility = s × √m
W_0 = 1, W_t = Π_{i ≤ t} (1 + r_i), Max drawdown = max over t of (1 − W_t / max_{0 ≤ u ≤ t} W_u)
r_t is the return in period t, as a decimal (0.01 for one percent). n is the number of returns. m is the number of periods in a year, for example about 252 for trading days, 52 for weeks, 12 for months.
r_f is the risk-free return per period. The form takes an annual rate in percent and divides it by 100 and by m. It is also the target for the Sortino ratio.
mean(r) is the arithmetic average return. s is the sample standard deviation of the returns, dividing by n − 1.
DD is the downside deviation: only shortfalls below r_f count, but the average is taken over all n periods, so periods above target count as zero.
Π means multiply the terms together and Σ means add them. W_t is the value of one unit invested at the start, compounded through period t. Max drawdown is the largest fractional fall from a running peak.
Take the average return per period, subtract the risk-free return per period, and divide by the standard deviation of returns. To annualise, multiply by the square root of the number of periods in a year.
The Sharpe ratio divides by total volatility, so up moves count as risk. The Sortino ratio divides by downside deviation, which counts only returns below the target. For a list with large gains and small losses the Sortino ratio comes out higher.
There is no universal threshold. A Sharpe ratio is a noisy estimate whose meaning depends on the sample length, the number of strategies tried, and the shape of the returns. A high figure from a short or heavily searched backtest carries little evidence.
Compound the returns into a value path, track the highest value so far at each point, and measure how far the path sits below that running peak as a fraction of it. The largest such fall is the maximum drawdown.