Free Trading Tool

Sharpe Ratio Calculator

Calculate the annualized Sharpe ratio, and Sortino ratio, of a trading strategy from a return series, an equity curve, or summary statistics.

CSV format

One row per period (usually one per day) with either the return in percent or the account value. Dates are optional.

datereturn_pct
2024-01-020.42
2024-01-03-0.18
2024-01-040.05
……
  • return_pct: period return in percent. Or supply an equity / balance column instead and choose “Equity / account value” after loading.
  • date (optional): used for the chart axis. Rows must be in time order.
  • Periods must be evenly spaced. For a trade list, use the Backtest Report Analyzer, which converts trades to daily returns first.

Settings

How To Use

How to Use the Sharpe Ratio Calculator

Choose how you want to enter data. Return or equity series takes one value per period, either the percent return or the account value, in time order. Average & volatility takes the mean and standard deviation of your periodic returns if you already have them. Upload CSV reads a file with a return or equity column, with the format and a sample shown in the tool. Set the period length (daily, weekly or monthly) and the annual risk-free rate, then click Calculate Sharpe ratio; the result is annualized by multiplying the per-period ratio by the square root of periods per year.

Strategy Validation

Why the Sharpe Ratio Matters for Strategy Validation

The Sharpe ratio measures excess return per unit of volatility, which makes strategies with different leverage and markets comparable. It is also easy to inflate: short samples, optimized parameters and missing costs all push it up. Treat a backtest Sharpe as an upper bound, look at its confidence range, and compare it with the out-of-sample Sharpe before you size a position.

Go deeper: Out-of-Sample Testing guide · Sharpe ratio in the trading glossary

Build Alpha generates thousands of strategy variations, then runs Monte Carlo, walk-forward, noise and vs-random tests so you can see whether that Sharpe ratio holds up out-of-sample.

Generate and validate strategies in Build Alpha →
FAQ

Frequently Asked Questions

Sharpe ratio = (average return − risk-free rate) ÷ standard deviation of returns, measured per period. To annualize it, multiply by the square root of the number of periods per year: √252 for daily data, √52 for weekly and √12 for monthly.

After costs, an annualized Sharpe around 1 is solid for a single strategy, and above 2 is rare over long live track records. Backtests routinely show higher numbers than live trading, so values above 3 in a backtest usually deserve extra scrutiny.

Sharpe divides excess return by total volatility, so large up days count against you. Sortino divides by downside deviation only, which penalizes losses but not gains. Strategies with skewed, lumpy winners usually have a Sortino ratio well above their Sharpe ratio.

Not directly. Sharpe assumes evenly spaced periods, and trades have uneven holding times. Convert trades to daily P&L first (including days with no trades), then compute returns. The Backtest Report Analyzer does that automatically if your trade list has dates.

Use the yield on short-term government bills over the same period, such as 3-month US Treasury bills, as an annual percentage. Many traders set it to 0 to compare strategies with each other; that is fine as long as you are consistent.

CFTC RULE 4.41: HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Trading futures, forex, stocks and options involves substantial risk of loss and is not suitable for every investor. Past performance, whether actual or indicated by historical tests of strategies, is not indicative of future results. This tool is provided for educational purposes only and does not constitute investment advice or a recommendation to buy or sell any security or instrument. Calculations run entirely in your browser; your inputs and files are not uploaded or stored.