Value at Risk (VaR) Calculator
How much could you lose on a bad day? Calculate VaR and Expected Shortfall — the risk metrics banks use daily.
Portfolio & Returns
Risk Parameters
Value at Risk (VaR): The Complete Guide
Everything you need to know about VaR, Expected Shortfall, and how banks and portfolio managers measure downside risk.
Value at Risk (VaR) is a statistical measure that quantifies the maximum expected loss on a portfolio over a specific time period at a given confidence level. For example, a 1-day 95% VaR of $5,000 means there is a 5% chance your portfolio could lose more than $5,000 in a single trading day.
VaR was popularized by J.P. Morgan in the early 1990s through their RiskMetrics system. It became the industry standard for risk measurement and is now used by virtually every major bank, hedge fund, and institutional investor in the world. Regulators including the Basel Committee on Banking Supervision require banks to calculate and report VaR for their trading books.
Why VaR matters for portfolio management:
- Single number for risk — VaR collapses the complexity of portfolio risk into one easy-to-understand dollar figure. A board member or client can immediately grasp what “we could lose $2 million on a bad day” means, even without a statistics background.
- Position sizing and limits — Traders and portfolio managers use VaR to set risk limits. A desk might be allocated a $10M daily VaR limit, meaning they must size positions so the total portfolio VaR stays below that threshold.
- Regulatory capital — Under Basel III regulations, banks must hold capital reserves proportional to their VaR. Higher VaR means more capital set aside, which directly impacts profitability.
- Comparing strategies — VaR provides a common metric to compare the riskiness of different portfolios, strategies, or asset classes on an equal basis.
While VaR has well-known limitations (it says nothing about how bad losses can be beyond the VaR threshold), it remains the most widely used risk metric in finance precisely because of its simplicity and universality.
There are three primary methods for calculating VaR, each with distinct advantages and trade-offs. This calculator uses the parametric method, but understanding all three helps you choose the right approach for your needs.
1. Parametric (Variance-Covariance) VaR:
- How it works — Assumes returns follow a normal distribution. VaR is calculated using the portfolio mean, standard deviation, and a z-score corresponding to the desired confidence level.
- Pros — Fastest to compute, requires only two inputs (mean and volatility), easy to explain and audit, and works well for portfolios of linear instruments (stocks, bonds) over short horizons.
- Cons — Assumes normality, which underestimates tail risk. Real market returns have fat tails (extreme events happen more often than a normal distribution predicts). Does not handle options or other non-linear instruments well.
2. Historical Simulation VaR:
- How it works — Uses actual historical returns to build a distribution. Sort the historical returns from worst to best, and the VaR is the return at the appropriate percentile.
- Pros — No distributional assumptions, captures fat tails and skewness naturally, and handles non-linear instruments automatically.
- Cons — Requires extensive historical data, assumes the past is representative of the future, and can be slow to react to changing market conditions.
3. Monte Carlo Simulation VaR:
- How it works — Generates thousands of random scenarios using a specified model for returns (which can be non-normal). The VaR is the loss at the desired percentile of the simulated distribution.
- Pros — Most flexible method. Can model any distribution, incorporate correlations, handle complex instruments like options, and stress-test specific scenarios.
- Cons — Computationally expensive, results depend on model assumptions (garbage in, garbage out), and requires significant expertise to implement correctly.
For most retail investors, parametric VaR provides a good quick estimate. Institutional risk teams typically use all three methods and compare results to get a more complete picture.
Conditional VaR (CVaR), also called Expected Shortfall (ES), answers the question VaR leaves open: “If we do breach VaR, how bad could it actually get?” CVaR is the average loss in the worst scenarios beyond the VaR threshold.
For example, if your 95% VaR is $5,000 and your CVaR is $7,500, that means: on the 5% of days where losses exceed VaR, the average loss is $7,500. CVaR always equals or exceeds VaR because it measures what happens in the tail, not just the entry point to the tail.
Why CVaR is considered superior to VaR:
- Coherent risk measure — CVaR satisfies all four properties of a “coherent” risk measure as defined by Artzner et al. (1999): monotonicity, sub-additivity, positive homogeneity, and translation invariance. VaR famously fails sub-additivity, meaning combining two portfolios can sometimes show higher VaR than the sum of individual VaRs, which is economically nonsensical.
- Tail risk awareness — VaR tells you the door to the danger zone; CVaR tells you what is behind the door. A portfolio of deep out-of-the-money options might have a low VaR but an enormous CVaR, revealing hidden tail risk.
- Regulatory shift — The Basel Committee has moved toward Expected Shortfall (at the 97.5% level) as the primary risk measure under the Fundamental Review of the Trading Book (FRTB), replacing VaR for regulatory capital calculations.
- Better for optimization — Because CVaR is sub-additive and convex, it can be used in portfolio optimization problems. Minimizing CVaR is mathematically tractable, while minimizing VaR is not.
The formula used in this calculator: For a normal distribution, CVaR has a clean closed-form solution: CVaR = Portfolio × (σ × φ(z) / (1 − confidence) − μ), where φ(z) is the standard normal probability density function evaluated at the z-score, σ is the period volatility, and μ is the period expected return.
Despite being the industry standard, VaR has been heavily criticized since its adoption, particularly after the 2008 financial crisis exposed significant gaps in risk models. Understanding these limitations is critical before relying on any VaR number.
Key limitations:
- Says nothing about tail magnitude — VaR tells you the threshold of the worst 5% (or 1%) of outcomes, but not how bad those outcomes can be. Two portfolios can have identical VaR but vastly different tail behavior. This is the primary argument for using CVaR alongside VaR.
- Assumes normality (parametric method) — Real financial returns exhibit fat tails (leptokurtosis) and negative skewness. Extreme events like market crashes, flash crashes, or liquidity crises happen far more often than a normal distribution predicts. Parametric VaR systematically underestimates risk during turbulent periods.
- Backward-looking volatility — Using historical volatility assumes the recent past is a good guide to the near future. Volatility tends to cluster (GARCH effects), and periods of low volatility are often followed by sudden spikes. VaR measured during calm markets can give false comfort.
- Not sub-additive — VaR can paradoxically show that combining two portfolios increases total risk, which violates the basic principle of diversification. This mathematical deficiency makes VaR unsuitable for risk budgeting across business units.
- Ignores liquidity risk — VaR assumes you can sell positions at current market prices. During a crisis, bid-ask spreads widen and liquidity evaporates, meaning actual losses can be far worse than VaR suggests.
- False precision — A single VaR number can create a false sense of certainty. Nassim Taleb famously criticized VaR for providing “a precise number that is precisely wrong.”
How to mitigate these limitations: Use VaR as one tool in a broader risk management toolkit. Supplement it with CVaR (Expected Shortfall), stress testing, scenario analysis, and common-sense position limits. Never rely on a single risk metric to make decisions about portfolio risk.
VaR is embedded in virtually every aspect of institutional risk management. Here is how major banks and asset managers use it day-to-day:
Daily risk reporting:
- Trading desk limits — Each desk (e.g., equities, fixed income, FX) is assigned a daily VaR limit. Traders must keep their book within this limit. If a desk approaches or breaches its VaR limit, risk managers escalate and may require positions to be reduced.
- Firm-wide aggregation — Individual desk VaRs are aggregated into a firm-wide VaR number, accounting for correlations between desks. This goes to the CRO (Chief Risk Officer) and board-level risk committees daily.
- P&L attribution — Risk teams compare actual daily P&L to the VaR estimate. If actual losses frequently exceed VaR (called “VaR breaks”), it indicates the model is miscalibrated. Regulators track VaR break counts as a model quality metric.
Regulatory capital:
- Basel III requirements — Banks must hold capital equal to the maximum of (i) the previous day's VaR or (ii) the average VaR over the last 60 trading days, multiplied by a factor of at least 3. Banks with more VaR breaks face higher multipliers as a penalty.
- Stressed VaR — In addition to regular VaR, banks must calculate a “stressed VaR” using data from a period of significant market turmoil (e.g., 2008). This forces banks to hold capital against extreme scenarios.
Portfolio management:
- Risk budgeting — Allocate VaR budget across strategies based on expected return per unit of VaR (similar to Sharpe ratio but using VaR instead of standard deviation).
- Hedging decisions — If VaR spikes due to a concentrated position, managers may buy options or add hedges specifically to reduce VaR back within limits.
- Client reporting — Hedge funds and asset managers report VaR to investors as a transparency measure, often alongside maximum drawdown and Sharpe ratio.
The confidence level determines how extreme a scenario VaR measures. Choosing the right level depends on your purpose, risk tolerance, and how you plan to use the number.
Common choices and their use cases:
- 90% confidence — The most conservative (lowest) VaR estimate. Useful for routine risk monitoring where you want to track day-to-day volatility. You expect to breach this level about once every 10 trading days (roughly twice per month). Best for: general portfolio awareness and moderate risk tolerance.
- 95% confidence — The most common choice for daily risk management. You expect to breach this level about once every 20 trading days (roughly once per month). This is the industry default for most internal risk reporting and is a good balance between capturing meaningful tail risk and being practically useful. Best for: daily risk limits, client reporting, and general portfolio management.
- 99% confidence — The highest (most extreme) VaR. You expect to breach this level about once every 100 trading days (roughly 2-3 times per year). This is the level required by Basel III for regulatory capital calculations. Best for: regulatory reporting, stress testing, and capital adequacy assessments.
Practical guidelines:
- If you are a retail investor tracking your own portfolio, 95% is a sensible default. It tells you what a “bad month” looks like.
- If you are conservative or managing retirement savings, 99% gives you a more pessimistic view that accounts for less frequent but more severe drawdowns.
- Use the comparison table in this calculator to see all three levels side by side. The gap between 95% and 99% VaR reveals how “fat” the tail is under the normal distribution assumption.
Remember: VaR at any confidence level still says nothing about the worst-case scenario. A 99% VaR says 1% of outcomes are worse, but the worst of those 1% could be far more severe. That is why CVaR (Expected Shortfall) is reported alongside VaR in this calculator.
While VaR was designed for institutional use, retail investors can use it as a powerful reality check on their portfolio risk. Here are practical ways to incorporate VaR into your investment process:
1. Stress-test your risk tolerance:
- Calculate 95% VaR for your current portfolio. If the number makes you uncomfortable (e.g., a $15,000 one-day potential loss on a $200,000 portfolio), you may be taking more risk than you can stomach. This is a sign to reduce equity allocation or add hedges.
- Ask yourself: “Could I watch my portfolio drop by this amount in a single day without panic selling?” If the answer is no, your portfolio is too aggressive for your psychology.
2. Compare portfolio strategies:
- Calculate VaR for different asset allocations (e.g., 80/20 stocks/bonds vs. 60/40). The VaR numbers make the risk difference concrete and tangible, rather than abstract percentages.
- You can estimate portfolio volatility as a weighted average of asset class volatilities (simplified) or use the standard formula accounting for correlations for more accuracy.
3. Set drawdown expectations:
- Calculate monthly VaR (21-day horizon) to understand what a bad month looks like for your portfolio. This helps set realistic expectations and prevents emotional overreaction during normal market pullbacks.
- Keep in mind that VaR underestimates tail risk due to the normality assumption. Actual worst months can be 2-3 times worse than what parametric VaR suggests, especially during market crises.
4. Estimate volatility for your portfolio:
- All-stock portfolio (S&P 500): historical annualized volatility is roughly 15-20%.
- 60/40 balanced portfolio: roughly 10-12% annualized volatility.
- Growth/tech-heavy portfolio: 25-35% annualized volatility is common.
- Individual stocks: typically 25-60% annualized volatility, sometimes higher.
VaR is most valuable as a gut-check tool. It translates abstract risk percentages into concrete dollar amounts that hit differently. “20% volatility” feels theoretical; “you could lose $12,000 in a week” feels real.
The square root of time rule is the method used to convert VaR from one time horizon to another. It is based on a fundamental property of random walks: if daily returns are independent and identically distributed, the standard deviation of returns over T days equals the daily standard deviation multiplied by the square root of T.
The scaling formula:
- Period volatility = Annual volatility × √(T / 252), where T is the number of trading days and 252 is the standard number of trading days per year.
- Period expected return = Annual return × (T / 252). Note that returns scale linearly, not by the square root.
Common scaling factors:
- 1-day VaR to 10-day VaR: Multiply by √10 ≈ 3.16. This is the conversion used by Basel III, which requires 10-day VaR at 99% confidence.
- 1-day VaR to 1-month VaR (21 days): Multiply by √21 ≈ 4.58.
- 1-day VaR to 1-year VaR (252 days): Multiply by √252 ≈ 15.87.
Important caveats:
- Serial correlation — If returns are not independent (e.g., momentum or mean reversion effects), the square root of time rule over- or underestimates risk. Trending markets make longer-horizon VaR higher than the rule suggests; mean-reverting markets make it lower.
- Volatility clustering — Market volatility is not constant. High-volatility days tend to cluster together (GARCH effects). Over longer horizons, the assumption of constant volatility becomes less realistic.
- Practical accuracy — The square root rule works reasonably well for horizons up to about 10-20 trading days. For longer periods (quarterly or annual VaR), more sophisticated models that account for volatility dynamics and regime changes are preferred.
This calculator uses the square root of time rule for all horizon conversions, which is standard practice for parametric VaR and provides a good approximation for the horizons most investors care about (daily to monthly).
Know your risk. Now find stocks worth taking it for.