Skip to main content

Geometric Mean Calculator

Calculate geometric mean instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.

Share this calculator

Formula

Geometric Mean = (x1 * x2 * ... * xn)^(1/n)

The geometric mean is the nth root of the product of n values. Equivalently, it equals e raised to the power of the average of the natural logarithms: GM = exp((ln x1 + ln x2 + ... + ln xn) / n). This log-based computation prevents numerical overflow for large datasets.

Worked Examples

Example 1: Geometric Mean of Investment Returns

Problem: An investment returns 20%, -10%, and 15% over three years. Find the average annual return.

Solution: Convert to growth factors: 1.20, 0.90, 1.15\nProduct = 1.20 x 0.90 x 1.15 = 1.242\nGeometric mean = (1.242)^(1/3) = 1.0749\nAverage annual return = 7.49%\nNote: Arithmetic mean = (20 - 10 + 15)/3 = 8.33% (overestimates)

Result: Geometric Mean Return = 7.49% per year

Example 2: Geometric Mean of a Data Set

Problem: Find the geometric mean of 4, 8, 16, and 32.

Solution: Product = 4 x 8 x 16 x 32 = 16,384\nCount = 4\nGeometric mean = 16384^(1/4) = (2^14)^(1/4) = 2^3.5 = 11.3137\nVerification: These form a geometric sequence with ratio 2\nThe geometric mean falls at the center of this geometric sequence

Result: Geometric Mean = 11.3137

Frequently Asked Questions

What is the geometric mean and how is it calculated?

The geometric mean is a type of average calculated by multiplying all the values together and then taking the nth root, where n is the count of values. For two numbers a and b, the geometric mean equals the square root of a times b. For three numbers, it is the cube root of their product. Unlike the arithmetic mean which adds values, the geometric mean multiplies them. This makes it ideal for data that is multiplicative in nature, such as growth rates, ratios, and percentages. The geometric mean is always less than or equal to the arithmetic mean.

When should you use the geometric mean instead of the arithmetic mean?

Use the geometric mean when dealing with quantities that multiply together or compound over time. Common scenarios include calculating average investment returns over multiple years, averaging ratios or percentages, combining scores on different scales, and analyzing data that spans several orders of magnitude. For example, if a stock returns 10% one year and loses 10% the next, the arithmetic mean suggests 0% average return, but the geometric mean correctly shows a slight loss. The geometric mean is also preferred in biological and environmental sciences where data follows log-normal distributions.

How is the geometric mean used in finance and investing?

In finance, the geometric mean is essential for calculating compound annual growth rates (CAGR) and average portfolio returns. If an investment returns 20%, -10%, and 15% over three years, the geometric mean of 1.20, 0.90, and 1.15 gives the true average annual return of about 7.36%. Using the arithmetic mean would incorrectly overestimate the return at 8.33%. The geometric mean also appears in the calculation of risk-adjusted returns like the Sharpe ratio normalization. Financial regulators often require reporting geometric mean returns for mutual funds precisely because it reflects actual investor experience.

What is the relationship between geometric mean, arithmetic mean, and harmonic mean?

These three Pythagorean means are related by the inequality: harmonic mean is less than or equal to geometric mean, which is less than or equal to arithmetic mean (HM is less than or equal to GM is less than or equal to AM). Equality holds only when all values are identical. The geometric mean is actually the geometric mean of the arithmetic and harmonic means. For two numbers a and b, the geometric mean squared equals the arithmetic mean times the harmonic mean. This chain of inequalities is fundamental in analysis and has been known since ancient Greek mathematics.

Why does the geometric mean only work with positive numbers?

The geometric mean requires all positive values because it involves taking roots of products. If any value is zero, the product becomes zero and the geometric mean is zero regardless of other values. If any value is negative, the product might be negative, and taking an even root of a negative number is not defined in real numbers. For data containing zeros, you can add a constant to all values before computing the geometric mean (shifted geometric mean). For negative values, the geometric mean simply does not apply and you should use the arithmetic mean or median instead.

How is the geometric mean related to logarithms?

The geometric mean has an elegant connection to logarithms: the log of the geometric mean equals the arithmetic mean of the logarithms. This means you can compute the geometric mean by taking the log of each value, averaging those logs, and then exponentiating the result. This approach is computationally advantageous because it avoids the numerical overflow that can occur when multiplying many large numbers together. It also explains why the geometric mean is natural for log-normally distributed data and why it appears frequently in information theory and entropy calculations.

References