Sharpe ratio and Modigliani measure (M²) calculator

Calculators › Risk and Performance › Sharpe Ratio and M²

Price History

Illustrative example: 779 business days of synthetic prices, 04-Dec-2023 to 04-Dec-2026, for Fund A, Index, Risk-free. Paste your own below.

DateFund AIndexRisk-free
04-Dec-2026201.172,688.643.629
03-Dec-2026203.292,700.133.631
02-Dec-2026206.392,732.923.641
…
04-Dec-20231251,8004.5

Annual rates. GIAnalyzer takes them as decimals: the copied history has them so.

What you paste stays in your browser: it is read and calculated on this page, and is not sent or stored.

Calculation Settings

GIAnalyzer's risk and performance measures on your prices: the changes over the interval, in excess of the risk-free rate. What you paste stays in your browser: it is read and calculated on this page, and is not sent or stored.

Results

Select a figure to see its formula.

Reading the calculator

Blue values are inputs, black values are calculated. Select a figure to see its GIAnalyzer formula.

  • Price history: an illustrative example of synthetic prices to start with. Paste your own from Excel: a Date column and one column per series, with a header row of names, newest or oldest first; or a dates column for each series. Up to ten series.
  • The columns: which column is the fund, which the benchmark and which the risk-free rate, an annual rate written as a percent or as a decimal. The benchmark is needed for the Modigliani measure only. Returns become prices, starting at 100 on their oldest date, as GIAnalyzer's functions take prices.
  • Interval: the changes the measures are made of: daily, weekly, monthly or quarterly. Advanced adds overlapping changes, the number of rows a daily change spans, the day a week ends on, relative or log changes, the period and a stretch of dates to leave out, and whether the formulas read the history as one table or as columns of values.
  • Results: the Sharpe ratio of the fund and of the benchmark, their M², and the number of changes in the period. Changes lists each change of the fund and the benchmark with the risk-free rate over it. Graphs shows the fund and the benchmark rebased to 100 at the start of the period.
  • Copy history for GIAnalyzer copies the history as the formulas read it, to paste into a workbook and run the formulas the page shows.

Your data stays with you. What you paste is read and calculated on this page, in your browser. It is not sent anywhere and not stored; reloading the page brings back the example.

How the figures are calculated

  • Changes: counted back from the end of the period, each over one interval: a number of rows, a week, a month or a quarter. Without overlap each change starts where the last one ended, and weekly changes end on the week's last day; with overlap every date starts a change. Each change, relative or log, is taken less the risk-free rate on its later date divided by the number of changes in a year.
  • Sharpe ratio: the mean excess change over its standard deviation, annualized by the square root of the number of changes in a year: 252 days, 52 weeks, 12 months or 4 quarters.
  • Modigliani–Modigliani measure (M²): the fund's Sharpe ratio times the standard deviation of the benchmark's excess changes, plus the mean risk-free rate over the period divided by the number of changes in a year. As GIAnalyzer gives it, the result is per change, not annual: the benchmark's own M² is the figure to compare the fund's with.
  • The period: if the history starts on or after the start of the period, the first change starts on its second date. GIAnalyzer's table functions read a column down to its first blank cell, newest first: the older prices below a blank are left out.

The risk and performance measures methodology describes our models, and the function reference every argument of the Sharpe ratio from a table and from values, and of the Modigliani measure from a table and from values.