The Sharpe Ratio Formula
The Sharpe ratio is:
Sharpe = (Portfolio Return − Risk-Free Rate) / Standard Deviation of Portfolio Returns
The numerator is the excess return — the return above what you could have earned with no risk at all (proxied by the short-term government bill rate). The denominator is the standard deviation of portfolio returns, measuring how much the portfolio's returns vary from period to period.
A worked example: Fund A returns 12% per year with a standard deviation of 20%, and the risk-free rate is 4%. Sharpe = (12 − 4) / 20 = 0.40. Fund B returns 8% per year with a standard deviation of 7%. Sharpe = (8 − 4) / 7 = 0.57. Despite Fund B's lower absolute return, it delivers better risk-adjusted performance: it earns more excess return per unit of volatility accepted.
The Sharpe ratio can be negative when the portfolio return falls below the risk-free rate — a fund that returns 3% when bills yield 4% has a negative Sharpe ratio, meaning the investor would have been better off holding cash.