Garman-Klass Volatility Calculator
Volatility estimators
- Full candle: Garman-Klass folds the open 102.00, high 105.30, low 101.85 and close 104.60 into one variance estimate instead of Parkinson's range alone.
- Computation: 0.5 x ln(H/L)^2 - (2 ln 2 - 1) x ln(C/O)^2 = 3.10 x 10^-4, a daily variance whose root is 1.76 %.
- Drift term: the close-to-open move of 2.55 % is subtracted with weight 0.3863, which is what buys the extra efficiency.
- Garman-Klass volatility result: 27.95 % annualised over 252 periods.
Parkinson showed in 1980 that the high-low range beats the closing price as a volatility witness. Later the same year, Garman and Klass asked the obvious follow-up: if the range helps, what does the whole candle know? Their estimator folds all four prices of the bar - open, high, low, close - into one variance: half the squared log range, minus a weighted squared log close-to-open return. The subtraction is the genius of it. The range alone overstates volatility on days when price simply travelled from open to close; the drift term claws that travel back, leaving the wiggle. In the original simulations the result was several times more efficient again than Parkinson.
Garman-Klass still shares the family blind spot - it assumes the bar opened where the last bar closed, so overnight jumps pass unseen - and it assumes away drift within its correction term's design limits. Within those limits it is the strongest of the simple OHLC estimators and a fixture of volatility research. Enter one bar's open, high, low and close plus the periods per year, and the calculator returns the annualised volatility with the daily figure, the close-to-open move and the log range, so each ingredient of the correction is visible.
The Garman-Klass paper is a model of estimator design worth reading beyond its formula: the authors defined a class of estimators (scale-invariant functions of the bar's price ratios), derived the variance of each candidate under Brownian motion, and selected the best - an optimisation over statistics rather than a guess at one. That the winning simple form involves the odd constant 2 ln 2 - 1 is the signature of the method: the number is a theorem, not a tuning knob, which is why the estimator has needed no revision as markets changed around it.
The Garman-Klass paper is a model of estimator design worth reading beyond its formula: the authors defined a class of estimators (scale-invariant functions of the bar's price ratios), derived the variance of each candidate under Brownian motion, and selected the best - an optimisation over statistics rather than a guess at one. That the winning simple form involves the odd constant 2 ln 2 - 1 is the signature of the method: the number is a theorem, not a tuning knob, which is why the estimator has needed no revision as markets changed around it.
Worked examples
The full candle behind the Parkinson range
(102 · 105.3 · 101.85 · 104.6 · 252)
| Annualised volatility | 27.95 % |
| Daily volatility | 1.76 % |
| Close/open move | 2.55 % |
| Log range ln(H/L) | 0.0333 |
A candle that travelled down
(57.8 · 58.4 · 57.15 · 57.45 · 252)
| Annualised volatility | 23.54 % |
| Daily volatility | 1.48 % |
| Close/open move | -0.61 % |
| Log range ln(H/L) | 0.0216 |
A crypto candle at 106 percent
(64000 · 67200 · 61800 · 66100 · 365)
| Annualised volatility | 106.48 % |
| Daily volatility | 5.57 % |
| Close/open move | 3.28 % |
| Log range ln(H/L) | 0.0838 |
From range to full candle
The formula's two terms deserve separate readings. The first, 0.5 x ln(H/L)^2, is a rescaled Parkinson-style range term - the 0.5 calibrates it against the Brownian range distribution. The second, (2 ln 2 - 1) x ln(C/O)^2 with its coefficient of about 0.3863, prices the bar's net travel. A bar that ranged widely but closed where it opened keeps nearly all of the first term; a bar that marched in one direction surrenders much of it. That discrimination - wiggle versus travel - is information the range alone cannot supply.
The first worked example shows the correction at work: the candle ranges 101.85 to 105.30 (the same range as the Parkinson example on this site) but also closes 2.55 percent above its open. Garman-Klass returns 27.95 percent annualised where Parkinson returned 31.76 - the difference is the drift term doing exactly its designed job on a trending bar.
- Variance = 0.5 ln(H/L)^2 - (2 ln 2 - 1) ln(C/O)^2.
- The close-to-open term removes the bar's net travel from the range.
- Still blind to overnight jumps - that repair is Yang-Zhang's.
The drift correction term
Why 2 ln 2 - 1? Garman and Klass searched the family of scale-invariant estimators - combinations of the bar's price ratios that do not depend on the price level - for the member with minimum variance under Brownian assumptions. The coefficient falls out of that optimisation; it is not tuned to data. The same paper's 'best' estimator is a longer expression involving the open's position within the range, but the simple two-term form captured most of the gain and is the one the industry kept.
Honesty conditions mirror Parkinson's: continuous sampling within the bar, no jump at the open. Discrete trading shaves the range slightly; a violent intraday trend beyond the model's mild-drift design can make the correction overshoot, occasionally even producing a negative variance on pathological bars - a known quirk that software guards by flooring at zero, and a sign that the bar in question broke the estimator's assumptions rather than arithmetic.
| Bar shape | Range term | Drift term | GK behaviour |
|---|---|---|---|
| Wide range, closes at open | Large | Near zero | High volatility - genuine wiggle |
| Wide range, strong close move | Large | Large | Discounted - much was travel |
| Narrow range, any close | Small | Small | Low volatility |
| Gap open, quiet bar | Small | Small | Understates - the jump is invisible |
Worked examples
The opening example sets 27.95 % as the headline annualised volatility, with supporting values Daily volatility 1.76 %; Close/open move 2.55 %; Log range ln(H/L) 0.0333.
Compare it mentally with the Parkinson figure for the same range: the gap between them is the drift correction, priced and visible.
The opening example sets 23.54 % as the headline annualised volatility, with supporting values Daily volatility 1.48 %; Close/open move -0.61 %; Log range ln(H/L) 0.0216.
Compare it mentally with the Parkinson figure for the same range: the gap between them is the drift correction, priced and visible.
The opening example sets 106.48 % as the headline annualised volatility, with supporting values Daily volatility 5.57 %; Close/open move 3.28 %; Log range ln(H/L) 0.0838.
Compare it mentally with the Parkinson figure for the same range: the gap between them is the drift correction, priced and visible.
Garman-Klass vs Parkinson
Given identical bars, Garman-Klass is never less informed: it uses a superset of Parkinson's data. The efficiency gain in the original paper's simulations ran to roughly seven or eight times close-to-close, against Parkinson's five. In practice the choice is about the open: if your data source's opens are trustworthy (exchange-traded instruments, yes; some crypto feeds, arguable), Garman-Klass is the better default. If opens are stale or synthetic, Parkinson's indifference to them is a virtue.
Both estimators feed naturally into the same workflows - averaging variances across bars, annualising by root-time - and both are best read as members of a family whose head is Yang-Zhang, which adds the overnight variance and a drift-robust intraday term. The third worked example, a crypto bar annualising to 106.48 percent, shows the family resemblance: same range as its Parkinson twin, refined by the candle's internal story.
Garman-Klass in volatility research
Empirical studies benchmarking estimators against high-frequency 'realised' volatility - the closest thing to ground truth - consistently place Garman-Klass near the top of the OHLC family on liquid instruments, and the estimator has become a standard feature in volatility datasets and forecasting horse races. Its known empirical weakness mirrors its theory: on assets with pronounced opening jumps (single stocks around earnings), the overnight blindness shows up as a systematic shortfall against realised measures, and researchers pair it with an overnight correction or step up to Yang-Zhang.
A practical refinement worth knowing: the estimator is usually applied bar-by-bar and averaged in variance form across the window, exactly as with Parkinson, and the average inherits the efficiency advantage. Computing it from a single bar - this page's mode - is the audit and intuition-building version: the right way to learn what the estimator does to a candle you can see, before trusting it across ten thousand candles you cannot.
Vendor-data warning: Garman-Klass trusts the open completely. Some data feeds synthesise opens (setting them to the prior close) for illiquid instruments, which silently converts the estimator into a rescaled Parkinson with a wrong constant. Verify that your opens are traded opens before quoting GK figures.
Garman-Klass in volatility research
Empirical studies benchmarking estimators against high-frequency 'realised' volatility - the closest thing to ground truth - consistently place Garman-Klass near the top of the OHLC family on liquid instruments, and the estimator has become a standard feature in volatility datasets and forecasting horse races. Its known empirical weakness mirrors its theory: on assets with pronounced opening jumps (single stocks around earnings), the overnight blindness shows up as a systematic shortfall against realised measures, and researchers pair it with an overnight correction or step up to Yang-Zhang.
A practical refinement worth knowing: the estimator is usually applied bar-by-bar and averaged in variance form across the window, exactly as with Parkinson, and the average inherits the efficiency advantage. Computing it from a single bar - this page's mode - is the audit and intuition-building version: the right way to learn what the estimator does to a candle you can see, before trusting it across ten thousand candles you cannot.
Vendor-data warning: Garman-Klass trusts the open completely. Some data feeds synthesise opens (setting them to the prior close) for illiquid instruments, which silently converts the estimator into a rescaled Parkinson with a wrong constant. Verify that your opens are traded opens before quoting GK figures.
FAQs
What annualised volatility does the first example give?
27.95 percent, from the candle 102.00 / 105.30 / 101.85 / 104.60. The daily volatility is 1.76 percent over 252 periods.
Why is it lower than Parkinson on the same range?
Because this candle travelled: it closed 2.55 percent above its open. Garman-Klass subtracts (2 ln 2 - 1) times the squared log close-to-open return, removing the travel and leaving the wiggle - 27.95 percent against Parkinson's 31.76 on the identical range.
What is the coefficient 2 ln 2 - 1?
About 0.3863, the weight Garman and Klass's minimum-variance optimisation assigns to the squared drift term. It is derived, not fitted - it falls out of the Brownian mathematics of the bar.
Does Garman-Klass handle overnight gaps?
No. It assumes the open continues the previous close, so a jump between sessions is invisible to it - the same blind spot as Parkinson. Yang-Zhang was designed in 2000 to repair exactly this.
What log range does the first candle show?
0.0333 - ln(105.30/101.85). It is the same range input as the Parkinson example, which makes the two pages a clean controlled comparison of the drift correction.
Can the Garman-Klass variance be negative?
On extreme one-way bars, yes - the drift term can exceed the range term. That signals a bar outside the estimator's assumptions. Practice floors the variance at zero and handles such bars separately.