Sharpe ratio calculator
This free calculator runs in your browser using values you supply. Nothing is fetched and your inputs are not stored by the tool. It is intended for learning how a calculation works; the output is not an investment recommendation, a forecast or a promise of an outcome. For education, not financial advice. Before calculating, check that values use the same units, cover the intended period and follow a consistent definition. Keep a note of assumptions if you compare separate scenarios. A calculator cannot check the source or quality of an input, and rounding may make displayed figures differ slightly from a hand calculation. The result is a description of the numbers supplied, not a judgement about what to buy, sell or hold.
How this Sharpe ratio is calculated
Worked example and interpretation
This calculator subtracts the risk-free rate you enter from each periodic return, then divides the average excess return by the sample standard deviation of those excess returns. Enter returns as percentages for equal-length periods, separated by commas. For example, returns of 1%, 2% and 3% with a 0% risk-free rate have an average of 2 percentage points and sample standard deviation of 1 percentage point, giving a sample Sharpe ratio of 2. The result is not annualised.
Limits and assumptions
The ratio depends on the return frequency, chosen risk-free rate and sample. Compare values only when those assumptions match. Standard deviation treats upside and downside variation alike and may not describe tail risk, liquidity, drawdowns or changing conditions. A very short return series is unstable, and zero variation makes the ratio undefined. This simple calculation uses the sample standard deviation (n minus one in the denominator) and assumes every observation is comparable. It does not include costs unless your returns already reflect them, and it cannot validate the underlying data or method. A historical ratio is descriptive, not predictive. For education, not financial advice.
Frequently asked questions
What does the Sharpe ratio measure?
It divides average excess return by the standard deviation of excess returns for the supplied periods.
Can I compare any two Sharpe ratios?
Only with care: periods, return frequency, costs and methodology should be comparable.