Geometric Mean Calculator
Find the multiplicative average of a set of positive numbers — the right average for growth rates, investment returns, ratios, and index numbers. The calculator reports the geometric mean alongside the arithmetic mean so you can see how far apart the two stories are, and it computes through logarithms for numerical stability.
When the Geometric Mean Is the Right Average
- Growth over time: annual investment returns, population growth, inflation — anything that compounds multiplicatively.
- Ratios and index numbers: price relatives, benchmark scores, normalized lab measurements.
- Values spanning several orders of magnitude: the geometric mean keeps one huge value from dominating the average the way the arithmetic mean lets it.
Entering Growth Rates Correctly
Convert percentage changes to growth factors before averaging: +10% becomes 1.10, −5% becomes 0.95, +20% becomes 1.20.
All inputs must be strictly positive — a zero or negative value has no logarithm, and a single zero would force any product to zero. The calculator flags such values instead of silently dropping them.
Enter numbers separated by commas, spaces, or line breaks
Related Calculators
Mean Absolute Deviation (MAD) Calculator
Calculate the average distance from the mean step by step, plus the median absolute deviation.
Harmonic Mean Calculator
Average rates and speeds correctly and see the AM ≥ GM ≥ HM ordering on your own data.
Standard Error Calculator
Compute the standard error of a mean or proportion from raw data or summary statistics.
The Formula, and Why This Tool Computes It in Logs
The textbook definition multiplies all n values together and takes the n-th root. This calculator uses the mathematically identical logarithmic form:
GM = (x₁ · x₂ · … · xₙ)^(1/n)
GM = exp( (ln x₁ + ln x₂ + … + ln xₙ) / n )
The two are equal because a root of a product is the exponential of an average of logarithms. Computationally, though, they behave very differently: multiplying hundreds of values can overflow to infinity or underflow to zero in floating-point arithmetic long before the final root is taken. Summing logarithms never leaves a safe numeric range, which is why serious statistical software — and this page — computes the geometric mean as exp(mean(ln x)).
Why Averaging Returns Arithmetically Overstates Growth
Investment returns compound: each year's result multiplies what the previous years left behind. Averaging the percentages arithmetically ignores that chaining, and the error always lands on the flattering side. The culprit is volatility — a 50% loss needs a 100% gain to break even, so up-and-down swings destroy more value than a simple average of the percentages suggests. Finance calls the gap between the two averages volatility drag.
The geometric mean of the growth factors is, by construction, the single constant rate that reproduces the actual ending value. That is exactly what a compound annual growth rate (CAGR) is. The more the returns bounce around, the further the arithmetic average drifts above this true compounded rate — for steady returns the two agree almost exactly.
The AM–GM Inequality
For any set of positive numbers, the arithmetic mean is greater than or equal to the geometric mean, with equality only when every value is identical:
(x₁ + x₂ + … + xₙ) / n ≥ (x₁ · x₂ · … · xₙ)^(1/n)
This is one of the oldest and most useful inequalities in mathematics, and the calculator lets you watch it in action: the reported gap is always zero or positive, and it grows with the spread of your data. Practically, the inequality is a guarantee that quoting an arithmetic average of growth rates never understates performance — which is precisely why fund marketing prefers it and financial regulators pay attention to which average is quoted. The mean, median, mode calculator covers the arithmetic side of the story, and the harmonic mean calculator completes the classical chain: AM ≥ GM ≥ HM.
Worked Example: Three Years of Investment Returns
A portfolio returns +10%, −5%, and +20% in three consecutive years. What was the average annual growth?
- Convert to growth factors: 1.10, 0.95, 1.20.
- Multiply: 1.10 × 0.95 × 1.20 = 1.2540 — the portfolio grew 25.4% in total.
- Geometric mean: 1.2540^(1/3) ≈ 1.0784, an average growth of 7.84% per year.
- Check: 1.0784³ ≈ 1.254, exactly the observed total growth.
- Arithmetic mean for comparison: (10 − 5 + 20) ÷ 3 = 8.33% per year.
The arithmetic average of 8.33% overstates reality: compounding at 8.33% for three years would produce 1.0833³ ≈ 1.2714, a 27.1% total gain the portfolio never achieved. The geometric mean of 7.84% is the only constant rate consistent with the money actually in the account — the down year costs more than the simple average admits.
Frequently Asked Questions
Why can't the geometric mean handle zero or negative numbers?
The geometric mean multiplies values, so a single zero forces the whole product - and the mean - to zero, while negative values can flip the product's sign and leave the n-th root undefined for even n. If you are averaging percentage changes, the fix is to work with growth factors: a 5% loss enters as 0.95, which is positive, rather than as -5.
How do I turn percentage returns into inputs for this calculator?
Add each percentage to 100% and divide by 100: +10% becomes 1.10, -5% becomes 0.95, +20% becomes 1.20. Calculate the geometric mean of those factors, then subtract 1 and multiply by 100 to read the answer as an average percentage. A result of 1.0784 means average growth of 7.84% per period.
When are the geometric and arithmetic means equal?
Only when every value in the data set is identical. The moment values differ at all, the AM-GM inequality forces the geometric mean strictly below the arithmetic mean, and the gap grows with the spread of the data. The calculator reports that gap so you can use it as a quick variability signal.
Is the geometric mean the same as CAGR?
Effectively yes. The compound annual growth rate is the geometric mean of the annual growth factors, expressed as a percentage. If you enter each year's growth factor into this calculator, the geometric mean minus 1 is the CAGR over that period.
Why does this page compute exp(mean(ln x)) instead of multiplying the values?
The two formulas are algebraically identical, but multiplying a long list of numbers can overflow or underflow floating-point arithmetic before the root is taken - a few hundred values near 1000 already exceed what a computer can store as a product. Summing logarithms stays in a safe range at any list length, so the log form gives the same answer without the numerical risk.