Finance & Economics · Quantitative Trading & Crypto · Portfolio Risk
Value at Risk (VaR) Calculator
Calculates the parametric Value at Risk (VaR) of a portfolio given portfolio value, expected return, volatility, confidence level, and holding period.
Calculator
Formula
VaR is the maximum expected loss over a holding period at a given confidence level. P is the portfolio value, μ is the daily expected return, σ is the daily portfolio volatility (standard deviation of returns), t is the holding period in days, and z_α is the z-score corresponding to the chosen confidence level (e.g. 1.645 for 95%, 2.326 for 99%). The result gives the dollar loss that will not be exceeded with probability α.
Source: J.P. Morgan RiskMetrics Technical Document (1996); Basel Committee on Banking Supervision, 'Supervisory Framework for the Use of Backtesting in Conjunction with the Internal Models Approach to Market Risk Capital Requirements' (1996).
How it works
What is Value at Risk? Value at Risk answers a precise probabilistic question: "What is the maximum loss my portfolio can sustain over the next N days, such that this loss is not exceeded X% of the time?" For example, a 1-day 95% VaR of $50,000 means that on any given day, there is only a 5% chance the portfolio will lose more than $50,000. This makes VaR an intuitive loss threshold rather than an average or worst-case figure, which is why it has become the standard language of risk across banks, hedge funds, and asset managers globally.
The Parametric (Variance-Covariance) Method: This calculator uses the parametric VaR method, also called the variance-covariance approach. It assumes portfolio returns follow a normal distribution, which allows risk to be fully characterised by two parameters: the mean (μ) and standard deviation (σ). The formula is VaR = (μ·t − z_α · σ · √t) · P, where P is the portfolio value, μ is the expected daily return expressed as a decimal, σ is the daily volatility (standard deviation of daily returns), t is the holding period in days, z_α is the critical z-score for the chosen confidence level (1.645 for 95%, 2.326 for 99%), and the holding period scaling uses the square-root-of-time rule — a standard approximation derived from the random walk assumption. The result is multiplied by negative one to express VaR as a positive loss figure, consistent with industry convention.
Practical Context and Regulatory Use: Under the Basel II and Basel III accords, banks are required to compute a 10-day, 99% VaR daily and hold regulatory capital as a multiple of this figure. The choice of confidence level matters greatly: a 99% VaR is more conservative than a 95% VaR and captures more extreme scenarios. In practice, risk managers often compute VaR at multiple confidence levels and time horizons simultaneously. VaR is also used for position limits, stop-loss calibration, margin requirements on derivatives, and performance attribution. When combined with Expected Shortfall (CVaR), it provides a more complete picture of tail risk that goes beyond the VaR threshold.
Worked example
Consider a portfolio with the following characteristics:
- Portfolio Value (P): $1,000,000
- Expected Daily Return (μ): 0.05% (0.0005 as a decimal)
- Daily Volatility (σ): 1.2% (0.012 as a decimal)
- Confidence Level: 95% (z = 1.645)
- Holding Period (t): 10 days
Step 1 — Scale the mean over the holding period: μ · t = 0.0005 × 10 = 0.005 (0.5% expected gain over 10 days)
Step 2 — Scale volatility over the holding period using the square-root-of-time rule: σ · √t = 0.012 × √10 = 0.012 × 3.1623 = 0.037947 (approximately 3.795%)
Step 3 — Compute the loss threshold as a percentage: z_α · σ · √t − μ · t = (1.645 × 0.037947) − 0.005 = 0.062423 − 0.005 = 0.057423 (5.742%)
Step 4 — Convert to dollar loss: VaR = 0.057423 × $1,000,000 = $57,423
Interpretation: There is a 5% probability that this portfolio will lose more than $57,423 over the next 10 trading days. Equivalently, 95% of the time, the portfolio loss over 10 days will be less than this amount. The worst-case portfolio value at this confidence level would be $1,000,000 − $57,423 = $942,577.
Limitations & notes
Normality assumption: The parametric VaR method assumes returns are normally distributed. In reality, financial returns exhibit fat tails (leptokurtosis) and negative skewness, meaning extreme losses occur more frequently than the normal distribution predicts. This was starkly illustrated during the 2008 financial crisis when observed losses far exceeded parametric VaR estimates. For portfolios with significant exposure to options or illiquid assets, historical simulation or Monte Carlo VaR are more appropriate.
Square-root-of-time scaling: Scaling daily VaR to a multi-day horizon using √t assumes returns are independently and identically distributed (i.i.d.), which breaks down during market stress when autocorrelation and volatility clustering are present. For horizons beyond a few days, this approximation introduces meaningful error.
VaR does not measure tail losses: VaR only tells you the threshold loss at a confidence level — it says nothing about how bad losses can be beyond that threshold. A 99% VaR of $100,000 is consistent with losses of $101,000 or $10,000,000 in the remaining 1% of scenarios. Expected Shortfall (ES or CVaR), which averages losses beyond the VaR threshold, is a more complete tail risk measure and is now preferred by the Basel Committee under FRTB.
Single-asset approximation: This calculator computes VaR for a single portfolio treated as one asset with aggregate volatility. For multi-asset portfolios, full VaR requires a covariance matrix across all positions. Diversification benefits are captured only implicitly through the aggregate portfolio volatility input.
Frequently asked questions
What is the difference between 95% VaR and 99% VaR?
A 95% VaR uses a z-score of 1.645 and corresponds to a 5% probability of exceeding the loss threshold, while a 99% VaR uses z = 2.326 and corresponds to a 1% exceedance probability. The 99% VaR will always be larger in absolute terms — for the same portfolio, switching from 95% to 99% confidence increases the VaR by roughly 41% (2.326 / 1.645 ≈ 1.41), assuming zero expected return. Regulators typically require 99% VaR for internal models under Basel rules.
How do I convert daily VaR to a 10-day VaR?
Under the square-root-of-time rule, you scale daily VaR by √10 ≈ 3.162. So a daily 99% VaR of $10,000 becomes approximately $31,620 over 10 days. This is the method mandated by the Basel Committee for internal models approaches. However, this approximation assumes i.i.d. returns and no mean reversion or trending, which may not hold in practice over longer horizons.
What does a 10-day 99% VaR of $50,000 actually mean?
It means that over the next 10 trading days, there is a 99% probability that the portfolio will not lose more than $50,000. Equivalently, in only 1% of 10-day periods — roughly 2-3 times per year — would you expect losses to exceed this figure. It does not say anything about how large losses could be in that 1% of cases, which is why VaR is often supplemented with Expected Shortfall.
What are the three main methods for calculating VaR?
The three standard approaches are: (1) Parametric VaR (this calculator), which assumes normal returns and uses mean and standard deviation analytically; (2) Historical Simulation VaR, which uses the actual distribution of past returns to estimate the loss percentile without distributional assumptions; and (3) Monte Carlo VaR, which simulates thousands of random return paths from a specified model to build a full loss distribution. Historical and Monte Carlo methods better capture fat tails and non-linear instruments like options, but require significantly more data and computation.
Is VaR sufficient for regulatory capital requirements under Basel III?
VaR was the primary market risk metric under Basel II and Basel 2.5, requiring banks to hold capital based on a 10-day, 99% VaR multiplied by a factor of at least 3. However, the Basel Committee's Fundamental Review of the Trading Book (FRTB), effective from January 2023, replaces VaR with Expected Shortfall (ES) at a 97.5% confidence level for internal models. ES better captures tail risk because it averages losses beyond the threshold rather than simply identifying it. Many institutions now compute both metrics in parallel.
Last updated: 2025-01-15 · Formula verified against primary sources.