Geometric Mean Calculator

Enter a set of positive numbers separated by commas into the Values field and the Geometric Mean Calculator returns the geometric mean — the nth root of the product of your values. You also get the count, product of values, and a step-by-step breakdown showing exactly how the result was reached.

Enter positive numbers separated by commas, spaces, or new lines. All values must be greater than zero.

Results

Geometric Mean

--

Count of Values (n)

--

Product of Values

--

Arithmetic Mean (for comparison)

--

Minimum Value

--

Maximum Value

--

Your Values vs. Geometric Mean

Results Table

Frequently Asked Questions

What is geometric mean and when should I use it?

The geometric mean is the nth root of the product of n positive values. It is the preferred average when comparing quantities that grow multiplicatively — such as investment returns, population growth rates, or index ratios — because it accounts for compounding in a way the arithmetic mean does not. Use it whenever you are averaging percentages, ratios, or rates of change.

How is geometric mean different from arithmetic mean?

The arithmetic mean adds all values and divides by the count. The geometric mean multiplies all values and takes the nth root. The geometric mean is always less than or equal to the arithmetic mean (they are equal only when all values are identical). For skewed data or multiplicative processes, the geometric mean gives a more representative central value.

Can the geometric mean handle zero or negative numbers?

No — the geometric mean is only defined for strictly positive numbers. A zero value makes the entire product zero, which gives a meaningless result. Negative values produce complex (imaginary) numbers when an even root is taken. If your data contains zeros or negatives, consider a substitution method or a different measure of central tendency.

How do I calculate the geometric mean manually?

Multiply all of your values together to get the product, then take the nth root of that product, where n is the count of values. For example, for the values 2, 8, and 32: the product is 512, and the cube root of 512 is 8. Equivalently, you can take the arithmetic mean of the natural logarithms of the values and then raise e to that average.

What are real-world applications of the geometric mean?

Geometric mean is widely used in finance to calculate average investment returns over multiple periods, in environmental science to evaluate bacterial counts in water quality assessments, in image processing for combining exposure values, and in economics to construct index numbers. Any domain involving ratios or multiplicative growth benefits from the geometric mean.

How does geometric mean differ from harmonic mean?

The harmonic mean is the reciprocal of the arithmetic mean of the reciprocals of the values — it is most useful when averaging rates (e.g., speeds). The geometric mean multiplies values and takes the nth root — best for averaging ratios and growth rates. In general, harmonic mean ≤ geometric mean ≤ arithmetic mean for any set of positive numbers.

Is there a limit to how many numbers I can enter?

This calculator handles any reasonable number of values. For very large datasets, precision may be affected by floating-point arithmetic. To mitigate this, the calculator uses the logarithm method internally — summing logarithms and exponentiating — which keeps results accurate even with many large numbers.

How do I calculate geometric mean in a spreadsheet?

In Microsoft Excel or Google Sheets, use the built-in function =GEOMEAN(A1:A10), replacing the range with your actual data range. This function automatically applies the logarithm method for numerical stability. Alternatively, you can use =EXP(AVERAGE(LN(A1:A10))), which is equivalent and sometimes more flexible for conditional calculations.

More Math Tools