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.
About the Sharpe Ratio
Sharpe Ratio Examples
Each example subtracts the risk-free rate from portfolio return and divides by volatility.
| Inputs | Output | Notes |
|---|---|---|
| Return 12%, risk-free 4%, volatility 10% | 0.8 | A strong equity-like year relative to cash. |
| Return 8%, risk-free 5%, volatility 6% | 0.5 | A calmer allocation with a smaller excess return. |
| Return 15%, risk-free 3%, volatility 20% | 0.6 | High return with high volatility; the ratio is only 0.6. |
How to Calculate a Sharpe Ratio
- Enter the portfolio return as a percent for the period you are measuring.
- Enter a matching risk-free rate, such as a T-bill yield for the same horizon.
- Enter volatility as the standard deviation of returns in the same percent units.
- 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.