EWMA Volatility Calculator

Volatility estimators

EWMA volatility (% per day)1.18
EWMA variance (% squared)1.3845
Annualised volatility (%)18.68
Weight on latest return (%)6.0
How this was calculated
  1. Yesterday's variance: a daily volatility of 1.12% is a variance of 1.2544 percent squared, and the latest return of -1.85% squares to 3.4225.
  2. Recursion: 0.94 x 1.2544 + 0.06 x 3.4225 = 1.3845 percent squared - the RiskMetrics update with decay 0.94.
  3. Daily volatility: the square root of 1.3845 is 1.18% per day.
  4. EWMA volatility result: 1.18% per day, or 18.68% annualised at 252 trading days.

Volatility is not a property you observe; it is a forecast you update. The exponentially weighted moving average, made famous by J.P. Morgan's RiskMetrics in 1996, is the industry's simplest serious answer to how that update should work: keep yesterday's variance estimate, blend in the newest squared return, and let the weight between them - lambda - decide how long the estimate's memory is.

The recursion runs on variance, not on volatility itself. Yesterday's variance is multiplied by lambda, the latest return is squared and multiplied by 1 minus lambda, and the two are added; the square root at the end converts the updated variance back into a daily volatility. In the first worked example a prior volatility of 1.12 percent (a variance of 1.2544) meets a return of -1.85 percent and produces a variance of 1.3845 - a daily volatility of 1.18 percent, or 18.68 percent annualised.

This calculator performs exactly one step of that recursion and shows its anatomy: the updated variance, the annualised figure at 252 trading days, and the weight the latest return carried. Feed it the same three numbers your risk system uses and you can verify the system's arithmetic - or build the series yourself, one day at a time.

Worked examples

EWMA update on a down day

(0.94 · 1.12 · -1.85)

EWMA volatility (% per day)1.18
EWMA variance (% squared)1.3845
Annualised volatility (%)18.68
Weight on latest return (%)6.0

EWMA update in a calm regime (slow lambda)

(0.97 · 0.85 · 0.62)

EWMA volatility (% per day)0.84
EWMA variance (% squared)0.7124
Annualised volatility (%)13.40
Weight on latest return (%)3.0

EWMA update at the onset of stress

(0.9 · 2.4 · 3.1)

EWMA volatility (% per day)2.48
EWMA variance (% squared)6.1450
Annualised volatility (%)39.35
Weight on latest return (%)10.0

The RiskMetrics recursion

The formula's economy is its appeal. A rolling standard deviation over a fixed window gives every day in the window the same weight and then drops the oldest day entirely, so volatility can jump simply because a violent day fell out of the sample. The EWMA never drops anything outright: each past return's influence decays by a factor of lambda per day, fading smoothly instead of falling off a cliff. Yesterday's shock still matters next month, but a little less each day.

Because only the previous variance and the newest return enter the update, the whole history of the series is compressed into one number. That is what made the method operationally irresistible to risk departments: a portfolio's volatility forecast for tomorrow needs no database, just tonight's closing estimate and today's returns. The cost of that compression is real, though - two very different histories can arrive at the same variance, and the EWMA cannot tell them apart.

LambdaWeight on latest returnTypical use
0.946.0 percentDaily data, RiskMetrics standard
0.973.0 percentMonthly data, RiskMetrics standard
0.9010.0 percentFast-reacting short-horizon estimates

Choosing lambda: 0.94 daily, 0.97 monthly

Lambda is the whole personality of the estimator. At 0.94 the newest return takes a weight of 6.0 percent and the effective memory stretches over a few weeks of trading: responsive enough to register a regime change, smooth enough not to chase noise. The second worked example runs lambda at 0.97 on calmer inputs - prior volatility 0.85 percent, a return of 0.62 percent - and the estimate barely stirs, landing at 0.84 percent, because the new information only earned a weight of 3.0 percent.

Push lambda down and the estimate turns nervous. The third example uses 0.90 after a 3.10 percent day against a prior 2.40 percent volatility, and the update jumps to 2.48 percent daily, 39.35 percent annualised. Neither setting is wrong; they answer different questions. A margin desk that must react by tomorrow wants the fast setting. A pension fund rebalancing quarterly wants the slow one, and should be suspicious of any estimate that whipsaws its allocation.

  • Work in variance for the recursion and take the square root only at the end - averaging volatilities directly is a different, biased estimator.
  • Enter returns and the prior volatility in percent, as in the examples: 1.12 means 1.12 percent, not a decimal fraction.
  • Annualising multiplies the daily figure by the square root of 252; it assumes returns are independent across days, which crises violate.
  • The sign of the return is irrelevant to the update - a gain of 1.85 percent moves variance exactly as a loss of 1.85 percent does.
  • Seed a new series with the first weeks of squared returns averaged plainly; the seeding error decays at the same lambda rate.

Worked examples

Example 1: Decay factor lambda 0.94; Previous EWMA volatility 1.12; Latest return -1.85. EWMA volatility (% per day) = 1.18. Supporting values: EWMA variance (% squared) 1.3845; Annualised volatility (%) 18.68; Weight on latest return (%) 6.0. Yesterday's variance: a daily volatility of 1.12% is a variance of 1.2544 percent squared, and the latest return of -1.85% squares to 3.4225. Recursion: 0.94 x 1.2544 + 0.06 x 3.4225 = 1.3845 percent squared - the RiskMetrics update with decay 0.94. Daily volatility: the square root of 1.3845 is 1.18% per day. EWMA volatility result: 1.18% per day, or 18.68% annualised at 252 trading days.

