Sharpe Ratio Calculator: Sharpe, Sortino, Treynor, Information Ratio and M²
By FindMySum · Last reviewed
Two portfolios that both returned 9% last year aren't equally good if one swung twice as much to get there. The Sharpe ratio puts a number on that: the return earned above a risk-free investment for each unit of volatility. This calculator works it out from annual figures or a list of periodic returns, along with four related measures: the Sortino ratio, the Treynor ratio, the information ratio and M².
The Sharpe ratio
William Sharpe's ratio divides the excess return by the standard deviation of returns:
Sharpe = (Rp − Rf) ÷ σp
- Rp is the portfolio's average annual return.
- Rf is the risk-free rate. For a Canadian portfolio the usual choice is the 3-month Government of Canada treasury bill yield; the default here is the Bank of Canada's figure of 2.56% for 9 November 2026.
- σp is the annualised standard deviation of the portfolio's returns.
Worked example
With the calculator's defaults, a 9% return, 12% volatility and the 2.56% T-bill rate:
- Excess return: 9 − 2.56 = 6.44 percentage points.
- Sharpe ratio: 6.44 ÷ 12 = 0.54.
With an 8% downside deviation and a 0% target, the Sortino ratio is 9 ÷ 8 = 1.13. With a beta of 1.1 the Treynor ratio is 6.44 ÷ 1.1 = 5.85%. Against a benchmark that returned 8% with a 4% tracking error, the information ratio is 0.25. And with the benchmark's 11% volatility, M² is 2.56 + 0.54 × 11 = 8.46%: scaled to the benchmark's level of risk, the portfolio would have returned 0.46 percentage points more than the benchmark's 8%, so it added a little value per unit of risk.
Annualising from monthly returns
If you have monthly returns, enter them as a list. The calculator takes the average and the sample standard deviation, then annualises: the average is multiplied by 12 and the standard deviation by √12, so the Sharpe ratio is the monthly ratio × √12. For weekly data the factor is 52 and for daily data 252 trading days. With the sample returns of 2, −1, 3, 1.5, −0.5 and 2.5%, the annual return is 15%, the volatility 5.67% and the Sharpe ratio 2.12.
The related ratios
- Sortino ratio divides by downside deviation instead of standard deviation: only returns below a target count as risk, so a fund isn't penalised for large gains.
- Treynor ratio divides the excess return by beta, the portfolio's sensitivity to the market. It suits a fund that is one part of a diversified portfolio, where only market risk matters.
- Information ratio compares the return above a benchmark with the tracking error, the volatility of that difference. It measures how consistently an active manager adds value.
- M² (Modigliani and Modigliani) restates the Sharpe ratio as a percentage return at the benchmark's level of risk, which is easier to compare with the benchmark's own return.
Using the ratios well
Compare funds over the same period, in the same currency, with the same risk-free rate. A Sharpe ratio from three years of data has wide error bars. The ratios assume volatility is a fair measure of risk, which breaks down for strategies with rare large losses. To combine holdings into one return, use the portfolio return calculator; to set a mix of stocks and bonds, the asset allocation calculator.
What the calculator leaves out
It uses arithmetic averages and doesn't adjust for autocorrelation, fees or taxes. The risk-free default is a stored value from the Bank of Canada, not a live feed, so check the current T-bill yield for a precise figure.
More questions
Can the Sharpe ratio be negative?
Yes, when the portfolio returned less than the risk-free rate over the period. A negative Sharpe ratio means you would have done better in treasury bills, and comparing two negative ratios says little, because a more volatile fund can look better just by having a larger denominator.
How many returns do I need for a reliable Sharpe ratio?
More than you might think. With 36 monthly returns the estimate is still noisy; a fund with a true Sharpe ratio of 0.5 can easily show 0.2 or 0.8 over three years. Use at least three to five years of monthly data and compare funds over the same period.
Does the Sharpe ratio work for hedge funds or options strategies?
It can mislead there. Strategies that sell options or hold illiquid assets can show smooth returns and a high Sharpe ratio until a rare large loss. The Sortino ratio, maximum drawdown and the shape of the return distribution tell you more about such strategies.
Should I use the Sharpe ratio to pick an ETF?
It's one input. For broad index ETFs tracking the same market, fees and tracking error matter more. The Sharpe ratio is most useful when comparing funds with different risk levels, such as a balanced fund against an all-equity fund.
Is a higher Sharpe ratio always better?
For the same period and risk-free rate, yes in principle: more return per unit of total risk. But it assumes returns are roughly normal and that volatility is the right measure of risk, and past ratios don't predict future ones.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.