Value at risk (VaR) answers a simple question: how much could this portfolio lose over a given period, in all but the worst few percent of cases? A one-day 95% VaR of 2,000 means that on a typical day the loss should not exceed 2,000, and that roughly one trading day in twenty will be worse. Banks, funds and treasurers use it to set limits, compare positions and report risk in a single currency figure.
This VaR calculator offers the two classic approaches. The parametric method (also called variance–covariance or delta-normal, popularised by J.P. Morgan’s RiskMetrics in the 1990s) assumes normally distributed returns and needs only the portfolio value and its volatility. The historical method uses your own list of daily returns and reads the loss directly from the worst observations, so fat tails and skew in the data are kept.
Both give the expected shortfall (ES), also called conditional VaR or CVaR: the average loss on the days that breach the VaR. Since the Basel Committee’s Fundamental Review of the Trading Book, banks measure market risk with a 97.5% ES rather than a 99% VaR, because ES looks inside the tail instead of stopping at its edge. These figures describe past or modelled behaviour; they are not forecasts and not investment advice.
How to use this calculator
- Choose the method: Parametric if you know the volatility, Historical returns if you have a series of daily returns.
- Enter the portfolio value, the confidence level and the horizon in trading days.
- Parametric: enter the volatility as an annual figure (it is divided by √252) or a daily one. Historical: paste the daily returns in %, one per day.
- Read the VaR, its share of the portfolio and the expected shortfall. The steps show the z-score or the rank of the tail observation used.
The formula
Parametric VaR (zero mean return, normal distribution), with confidence , daily volatility , horizon days and value :
where : 1.2816 at 90%, 1.6449 at 95%, 1.9600 at 97.5% and 2.3263 at 99%.
Expected shortfall under the same normal assumption, with the standard normal density:
Historical VaR: sort the daily losses from largest to smallest and take the -th one, ; ES is the mean of the largest losses. Both are multiplied by for a horizon of days (square-root-of-time rule).
Worked example
A 100,000 portfolio with an annual volatility of 20%, at 95% over 10 days:
- Daily volatility: 20% ÷ √252 = 1.2599%; over 10 days: × √10 = 3.9841%.
- VaR = 1.6449 × 3.9841% × 100,000 = 6,553.25 (6.55% of the portfolio).
- Expected shortfall = 2.0627 × 3.9841% × 100,000 = 8,218.04.
The same portfolio’s one-day 99% VaR is 2,930.92.
Historical method with the 40 default daily returns at 95%: , so the one-day VaR is the second-worst loss, 2.31%, and the one-day ES is the mean of the two worst losses, 2.535%. Scaled to 10 days on 100,000: VaR 7,304.86, ES 8,016.37.
Parametric or historical: which method to use?
| Parametric | Historical | |
|---|---|---|
| Data needed | Volatility only | A series of returns |
| Tail shape | Normal (thin tails) | Whatever happened in the sample |
| Weak point | Underestimates crashes | Blind to events absent from the sample |
| Good for | Quick estimates, liquid assets | Portfolios with options or skewed returns |
Market returns have fatter tails than the normal curve, so a parametric 99% VaR is often exceeded more often than 1% of the time. A historical VaR on one calm year has the opposite problem. Running both and comparing them is a cheap sanity check; you can estimate the volatility itself with the standard deviation calculator.
Frequently asked questions
What does a 95% one-day VaR of 5,000 mean?
On 95% of trading days the loss should be no larger than 5,000. It says nothing about how large the loss is on the other 5% of days — that is what expected shortfall measures.
Why divide annual volatility by √252?
If daily returns are independent, variance grows in proportion to time, so volatility grows with the square root of time. A year has about 252 trading days, so σ_daily = σ_annual ÷ √252. The same rule turns a one-day VaR into a 10-day VaR by multiplying by √10.
Why does Basel now use a 97.5% expected shortfall?
VaR ignores the size of losses beyond the cut-off and is not always sub-additive (diversification can appear to raise VaR). ES is a coherent risk measure. Under a normal distribution a 97.5% ES is almost equal to a 99% VaR (2.338σ against 2.326σ), so the switch kept capital levels comparable while capturing tail risk.
Does this calculator include the expected return?
No. Like RiskMetrics, it assumes a zero mean, which is standard for short horizons where the drift is tiny compared with volatility. Over long horizons, subtracting the expected return would lower the VaR somewhat.
How many historical returns do I need?
At least 1 ÷ (1 − c): 20 for 95%, 100 for 99%. In practice one to two years of daily data (250–500 returns) is common. With fewer points the VaR equals the worst observed day and is very unstable.
Sources
- J.P. Morgan / Reuters — RiskMetrics Technical Document, 4th edition (1996)
- Jorion, P. — Value at Risk: The New Benchmark for Managing Financial Risk, 3rd ed., McGraw-Hill
- Basel Committee on Banking Supervision — Minimum capital requirements for market risk (FRTB, 2019)
- Acerbi, C. & Tasche, D. — On the coherence of Expected Shortfall (2002)
Last updated: