Geometric Mean Calculator

Geometric Mean Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

GM=(∏i=1nxi)1n=x1·x2⋯xnn\text{GM} = \left( \prod_{i=1}^{n} {x_i} \right)^{\frac{1}{n}} = \sqrt[n]{{x_1} \cdot {x_2} \cdots {x_n}}
Usage stats

Advertisement

Results

Geometric Mean
8
Count of values (n) 3

Report an error on this page

What Is the Geometric Mean?

The geometric mean is a type of average that multiplies all the numbers in a set together and then takes the nth root of the product, where n is how many numbers there are. Unlike the familiar arithmetic mean, which adds values, the geometric mean is built on multiplication. This makes it the right average for things that grow or shrink by ratios or percentages — such as investment returns, growth rates, ratios, and index numbers.

Comparison of arithmetic mean midpoint versus geometric mean on a number line for two values
The geometric mean sits closer to the smaller value than the arithmetic mean does.

How to Use This Calculator

Type your numbers into the box, separated by commas or spaces (for example 2, 8, 32). All values must be positive — the geometric mean is undefined when any number is zero or negative. Press calculate and the tool returns the geometric mean along with the count of values used.

The Formula Explained

The geometric mean is defined as:

$$\text{GM} = \left( \prod_{i=1}^{n} x_i \right)^{\frac{1}{n}} = \sqrt[n]{x_1 \cdot x_2 \cdots x_n}$$

To stay numerically stable for large lists, this calculator uses the logarithmic form: it sums the natural logs of every value, divides by \(n\), then exponentiates. The two forms are mathematically identical.

Advertisement
Geometric mean of two numbers shown as the side of a square equal in area to a rectangle
For two numbers, the geometric mean is the side of a square with the same area as an a-by-b rectangle.

Worked Example

Suppose you have the numbers 2, 8 and 32. Their product is $$2 \times 8 \times 32 = 512.$$ Since there are 3 numbers, take the cube root: $$512^{\frac{1}{3}} = 8.$$ So the geometric mean is 8 — notice it sits in the "middle" multiplicatively (\(2 \times 4 = 8\), \(8 \times 4 = 32\)).

Conventions and edge cases

Each case below was run through this calculator; the result column is what it actually returns.

CaseInputResult
Decimals 0.1, 0.2, 0.30.1, 0.2, 0.30.181712
Even number of values (1, 2, 3, 4)1, 2, 3, 42.213364
Negative values (−3, −1, 4)-3, -1, 4The geometric mean is not defined for negative values. Enter values of 0 or more.
A zero in the list (0, 4, 9)0, 4, 90
Sample or population (2, 4, 4, 4, 5, 5, 7, 9)2, 4, 4, 4, 5, 5, 7, 94.603216
A single value77

Checked on 2026-11-08

FAQ

When should I use the geometric mean instead of the arithmetic mean? Use it for rates of return, percentage changes, and ratios that compound over time, where multiplying matters more than adding.

Can I include zero or negative numbers? No. Because the product would be zero or the root undefined, the geometric mean only applies to positive values.

Is the geometric mean always smaller than the arithmetic mean? Yes — for any set of positive numbers that are not all equal, the geometric mean is strictly less than the arithmetic mean (the AM–GM inequality).

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators