Last verified · v1.0
Calculator · math
Geometric Mean Calculator
Compute the geometric mean of up to 10 positive numbers using the nth-root product formula. Ideal for growth rates, ratios, and log-normal data sets.
Inputs
Geometric Mean
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is the Geometric Mean?
The geometric mean is a measure of central tendency that multiplies all values in a data set and then extracts the nth root, where n equals the number of values. It is the mathematically correct average for data that represent rates of change, multiplicative growth, or ratios — situations where the arithmetic mean produces a distorted result. According to a peer-reviewed analysis published in PMC (National Institutes of Health), the geometric mean is specifically recommended for positively skewed distributions and data sets that span several orders of magnitude.
The Geometric Mean Formula
For a set of n positive numbers x1, x2, …, xn, the geometric mean is defined as:
GM = (x1 × x2 × … × xn)1/n
An equivalent logarithmic form — essential for large data sets and used in software implementations to prevent numeric overflow — is:
GM = e[(ln x1 + ln x2 + … + ln xn) / n]
This logarithmic equivalence shows that the geometric mean equals the antilog of the arithmetic mean of the logarithms of the values. Both forms produce identical results.
Variables Explained
- x1 through xn — The positive input values. Every value must be strictly greater than zero; the geometric mean is undefined for zero or negative inputs.
- n — The count of non-zero values supplied. This calculator automatically counts only the fields the user fills in; fields left at 0 are excluded.
- GM — The result, which always falls between the minimum and maximum input value.
Step-by-Step Calculation Examples
Example 1: Environmental Water Testing
Three fecal coliform counts per 100 mL are 2, 8, and 32 colony-forming units. The geometric mean is:
GM = (2 × 8 × 32)1/3 = (512)1/3 = 8
The arithmetic mean of these same values is (2 + 8 + 32) / 3 = 14 — nearly double. The California Water Boards guidance on calculating geometric means mandates the geometric mean for coliform data precisely because extreme high counts would inflate an arithmetic average and misrepresent typical bacterial density.
Example 2: Investment Compound Annual Growth Rate
A portfolio grows by 10%, 40%, and contracts by 20% in three consecutive years. Express each year as a growth factor: 1.10, 1.40, and 0.80. The Compound Annual Growth Rate (CAGR) is the geometric mean of these factors:
GM = (1.10 × 1.40 × 0.80)1/3 = (1.232)1/3 ≈ 1.0718
This represents an average annual return of 7.18%. The arithmetic mean of the three percentage returns — (10% + 40% − 20%) / 3 = 10% — overstates performance. As Investopedia details, the geometric mean is the standard for all multi-period return calculations in finance.
Why the Geometric Mean Outperforms the Arithmetic Mean for Multiplicative Data
- Compound relationships: When values compound over successive periods, the geometric mean gives the single equivalent rate that produces the same final result.
- Skewed distributions: Log-normally distributed data — such as income, microbial counts, and contaminant concentrations — are better summarized by the geometric mean because it is insensitive to extreme high values.
- Ratio and index data: The U.S. Bureau of Labor Statistics uses a geometric mean formula for elementary price index aggregates, citing its lower substitution bias compared with arithmetic alternatives.
Practical Applications
- Finance & Economics: CAGR, portfolio performance, currency cross-rate averaging, and consumer price index construction.
- Environmental Science: Fecal coliform and enterococcus standards for recreational water contact, air-quality geometric mean concentrations.
- Biology & Medicine: Antibody titer averaging, enzyme activity levels, and any biomarker that follows a log-normal distribution.
- Engineering & Design: Intermediate standard paper sizes (the ISO 216 A-series uses the geometric mean), signal-to-noise ratios, and aspect ratio interpolation.
Limitations and Important Constraints
The geometric mean is only valid for strictly positive values. If any input is zero, the entire product collapses to zero and the result is meaningless. If negative values appear among an even count of inputs, the product is positive but the result is mathematically invalid for this purpose; an odd count of negatives produces no real root at all. When data contain zeros or negative numbers, add a positive constant to every value to shift the entire set into positive territory before using this calculator.
Reference