🔢 Geometric Mean Calculator – Multiplicative Average for Growth & Ratios
The geometric mean is the central measure of choice whenever values combine through multiplication rather than addition. Investment returns compound, population grows by a percentage each year, and pH values are logarithmic — in all these situations the geometric mean gives a more truthful "typical" value than the arithmetic mean.
What Is the Geometric Mean?
For n positive numbers x₁, x₂, … xₙ, the geometric mean is the nth root of their product:
GM = (x₁ × x₂ × … × xₙ)^(1/n)The calculator uses the mathematically equivalent log-domain formula to avoid overflow with large or very small datasets:
GM = exp( (1/n) × Σ ln(xᵢ) )For weighted inputs, each logarithm is scaled by its weight before averaging:
GM_w = exp( Σ(wᵢ × ln(xᵢ)) / Σwᵢ )When to Use the Geometric Mean
📈
Investment Returns
Compound annual growth rate (CAGR) is the geometric mean of yearly return factors. A portfolio that returns +50% then −50% has an arithmetic mean of 0% but a geometric mean of −13.4% — reflecting the actual loss.
🌱
Biological & Population Growth
Bacterial doubling times, species population changes, and cell-division rates all involve multiplicative scaling. The geometric mean of growth factors gives the average per-generation multiplier.
📊
Index & Ratio Data
Financial indices like the CPI sometimes use geometric means to prevent high-priced items from dominating. Price relatives, speed ratios, and normalized scores benefit from the same property.
🔬
Logarithmic Scales
Sound intensity (decibels), earthquake magnitude (Richter), and acidity (pH) are logarithmic. The geometric mean of values on such scales corresponds to the arithmetic mean of the underlying log values.
Geometric Mean vs. Arithmetic Mean
The AM–GM inequality guarantees that the arithmetic mean is always greater than or equal to the geometric mean, with equality only when all values are identical. The gap between the two grows with the variance of the dataset — this is precisely why volatile asset returns look better as arithmetic averages than as compounded (geometric) ones.
💡 Worked Example
Returns of +10%, −5%, +20% become factors 1.10 × 0.95 × 1.20 = 1.254. Geometric mean of factors ≈ 1.0798, so the equivalent constant rate ≈ 7.98% per period. The arithmetic mean of the raw returns is 8.33% — an overestimate because it ignores compounding drag.
Calculation Modes
Why Zero and Negative Values Are Excluded
A product containing zero collapses to zero, and any root of zero is zero — a useless average for the multiplicative context. Negative values produce a complex (imaginary) result for even roots; the geometric mean is only defined over the positive real numbers. If your dataset contains zeros or negatives, consider shifting values or switching to the arithmetic mean.
Log-Domain Computation for Numerical Stability
Multiplying hundreds of numbers directly risks floating-point overflow (Infinity) or underflow (0). By summing logarithms instead, the calculator remains accurate for datasets of any size. The precision slider (0–10 decimal places) controls how results are displayed, while internal calculations always use full IEEE 754 double-precision.
Tips for Accurate Results
- Paste values directly from a spreadsheet — commas, spaces, and newlines are all recognized.
- For percentage returns, use Growth Rate Chain mode rather than entering decimal factors manually.
- Enable Compare with Arithmetic Mean to see the impact of variance on the two averages.
- Turn on Show Steps to inspect individual log contributions and verify your dataset.
- Use the Copy Results button to paste a summary into reports or spreadsheets.