The calculator above works from a list of returns. Choose whether they are monthly, weekly or daily, paste the returns in per cent, and enter a yearly risk-free rate. It shows the Sharpe and Sortino ratios for each period and for a year, the average return and the volatility a year, and the standard deviation, downside deviation, best and worst period it used. This guide explains the formulas, worked examples on monthly, weekly and daily returns, what good values look like, why a high ratio can mislead, and how to use both ratios when you compare strategies.
What the Sharpe ratio calculator does
| Part | What it does |
|---|---|
| Input | A list of returns in per cent, separated by commas or new lines, at least three |
| Period | Monthly, weekly or daily, which sets how the ratios are turned into yearly figures |
| Risk-free rate | A yearly rate, divided by the number of periods in a year |
| Sharpe ratio | Average excess return ÷ standard deviation of returns |
| Sortino ratio | Average excess return ÷ downside deviation, counting only returns below the risk-free rate |
| Yearly figures | Ratios scaled by the square root of the periods in a year; return and volatility scaled to a year |
| Sample | Twelve monthly returns; replace them with yours |
A short history of the Sharpe and Sortino ratios
William F. Sharpe introduced the ratio in 1966, in a study of how American mutual funds had performed. He called it the "reward-to-variability ratio": a fund's return above a risk-free rate, divided by the variability of its returns.1 Sharpe had already helped build the capital asset pricing model in 1964, and the ratio applied the same idea to a fund's record. In 1990 he shared the Nobel prize in economics with Harry Markowitz and Merton Miller, and the ratio carries his name in every fund report and backtest today. Sharpe revised its definition in 1994 to make the risk-free rate part of the excess return in each period.2
The ratio's weakness was clear from the start: it treats a large gain as risk in the same way as a large loss. In the 1980s and 1990s, Frank Sortino and colleagues argued that investors care about falling short of a target, not about volatility as such, and proposed dividing excess return by the downside deviation instead.3 The Sortino ratio is now reported beside the Sharpe ratio in most strategy reports.
A third chapter came with cheap computing. When traders can test thousands of versions of a strategy, the best one's Sharpe ratio is high partly by luck. In 2014 David Bailey and Marcos López de Prado proposed the deflated Sharpe ratio, which corrects for the number of versions tried.4 The calculation on this page is the original one; the history is a reminder of what it can and cannot tell you.
The Sharpe ratio
- Strategy return: the average return over the period.
- Risk-free rate: the return on a near risk-free investment, such as Indian government Treasury bills.
- Standard deviation: how much the strategy's returns vary.
A higher Sharpe ratio means more excess return per unit of volatility. An annual ratio of 1 means the strategy's yearly excess return was equal to its yearly volatility.
The Sortino ratio
The Sortino ratio replaces the standard deviation with the downside deviation, which only counts returns below a target. The calculator uses the risk-free rate for each period as the target:
Traders usually do not mind volatility on the upside. The Sortino ratio does not penalise a strategy for large gains, only for losses. A strategy with no period below the target has no downside deviation, and the calculator says so instead of showing an infinite ratio.
Annualising
Ratios are usually quoted on an annual basis:
- From daily returns: multiply the daily ratio by the square root of 252, the approximate number of trading days in a year.
- From weekly returns: multiply by the square root of 52.
- From monthly returns: multiply by the square root of 12.
The square root comes from the way volatility grows with time: if returns are independent from one period to the next, the variance over a year is the variance of one period times the number of periods, so the standard deviation grows with the square root. The average return grows in proportion. Their ratio therefore grows with the square root of the number of periods.
A worked example: the calculator's sample
The sample is twelve monthly returns: 2.1, −3.4, 4.8, 1.2, −1.9, 3.6, 0.8, 5.2, −4.1, 2.7, 1.5 and 5.5%. The risk-free rate is 6.5% a year, about 0.54% a month.
| Output | Value |
|---|---|
| Average return | 1.50% a month, 18.0% a year |
| Standard deviation | 3.22% a month, 11.17% a year |
| Downside deviation | 1.89% a month |
| Sharpe ratio | 0.30 a month, 1.03 a year |
| Sortino ratio | 0.51 a month, 1.75 a year |
| Best and worst month | +5.5% and −4.1% |
The Sortino ratio is well above the Sharpe ratio because much of the variability comes from strong months, which the Sortino ratio does not count against the strategy. Twelve months is a short record; the next section shows how wide the uncertainty around a ratio from so few returns is.
A worked example by hand
A strategy's monthly returns over three years average 1.5%, with a standard deviation of 4%. Its downside deviation is 2.5%. The risk-free rate is 6.5% a year, or about 0.54% a month.
- Monthly excess return: 1.5% − 0.54% = 0.96%.
- Monthly Sharpe ratio: 0.96% ÷ 4% = 0.24.
- Annual Sharpe ratio: 0.24 × √12 ≈ 0.83.
- Monthly Sortino ratio: 0.96% ÷ 2.5% = 0.38.
- Annual Sortino ratio: 0.38 × √12 ≈ 1.33.
The same idea on daily and weekly returns
A strategy whose daily returns average 0.08% with a daily standard deviation of 1.2%, over 250 days, has an annual Sharpe ratio of about 0.72 at a 6.5% risk-free rate. A strategy whose weekly returns average 0.3% with a weekly standard deviation of 2% has an annual Sharpe of about 0.63. Use the period your returns come in; do not mix daily and monthly figures in one list. Daily ratios are the noisiest, because a single day's large move weighs heavily; monthly ratios are steadier but need years of data.
What is a good Sharpe ratio?
As a rough guide for a trading strategy after costs:
| Annual Sharpe ratio | Typical reading |
|---|---|
| Below 0 | Earns less than the risk-free rate |
| 0 to 0.5 | Weak |
| 0.5 to 1 | Reasonable |
| 1 to 2 | Good |
| Above 2 | Excellent, and worth checking for errors or overfitting |
A backtest with a very high Sharpe ratio is more often a sign of a mistake than a sign of genius. Check for look-ahead bias, unrealistic fills and overfitting before trusting it. See avoiding overfitting.
How sure can you be of a Sharpe ratio?
A Sharpe ratio worked out from a short record is a rough estimate. A common approximation for its standard error, for returns that are roughly normal,5 gives this for a strategy whose true annual Sharpe ratio is about 0.83, measured from monthly returns:
| Months of returns | Approximate standard error of the annual Sharpe ratio |
|---|---|
| 12 | About 1.0 |
| 36 | About 0.6 |
| 120 | About 0.3 |
With one year of monthly returns, a measured ratio of 0.83 is consistent with a true ratio anywhere from below zero to near 3. Three years narrows that; ten years narrows it a good deal more. The lesson for a trader is simple: a high ratio from a few months of results says little, and two strategies whose ratios differ by a few tenths over a short record may not differ at all.
The Sharpe ratio does not change with size
Doubling the size of a strategy doubles its excess return and doubles its volatility, so the Sharpe ratio stays the same. That is why the ratio is useful for comparing strategies: it describes the quality of the returns, not their scale. It also means the ratio cannot tell you how large to trade. Size is set by how deep a drawdown you can take and how much margin you have. A strategy with a good ratio, run at a size whose worst month you cannot afford, is still a bad trade for you.
Comparing strategies
| Strategy A | Strategy B | |
|---|---|---|
| Annual return | 30% | 18% |
| Annual volatility | 40% | 12% |
| Sharpe ratio (risk-free 6.5%) | 0.59 | 0.96 |
Strategy A earns more, but Strategy B earns more per unit of risk. With leverage or larger size, B could match A's return with less volatility. That is the comparison the Sharpe ratio makes possible. Whether a trader should use leverage is a separate question; the ratio only says which strategy uses its risk more efficiently.
A worked example: a smooth record that hides a tail
An option-selling strategy returns between 1.7% and 2.3% every month for eleven months. Its monthly standard deviation is tiny, 0.17%, and its annual Sharpe ratio over those eleven months is about 29. In the twelfth month, a sharp market move costs it 15%. Over the full year, the average monthly return falls to 0.58%, the standard deviation jumps to 4.91%, and the annual Sharpe ratio drops to about 0.03.
Nothing about the strategy changed in month twelve. The risk was there all along; the eleven calm months simply had not shown it. This is the main reason a Sharpe ratio on its own is not a measure of safety for strategies that sell options or otherwise collect small, steady gains while carrying a rare large loss. Look at the worst period, the maximum drawdown and the size of the position's worst case alongside the ratio.
Measures to read beside the Sharpe ratio
No single figure describes a strategy. Three others answer the questions the Sharpe ratio leaves open:
- Maximum drawdown: the largest fall from a peak in the running total. It tells you the worst stretch you would have had to sit through.
- The Calmar ratio: the yearly return divided by the maximum drawdown. A strategy that earns 18% a year with a worst drawdown of 9% has a Calmar ratio of 2; one that earns 30% with a 30% drawdown has a Calmar ratio of 1. It rewards strategies that recover quickly and do not fall far.
- The worst period: the single worst month or day. For strategies with a rare large loss, this figure, not the Sharpe ratio, sets the size of position you can afford.
Read together, they describe a strategy far better than any one of them alone. A Sharpe ratio of 1.5 with a maximum drawdown of 40% is a different strategy from a ratio of 1.0 with a drawdown of 8%, and many traders would rather run the second.
What to look at for option-selling strategies
Strategies that sell options collect a small premium most of the time and lose heavily now and then. Their Sharpe ratio is high in calm periods and collapses after a shock, as the worked example above showed. For these strategies, add four checks to the ratio:
- The worst day and the worst month in the record, and whether the record includes a stressed period such as March 2020 or March 2026.
- A stress test: what the open positions would lose on a move of 3%, 5% or 8% in the index in one day, at the IV that a shock would bring.
- The return on margin: the strategy's profit divided by the margin it ties up, because that margin is the capital at risk.
- The cost of protection: how much the result changes if every short option is paired with a bought wing. A strategy whose edge disappears once its worst case is capped was being paid mostly for the tail risk.
A worked example: two strategies, five measures
Two hypothetical strategies, each run for three years, with returns after charges:
| Breakout on Nifty futures | Weekly short strangle | |
|---|---|---|
| Annual return | 16% | 20% |
| Annual Sharpe ratio | 0.85 | 1.40 |
| Annual Sortino ratio | 1.50 | 1.10 |
| Maximum drawdown | 12% | 28% |
| Calmar ratio | 1.33 | 0.71 |
| Worst month | −5% | −19% |
On the Sharpe ratio alone, the strangle wins easily. The Sortino ratio reverses the order: the strangle's variability is mostly on the downside, while the breakout's is mostly on the upside. The drawdown, the Calmar ratio and the worst month all favour the breakout. Neither strategy is better in general; they suit different traders. A trader who could not sit through a 19% month should not choose by the Sharpe ratio.
The Sharpe ratio of a portfolio of strategies
Running two strategies together can give a higher Sharpe ratio than either alone, if their results are not perfectly correlated. For two strategies with the same Sharpe ratio of 0.8 and the same volatility, run in equal size:
| Correlation of their monthly results | Sharpe ratio of the pair |
|---|---|
| 1.0 | 0.80 |
| 0.5 | 0.92 |
| 0.2 | 1.03 |
| 0.0 | 1.13 |
The return of the pair is the average of the two, but its volatility falls as the correlation falls, so the ratio rises. This is diversification at the level of strategies rather than stocks. It works only if the correlation stays low in bad months, which, for strategies that all sell options on the same index, it often does not. The stock correlation matrix tool can measure the correlation of strategies' daily account values.
Rolling Sharpe ratio
A rolling Sharpe ratio is recalculated each month over a moving window, such as the last twelve months. Plotted over time, it shows whether a strategy's edge is steady or fading. A strategy whose rolling ratio has slipped from above 1 to near 0 over two years has changed, or the market it was built for has, even if its full-period ratio still looks good. To build one with the calculator, paste each twelve-month window in turn and note the yearly ratio; a spreadsheet does the same with a formula.
Comparing a strategy with Nifty
The simplest benchmark for an Indian equity strategy is holding Nifty itself. Work out Nifty's monthly returns over the same months as the strategy, including dividends if you can, and enter them into the calculator with the same risk-free rate. If the strategy's Sharpe ratio is no higher than Nifty's, it has not used its risk better than the index did, whatever its return. For option strategies, the comparison is less direct, but the question is the same: was the extra work and risk paid for?
The information ratio goes one step further: it divides the strategy's return above the benchmark by the variability of that difference. It answers whether the strategy beat the index consistently or only in a few months.
What changes for strategies in India
- Costs. STT on futures and options rose on 1 April 2026: futures to 0.05% of the sell value and options to 0.15% of the premium. A strategy's Sharpe ratio from earlier years, worked out before those costs, overstates what it earns now. Work the ratio from returns after current charges.
- Margin and interest. Option sellers tie up margin; if the margin is cash in a broker account earning nothing, the strategy's return is lower than one that pledges shares for margin and earns their return as well.
- Expiry patterns. Since one weekly expiry per exchange took effect in November 2024, and the NSE moved its expiries to Tuesday from September 2025, strategies built around expiry days have a shorter history under current rules. A ratio worked out across the change mixes two markets.
- Lot sizes. Changes in index lot sizes change the rupee results of a fixed number of lots. Work in returns on capital, not in rupees per lot, when you compare periods.
Limits of the Sharpe and Sortino ratios
- They assume volatility captures risk. Option-selling strategies can show smooth returns and a high Sharpe ratio for years, then lose heavily in one event. The ratio does not see that tail risk until it happens.
- They depend on the period. A ratio calculated over a calm period can look much better than the strategy's long-run behaviour.
- They ignore drawdown depth and length. Look at the max drawdown calculator as well.
- They can be gamed. Smoothing returns, for example by valuing positions infrequently, lowers measured volatility.
- Few data points make them noisy. A ratio from 12 monthly returns has a wide margin of error.
- Returns are not independent. If good months follow good months, the square-root scaling overstates or understates the yearly ratio.
Using the ratios in strategy development
- Compare versions of a strategy on the same period.
- Compare with a benchmark, such as buying and holding Nifty.
- Use out-of-sample results, not the best backtest.
- Adjust for the number of versions tried. The deflated Sharpe ratio corrects for selection bias when many versions were tested.
- Use returns after all charges. Brokerage and STT can turn a ratio of 1 before costs into one well below it.
QuantPower's backtesting reports each strategy's results after brokerage and statutory charges, with the maximum drawdown, the longest losing streak, results by month and a check of the last 30% of days the strategy was not built on. Paste a strategy's monthly results into the calculator to add the Sharpe and Sortino ratios to that report. A backtest costs 2 tokens, with the first 10 each week free, and a live algo 200 tokens per 28 days (1 token = ₹1, GST extra). See pricing.
Choosing the risk-free rate
In India, the usual choice is the yield on government Treasury bills of a similar horizon: the 91-day bill for short periods, the 364-day bill for a yearly view. Some traders use the RBI's repo rate or the return on a liquid fund. The choice moves the ratio, not the ranking: if you compare two strategies, use the same rate for both. For a strategy that holds cash as margin and earns interest on it, or pledges shares for margin, the "free" part of the return is already in the strategy's result, and a higher risk-free rate in the calculator understates its edge less than it seems.
| Risk-free rate | Annual Sharpe of the sample |
|---|---|
| 0% | About 1.61 |
| 6.5% | About 1.03 |
Using zero instead of 6.5% raises the sample's ratio by more than half. Always state the rate you used.
Sharpe ratios you will see in India
Mutual fund factsheets in India report a Sharpe ratio for most equity funds, usually from three years of monthly returns, with the risk-free rate stated in a footnote. Those figures are comparable with each other because the funds use the same method. Strategy marketplaces and social media posts are a different matter. SEBI's rules bar stockbrokers from referring to the past or expected returns of algos when they offer them to clients, and the retail algo framework in force since 1 April 2026 keeps algos offered to investors within the broker's oversight. A Sharpe ratio quoted for a strategy someone is selling is a claim about returns by another name. Treat it with the same care.
Questions to ask about any Sharpe ratio
- Over how long? Months or years, and does the period include a stressed market?
- Before or after charges? Brokerage, STT, slippage and the platform's fees.
- Backtest or live? A backtest ratio is the best case; a live record is the real one.
- How many versions were tried? The best of fifty tests is high partly by luck.
- Which risk-free rate? Zero raises the ratio; a realistic rate lowers it.
- What was the worst month? The answer often matters more than the ratio.
How to use the calculator, step by step
- Collect your returns for equal periods: each month, each week or each day, in per cent, after all charges.
- Choose Monthly, Weekly or Daily to match.
- Paste the returns, separated by commas or new lines, oldest first.
- Enter the yearly risk-free rate.
- Read the yearly Sharpe and Sortino ratios, then the inputs table: if the worst period looks wrong, check the data.
- Change the list, for example by dropping the best month, and see how much the ratios move.
Common mistakes
- Mixing periods, such as daily returns entered as monthly.
- Using returns before charges. The ratio should describe what you keep.
- Comparing ratios from different periods. A ratio from 2024 and one from 2026 describe different markets.
- Annualising a few days. Ten good days scaled to a year give a ratio that means nothing.
- Reading a high ratio as safety. It measures past variability, not the worst case to come.
Where risk-adjusted measures are going
The Sharpe ratio has lasted sixty years because it is simple and comparable. The changes around it are about honesty: more reports show the Sortino ratio and the maximum drawdown beside it, more researchers correct for the number of strategies tried, and regulators in India and elsewhere bar the use of past returns to market algos to retail investors. For a trader, the direction is clear: a single ratio is the start of a judgement, not the end of one. The calculator on this page is a quick way to add two of those measures to your own records; the judgement about whether a strategy suits you, at what size and with what worst case, stays with you.
Related guides
- Backtest performance metrics: every measure in a backtest report
- Strategy performance: each algo's live results beside its backtest
- Trade journal: win rate, expectancy and R from your own trades
- VaR calculator: how much a portfolio could lose on a bad day
Start with 500 free tokens
Connect your broker, build a strategy and test it on paper before a single live order goes out.
Frequently asked questions
What does the Sharpe ratio tell you?
How much return above the risk-free rate a strategy earned for each unit of volatility.
What is the difference between Sharpe and Sortino?
Sharpe counts all volatility as risk. Sortino counts only downside volatility, so it does not penalise large gains.
What risk-free rate should I use in India?
Traders commonly use the yield on government Treasury bills of a similar horizon. Use the rate for the period you are measuring.
Can a strategy with a high Sharpe ratio still lose a lot?
Yes. Strategies with hidden tail risk, such as naked option selling, can show high Sharpe ratios until a large loss occurs.
How many returns do I need for a reliable Sharpe ratio?
The calculator needs at least three, but a reliable figure needs far more: three years of monthly returns at the least, and ideally more. With one year of monthly returns, the uncertainty around the ratio is about as large as the ratio itself.
Why does the calculator say there are no losing periods?
The Sortino ratio divides by the downside deviation, which counts only periods below the risk-free rate. If no period fell below it, there is nothing to divide by. Add more periods, or check whether the returns are after charges.
Is a negative Sharpe ratio always bad?
It means the strategy earned less than the risk-free rate over the period, so on that record the risk was not paid for. Over a short period it can be bad luck; over several years it is a strong sign that the strategy, after charges, does not earn its risk.
References
- Sharpe, W. F. (1966). Mutual Fund Performance. Journal of Business, 39(1), 119–138
- Sharpe, W. F. (1994). The Sharpe Ratio. Journal of Portfolio Management, 21(1), 49–58
- Sortino, F. A. and Price, L. N. (1994). Performance Measurement in a Downside Risk Framework. Journal of Investing, 3(3), 59–64
- Bailey, D. H. and López de Prado, M. (2014). The Deflated Sharpe Ratio. Journal of Portfolio Management, 40(5), 94–107
- Lo, A. W. (2002). The Statistics of Sharpe Ratios. Financial Analysts Journal, 58(4), 36–52