Geometric Mean Calculator

Enter two or more positive numbers to find their geometric mean (GM = the nth root of their product), alongside the arithmetic mean for comparison.

Quick Facts

Geometric mean formula
GM = (x1 × x2 × ... × xn)^(1/n)
The nth root of the product of n positive numbers.
Values must be positive
All xi > 0
Zero or negative entries make the formula undefined or meaningless.
AM-GM inequality
GM ≤ AM
The geometric mean never exceeds the arithmetic mean; they are equal only when all values match.

Your Results

Calculated
Geometric Mean
-
GM = nth root of the product
Arithmetic Mean
-
Sum ÷ count, shown for comparison
Count of Numbers
-
n values entered
AM − GM Difference
-
Illustrates the AM-GM inequality

Ready

Enter two or more positive numbers, then press Calculate.

Formula and Method for the Geometric Mean

The geometric mean of n positive numbers x1, x2, ..., xn is the nth root of their product: GM = (x1 × x2 × ... × xn)^(1/n). Unlike the arithmetic mean, which adds values together, the geometric mean multiplies them — making it the correct average for quantities that compound, such as growth rates, investment returns, and index ratios. This calculator also reports the arithmetic mean of the same numbers so you can compare the two directly.

How the calculation works

Enter your numbers separated by commas or spaces and choose how many decimal places to display. Internally, the calculator avoids overflow on large products by working with natural logarithms: it sums ln(x1) + ln(x2) + ... + ln(xn), divides by the count n, and exponentiates the result — this is mathematically identical to taking the nth root of the raw product, GM = exp((ln x1 + ln x2 + ... + ln xn) / n). The calculator also computes the arithmetic mean (sum ÷ count) and the difference AM − GM, which is always zero or positive by the AM-GM inequality.

Common mistakes

  • Including zero or negative numbers: the standard geometric mean is only defined for positive numbers — a zero collapses the product to zero, and a negative value can make an even-order root undefined.
  • Using the geometric mean where the arithmetic mean is correct: for values that add together (test scores, weights, lengths), use the arithmetic mean; reserve the geometric mean for values that multiply together (growth factors, ratios, returns).
  • Averaging percentage returns directly: to average investment returns correctly, convert each percentage to a growth factor (e.g., +8% becomes 1.08) before taking the geometric mean, then convert the result back to a percentage.

Real-world applications

  • Finance uses the geometric mean to compute compound annual growth rate (CAGR) and average multi-year investment returns.
  • Demographics and economics use it to average population growth rates and inflation-adjusted index numbers across periods.
  • Design and photography use it (as the geometric mean of width and height) to compute standard paper and screen aspect ratios.
  • Statistics uses it for data that spans several orders of magnitude or that is naturally multiplicative, such as bacterial growth or sound intensity ratios.

Frequently Asked Questions

What is the geometric mean?
The geometric mean of n positive numbers is the nth root of their product: GM = (x1 × x2 × ... × xn)^(1/n). It measures central tendency for values that multiply together, such as growth rates, investment returns, or ratios, rather than values that simply add together.
How is the geometric mean different from the arithmetic mean?
The arithmetic mean adds the values and divides by the count, while the geometric mean multiplies the values and takes the nth root. By the AM-GM inequality, the geometric mean is always less than or equal to the arithmetic mean for positive numbers, with equality only when all the values are identical.
Can I use zero or negative numbers in a geometric mean?
No, the standard geometric mean formula requires all values to be positive. A zero in the set makes the product zero (and the mean zero), and a negative value can make the product negative, which has no real nth root when n is even. For data with zeros or negatives, use an adjusted method or the arithmetic mean instead.
When should I use the geometric mean instead of the arithmetic mean?
Use the geometric mean for quantities that compound or multiply over time, such as average annual investment returns, population growth rates, or index numbers. Use the arithmetic mean for quantities that simply add together, like test scores or measured lengths.