Geometric Mean Calculator

Calculate mean for multiplicative data.

Enter positive numbers separated by commas, spaces, or newlines

Examples:

Enter positive numbers to calculate geometric mean

What Is the Geometric Mean?

The geometric mean is the nth root of the product of n values:

GM=x1Γ—x2Γ—β‹―Γ—xnn=(∏i=1nxi)1/nGM = \sqrt[n]{x_1 \times x_2 \times \cdots \times x_n} = \left(\prod_{i=1}^{n} x_i\right)^{1/n}

Equivalently, using logarithms:

GM=exp⁑(1nβˆ‘i=1nln⁑(xi))GM = \exp\left(\frac{1}{n}\sum_{i=1}^{n} \ln(x_i)\right)

Key property: The geometric mean of growth factors equals the constant growth factor that produces the same final result.

When to Use Geometric Mean

Growth Rates and Returns

Investment returns over multiple periods:

YearReturn
1+20% (Γ—1.20)
2-10% (Γ—0.90)
3+15% (Γ—1.15)

Arithmetic mean: (20 - 10 + 15) / 3 = 8.33%

Geometric mean: 1.20Γ—0.90Γ—1.153=1.073\sqrt[3]{1.20 \times 0.90 \times 1.15} = 1.073 β†’ 7.3% per year

The geometric mean correctly shows that 100becomes100 becomes 100 Γ— 1.073Β³ = $123.66.

Ratios and Proportions

When averaging ratios, the geometric mean ensures consistency.

If A is twice B, and B is twice C, then A is 4Γ— C. Geometric mean of the ratios: 2Γ—2=2\sqrt{2 \times 2} = 2 βœ“ Arithmetic mean would give: (2 + 2) / 2 = 2 βœ“ (works here)

But with different ratios (3Γ— and 1/3Γ—), arithmetic mean fails while geometric mean correctly gives 1.

Data Spanning Orders of Magnitude

For data like populations, concentrations, or prices varying widely:

Values: 10, 100, 1000

Arithmetic mean: 370 Geometric mean: 10Γ—100Γ—10003=100\sqrt[3]{10 \times 100 \times 1000} = 100

The geometric mean better represents the "typical" value.

Calculation Example

Data: 2, 8, 4, 16

Method 1: Direct calculation

GM=2Γ—8Γ—4Γ—164=10244=5.66GM = \sqrt[4]{2 \times 8 \times 4 \times 16} = \sqrt[4]{1024} = 5.66

Method 2: Using logarithms

GM=exp⁑(ln⁑2+ln⁑8+ln⁑4+ln⁑164)=exp⁑(0.69+2.08+1.39+2.774)=exp⁑(1.73)=5.66GM = \exp\left(\frac{\ln 2 + \ln 8 + \ln 4 + \ln 16}{4}\right) = \exp\left(\frac{0.69 + 2.08 + 1.39 + 2.77}{4}\right) = \exp(1.73) = 5.66

Properties

Relationship to Arithmetic and Harmonic Means

For positive numbers:

Harmonic Mean≀Geometric Mean≀Arithmetic Mean\text{Harmonic Mean} \leq \text{Geometric Mean} \leq \text{Arithmetic Mean}

Equality holds only when all values are identical.

Multiplicative Property

GM(aΓ—b)=GM(a)Γ—GM(b)GM(a \times b) = GM(a) \times GM(b)

This makes geometric mean natural for multiplicative processes.

Log Transformation

The geometric mean equals the exponentiated arithmetic mean of log-transformed data:

GM(x)=exp⁑(AM(ln⁑x))GM(x) = \exp(AM(\ln x))

This is why it's used when log-normal distributions are appropriate.

Applications

Finance

Compound Annual Growth Rate (CAGR):

CAGR=(Final ValueInitial Value)1/nβˆ’1CAGR = \left(\frac{\text{Final Value}}{\text{Initial Value}}\right)^{1/n} - 1

This is the geometric mean of growth factors minus 1.

Biology

  • Bacterial growth rates
  • Population dynamics
  • Antibody titers (often reported as geometric mean titers, GMT)

Environmental Science

  • Pollutant concentrations
  • Water quality indices
  • Species abundance

Image Processing

  • Geometric mean filters for noise reduction
  • Color averaging (geometric mean of RGB values)

Weighted Geometric Mean

When values have different weights:

GMw=(∏i=1nxiwi)1/βˆ‘wiGM_w = \left(\prod_{i=1}^{n} x_i^{w_i}\right)^{1/\sum w_i}

Or equivalently:

GMw=exp⁑(βˆ‘wiln⁑xiβˆ‘wi)GM_w = \exp\left(\frac{\sum w_i \ln x_i}{\sum w_i}\right)

Example: Portfolio with 60% in investment A (1.10 return) and 40% in investment B (1.05 return):

GMw=(1.100.6Γ—1.050.4)=1.079GM_w = (1.10^{0.6} \times 1.05^{0.4}) = 1.079

Limitations

Requires Positive Values

The geometric mean is undefined for zero or negative values.

Workarounds:

  • Add a constant to shift data positive
  • Use only for naturally positive data
  • Consider arithmetic mean instead

Sensitive to Small Values

Small values have disproportionate influence:

Values: 1, 100, 100, 100

Arithmetic mean: 75.25 Geometric mean: 1Γ—10034=31.62\sqrt[4]{1 \times 100^3} = 31.62

The single small value pulls the geometric mean down significantly.

Comparison with Arithmetic Mean

ScenarioUse Arithmetic MeanUse Geometric Mean
Additive processesβœ“
Multiplicative processesβœ“
Growth ratesβœ“
Ratiosβœ“
Symmetric distributionsβœ“
Log-normal distributionsβœ“
Contains zerosβœ“
Contains negativesβœ“

Geometric Standard Deviation

The spread around the geometric mean:

GSD=exp⁑(βˆ‘(ln⁑xiβˆ’ln⁑GM)2nβˆ’1)GSD = \exp\left(\sqrt{\frac{\sum(\ln x_i - \ln GM)^2}{n-1}}\right)

Used to describe variability in log-normal data. A GSD of 2 means values typically range from GM/2 to GMΓ—2.

Historical Context

The geometric mean has ancient originsβ€”it appears in Euclid's Elements (300 BCE) in the context of proportions and similar triangles.

The term "geometric" comes from its relationship to geometric constructions: the geometric mean of two lengths a and b equals the side of a square with the same area as a rectangle with sides a and b.

Related Calculations

Summary

The geometric mean is the appropriate average for multiplicative data: growth rates, ratios, and values spanning multiple orders of magnitude. Calculate it as the nth root of the product of values, or equivalently, exponentiate the arithmetic mean of log-transformed values. The geometric mean always falls between the harmonic and arithmetic means. Use it for investment returns, population growth, and any data where relative changes matter more than absolute changes.