How to Calculate Sharpe Ratio for Your Trading Results

The Sharpe ratio measures return per unit of risk, but calculating it correctly requires periodic returns, the right risk-free rate, and proper annualizing. This article walks through the formula, a worked example from a trading journal, and what the ratio misses.

How to Calculate Sharpe Ratio for Your Trading Results

Last updated:

In short. The Sharpe ratio divides your average excess return (return minus the risk-free rate) by the standard deviation of that excess return, giving a single number for return per unit of risk. Calculate it from a series of period returns (monthly is typical), not from win rate or profit factor alone, and annualize it by multiplying by the square root of the number of periods per year before comparing it across strategies or timeframes.

Most trading journals already track win rate, profit factor, and R-multiple. None of them answer a different question: how much return did a strategy produce for the volatility it carried along the way. The Sharpe ratio was built for exactly that comparison, and it only takes a handful of extra fields in the journal to calculate it correctly.

The formula

The Sharpe ratio, in its modern form, is the average of the differential return (the return on the strategy minus the return on a benchmark, usually the risk-free rate) divided by the standard deviation of that differential return. William Sharpe's own 1994 restatement of the measure gives the practical shortcut: list the periodic returns in one column, the risk-free rate for each period in a second column, subtract to get the excess return in a third column, then divide the average of that column by its standard deviation.

Which risk-free rate to use

The risk-free rate in the formula is meant to represent the return available with no risk at all for the matching period. In practice that means the yield on short-term government debt. The U.S. Department of the Treasury publishes daily Treasury bill rates, and the convention is to use the yield that matches your return period, for example a 1-month T-bill rate for monthly returns, converted to the same periodicity as the rest of the calculation. For crypto and leveraged forex accounts where no truly risk-free instrument is held, many traders simply use 0% as the risk-free rate rather than force in an unrelated benchmark, and say so explicitly when reporting the ratio.

Annualizing the ratio

Returns and the Sharpe ratio built from them are not independent of the period used to measure them. Sharpe's 1994 paper works through why: if one-period returns are summed into a longer period, the mean scales with the number of periods (T) while the standard deviation scales with the square root of T, so the Sharpe ratio itself scales with the square root of T. That is the basis for the standard annualizing step: multiply a monthly Sharpe ratio by the square root of 12, a weekly one by the square root of 52, a daily one by the square root of 252 trading days.

Sharpe's own worked example in that paper used a broad stock index financed by borrowing: an annual excess return mean of 6% and an annual standard deviation of 15% gives an annualized Sharpe ratio of 0.40. That figure is a useful anchor, because it comes from a diversified, long-only benchmark, not a leveraged trading strategy.

A worked example from a trading journal

Suppose a journal logs six months of net returns on a funded account, and the trader uses 0% as the risk-free rate because the account holds no risk-free instrument.

MonthNet returnExcess return (return minus 0%)
1+4.2%+4.2%
2-1.8%-1.8%
3+3.1%+3.1%
4+0.5%+0.5%
5-2.4%-2.4%
6+5.0%+5.0%

The mean of the six excess returns is 1.43%. The sample standard deviation of the same six values is approximately 3.05%. The monthly Sharpe ratio is 1.43 divided by 3.05, or about 0.47. Annualized, that becomes 0.47 multiplied by the square root of 12, or roughly 1.62. Whether 1.62 is a strong result depends entirely on the strategy type, the leverage used, and the length of the track record behind it, which six months is too short to settle on its own.

Sharpe ratio next to profit factor and R-multiple

MetricWhat it measuresWhat it misses
Sharpe ratioAverage excess return per unit of return volatility across periodsTreats upside and downside volatility the same; needs enough periods to be stable
Profit factorGross profit divided by gross loss across tradesSays nothing about how smoothly or erratically those trades arrived over time
R-multipleResult of a single trade relative to its planned riskPer-trade, not portfolio-level; does not aggregate into a risk-adjusted return figure

A strategy can have a healthy profit factor and a mediocre Sharpe ratio at the same time, usually because the equity curve that produced the profit factor was volatile along the way, with large swings between the profitable stretches.

What the Sharpe ratio does not capture

The calculation treats a big up month and a big down month of the same size as equally risky, because standard deviation does not distinguish the direction of the swing. A strategy with a few outsized winning months and otherwise flat results can show a worse Sharpe ratio than a strategy with small, steady gains, even if most traders would prefer the first. The ratio also assumes the return series behaves close to a normal distribution; strategies with a small chance of a large loss, such as short volatility or short option positions, can show a strong Sharpe ratio right up until that loss occurs, because the standard deviation calculated from the quiet months understates the real tail risk.

Logging what the Sharpe ratio needs

Calculating this ratio from a journal built only around win rate and individual trade outcomes does not work, because the input is a return series over fixed periods, not a trade-by-trade list. The journal entry that supports it needs a period-end balance or return figure logged consistently, whether that period is daily, weekly, or monthly, plus a note on which risk-free rate was used and whether the figure is annualized. Without that consistency, Sharpe ratios calculated in different months of the same journal are not comparable to each other.

This article is for educational purposes only and is not financial or investment advice. Standard deviation-based risk measures summarize past volatility, not future risk, and trading with leverage carries a high risk of losing some or all of invested capital regardless of a strategy's historic Sharpe ratio.

See how a performance dashboard can track period returns and risk-adjusted metrics alongside the rest of your trading data.

The essentials, answered

Frequently asked questions

Can I calculate a Sharpe ratio from individual trades instead of periodic returns?
Not in the standard form. The ratio is defined on a return series over consistent time periods (daily, weekly, or monthly), not on a list of individual trade results, because the denominator needs the variability of returns across comparable periods rather than across trades of different size and duration.
What risk-free rate should a crypto trader use?
Many traders use 0% since crypto accounts typically hold no truly risk-free instrument, and this choice should be stated explicitly whenever the ratio is shared or compared against another account that may use a different convention.
Why does the same strategy show a different Sharpe ratio when measured daily versus monthly?
Because the ratio scales with the square root of the number of periods used, as shown in Sharpe's 1994 paper. A daily and a monthly measurement of the same underlying strategy will differ unless both are annualized using the matching scaling factor.
Is a negative Sharpe ratio always worse than a positive one?
A negative ratio means the strategy underperformed the risk-free rate on average, but comparing two negative ratios is not reliable, since increasing volatility can make a negative ratio look less negative without any real improvement in results.
How many periods of data are needed for a meaningful Sharpe ratio?
There is no fixed number, but six data points, as in the example above, is generally too few to draw a firm conclusion. Longer track records reduce the influence of any single unusually good or bad period on the result.
Does a high Sharpe ratio guarantee a strategy is safe?
No. A high historic Sharpe ratio reflects past return and volatility only. Strategies with rare, large potential losses can show a strong ratio for a long stretch before that risk shows up in the data.