Sharpe Ratio & Volatility Calculator

Was the return worth the risk? Type a ticker to calculate its Sharpe ratio, Sortino ratio, volatility and maximum drawdown over 1 to 20 years, next to SPY or any ticker you choose, with a chart of how its volatility changed. The risk-free rate is the actual Fed funds rate of each month. Free, and you can add it to your own website.

Free · no sign-up · updated

How to use the calculator

  1. Enter the stock or ETF, and optionally a second ticker to compare with (SPY by default; clear the box to hide it).
  2. Pick the period, from 1 to 20 years.
  3. Choose the risk-free rate: the actual Fed funds rate of each month, or zero.

The Sharpe ratio

The Sharpe ratio, created by Nobel laureate William Sharpe, divides the return earned above a risk-free rate by the volatility of that return. It answers a simple question: how much extra return did each unit of risk earn? Two funds with the same return are not equally good if one got there with twice the swings.

excess return   = weekly total return − weekly risk-free rate
Sharpe ratio    = average excess return / standard deviation × √52
Sortino ratio   = average excess return × 52 / (downside deviation × √52)
volatility      = standard deviation of weekly returns × √52
Calmar ratio    = annual return / |maximum drawdown|

The calculator uses weekly total returns, with dividends reinvested. For the risk-free rate it uses the effective federal funds rate of each month, which is close to what cash in a money market fund earned. With zero as the risk-free rate, the Sharpe ratio becomes simply return divided by volatility.

What is a good Sharpe ratio?

  • Below 0: the investment did worse than cash.
  • 0 to 0.5: little reward for the risk taken.
  • 0.5 to 1: fair; broad stock indexes have often been in this range over long periods.
  • Above 1: good, especially if it holds over many years. Very high ratios over short periods rarely last.

Sortino, drawdown and volatility

Volatility counts upward jumps as risk just like falls. The Sortino ratio fixes that by measuring only the downside deviation, so it is higher than the Sharpe ratio for investments whose big moves are mostly up. Maximum drawdown shows the worst peak-to-trough fall, and the Calmar ratio relates the annual return to it. The chart shows volatility over the previous year, which rises sharply in sell-offs.

For the full history of declines, use the drawdown calculator; to see how a stock moves with the market, use the stock beta calculator.

Frequently asked questions

What is the Sharpe ratio?

A measure of risk-adjusted return: the return above the risk-free rate divided by the volatility of returns. Higher is better.

What is a good Sharpe ratio for a stock?

Above 1 is good and above 2 is rare over long periods. Broad stock market indexes have often had long-run Sharpe ratios of roughly 0.4 to 0.8. Negative means the investment did worse than cash.

What risk-free rate does the calculator use?

The effective federal funds rate of each month, published by the Federal Reserve. You can also set it to zero.

What is the difference between the Sharpe and Sortino ratios?

The Sharpe ratio divides by the volatility of all returns. The Sortino ratio divides only by the volatility of returns below the risk-free rate, so it does not penalize upside surprises.

How is volatility annualized?

The standard deviation of weekly returns is multiplied by the square root of 52, the number of weeks in a year.

Why do Sharpe ratios differ between sources?

Sources use different periods, daily, weekly or monthly returns, different risk-free rates and sometimes price returns without dividends.

Can I put this calculator on my website?

Yes. It is free for any site. Use the embed code generator at the bottom of this page and keep the credit line under the calculator.

Related calculators

See all free investing calculators, or add live stock quotes to your site with the free stock widgets.

Add this calculator to your website

The calculator is free to embed on any website, personal or commercial, and works on WordPress, Blogger, Wix, Squarespace, Webflow, Ghost and plain HTML. Choose the options, copy the code and paste it into your page.

Layout
Theme

Preview: this is how the calculator and the credit line will look on your page

Free for personal and commercial websites. Please keep the “by Quotelinks” credit line under the calculator visible and unchanged, and don’t modify the calculator or present it as your own. The <script> line is optional: it sizes the frame to fit the calculator; if your platform removes scripts, the calculator still works at the fixed height. Past returns and past risk don’t predict the future. Results are for illustration only, not financial advice.