Value at Risk & Expected Shortfall Calculator
How much a portfolio could lose on a bad day, and which holding drives it.
Try before you buy.
- Free preview: the one-day 95% value at risk in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden.
- Locked until you unlock it: download and copy.
- Unlock: Premium pass, ₹799 for 30 days, a one-time payment that never renews.
Ways to unlock shows how to get the full result.
Printing this result is locked in the free preview.
Daily gains and losses of your holdings, with the VaR and ES
Three methods side by side
Which holding the risk comes from
Stress tests
How this was calculated
Locked in the free preview. Opens the ways to unlock this result.
Locked in the free preview. Batch runs unlock with a pass.
Locked in the free preview. Query results unlock with a pass.
For education only, not investment advice: no tool here tells you what to buy, sell or hold. Results use only the figures you enter, the files you load (read in your browser, never uploaded) and the published rules each page names. Check them against your broker's or exchange's own figures, and consider a licensed or registered adviser for advice on your situation.
About the Value at Risk & Expected Shortfall Calculator
Value at risk (VaR) is the loss a portfolio would not exceed on, say, 95 or 99 days out of 100, judging by how its holdings moved in the past; expected shortfall (ES, or CVaR) is the average loss on the days beyond it. This calculator works out both for your own holdings from your own price history, three ways: historical (the losses your holdings would have had on each past day), parametric (a normal distribution with the volatility and correlations of your data) and Cornish–Fisher (the normal one corrected for skew and fat tails).
It also shows which holding adds most to the risk (component VaR), the worst stretch of days in your data, your own stress scenarios — a fall you choose for each holding — and a histogram of the daily gains and losses with the VaR and ES marked. Load prices for each holding (or try the sample), enter what each holding is worth now, and choose the confidence and the number of days.
It works for any market and currency. Your files are read in your browser and never uploaded.
How to use it
- Load the price history of your holdings — one file with a date column and a price column for each, or one file per holding — or try the sample of three fictional DEMO assets.
- Enter what each holding is worth now (below zero for a short position).
- Choose the confidence level, the number of days and the method; add your own stress scenarios if you want them.
- Read the one-day 95% VaR, the VaR and expected shortfall at your level and horizon, each holding’s share, the stress table and the histogram.
- Copy the summary or download the table of holdings as CSV — with a pass, or after unlocking this result.
Examples
Normal distribution, mean 0
VaR 99% one day 27,916.17; ten days 88,278.69 · ES 99% 31,982.57 · VaR 95% 19,738.24 · ES 95% 24,752.55
39 daily returns; 95%
5th percentile −2.9058% → VaR 95% 29,057.76 · ES 95% 29,692.18 (the mean of the two worst days)
600 in shares and 400 in bonds; shares −20%, bonds +2%
Loss of 112: −120 on the shares, +8 on the bonds
Common uses
- Put a figure on how much a portfolio could lose in a day or a week before deciding how much risk to carry.
- See which holding drives most of the risk, and how a hedge or a short position changes it.
- Test your portfolio against a scenario of your own: a 20% fall in shares, a jump in rates, a currency move.
- Compare historical, normal and fat-tailed estimates of the same risk.
The formulas
- Parametric VaR = z_α × σ_P × √(days), where σ_P is the daily standard deviation of the portfolio’s value, worked out from the variances and correlations of your holdings’ returns, and z_α the normal quantile (1.645 at 95%, 2.326 at 99%) — the method of the RiskMetrics Technical Document. Normal ES = σ_P × φ(z_α) ÷ (1 − α) × √(days).
- Historical VaR = minus the (1 − α) percentile of the portfolio’s daily gains and losses (with today’s holdings on each past day); historical ES = minus the mean of the days at or beyond it.
- Cornish–Fisher VaR replaces z_α with z + (z² − 1)S/6 + (z³ − 3z)K/24 − (2z³ − 5z)S²/36, using the skewness S and excess kurtosis K of your data.
- Component VaR of a holding = its value × (Σv)ᵢ ÷ σ_P × z_α × √(days) (less its value × its average daily return × days, when you subtract the average): the components add up to the portfolio’s parametric VaR, and a hedge has a negative one. Component ES splits the historical ES the same way: each holding’s average loss on the days beyond the VaR.
- Expected shortfall at 97.5% is the level the Basel market-risk standard asks banks to use.
Reading the results
- A one-day 95% VaR of 20,000 means that on about 1 day in 20 of your data’s kind, the loss was larger than 20,000; it says nothing about how much larger. The expected shortfall says that: the average loss on those days.
- The days worse than the VaR compare your data with the level: at 95%, about 5 in 100 days are expected beyond it.
- Component VaR shows where the risk comes from: a holding can be a small share of the money and a large share of the risk.
- The worst stretch and your scenarios describe losses beyond the statistics: a VaR is not the largest possible loss.
What it leaves out
Everything not in your price history: events that did not happen in it, gaps between trading days, the cost of selling in a falling market and changes in your holdings. Several-day figures scale one-day ones by the square root of time, which assumes independent days with the same spread. Holdings in other currencies should be entered at their value in one currency; their exchange-rate risk counts only if your price files are in that currency.
Limitations
- It needs a price history of each holding on common dates; the longer the history, the steadier the historical figures.
- One currency: enter every holding at its value in the same currency.
- Linear holdings only: options and other non-linear positions need their own model.
- Hypothetical estimates from past data: not a forecast and not a limit on losses.
Privacy
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
What do I get without a pass?
Without a pass, Value at Risk & Expected Shortfall Calculator shows the one-day 95% value at risk in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden. Until you unlock it, the result can’t be downloaded or copied. A Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.
What is the difference between VaR and expected shortfall?
VaR is a threshold: the loss that was exceeded on only 5% (or 1%) of days. Expected shortfall is what happened beyond it: the average loss on those days. With the DEMO-40 share, the 95% VaR is 29,057.76 and the expected shortfall 29,692.18 on 1,000,000.
Which method should I use?
Historical uses your data’s own days and keeps their real shape, but needs a long history. Parametric is smooth and works with less data, but assumes a normal distribution, which understates fat tails. Cornish–Fisher corrects the normal one for skew and fat tails. The tool shows all three side by side.
How is a 10-day VaR worked out?
The one-day figure × √10. It assumes the days are independent with the same spread; trends and volatility clusters can make real ten-day losses larger.
Can I include a short position?
Yes: enter its value below zero. Its returns then count against you when the price rises, and its component VaR is usually negative, showing that it offsets part of the risk.
Are my files uploaded?
No. They are read in your browser, and nothing you enter or load is sent to our server.