Sharpe Ratio Calculator
Annualise a strategy's risk-adjusted return from its periodic mean return, volatility and the risk-free rate.
Quick answer: The Sharpe ratio measures excess return per unit of total volatility. This tool takes the mean and standard deviation of your periodic returns, subtracts the per-period risk-free rate from the mean, divides by the standard deviation, and scales the result by the square root of the number of periods per year to give an annualised figure. Higher is better; it rewards steady returns and penalises volatility.
How to use it
Enter the mean and standard deviation of your returns for one period (for daily data use daily figures) and the number of such periods in a year (about 252 trading days). The annual risk-free rate is converted to a per-period rate before subtraction. The output is the annualised Sharpe ratio. Convention: the risk-free rate is divided by periods per year to match the period of your returns.
Formula
Sharpe = ( ( Mean β Risk-free Γ· Periods ) Γ· Std deviation ) Γ βPeriods
Mean and Std deviation are per-period percentages; the annual risk-free rate is divided by periods per year to bring it to the same period. Percentage units cancel in the ratio.
Frequently asked questions
Why divide the risk-free rate by periods?
What is a good Sharpe ratio?
Why annualise with the square root of periods?
What periods per year should I use?
Does Sharpe treat upside and downside the same?
Runs entirely in your browser β no data leaves your device. Illustrative and educational only; real-world charges and market conditions apply in practice.