Works on this device
Investment Risk Calculator
Risk is how far the result of an investment can move away from what you expect. This calculator measures it in several standard ways. Paste a list of past returns, or enter a volatility, and it shows the figures that investors use to compare risk. Every rate and every return is a number that you enter.
Enter your values
Check these values
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 Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out. Volatility and risk measures from a list of returns is the general choice for a stock, a fund or a portfolio.
- Paste the returns in percent, one for each period. Separate them with commas, spaces or new lines. Say whether they are daily, weekly, monthly, quarterly or yearly.
- Enter a risk-free rate for the Sharpe ratio. Use a rate you trust, for example the yield of a short government bill.
- Choose Calculate. You can copy the result, print it or download it as a CSV file.
What each option does
- Volatility and risk measures gives the standard deviation, the yearly volatility, the Sharpe ratio, the downside deviation, the Sortino ratio and the largest fall from a peak.
- Value at risk (VaR), normal method gives the loss that should not be passed at a confidence level you choose, and the expected shortfall (CVaR), if returns follow a normal distribution.
- Value at risk from past returns reads the loss straight from your list of returns. This is called historical simulation.
- Portfolio volatility and expected return combines two or three assets from their weights, volatilities and correlations.
- Correlation of two investments shows how closely two return lists move together, and the beta of one against the other.
- Expected return and risk from scenarios weighs each scenario by its chance. It can also add up separate risks as expected monetary value (EMV).
- Expected return from beta (CAPM) uses the capital asset pricing model. It can also solve for the risk-free rate, the beta or the market return.
- Risk per trade and position size shows how many units fit a set risk for one trade.
- Sequence of returns risk shows how the order of good and bad years changes the money that is left when you take money out every year.
The formulas
- Standard deviation = square root of the sum of (return − average)² ÷ (n − 1). The population formula divides by n.
- Volatility per year = standard deviation × square root of the periods in a year (12 for monthly, 252 for daily returns).
- Sharpe ratio = (average return − risk-free rate for one period) ÷ standard deviation × square root of the periods in a year.
- Sortino ratio uses the downside deviation, which counts only returns below the lowest return you accept.
- Value at risk (normal) = value × (z × volatility over the time horizon − expected return over the time horizon). For 95%, z is 1.644854.
- Expected shortfall (normal) = value × (volatility over the time horizon × density at z ÷ (1 − confidence) − expected return).
- Portfolio variance for two assets = w₁²σ₁² + w₂²σ₂² + 2 × w₁ × w₂ × correlation × σ₁ × σ₂. The volatility is its square root.
- Expected result = sum of chance × result. Its standard deviation = square root of the sum of chance × (result − expected result)².
- CAPM: expected return = risk-free rate + beta × (market return − risk-free rate).
Worked example
A portfolio is worth 100,000 and has a volatility of 18% a year. For one trading day, the volatility is 18% × square root of (1 ÷ 252) = 1.1339%. At 95% confidence, z is 1.644854, so the value at risk is 100,000 × 1.644854 × 1.1339% = 1,865.09. On about 5 of 100 days the loss is expected to be larger. The expected shortfall is 2,338.90.
Two assets: 60% in an asset with a volatility of 18% and 40% in an asset with a volatility of 6%, with a correlation of 0.2. The portfolio volatility is 11.5225%. The weighted average of the two volatilities is 13.2%, so diversification removes 1.6775 percentage points.
Three scenarios: a 25% chance of +22%, a 50% chance of +8% and a 25% chance of −15%. The expected return is 0.25 × 22 + 0.5 × 8 − 0.25 × 15 = 5.75%. The standard deviation is 13.2736%.
CAPM: with a risk-free rate of 3%, a beta of 1.2 and a market return of 8%, the expected return is 3 + 1.2 × (8 − 3) = 9%.
Limits you should know
- The tool has no market data. Returns, volatilities, correlations, chances and rates are your own numbers.
- The normal method assumes bell-shaped returns that do not depend on each other from day to day. Real markets have more extreme days, so real losses can be larger than the value at risk.
- Historical value at risk depends fully on the period you paste. A short list gives an unstable result. Other programs use other percentile rules.
- Yearly volatility from the square-root rule is an estimate. It is weaker for long horizons.
- The portfolio option takes at most three assets. Correlations often rise in a crisis.
- The risk per trade option assumes that the trade closes exactly at the stop-loss price.
- These figures describe risk. They do not tell you what to buy or sell, and they are not investment advice. Past returns do not tell you future returns.