Sharpe Ratio Calculator screenshot

Sharpe Ratio Calculator

Compute the Sharpe ratio from a list of periodic returns: the mean excess return divided by the sample standard deviation, with the annualised figure.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No upload
Deterministic
Formula stated

What this page does

The Sharpe ratio divides the average return above the risk-free rate by the standard deviation of the returns, so it answers how much excess return each unit of total volatility delivered.

How to use it

Enter this sample with the defaults shown:

2.1 -1.2 0.8 2.6 -0.4 1.5 0.9 -1.8 2.2 0.6 1.1 1.4

Press Run. The page gives:

Returns:     12 periods (one per line)
Mean:        0.8167 % per period
Std dev:     1.351 % per period (sample, n − 1)
Risk-free:   0.3 % per period
Sharpe:      0.3824 per period
Annualised:  1.3248 (× √12)
Basis:       per-period returns as entered; no rounding of intermediate values

The formula and its basis

Sharpe = (mean return − risk-free rate) ÷ sample standard deviation, where the deviation divides by n − 1; the annualised figure multiplies by the square root of the periods per year.

Returns and the risk-free rate are per-period percentages as entered, not annualised, and the sample deviation uses n − 1.

What it is not

It is arithmetic on the numbers you enter, not financial advice: no product, rate or course of action is recommended. Nothing is uploaded, stored or logged.

The Sharpe ratio divides the average return above the risk-free rate by the standard deviation of the returns, so it answers how much excess return each unit of total volatility delivered.

The rule this page applies: Sharpe = (mean return − risk-free rate) ÷ sample standard deviation, where the deviation divides by n − 1; the annualised figure multiplies by the square root of the periods per year.

Basis: Returns and the risk-free rate are per-period percentages as entered, not annualised, and the sample deviation uses n − 1.

Worked example: the sample values below, with the defaults, give exactly the output recorded in What to Expect.

How to use the Sharpe Ratio Calculator

Enter returns, one per period in percent (one per line or comma separated) in the box, set the options beside it, then press Run. The answer appears beside the form and re-runs on the same input.

Every number in the answer follows from your inputs and the assumptions stated below; the page does not choose a rate for you.

The worked example uses "2.1 -1.2 0.8 2.6 -0.4 1.5 0.9 -1.8 2.2 0.6 1.1 1.4" with the defaults shown, and its exact output is printed in What to Expect.

The formula, its basis and its refusals

Sharpe = (mean return − risk-free rate) ÷ sample standard deviation, where the deviation divides by n − 1; the annualised figure multiplies by the square root of the periods per year.

Returns and the risk-free rate are per-period percentages as entered, not annualised, and the sample deviation uses n − 1. Money prints to two decimals, percentages to four, and intermediate values are never rounded.

It refuses fewer than two returns, a non-numeric value, and a set of identical returns because the standard deviation would be zero.

What this page is not

It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.

Where the tool is the wrong choice: Returns that are not normally distributed; Portfolios whose risk is mostly downside, where the Sortino ratio fits better.

What to Expect

Best for

  • Comparing two portfolios measured over the same periods
  • Checking whether extra return came with extra volatility

Not ideal for

  • Returns that are not normally distributed
  • Portfolios whose risk is mostly downside, where the Sortino ratio fits better

What this tool keeps

  • The numbers exactly as you entered them
  • The same answer on every run
  • Nothing sent, stored or logged

What may need cleanup

  • Rates entered as fractions rather than percentages: enter 5 for 5 %
  • A currency symbol pasted beside a number, which the page refuses by name

Common errors

  • It refuses fewer than two returns, a non-numeric value, and a set of identical returns because the standard deviation would be zero.
  • A non-numeric value, which the page names rather than silently treating as zero

Example use cases

  • Reviewing a fund fact sheet against its benchmark
  • Comparing two back-tested strategies

Sample input

2.1 -1.2 0.8 2.6 -0.4 1.5 0.9 -1.8 2.2 0.6 1.1 1.4

Sample output

Returns: 12 periods (one per line) Mean: 0.8167 % per period Std dev: 1.351 % per period (sample, n − 1) Risk-free: 0.3 % per period Sharpe: 0.3824 per period Annualised: 1.3248 (× √12) Basis: per-period returns as entered; no rounding of intermediate values

Who this is for

  • investors
  • analysts

Frequently asked questions

What formula does this page use?

Sharpe = (mean return − risk-free rate) ÷ sample standard deviation, where the deviation divides by n − 1; the annualised figure multiplies by the square root of the periods per year.

What does it refuse?

It refuses fewer than two returns, a non-numeric value, and a set of identical returns because the standard deviation would be zero.

Is this financial advice?

It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.

What rate basis and rounding does it use?

Returns and the risk-free rate are per-period percentages as entered, not annualised, and the sample deviation uses n − 1. Money prints to two decimals, percentages to four, and intermediate values are never rounded.

Why divide by n − 1 rather than n?

The returns are read as a sample of a longer series, so the sample standard deviation divides by n − 1. With many periods the two differ only slightly, but the page prints which one it used.

What does the annualised figure assume?

It multiplies the per-period ratio by the square root of the periods per year, which assumes returns are independent from one period to the next. That assumption is stated rather than hidden.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.