VaR Calculator
Estimate parametric value at risk for a portfolio from volatility, horizon and confidence.
What it does
Value at risk, written VaR, answers a question about downside risk: how much could a portfolio lose over a given period at a chosen confidence level? The parametric version assumes returns are normally distributed and uses a volatility estimate to compute a loss quantile.
The calculation multiplies portfolio value by the z score for the confidence level, the volatility for the horizon and the number of days scaling. Volatility over several days is daily volatility times the square root of the number of days, assuming returns are independent.
For a one million dollar portfolio with one percent daily volatility and a 95 percent z score of 1.645, one day VaR is about sixteen thousand four hundred fifty dollars. Raising confidence to 99 percent uses a z score near 2.326 and gives a larger loss estimate.
The result is a quantile, not a worst case. On roughly five percent of days the loss should exceed the 95 percent VaR under the model. It is also not expected shortfall, which averages losses beyond the quantile.
The normal assumption understates the frequency of extreme moves in many markets. Parametric VaR is best used for linear portfolios and short horizons, with stress testing and other risk measures alongside it.
How to use
- Enter the current portfolio value.
- Enter an estimate of daily volatility as a percentage.
- Enter the z score for your confidence level.
- Enter the horizon in trading days.
- Read the VaR amount and the loss as a percentage.
- Compare with historical or simulated results as a sanity check.
Formula
- V
- Current portfolio value.
- z
- Normal quantile for the chosen one tailed confidence.
- sigma
- Daily volatility as a decimal return standard deviation.
- days
- Horizon in days.
The tool assumes a mean return of zero, which is a common short horizon approximation. Including a drift term would subtract the expected return over the horizon from the loss. If your volatility input is already in currency units, do not multiply by portfolio value again.
Worked example
Example: 1,000,000 portfolio with 1 percent daily volatility
Defaults: value 1,000,000, sigma 1 percent, z 1.645 and horizon 1 day.
- Convert volatility: 1 percent becomes 0.01.
- Square root of the horizon is 1.
- Loss fraction: 1.645 x 0.01 = 0.01645, or 1.645 percent.
- Loss amount: 1,000,000 x 0.01645 = $16,450.00.
- The horizon volatility stays 1.000 percent for one day.
- The tool shows $16,450.00, 1.645 % and 1.000 %.
Reference table
| Confidence | z score | VaR |
|---|---|---|
| 95 % | 1.645 | $16,450.00 |
| 99 % | 2.326 | $23,260.00 |
| 99.9 % | 3.090 | $30,900.00 |
Limits
- Assumes normally distributed returns.
- Uses a zero mean return over the horizon.
- Assumes volatility is constant and returns independent.
- Not valid for nonlinear option positions without adjustment.
Common mistakes
- Using a two tailed z score for a one tailed risk measure.
- Treating VaR as the maximum possible loss.
- Scaling volatility linearly rather than by the square root of time.
- Mixing daily volatility with an annual horizon without conversion.
- Ignoring fat tails and stress scenarios.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the 10 day VaR with the other defaults?
Volatility scales by the square root of ten, so the tool reports a 5.202 percent loss and a VaR of $52,019.47.
Why use a z of 1.645 for 95 percent?
It is the one tailed standard normal quantile, leaving five percent of outcomes in the loss tail.
Is VaR an expected loss?
No. It is a threshold. Expected shortfall averages losses beyond that threshold.
Questions
What does VaR mean?
Value at risk, a loss quantile over a horizon at a stated confidence level.
How does horizon affect VaR?
Volatility scales with the square root of time, so VaR grows with the square root of the horizon.
What confidence level is common?
95 and 99 percent are widely used, with z scores about 1.645 and 2.326.
Does VaR capture extreme crashes?
Not well under a normal model, which is why stress testing is used alongside it.
Can I use this for options?
Not directly. Options have nonlinear payoff, so a full revaluation or delta gamma approximation is needed.
How is VaR different from expected shortfall?
VaR is a quantile, while expected shortfall is the average loss beyond that quantile.
Sources
- University of Washington, Eric Zivot: Market Risk Modeling
- University of California Irvine, Philippe Jorion: Introduction to VaR