Geometric Mean Calculator

Compute the geometric mean of any set of positive numbers. Understand the formula, see step-by-step insights, and apply it to real-world scenarios.

Positive numbers only. Negative numbers or zero will produce special results (see FAQ).
? Simple: 4,8,16
? Finance returns: 1.05, 1.08, 1.10
? Biology: 2,4,8,16
? Mixed: 3, 5, 7, 11
Privacy first: Your numbers never leave your device. All calculations are done locally in your browser.

What is Geometric Mean?

The geometric mean is a type of average that indicates the central tendency of a set of numbers by using the product of their values. It is defined as the nth root of the product of n numbers:

GM = (x₁ · x₂ · … · xₙ)1/n

For example, the geometric mean of 4 and 9 is √(4·9) = √36 = 6.

When to Use Geometric Mean

  • Rates of change / growth rates: In finance, the geometric mean accurately represents average investment returns over time (CAGR).
  • Ratios and percentages: When data are expressed as ratios or percentages, the geometric mean gives a more meaningful average.
  • Biology and medicine: Used for average of rates (e.g., bacterial growth, dilution series).
  • Environmental science: For averaging concentrations or indices (e.g., water quality index).

Geometric vs Arithmetic Mean

The arithmetic mean sums values, while the geometric mean multiplies them. For positive numbers, the geometric mean is always less than or equal to the arithmetic mean (AM–GM inequality). The geometric mean is more appropriate when values are multiplicative or exponential in nature.

Property Arithmetic Mean Geometric Mean
Formula Σx / n (Πx)1/n
Sensitive to extreme values? Yes Less sensitive (log transformation reduces impact)
Zero or negative values Allowed Usually undefined; zero yields zero, negative yields complex (not supported)
Common use General average Growth rates, ratios, indices
Case Study: Average Investment Return

Suppose an investment returns +10%, +20%, and -5% over three years. The arithmetic mean return is (10+20-5)/3 = 8.33%, but that ignores compounding. The geometric mean (as a growth factor) is calculated as (1.10 × 1.20 × 0.95)1/3 ≈ 1.075, or a 7.5% average annual return. This accurately reflects the actual growth of the investment.

Step-by-Step Calculation

  1. Multiply all numbers together to get the product P.
  2. Take the nth root, where n is the count of numbers: GM = P1/n.

For large numbers, logarithms can be used: ln(GM) = (1/n) Σ ln(xi). Then GM = exp( that average of logs ). This method avoids overflow.

Handling Special Cases

  • Negative numbers: The geometric mean for negative numbers can be defined if an odd number of negatives (real result negative), but it's rarely used. Our calculator currently supports only positive numbers and will warn if negatives are detected.
  • Zero: If any value is zero, the geometric mean is zero (product zero).
  • Large numbers: We use logarithmic method to prevent floating-point overflow.

Applications in Different Fields

  • Finance: Compound Annual Growth Rate (CAGR), average of price relatives.
  • Image processing: Geometric mean filter for noise reduction.
  • Hydrology: Geometric mean is used for averaging concentrations of pollutants.
  • Social sciences: Human Development Index (HDI) uses geometric mean for combining normalized indices.
Alex Chen avatar

Reviewed by Alex Chen – Data Scientist and statistician with 10+ years experience in quantitative analysis. Alex ensures our statistical tools meet academic and professional standards.

Last updated: March 2026

Frequently Asked Questions

The geometric mean is typically defined for positive numbers only. For an odd number of negative numbers, the product is negative, and a real nth root exists (negative), but interpretation is ambiguous. Our calculator currently ignores negative values and shows a warning. For meaningful results, use positive numbers.

If any value is zero, the geometric mean becomes zero (since product is zero). This is mathematically correct, but be aware that the geometric mean loses its usual meaning when zeros are present. We'll warn you if zeros are detected.

We use the logarithmic method: average of natural logs, then exponentiate. This avoids overflow when multiplying many large numbers. The formula is: GM = exp( (1/n) * Σ ln(xi) ).

Median is the middle value when sorted; it's robust to outliers. Geometric mean is a multiplicative average, suitable for ratios and growth rates. They serve different purposes.

Yes, the calculator accepts decimals. Ensure they are separated by commas, spaces, or newlines.

This is a consequence of the AM–GM inequality: for any set of positive numbers, the geometric mean is always less than or equal to the arithmetic mean, with equality only when all numbers are identical.
References: NIST Engineering Statistics Handbook; “The Geometric Mean” by D.J. Finney, Journal of the Royal Statistical Society; Investopedia on Geometric Mean.