Skip to main content
iOS trading journal Download
← All calculators

Sharpe Ratio Calculator

Enter your returns for each period (or P&L plus account value), pick daily, weekly or monthly, and set the annual risk-free rate. The Sharpe ratio calculator subtracts the per-period risk-free rate, divides the mean excess return by its standard deviation, then multiplies by √252, √52 or √12 to annualize.

Input

One per line, or separated by commas and spaces. Example: 13 weekly returns from an illustrative account.

Period

4.0% is illustrative. Check current T-bill rates.

Standard deviation
Annualized Sharpe ratio 2.21 annualized from 13 weeks, sample σ (n − 1)
Per-period ratio 0.31 per week
Periods 13
Mean return 0.33%
Risk-free per period 0.077%
Mean excess return 0.25%
Standard deviation 0.83%

(0.33% − 0.077%) ÷ 0.83% = 0.31 per week; × √52 (7.21) ≈ 2.21 a year.

Runs in your browser. Nothing you paste is sent to a server.

Mantis records realized P&L on every closed trade: the raw numbers behind this calculation. It doesn't calculate the Sharpe ratio for you.

Download on theApp Store

Free to start · iOS 18+ · No account required

How the Sharpe ratio calculator works

William Sharpe introduced the ratio in 1966 and restated it in 1994 as the mean return above a risk-free asset divided by the standard deviation of that excess return (Sharpe, “The Sharpe Ratio”). The calculator works through it in 4 steps.

  1. Per-period risk-free rate. The annual rate divided by periods per year, so 4.0% a year is 0.077% a week. Compounding instead, (1 + r)1/n − 1, gives 0.075%. At T-bill levels the gap barely moves the result.
  2. Excess return. Each period's return minus that rate.
  3. Per-period ratio. The mean excess return divided by the standard deviation of the excess returns. Subtracting the same rate from every period doesn't change the spread, so σ is the same as for your raw returns.
  4. Annualize. Multiply by the square root of periods per year: √252 ≈ 15.87 for daily, √52 ≈ 7.21 for weekly, √12 ≈ 3.46 for monthly and 1 for yearly.
Annualizing multipliers for a Sharpe ratio: square root of 252 for daily, 52 for weekly and 12 for monthly returns
Multiply the per-period ratio by the square root of periods per year.

The √T step holds only when one period's return says nothing about the next. Sharpe derives it for returns with zero serial correlation. Andrew Lo found that ignoring that correlation can overstate a hedge fund's annual Sharpe ratio by as much as 65% (Lo, “The Statistics of Sharpe Ratios”, 2002). If your good weeks tend to follow good weeks, read the annualized figure as a high estimate.

Sample or population σ. Sample σ divides by n − 1 and population σ by n. Sample is the default, because your returns are a sample of what the strategy could produce. On 13 weeks the choice moves the example below from 2.21 to 2.30. On 200 weeks you'd barely see it.

When you get no number. With fewer than 2 values there's no standard deviation. If every period returned the same amount, σ is 0 and the ratio would divide by zero. In both cases the calculator says why instead of printing a result. Under 12 periods you still get a number, with a warning. Entries that aren't numbers are skipped and counted.

Worked example: one quarter of weekly returns

The calculator opens with this example: 13 weekly returns from an illustrative account, not a real one.

+1.1, −0.4, +0.7, −1.2, +0.9, +0.3, +1.6, −0.8, +0.2, +1.0, −0.5, +0.6, +0.8 (%)

13 illustrative weekly returns at a 4.0% annual risk-free rate, sample standard deviation
Step Value
Mean weekly return0.33%
Risk-free per week (4.0% ÷ 52)0.077%
Mean excess return0.25%
Standard deviation (sample)0.83%
Weekly ratio0.31
Annualized (× √52)2.21
Worked example of 13 weekly trading returns giving a weekly Sharpe ratio of 0.31 and an annualized 2.21
Illustrative example, not a real account. With population σ the annualized ratio is 2.30.

The annualized figure comes from the unrounded weekly value: 0.3058 × 7.211 = 2.205. Multiply the rounded 0.31 instead and you get 2.24, which is why the calculator keeps every decimal until the last step. Switch σ to population and the answer is 2.30.

