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.