Every risk number starts with daily returns
Value at Risk, expected shortfall, volatility limits, stress tests: risk reports are full of numbers that sound complicated. Underneath, almost all of them start from the same raw material, a series of daily returns, and from one statistic, the volatility of those returns. If those two inputs are wrong, every risk number built on them is wrong too, no matter how sophisticated the model on top.
This free first lesson is for risk analysts, junior portfolio managers, finance and actuarial students, controllers who receive risk reports, and anyone preparing for a risk-management exam who wants to see the mechanics in Excel instead of in formulas on a slide. You will turn 60 days of a fund's net asset value (NAV) into simple and log returns, measure the daily volatility with STDEV.S and annualise it with the square-root-of-time rule.
The lab uses the fictional Alder Ridge Balanced Fund. Its prices are synthetic, simulated for practice, and do not describe any real fund or market period. This page explains measurement methods. It is educational material and not investment advice: it does not recommend any investment, and a volatility or VaR figure calculated from past data is a statistical description, not a promise or forecast of future gains or losses.
The core concepts: returns, log returns and volatility
A simple return measures how much a value changed from one day to the next: today's NAV ÷ yesterday's NAV − 1. If the NAV moves from 125.40 to 125.31, the return is 125.31 ÷ 125.40 − 1 = −0.0718%. Simple returns are what people mean when they say "the fund was down 0.07% today", and they aggregate neatly across positions: a portfolio's simple return is the weighted average of its holdings' simple returns.
A log return is the natural logarithm of the same ratio: LN(today/yesterday). For small daily moves it is almost identical to the simple return: −0.0718% versus −0.0718% on day 1. Its advantage is that log returns add up over time. The sum of all 60 log returns equals LN(last NAV ÷ first NAV) exactly. That additivity is why many models, including several VaR approaches, work with log returns. The two only drift apart on big days: on day 32 the simple return is −2.956% and the log return −3.000%.
Volatility, written σ (sigma), is the standard deviation of the returns. It measures how widely the daily returns scatter around their average. A fund whose returns usually sit between −0.2% and +0.2% has low volatility; one that regularly moves ±1.5% has high volatility. In Excel, use STDEV.S, the sample standard deviation, because 60 past days are a sample of the fund's behaviour, not the complete population. STDEV.P divides by n instead of n − 1 and slightly understates σ for a sample.
Finally, volatility scales with the square root of time, not with time itself. If daily returns are independent and come from the same distribution, the variance over t days is t times the daily variance, so the standard deviation is √t times the daily σ. With about 252 trading days in a year, annual σ ≈ daily σ × √252. Multiplying by 252 instead is one of the most common errors in practice, and it overstates annual volatility by a factor of almost 16.
Worked example: 60 days of Alder Ridge NAV
The table shows selected rows of the lab after tasks 1 and 2. Row 9 holds day 0, the starting NAV, so the first return appears in row 10. Column C holds simple returns, column D log returns.
| Day (A) | NAV $ (B) | Simple return (C) | Log return (D) | Formula in C | Formula in D |
|---|---|---|---|---|---|
| 0 | 125.40 | – | – | starting NAV, no return | |
| 1 | 125.31 | -0.0718% | -0.0718% | =B10/B9-1 | =LN(B10/B9) |
| 2 | 123.96 | -1.0773% | -1.0832% | =B11/B10-1 | =LN(B11/B10) |
| 3 | 124.26 | 0.2420% | 0.2417% | =B12/B11-1 | =LN(B12/B11) |
| … | … | … | … | same formulas, filled down | |
| 31 | 120.44 | 0.0997% | 0.0997% | =B40/B39-1 | =LN(B40/B39) |
| 32 | 116.88 | -2.9558% | -3.0004% | =B41/B40-1 | =LN(B41/B40) |
| … | … | … | … | ||
| 60 | 125.56 | 1.1765% | 1.1696% | =B69/B68-1 | =LN(B69/B68) |
Day 31, the cell the Coach checks, moves from 120.32 to 120.44: a simple return of 120.44 ÷ 120.32 − 1 = +0.0997%, and a log return of LN(120.44 ÷ 120.32) = +0.0997% as well. Day 32 is the largest move in the sample: the NAV falls from 120.44 to 116.88, a simple return of -2.96%.
With all 60 returns in place, the summary statistics follow in one formula each. The two highlighted rows are the answers to tasks 3 and 4 in the lab (cells B4 and B5); the other rows are useful checks you can add next to your sheet.
| Measure | Excel formula | Result |
|---|---|---|
| Daily volatility σ (B4) | =STDEV.S(C10:C69) | 0.7270% |
| Annualised volatility (B5) | =B4*SQRT(252) | 11.54% |
| σ with STDEV.P (population, not used here) | =STDEV.P(C10:C69) | 0.7209% |
| σ of log returns | =STDEV.S(D10:D69) | 0.7301% |
| Average daily return | =AVERAGE(C10:C69) | 0.0047% |
| Worst / best day | =MIN(C10:C69) / =MAX(C10:C69) | -2.96% / +1.31% |
| Sum of log returns = LN(last ÷ first) | =SUM(D10:D69) | 0.1275% |
So the synthetic fund has a daily volatility of about 0.73% and an annualised volatility of about 11.5%. The average daily return is close to zero (0.0047%), which is typical for short daily samples: the scatter of returns is far larger than their mean. That is one reason many short-horizon risk models simply assume a mean of zero.
The second chart shows why risk managers care about more than σ. Most days sit comfortably inside the ±1σ band, but day 32 is roughly 4.1 times σ below zero. If returns were exactly normally distributed, a four-sigma day would be very rare. Real return series often have "fat tails": more extreme days than a normal distribution suggests. Historical VaR (lesson 2) and expected shortfall (lesson 5) are partly a response to this problem.
The square-root-of-time rule in practice
Risk limits are often set for a 1-day horizon, regulatory or internal reports may use 10 days, and investors usually think in years. The same σ can be translated between horizons with √t, as long as the assumptions (independent, identically distributed days) are acceptable for the purpose.
| Horizon | Scaling factor | Excel | Volatility |
|---|---|---|---|
| 1 trading day | √1 = 1.000 | =$B$4*SQRT(1) | 0.73% |
| 10 trading days | √10 = 3.162 | =$B$4*SQRT(10) | 2.30% |
| 21 trading days | √21 = 4.583 | =$B$4*SQRT(21) | 3.33% |
| 252 trading days | √252 = 15.875 | =$B$4*SQRT(252) | 11.54% |
Note how slowly volatility grows: ten days is ten times as long as one day, but the 10-day volatility is only about 3.2 times the daily figure. Lesson 4 applies exactly this scaling to VaR and checks the results against desk limits. Keep in mind that the rule is an approximation. When returns are autocorrelated (a bad day tends to be followed by another bad day) or volatility changes over time, √t can understate risk over longer horizons.
Choosing the sample window
The lab uses 60 trading days, roughly three months. That choice matters more than many beginners expect. A short window reacts quickly: if markets become calmer or more turbulent, σ adjusts within weeks. The price is noise, because one unusual day such as day 32 has a large influence on a 60-day estimate. A long window, for example 250 or 500 days, is more stable but slower to recognise a change in conditions, and it may still contain calm or turbulent periods that no longer describe the present.
There is no universally correct window. Risk teams usually document their choice, apply it consistently and check how sensitive the results are to it. A simple test in Excel is to compute σ on the last 20, 60 and 120 days side by side, for example =STDEV.S(C50:C69) for the last 20 returns. If the three numbers differ a lot, the recent period is unusual, and any VaR built on a single window should be read with care. Some models go further and give recent days more weight than older ones, an approach known as exponentially weighted volatility, which is beyond this first lesson.
How to do it in Excel, step by step
- Put the dates or day numbers in column A and the NAV in column B, oldest first. Check the sort order before anything else: Data › Sort by date, oldest to newest. Reversed data flips the sign of every return.
- In C10 type
=B10/B9-1and press Enter. Double-click the fill handle to copy it down to C69. Format with Ctrl+Shift+% and add decimals with Home › Number › Increase Decimal. - In D10 type
=LN(B10/B9)and fill down to D69. - In B4 type
=STDEV.S(C10:C69). Tip: type=STDEV.S(, click C10, then press Ctrl+Shift+↓ to select to the last return, close the bracket and press Enter. - In B5 type
=B4*SQRT(252). If your data are weekly, use √52; for monthly data, √12. - Add the checks from the summary table:
=AVERAGE(C10:C69),=MIN(C10:C69),=MAX(C10:C69)and=COUNT(C10:C69). The count must be 60; a smaller number means a gap or a text value in the data. - Chart the returns: select C9:C69 and choose Insert › Charts › Clustered Column. One tall bar immediately reveals an outlier or a data error, such as a missing decimal point in a NAV.
- Optional: on Home › Conditional Formatting › Highlight Cells Rules › Less Than, enter
=-$B$4to colour every day that lost more than one σ.

Common mistakes and how to spot them
- Upside-down returns.
=B9/B10-1divides yesterday by today. The signs flip and the values are slightly off. Spot it: when the NAV rises, the return must be positive. - Forgetting the −1.
=B10/B9is the growth factor (0.9993), not the return. Spot it: all values cluster around 100% instead of around 0%. - Measuring the spread of prices instead of returns.
=STDEV.S(B9:B69)gives the spread of the NAV level in dollars, about 3, which says nothing about daily risk. Volatility is always calculated on returns. - STDEV.P for a sample. For past days drawn from an ongoing process, use STDEV.S. The difference is small with 60 days, but it is systematic.
- Scaling with t instead of √t.
=B4*252claims an annual volatility of more than 180% in this example. Volatility scales with the square root of time. - Mixing frequencies. Annualising weekly returns with √252 or daily returns with √12 produces nonsense. Match the factor to the data frequency.
- Including non-trading days. If weekends or holidays appear with a repeated NAV, they add zero returns and drag σ down. Use trading days only, or be consistent about calendar days.
Quick reference: functions and shortcuts used
| Function or shortcut | What it does here | Example |
|---|---|---|
LN | Natural logarithm, for log returns | =LN(B10/B9) |
STDEV.S | Sample standard deviation: the daily volatility | =STDEV.S(C10:C69) |
STDEV.P | Population standard deviation (divides by n instead of n − 1) | Only when the data are the entire population |
SQRT | Square root, for the square-root-of-time rule | =B4*SQRT(252) |
AVERAGE, MIN, MAX | Mean, worst and best daily return | =MIN(C10:C69) |
NORM.S.INV | z-score of the standard normal distribution (lesson 3) | =NORM.S.INV(0.99) = 2.326 |
Ctrl+Shift+↓ | Selects down to the last filled cell | Select C10:C69 in one move |
| Double-click the fill handle | Copies a formula down as far as the neighbouring column has data | Fill C10 to C69 |
Ctrl+Shift+% | Percent format | Format columns C and D |
Real-world uses
- Fund fact sheets and risk disclosures. Asset managers report annualised volatility of past returns as a standard risk indicator. The calculation is exactly the one in this lab, usually on a longer history.
- Risk limits on trading desks. A desk's daily volatility feeds its VaR, which is compared with a limit every day. Lesson 4 builds that limit check with a traffic-light status.
- Position sizing in risk budgets. Portfolio teams often express positions in "risk units": the same dollar amount carries more risk in a high-volatility asset than in a low-volatility one.
- Model validation and audit. Validators recompute volatility from raw prices to confirm that a risk system is using the right data, the right sample and the right annualisation factor.
- Corporate treasury. A company with currency or commodity exposure measures the daily volatility of those prices to size hedges and set reporting thresholds.
A glimpse ahead: from σ to Value at Risk
Once you have σ, a first parametric VaR is a single multiplication. As an illustration only, take a hypothetical position worth $1,000,000 in the synthetic fund. The 99% one-day parametric VaR under a normal assumption is =NORM.S.INV(0.99)*B4*1000000, about 2.326 × 0.727% × $1,000,000 ≈ $16,912. In words: under that model and that data, a one-day loss larger than this amount would be expected on roughly 1 day in 100. It is a statistical threshold, not a maximum loss, and the day-32 move in this very sample (about $29,558 on $1,000,000) shows how far beyond it a single day can go.
What you will build in the rest of this course
Lesson 1 is free. Lessons 2 to 20 are part of the full course, a one-time purchase of $9.90, and they take you from volatility to a complete risk toolkit in Excel.
Historical VaR: PERCENTILE.INC at 95 % and 99 %. You apply 250 past daily returns to today's portfolio, read the 95% and 99% VaR straight from the loss tail and count how often the 95% VaR was exceeded.
Parametric VaR: NORM.S.INV × σ × Value. You compute the normal-distribution VaR at 99% from σ and a z-score and compare it with the historical VaR of the same 250 days, so you see where the normal assumption holds and where it does not.
Scaling VaR to 10 Days (√t) & Checking Limits. You scale each desk's 1-day VaR to 10 days, compare it with desk limits, set a Breach/Warning/OK status and highlight the breaches with conditional formatting.
Expected Shortfall (CVaR): The Average Loss Beyond VaR. You measure how bad the bad days are: historical expected shortfall at 95% and 99% with AVERAGEIF, the number of tail days and the normal ES at 97.5%.
Portfolio VaR with Correlations: Covariance Matrix & MMULT. You build the covariance matrix of three positions, compute portfolio VaR with MMULT and SUMPRODUCT and measure the diversification benefit.
Backtesting VaR: Exceptions, Traffic Light & Kupiec Test. You compare 250 daily VaR forecasts with actual P&L, count exceptions, place the model in a traffic-light zone and run Kupiec's proportion-of-failures test.
Stress Scenarios & the Loss Distribution (Histogram). You run four hypothetical stress scenarios, compare the worst with the 10-day VaR, bin 250 days of P&L with COUNTIFS and chart the distribution as a histogram.
Summary
Risk measurement starts with clean daily returns. Simple returns (=B10/B9-1) describe the daily change, log returns (=LN(B10/B9)) add up neatly over time, and the volatility σ is their sample standard deviation, =STDEV.S(C10:C69). Volatility grows with the square root of time, so the annual figure is =B4*SQRT(252), not B4 × 252. In the synthetic Alder Ridge data that gives a daily σ of 0.73% and an annualised σ of 11.5%, and the outlier on day 32 is a first reminder that real risk often hides in the tails.
Now scroll up to the lab and do it yourself: fill in the simple and log returns, measure σ in B4 and annualise it in B5. The Coach checks each step and explains the classic mistakes, from upside-down returns to scaling with 252 instead of its square root.
Frequently asked questions
How do I calculate daily returns in Excel?
Divide today's price by yesterday's and subtract 1, for example =B10/B9-1, then fill the formula down. For log returns use =LN(B10/B9).
How do I calculate volatility in Excel?
Volatility is the standard deviation of the returns. For a sample of past days use =STDEV.S on the return column, for example =STDEV.S(C10:C69).
How do I annualise daily volatility?
Multiply the daily volatility by the square root of the number of trading days in a year, commonly =B4*SQRT(252). Use SQRT(52) for weekly and SQRT(12) for monthly data.
Should I use STDEV.S or STDEV.P for volatility?
Use STDEV.S for a sample of past returns, which is the normal case. STDEV.P assumes the data are the entire population and slightly understates volatility for a sample.
What is the difference between simple and log returns?
A simple return is today/yesterday - 1, a log return is LN(today/yesterday). They are nearly equal for small moves, but log returns add up over time while simple returns aggregate across positions.
Why does volatility scale with the square root of time?
If daily returns are independent with the same variance, the variance over t days is t times the daily variance, so the standard deviation grows with the square root of t. It is an approximation that weakens when returns are autocorrelated or volatility changes.
Keep going: Value at Risk & Expected Shortfall: Historical, Parametric & Stress Tests
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Historical VaR: PERCENTILE.INC at 95 % and 99 %
- Parametric VaR: NORM.S.INV × σ × Value
- Scaling VaR to 10 Days (√t) & Checking Limits
- Expected Shortfall (CVaR): The Average Loss Beyond VaR
- Portfolio VaR with Correlations: Covariance Matrix & MMULT
- Backtesting VaR: Exceptions, Traffic Light & Kupiec Test
- Stress Scenarios & the Loss Distribution (Histogram)
- Marginal & Component VaR: Who Uses the Risk Budget?
- Incremental VaR: What a New Trade Does to the Fund
- Rates VaR from DV01: Yield Volatility & a Futures Hedge
- Option Books: Delta-Normal vs Delta-Gamma VaR
- Fat Tails: Skewness, Kurtosis, Cornish–Fisher & Student-t VaR
- Rolling-Window VaR: When Volatility Changes (Line Chart)
- Data Quality Before VaR: Missing, Stale & Outlier Prices
- Liquidity-Adjusted VaR: Exit Horizons & Bid–Ask Costs
- Stressed VaR & a Simplified Capital Charge
- Do Exceptions Cluster? The Christoffersen Independence Test
- Reverse Stress Testing: Factor P&L, Breaking Point & Waterfall
- Final Project: Month-End Risk Dashboard