Calculates on this device. File exports run online.
Portfolio Analyzer
Analyse a portfolio from your own numbers. Paste the values of your funds or shares over time to get the return, volatility, Sharpe and Sortino ratios, the largest fall (maximum drawdown), value at risk and beta against a benchmark. You can also work out the risk of a mix from your assumptions, and the trades that bring your holdings back to their targets. Every figure names its formula. Nothing is fetched from the internet, and this is not financial advice.
Enter your values
Check these values
This is off unless you turn it on. Saved entries stay in this browser only. Untick the box to delete them.
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use it
- Choose Returns and risk from a table of values and paste a table with a Date column and one column per fund or share (prices or values, newest or oldest first). Add a benchmark column if you want beta and alpha.
- Type the weights of your holdings, the risk-free rate and the value at risk level, and press Analyse.
- For a mix of assets from assumed returns, volatilities and correlations, choose Risk and return of a mix. To bring a portfolio back to its targets, choose Allocation and rebalancing. For one ratio from a few numbers, choose One ratio from summary numbers.
The formulas
- Period return rₜ = Vₜ ÷ Vₜ₋₁ − 1. Growth per year (CAGR) = (last ÷ first)^(1 ÷ years) − 1.
- Volatility per year = sample standard deviation of the period returns × √(periods per year).
- Sharpe ratio = (average return − risk-free rate) ÷ standard deviation, per period, × √(periods per year). Sortino ratio uses the downside deviation below a target instead.
- Maximum drawdown = the largest fall from an earlier high to a later low. Calmar ratio = CAGR ÷ maximum drawdown.
- Value at risk (historical) = the loss that only the worst (100 − level)% of periods reached; expected shortfall = the average loss of those periods. Value at risk (normal) = −(average + z × standard deviation).
- Beta = covariance with the benchmark ÷ variance of the benchmark. Alpha (Jensen) = return − (risk-free + beta × (benchmark − risk-free)). Information ratio = extra return ÷ tracking error.
- Risk of a mix: σp = √(Σᵢ Σⱼ wᵢ wⱼ ρᵢⱼ σᵢ σⱼ).
What this tool does not do
It does not fetch prices, does not know any fund or share, and does not tell you what to buy or sell. The trades and mixes it shows are arithmetic on the numbers you typed. Past returns do not predict future returns. This is not financial advice: for decisions about your money, speak to a qualified adviser.
Large price files
For a long file with a row per date and symbol (up to 1 GB), set its columns in Large price files: their columns. The server works out the history figures of every symbol with the same formulas and returns a CSV or Excel file. The query it runs is shown on the page first.