Sharpe Ratio Calculator - Risk-Adjusted Returns

Sharpe ratio calculator measures risk-adjusted investment return versus the risk-free rate and volatility to compare portfolios and trading strategies.

Enter portfolio return, risk-free rate, and volatility in the same percent units to compute the Sharpe ratio of excess return per unit of risk.

Sharpe Ratio Calculator - Risk-Adjusted Returns
Sharpe ratio calculator measures risk-adjusted investment return versus the risk-free rate and volatility to compare portfolios and trading strategies.

About the Sharpe Ratio

The Sharpe ratio calculator measures how much excess return a portfolio or strategy earned per unit of volatility. William Sharpe’s ratio is (R_p − R_f) / σ, where R_p is the portfolio return, R_f is the risk-free rate, and σ is the standard deviation of returns over the same period. A higher Sharpe means more compensation for the risk taken, which is why allocators use it to compare a stock fund with a bond fund, or two trading systems that cannot be ranked on raw return alone. Enter all three inputs in the same units. If return and the risk-free rate are annual percents, volatility must also be the annualized standard deviation in percent. Mixing a 12% annual return with a 2% monthly volatility will produce a meaningless number. The engine does not annualize for you and does not convert decimals: 12 means 12%, not 0.12. Because both numerator and denominator are percents, they cancel and the Sharpe ratio is a unitless multiple such as 0.8 or 1.5. Interpretation is contextual. Many long-only equity allocations land between 0.3 and 1.0 depending on the window; a ratio above 1 is often called attractive in textbook examples, but a quiet bond bull market can print a high Sharpe that disappears when rates rise. Negative Sharpes mean the portfolio lagged cash. Zero volatility is undefined; the calculator returns 0 in that case rather than dividing by zero. Caveats matter as much as the formula. Sharpe uses total volatility, so it punishes upside jumps the same as drawdowns. It assumes returns are well summarized by mean and variance, which is a poor description of options, trend-following, or crash-risk strategies. It is also window-dependent: a three-year Sharpe is not a forecast. Use a Treasury bill or cash rate that matches the return period, and do not compare a monthly Sharpe with an annual Sharpe without converting. The result is an educational risk-adjusted statistic, not a recommendation to buy or sell.

Sharpe Ratio Examples

Each example subtracts the risk-free rate from portfolio return and divides by volatility.

InputsOutputNotes
Return 12%, risk-free 4%, volatility 10%0.8A strong equity-like year relative to cash.
Return 8%, risk-free 5%, volatility 6%0.5A calmer allocation with a smaller excess return.
Return 15%, risk-free 3%, volatility 20%0.6High return with high volatility; the ratio is only 0.6.

How to Calculate a Sharpe Ratio

  1. Enter the portfolio return as a percent for the period you are measuring.
  2. Enter a matching risk-free rate, such as a T-bill yield for the same horizon.
  3. Enter volatility as the standard deviation of returns in the same percent units.
  4. Select Calculate and compare the ratio only with other Sharpes that use the same period.

Sharpe Ratio Calculator FAQ

Should I enter 12 or 0.12 for a 12% return?

Enter 12, 4, and 10 if those are percents. The formula subtracts and divides the numbers you type; it does not multiply by 100. Mixing 0.12 with 10 will crush the ratio.

Is this the ex-ante or ex-post Sharpe ratio?

It is whatever you feed it. Past returns produce an ex-post Sharpe; expected returns produce an ex-ante sketch. Most published fund Sharpes are ex-post over a stated window.

Why is my Sharpe different from a fund factsheet?

Factsheets annualize monthly returns, may use a different cash benchmark, and may report arithmetic versus geometric means. Match period, compounding, and the risk-free series before you compare.

What if volatility is zero?

The ratio is undefined. The Sharpe ratio calculator returns 0 rather than an error so a blank or zero-risk input does not break the page. A true zero-vol asset would just be cash.

Is a higher Sharpe always better?

Not by itself. Leverage, illiquidity, and hidden tail risk can inflate a Sharpe. Use it next to drawdown, liquidity, and how the strategy behaves in a crash.