Geometric Mean Calculator
Compute the geometric mean of positive numbers and compare it to the arithmetic and harmonic mean. Built for growth rates, ratios, and returns.
Geometric Mean Examples
| Values | Product | Geometric Mean |
|---|---|---|
| 2, 8 | 16 | 4 |
| 1, 4, 16 | 64 | 4 |
| 3, 12, 48 | 1,728 | 12 |
| 4, 9 | 36 | 6 |
| 1, 1, 1, 1 | 1 | 1 |
Frequently Asked Questions about the Geometric Mean Calculator
What is the geometric mean?
The geometric mean is the nth root of the product of n positive numbers. For 2, 8: it is sqrt(2 x 8) = 4. It is the right average for growth rates, ratios, and anything that compounds: think investment returns over multiple years.
When should I use geometric mean instead of arithmetic mean?
Use it when values compound multiplicatively. A portfolio that gains 100% then loses 50% has an arithmetic mean return of +25% (which is misleading, you broke even) but a geometric mean return of 0%, which is the real story.
Can I include negative numbers or zero?
No. The geometric mean is only defined for positive numbers because it involves an nth root of a product. A zero makes the product zero, and negative values make even roots undefined. The calculator rejects non-positive inputs.
How does the calculator avoid overflow with many values?
Instead of multiplying every value, it computes exp(mean(ln(values))). This avoids many intermediate overflow and underflow failures, but it does not remove floating-point rounding or guarantee that the final exponential is representable. The calculator accepts up to 1,000 positive values.
What is the relationship to arithmetic and harmonic mean?
For any list of positive numbers, harmonic mean <= geometric mean <= arithmetic mean. They are equal only when every value is the same. The calculator shows all three so you can see the gap, which itself is a useful signal of how spread out the values are.
Related Calculators
More calculators in "Math"
Voltage Divider CalculatorWavelength CalculatorTerminal Velocity CalculatorSummation CalculatorCentroid CalculatorRegression Calculator
See all 202 calculators in "Math"