All calculators

Sharpe and Sortino Ratio Calculator

Your returns

Type made-up or your own figures; this tool has no market data. The defaults are Portfolio A from the Sharpe and Sortino lesson. Write 2 for +2% and −1 for a 1% loss.

Rates

Both are divided by the number of periods a year, so 3% a year is 0.25% a month.

Sharpe ratio, annualised (approximate)
1.2386
Annualised Sortino 2.4725. Max drawdown 2%.

These ratios summarise one past window of returns. A higher or lower figure is not a verdict on any portfolio and says nothing about what comes next.

Notes on these inputs

    How it is worked out

    • Sharpe = (mean return − risk-free rate) ÷ sample standard deviation (divide by n − 1).
    • Sortino = (mean return − target) ÷ downside deviation: shortfalls below the target, squared, summed and divided by all n periods, then the square root.
    • Annualised ratio ≈ per-period ratio × √(periods a year). It assumes independent returns and ignores compounding, and returns that are not bell-shaped (rare large losses) can make either ratio look steadier than the risk was.
    • Max drawdown compounds the returns and finds the largest fall from a running peak.

    The formulas and conventions follow Sharpe and Sortino ratios, explained. Drawdowns are covered in drawdown and concentration. This is education, not a recommendation about any security.

    What this calculator shows

    Paste or type a list of periodic returns in percent, one per line or separated by commas, up to 600 of them. Choose whether each return covers a month, a week, a trading day or a year, and enter a yearly risk-free rate and, if you like, a yearly target return for the Sortino ratio. The calculator returns the count, the mean, the sample standard deviation, the downside deviation, the Sharpe and Sortino ratios per period and annualised, and the largest drawdown. It has no market data: every number is one you type in.

    How the numbers are worked out

    When every return is the same, the standard deviation is 0 and the Sharpe ratio is shown as "n/a". When no period falls below the target, the Sortino ratio is "n/a" for the same reason.

    Worked example (hypothetical)

    The defaults are six monthly returns: 2, −1, 3, 1, −2 and 3, with a 3% yearly risk-free rate. The mean is 1% and the excess return 0.75%. The standard deviation is about 2.0976, so the Sharpe ratio is about 0.3575 a month, or 1.2386 annualised. The downside deviation is about 1.0508, so the Sortino ratio is about 0.7137, or 2.4725 annualised. The largest drawdown is 2%.

    Limits of this model

    Learn investing basics

    For educational purposes only. This material does not provide investment advice.