Example 2: Decay factor lambda 0.97; Previous EWMA volatility 0.85; Latest return 0.62. EWMA volatility (% per day) = 0.84. Supporting values: EWMA variance (% squared) 0.7124; Annualised volatility (%) 13.40; Weight on latest return (%) 3.0. Yesterday's variance: a daily volatility of 0.85% is a variance of 0.7225 percent squared, and the latest return of 0.62% squares to 0.3844. Recursion: 0.97 x 0.7225 + 0.03 x 0.3844 = 0.7124 percent squared - the RiskMetrics update with decay 0.97. Daily volatility: the square root of 0.7124 is 0.84% per day. EWMA volatility result: 0.84% per day, or 13.40% annualised at 252 trading days.

Example 3: Decay factor lambda 0.9; Previous EWMA volatility 2.4; Latest return 3.1. EWMA volatility (% per day) = 2.48. Supporting values: EWMA variance (% squared) 6.1450; Annualised volatility (%) 39.35; Weight on latest return (%) 10.0. Yesterday's variance: a daily volatility of 2.40% is a variance of 5.7600 percent squared, and the latest return of 3.10% squares to 9.6100. Recursion: 0.90 x 5.7600 + 0.10 x 9.6100 = 6.1450 percent squared - the RiskMetrics update with decay 0.90. Daily volatility: the square root of 6.1450 is 2.48% per day. EWMA volatility result: 2.48% per day, or 39.35% annualised at 252 trading days.

EWMA vs rolling standard deviation

The honest comparison is about what each estimator believes. The rolling window believes the recent past is a uniform sample and the distant past is irrelevant; the EWMA believes relevance decays geometrically. Financial volatility clusters - calm and storm arrive in spells - and geometric decay matches that behaviour better, which is why the EWMA displaced windowed estimates in risk practice despite being the older, simpler idea.

Where the rolling window still wins is interpretability and audit: anyone can recount a window. The EWMA's defence is that its one-step recursion, shown in full in the worked examples, is just as auditable - the entire state is the single variance figure carried forward, and this page exposes every intermediate quantity in that step.

Sanity check: if the latest return is smaller in magnitude than the prior volatility, the estimate should fall; if larger, it should rise. A result moving the other way means an input was entered in decimals instead of percent.

EWMA in risk practice

Value-at-risk systems built on RiskMetrics scaled this daily variance by horizon and by a normal quantile, and much of that machinery still runs. The known weakness is the flip side of the method's smoothness: after a long calm, the estimate sits low precisely when a regime break is most dangerous, and the first violent days are absorbed at only 6.0 percent weight each. Practitioners compensate with stressed add-ons and by watching the estimate's own rate of change, not just its level.

For a single-asset check the workflow is simple. Take yesterday's published volatility, square it, apply the recursion with today's return, and compare against the figure your platform reports. Agreement to the second decimal, as in the worked examples, confirms the platform is running the textbook update with the lambda you think it is.

Reading the three examples

The examples are three market weathers. The first is ordinary turbulence: a down day larger than the going volatility lifts the estimate from 1.12 to 1.18 percent - noticeable, not alarming. The second is a calm regime under a slow lambda, where even the direction of the small move is downward, 0.85 to 0.84 percent, because the day's return was quieter than the prevailing estimate.

The third is the onset of stress: prior volatility already elevated at 2.40 percent, a 3.10 percent day on top, and a fast lambda that lets the estimate jump to 2.48 percent in one step. Annualised at 39.35 percent, that is the kind of number that changes margin requirements overnight - and the reason the choice of lambda is a risk-policy decision, not a clerical one.

One practical habit closes the method out: carry the variance, not the volatility, in your records. The recursion consumes a variance and produces one, and teams that store the square-rooted figure and square it again at each step accumulate rounding drift and, worse, occasionally feed a volatility into a variance slot after a system change. A single column of variances, square-rooted only at the moment of reporting, keeps a decade of daily updates exactly reproducible - and makes any day's step auditable against this page in seconds.

FAQs

What daily volatility does the first example produce?

1.18 percent per day: the updated variance of 1.3845 square-rooted, from a prior volatility of 1.12 percent and a latest return of -1.85 percent at lambda 0.94.

What variance does it update to?

1.3845 percent squared - 0.94 of the old variance of 1.2544 plus 0.06 of the new squared return of 3.4225.

What annualised volatility does the first example give?

18.68 percent: the daily 1.18 percent scaled by the square root of 252 trading days.

What does the calm second example read?

0.84 percent per day, down from 0.85 - at lambda 0.97 the quiet 0.62 percent return carried only a 3.0 percent weight.

What volatility does the stressed third example reach?

2.48 percent per day, or 39.35 percent annualised, after a 3.10 percent day hit a prior estimate of 2.40 percent with lambda at 0.90.

What variance sits behind that third reading?

6.1450 percent squared - the square of the 2.48 percent daily figure, and the state the next day's update would start from.

Sources

Related calculators

Garman-Klass Volatility Calculator
The Garman-Klass OHLC volatility estimator, annualised: Parkinson's range term corrected by the close-to-open drift for roughly seven times close-to-close efficiency.
Parkinson Volatility Calculator
Parkinson's high-low range volatility estimator, annualised: about five times as efficient as close-to-close because it uses the full traded range.
Yang-Zhang Volatility Calculator
The Yang-Zhang volatility estimator: overnight, open-to-close and Rogers-Satchell variance components combined with the sample-size weight k - the classic estimator that handles overnight jumps and drift.