Sharpe ratio calculator
Enter the average and the standard deviation of your daily, weekly, monthly or yearly returns. The calculator annualises them and returns the Sharpe ratio, with the Sortino ratio if you add downside deviation.
- Daily, weekly, monthly or yearly
- Sharpe and Sortino, annualised
- Free, no sign-up
For education only, not financial advice. Results depend on the numbers you enter, and trading carries a risk of loss.
How to use the Sharpe ratio calculator
Choose how your returns are measured
Pick the period each return figure covers: daily, weekly, monthly or yearly. The calculator uses 252 trading days, 52 weeks or 12 months to annualise.
Enter the average return per period
The arithmetic mean of your period returns, in percent. Twelve monthly returns that sum to 25.2% average 2.1%.
Enter the standard deviation of returns
How much the period returns vary around that average, in percent. The STDEV function in a spreadsheet gives it from the same list of returns.
Enter the risk-free rate per year
The annual yield on short-dated government bills. The calculator converts it to a rate per period. Enter 0 to measure raw return per unit of risk.
Add downside deviation
Optional. The standard deviation of the losing periods only. With it, the calculator also returns the Sortino ratio.
The formula
- Excess return per period = average return − risk-free rate ÷ periods per year
- Sharpe ratio = excess return per period ÷ standard deviation × √(periods per year)
- Sortino ratio = excess return per period ÷ downside deviation × √(periods per year)
- Excess return
- The return above what a risk-free investment would have paid over the same period.
- Standard deviation
- A measure of how widely the period returns scatter around their average. It is the usual stand-in for risk.
- Periods per year
- How many of your return periods fit in a year: 252 for daily, 52 for weekly, 12 for monthly, 1 for yearly.
- Downside deviation
- The variability of the losing periods only, used in place of standard deviation in the Sortino ratio.
Worked example
Your monthly returns average 2.1% with a standard deviation of 4.5%. The risk-free rate is 4.5% a year and your downside deviation is 2.6%.
- Risk-free rate per month = 4.5% ÷ 12 = 0.375%.
- Excess return per month = 2.1% − 0.375% = 1.725%.
- Sharpe ratio = 1.725 ÷ 4.5 × √12 = 0.3833 × 3.4641 = 1.33.
- Sortino ratio = 1.725 ÷ 2.6 × √12 = 2.30.
- Annualised return = 2.1% × 12 = 25.2%, and annualised volatility = 4.5% × √12 = 15.6%.
On an annual basis the strategy earned 20.7% above the risk-free rate for 15.6% of volatility, a Sharpe ratio of 1.33. The Sortino ratio is higher at 2.30 because much of that volatility came from the up months.
The calculator above opens with these numbers, so you can change one input and see what moves.
How to calculate the Sharpe ratio
The Sharpe ratio divides the return you earned above a risk-free investment by the volatility you went through to earn it. Take the average return per period, subtract the risk-free rate for that period, and divide by the standard deviation of the period returns.
That gives a figure per period. Multiplying by the square root of the number of periods in a year puts it on the annual scale that published Sharpe ratios use, so a daily series and a monthly series can be compared.
Why annualising uses the square root of time
If period returns are independent, their average grows in proportion to the number of periods, while their standard deviation grows only with the square root. Twelve months have twelve times the return of one month but about 3.46 times the volatility, so the ratio of the two scales by √12.
The calculator annualises return by simple multiplication, so 2.1% a month shows as 25.2% a year. Compounded, the same months would grow an account by about 28.3%. The Sharpe ratio conventionally uses the simple figure.
| Returns measured | Periods per year | Sharpe is multiplied by |
|---|---|---|
| Daily | 252 | 15.87 |
| Weekly | 52 | 7.21 |
| Monthly | 12 | 3.46 |
| Yearly | 1 | 1.00 |
What is a good Sharpe ratio?
As a rule of thumb, a Sharpe ratio below 1 is considered weak for an active strategy, 1 to 2 good, and above 2 very good. Figures above 3 are rare over long periods, and usually point to a short record, smoothed returns or a risk that has not shown up yet. These bands are conventions, not predictions of what a strategy will do.
The length of the record matters more than the number. A Sharpe ratio from six monthly returns has a very wide margin of error. Two or three years of returns, covering more than one kind of market, make the figure worth quoting.
Sharpe ratio vs Sortino ratio, and the limits of both
Standard deviation treats a month that is 8% up the same as one that is 8% down, so a strategy with occasional large gains is penalised for them. The Sortino ratio divides by downside deviation, the variability of the losing periods only. It is higher than the Sharpe ratio whenever the upside is more volatile than the downside.
Both ratios assume returns are roughly normal and independent from one period to the next. Strategies that collect small steady gains and occasionally take a large loss, such as selling options, can show a high Sharpe ratio for years before the loss appears. Read either ratio next to maximum drawdown.
FAQs
Sharpe ratio questions
What is the Sharpe ratio formula?
The Sharpe ratio equals the average return minus the risk-free rate, divided by the standard deviation of returns. For returns measured more often than yearly, multiply the result by the square root of the number of periods in a year: 252 for daily returns, 52 for weekly and 12 for monthly.
What risk-free rate should I use?
Use the annual yield on short-dated government bills in your account currency, such as three-month US Treasury bills for a dollar account. It stands for what the money would have earned with no risk. Some traders use 0 to measure raw return per unit of volatility, which is fine as long as you compare like with like.
How do I calculate the standard deviation of my returns?
List your returns for each period as percentages, one per row, in a spreadsheet. The STDEV function over that list gives the standard deviation, and AVERAGE gives the mean. Use returns on account equity for each day, week or month, not the results of individual trades, which are not evenly spaced in time.
What is the difference between Sharpe and Sortino ratios?
The Sharpe ratio divides excess return by the standard deviation of all returns. The Sortino ratio divides it by downside deviation, which counts only the losing periods. Sortino does not penalise large gains, so it suits strategies whose returns are skewed to the upside. A Sortino well above the Sharpe means most of the volatility was favourable.
Can the Sharpe ratio be negative?
Yes. A negative Sharpe ratio means the strategy returned less than the risk-free rate over the period, so the risk taken was not rewarded at all. Negative values are hard to rank against each other, because higher volatility makes a negative ratio look less bad. Treat any negative figure simply as underperformance.
How many returns do I need for a meaningful Sharpe ratio?
As a guide, use at least 30 return periods and preferably many more. Twelve monthly returns give a figure that can easily be off by a full point in either direction. Daily returns give more data points per year, but they do not shorten the calendar time needed to see different market conditions.
Free trading journal and analytics
Plan the trade here. Review it in TraderWaves.
Every calculator on this site is also inside the app, next to a journal that records what you actually did and analytics that show whether it worked.

