Converter tool

Portfolio Performance Analyzer from Prices

Turn price or NAV history into CAGR, volatility, Sharpe, Sortino, maximum drawdown with dates, beta and alpha against a benchmark, rolling 12-month returns and a correlation matrix, with an XLSX that keeps the formulas.

One date column and one price or NAV column per asset

1. Your price history

Or paste the table

Portfolio Performance Analyzer

Operator: Abdulla Al Fahad. How tools are built and checked

Over six years of month-end prices, the Global Equity Fund in the bundled file compounds 14.98% a year against 11.32% for the market index. The headline hides how it got there: volatility of 14.41% against 12.25%, a beta of 1.13, and a 17.9% fall from August 2020 to June 2021 that took until January 2022 to recover. The index's own worst fall was 14.5%.

The page turns a price or NAV history into that whole picture: CAGR, volatility, Sharpe and Sortino, the deepest drawdown with its peak, trough and recovery dates, beta, alpha, tracking error and capture against a benchmark, rolling 12-month returns and a correlation matrix, then exports an XLSX in which returns and ratios are live formulas.

Key features

  • Total return, CAGR on the calendar span, annualised volatility, Sharpe, Sortino and Calmar for every column
  • Maximum drawdown with peak, trough and recovery dates, plus best and worst period and the share of positive periods
  • Beta, annualised alpha, correlation, R-squared, tracking error, information ratio and up and down capture against a benchmark
  • Growth-of-starting-value, drawdown and rolling 12-month return charts, each downloadable as SVG
  • Correlation matrix of periodic returns and a calendar-year return table
  • Metrics CSV, returns CSV, and an XLSX with prices as values and returns, drawdowns, volatility, Sharpe, Sortino, beta, alpha and correlation as formulas

How returns are formed from prices and how each risk measure is defined

A table with a date column and one price or NAV column per asset, up to 12 columns in all. Use adjusted prices or NAVs so dividends are reinvested. Dates can be ISO, slash dates or day-month-year text.

Rows may come in any order. Repeated dates are merged keeping the later row, blank prices carry forward from the previous row, and the analysis starts on the first date where every chosen column has a price. Choose weekly or monthly returns for daily data, or monthly for weekly data; asking for finer returns than the rows allow is refused.

Pick one column as the benchmark to get beta, alpha and capture for the others. The risk-free rate is a percent a year, converted to a per-period rate, and the growth chart starts from a value you choose.

How it works

Rows are sorted by date and reduced to period ends: the last row of each week (Monday start) or calendar month, with the first row as the starting price. A return is price over previous price minus one. CAGR is (end over start) raised to 1 over the years between the first and last date, taking a year as 365.25 days.

Volatility is the sample standard deviation of the period returns times the square root of 252, 52 or 12. Sharpe is the mean return less the per-period risk-free rate, over the standard deviation, times the same square root. Sortino divides by the downside deviation: the root of the mean over all periods of the squared shortfall below the risk-free rate. Calmar is CAGR over the absolute maximum drawdown.

Beta is the covariance of a column's returns with the benchmark's over the benchmark's variance. Alpha is Jensen's: mean excess return minus beta times the benchmark's mean excess return, times the periods per year. Up capture divides the column's average return by the benchmark's over the periods when the benchmark rose, and down capture does the same when it fell. A rolling 12-month return compares a price with the one 12 months of periods earlier.

When this helps

  • An investor comparing three funds against a total-market index over six years, and seeing that the equity fund's alpha is 2.28% a year after adjusting for its beta of 1.13.
  • An adviser checking how long clients waited after the worst fall: the gold fund's 14.6% drawdown from the September 2021 peak took until November 2024 to recover, 38 months, against 17 months from peak to recovery for the equity fund.

Opening a file

  1. Drop the price table, with dates and one price column for each asset.
  2. Confirm the date column and the price columns, and choose a benchmark if you have one.
  3. Choose the return frequency and enter the risk-free rate.
  4. Read the performance and drawdown tables, then the benchmark table.
  5. Study the growth, drawdown and rolling charts and the correlation matrix.
  6. Download the metrics, the returns or the XLSX.