The 4.0% rate is illustrative. The 13-week T-bill's coupon-equivalent yield was 4.16% on November 9, 2026 (US Treasury daily bill rates). Use the current rate for your own numbers.

A 13-week record is thin. A 2.2 here describes one quarter that went well. The same 2.2 across 5 years of weekly returns is much stronger evidence, because it held up over 260 weeks instead of 13.

Getting your returns out of a trade journal

The calculator needs one return per period, not one per trade. To build that series from a journal:

  • Pick a period and stick to it.
  • Total the realized P&L for each period, after commissions and fees.
  • Divide by the account value at the start of that period.
  • Take deposits and withdrawals out first. A $5,000 deposit into a $10,000 account isn't a 50% week.

P&L mode does the division for you. Enter the starting account value and each period's P&L, and the calculator adds each result to the balance before it measures the next period. It assumes no money went in or out, so adjust for transfers before you paste.

Mantis doesn't calculate the Sharpe ratio. It records realized P&L on every closed trade and draws an equity curve from those trades, so you can total P&L by week or month and divide by your account value. CSV export (Premium) moves that history into a spreadsheet, so you can paste the totals here instead of retyping them. Your trades stay on your iPhone, with no account.

Same result in Excel or Google Sheets

Put your weekly returns in A2:A14. In B2 enter =A2-4%/52 and fill down to get the excess returns. Then:

=AVERAGE(B2:B14)/STDEV.S(B2:B14)*SQRT(52)

STDEV.S is the sample σ. Use STDEV.P for population σ, which matches the toggle above. Swap 52 for 252 or 12 to match your period. If your cells hold plain numbers such as 1.1 rather than 1.1%, subtract 4/52 instead. Sharpe's paper gives the same spreadsheet recipe, AVERAGE over STDEV of the excess returns, and Google Sheets uses the same function names.

Reading your result

Whether a number is good depends on how long a record sits behind it, so read what the Sharpe ratio is and what counts as good before you compare yours with a fund's. The ratio treats a big up week as risk too: the Sortino ratio counts only the downside, and the drawdown recovery calculator shows what your worst drop takes to climb back from.

Frequently asked questions

What risk-free rate should I enter?

Use the annual yield on a short Treasury bill for the window you measured. For a US-dollar account the 13-week bill is the usual choice; its coupon-equivalent yield was 4.16% on November 9, 2026. Enter it as a yearly percentage and the calculator divides it by periods per year. For another currency, use that country's short-term government rate.

Should I use daily, weekly or monthly returns?

Use the shortest period you can measure cleanly, and keep it fixed. Sharpe recommends fairly short periods, such as monthly, to get more information out of the data. Daily returns are noisy for an account that doesn't trade every day. Whichever you choose, set the same period here so the right multiplier is applied.

Can I calculate a Sharpe ratio from dollar P&L instead of percentages?

Yes, if you also give the account value. Dollar P&L alone has no scale: $500 is a big week on $10,000 and a quiet one on $200,000. Choose P&L mode and enter the starting value. The calculator turns each period's P&L into a return on the balance at the start of that period.

How many periods do I need for a meaningful result?

The calculator warns below 12 periods, but 12 is the minimum to get a useful number, not a sound sample. A few years of monthly returns, or at least a year of weekly ones, makes it harder for one lucky stretch to carry the number.

How do I calculate the Sharpe ratio in Excel?

Put the excess returns (each return minus the per-period risk-free rate) in one column, then use =AVERAGE(range)/STDEV.S(range)*SQRT(52) for weekly data. Change 52 to 252 or 12 for daily or monthly returns. Use STDEV.P for population σ.

Does the S&P 500 have a Sharpe ratio?

Yes, like any return series. The number depends on the window, the return period and the risk-free rate, which is why published figures disagree. To get one, paste the index's monthly total returns for your window, choose monthly and enter the T-bill rate for those years.

Does this calculator send my numbers anywhere?

No. It runs in your browser with no sign-up, and nothing you paste is sent to a server.

Important: Mantis is a trading journal and analytics tool. This calculator is for educational purposes and is not investment advice, not financial advice, and not a recommendation to buy or sell any security or instrument. Trading involves risk; past performance does not guarantee future results. Consult a qualified professional before making financial decisions.