TradeLabs AILearn

Sharpe and Sortino Calculator

Free Sharpe and Sortino ratio calculator. Paste your monthly, weekly or daily returns and get annualised return, volatility, Sharpe and Sortino ratios.

Beginner3 min readUpdated 3 Oct 2026
Markdown
Lesson 9 of 19

The Sharpe and Sortino ratios measure how much return a strategy earns for the risk it takes. The Sharpe ratio uses total volatility; the Sortino ratio uses only downside volatility, so it does not penalise big gains. Paste a list of periodic returns, choose how many periods make a year and enter the risk free rate, and this calculator annualises everything for you. It is a quick way to check a backtest, a fund's monthly figures or your own trading results.

Calculator#

Calculator
Turn on JavaScript to use it, or use the formula below

How it works#

Excess return per period = Return - (Risk free rate / Periods per year)
Sharpe ratio = Mean excess return / Standard deviation of excess returns × √(Periods per year)
Downside deviation = √(Average of min(Excess return, 0)²)
Sortino ratio = Mean excess return / Downside deviation × √(Periods per year)

The target for the Sortino ratio here is the risk free rate. The annualised return shown is the simple mean times periods per year, not a compounded figure. See Sharpe Ratio and Sortino Ratio.

Interpreting the results#

Sharpe ratioTypical interpretation
Below 0Worse than the risk free rate
0 to 0.5Weak
0.5 to 1.0Decent
1.0 to 2.0Very good if sustained live
Above 2.0Exceptional, or a sign of overfitting in backtests

A large gap between Sortino and Sharpe suggests positively skewed returns, with bigger gains than losses. A Sortino close to Sharpe suggests symmetric returns. See Skewness and Kurtosis.

Tips for accurate results#

  1. Use returns, not prices, and include all costs.
  2. Choose the right periods per year: 252 for daily stock returns, 365 for crypto, 12 for monthly.
  3. Use enough data: at least several years of monthly returns, or a year or more of daily returns.
  4. Do not mix frequencies in one list.
  5. Watch for smoothing: illiquid or self reported prices understate volatility and inflate both ratios.

Limitations#

  • Both ratios assume past volatility describes future risk.
  • Rare crashes may not appear in the sample, flattering strategies like option selling. See Fat Tails.
  • Short records make both ratios very noisy.
  • Neither shows drawdown depth or duration. See Drawdown Recovery Calculator and Calmar and MAR Ratio.

Where to get your returns#

For your own trading, export monthly account values from your broker, remove deposits and withdrawals, and compute each month's percentage change. For a backtest, use the strategy's daily or monthly returns after costs. For a fund, use the net of fee monthly returns from its factsheet. Paste the list into the box above. If you only have prices, convert them to percentage changes first; the NumPy and Pandas for Traders lesson shows how to do this in a few lines of Python.

Frequently asked questions#

How do I calculate the Sharpe ratio from monthly returns?#

Subtract the monthly risk free rate from each return, divide the average by the standard deviation, and multiply by the square root of 12.

What is the difference between Sharpe and Sortino?#

Sharpe divides excess return by total volatility; Sortino divides it by downside deviation, penalising only returns below the target.

Which periods per year should I use for crypto?#

Usually 365 for daily crypto returns, because crypto markets trade every day.

Next, find the growth optimal bet size with the Kelly Criterion Calculator.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonKelly Criterion CalculatorFree Kelly criterion calculator. Enter your win probability and payoff ratio to find the full Kelly fraction, a safer fractional Kelly and expected growth.

Mentioned in