Example

Month-end prices, 73 rows from December 2019, monthly returns, risk-free 2%

date,Market Index,Global Equity Fund,Bond Aggregate Fund,Gold Fund
2019-12-31,1000.00,100.00,100.00,100.00
2020-01-31,1040.59,103.83,100.59,98.98
...

Metrics, with the market index as benchmark

Global Equity Fund: CAGR 14.98%, volatility 14.41%, Sharpe 0.91, Sortino 1.58, max drawdown -17.9%, beta 1.13, alpha 2.28%, correlation 0.96
Market Index: CAGR 11.32%, volatility 12.25%, Sharpe 0.78, max drawdown -14.5%
Bond Aggregate Fund: CAGR 1.96%, volatility 3.76%, Sharpe 0.01, max drawdown -5.8%, beta -0.12
Gold Fund: CAGR 6.00%, volatility 10.08%, Sharpe 0.43, max drawdown -14.6%, beta 0.02

Limits

Raw closing prices ignore dividends, which understates return and overstates drawdowns for income funds. Use adjusted close or NAV.

Drawdowns and volatility are measured on the chosen period ends. Monthly returns miss intra-month lows, so a monthly maximum drawdown is usually shallower than the daily one for the same asset.

Carried-forward blanks create periods with a return of exactly 0, which lowers measured volatility. Zero, negative and non-numeric prices are treated as blanks and counted in the same warning. A period return beyond 100% gets its own warning naming the series and date, since a mistyped price in one row, such as 1.0 instead of 100, can single-handedly produce an absurd Sharpe; fix the source rather than reading past it.

Beta and alpha from 72 monthly points carry wide uncertainty, and the page gives no interval for them. Treat an alpha of 2% as a hint, not a finding.

  • Set the risk-free rate to roughly the rate over your period, then read Sharpe with the arithmetic mean in mind. The bond fund compounds at 1.96% a year, under a 2% risk-free rate, yet its Sharpe is a small positive 0.01. Sharpe uses the average of the monthly returns, which is 2.01% a year annualised, about half the variance (0.0376 squared over 2, roughly 0.07 points) above the CAGR, and the 2% rate converts to 1.98% a year over the months. That sliver of excess is the whole 0.01: the fund earned about the risk-free rate for its risk.
  • Read capture next to beta. The equity fund's up capture of 1.22 and down capture of 1.13 mean that on average it gained 22% more than the index in rising months and lost 13% more in falling ones.

Common errors and how to fix them

The rows are about 31 days apart, so weekly returns are not available. Choose monthly returns.
Your data is monthly. Pick monthly in the return frequency list. Rows more than about 45 days apart, such as quarterly prices, are refused even for monthly returns, because annualising them with 12 periods a year would misstate volatility and Sharpe.
"Gold Fund" has no usable price (prices must be numbers above 0).
The column is empty or holds text, zeros or negatives only. Untick it, or fix the source column.

Best practices

  • Compare assets on the same return frequency and the same dates; the page enforces the dates by starting at the latest first price, and names the column that moved the start.

Reading drawdown dates

The drawdown table gives the peak before the deepest fall, the trough, and the first period-end when the price got back to the peak, or not yet. The equity fund peaked on 31 August 2020, bottomed on 30 June 2021 and was back at its peak by 31 January 2022. The bond fund, shallower at 5.8%, peaked in November 2021, bottomed in August 2022 and did not recover until February 2024.

Correlations

The matrix correlates periodic returns, not prices, which is what matters for diversification. The equity fund and the index are at 0.96, while the bond fund sits at -0.40 against the index and gold at 0.02, and low correlation is what diversification relies on.

Frequently asked questions

How does this differ from the Portfolio Rebalancer on this site?

The rebalancer takes the holdings and target weights you type and produces a buy and sell list. This page analyses the history of prices you supply and produces risk and return measures.

Why does daily data give a different volatility from monthly data?

Annualising multiplies the standard deviation of whichever returns you chose by the square root of the periods per year. If returns are not independent from day to day, daily and monthly figures differ, so quote the frequency with the number.