Geometric Mean Calculator

Enter a set of numbers separated by commas and get the geometric mean calculated instantly. The Geometric Mean Calculator accepts your data values in the input box, then returns the geometric mean, count of values, and product of values — along with a step-by-step breakdown. Works with positive numbers and handles proportional growth data like investment returns and growth rates.

Enter positive numbers separated by commas, spaces, or new lines. Negative numbers are supported using the signed product method.

Results

Geometric Mean

--

Count of Values (n)

--

Arithmetic Mean (for comparison)

--

Product of Values

--

Minimum Value

--

Maximum Value

--

Input Values vs. Geometric Mean

Results Table

Frequently Asked Questions

What is geometric mean and when should I use it?

The geometric mean is the n-th root of the product of n numbers. You should use it when working with values that are multiplied together rather than added — such as growth rates, investment returns, ratios, or percentages. It is the most appropriate average when data spans several orders of magnitude or represents proportional change over time.

How do you calculate the geometric mean?

Multiply all the values in your dataset together, then take the n-th root of that product, where n is the count of values. For example, the geometric mean of 4, 16, and 64 is ∛(4 × 16 × 64) = ∛4096 = 16. Alternatively, you can compute the average of the natural logarithms and then exponentiate the result.

How does geometric mean compare to arithmetic mean?

The arithmetic mean adds all values and divides by the count, making it suitable for additive data. The geometric mean multiplies values and takes the root, making it better for multiplicative or exponential data like growth rates. The geometric mean is always less than or equal to the arithmetic mean (they are equal only when all values are identical).

How do you handle zeros in geometric mean calculation?

If any value in the dataset is zero, the product of all values becomes zero, making the geometric mean zero as well. In practice, zeros are often replaced with a small positive constant or excluded from the dataset before calculating the geometric mean, depending on the context of the analysis.

Can geometric mean handle negative numbers?

Strictly speaking, the geometric mean is defined for positive numbers. However, it can be extended to datasets of all-negative numbers by computing the geometric mean of their absolute values and then applying the original sign. Mixed positive and negative datasets cannot be handled with the standard formula, as the product may be negative and the root undefined in real numbers.

What is an example of geometric mean used in finance?

If an investment grows by 10% in year one, shrinks by 5% in year two, and grows by 20% in year three, you express each as a growth factor (1.10, 0.95, 1.20) and compute their geometric mean: ∛(1.10 × 0.95 × 1.20) ≈ 1.081. This means the investment grew at an average rate of about 8.1% per year — a more accurate figure than the arithmetic mean of the percentage returns.

How does geometric mean differ from harmonic mean?

The harmonic mean is the reciprocal of the arithmetic mean of reciprocals, best used for rates and speeds (e.g. average speed over equal distances). The geometric mean is the n-th root of the product, best used for growth rates and ratios. For any dataset, harmonic mean ≤ geometric mean ≤ arithmetic mean.

How accurate is the geometric mean calculator with large datasets or large numbers?

This calculator uses the log-sum method internally (averaging logarithms and exponentiating) to handle very large products without numeric overflow. This makes it accurate for large datasets and large numbers. Results are displayed to six decimal places by default.

More Statistics Tools