Statistics

Geometric Mean Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Source

Please enter a valid URL. Only HTTPS URLs are supported.

Styling

Input border focus color, switchbox checked color, select item hover color etc.

Advanced

Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a geometric mean calculator?

A geometric mean calculator finds the central tendency of a list of positive numbers by multiplying them all together and taking the root that matches how many values you entered. Unlike the ordinary (arithmetic) average, which adds values and divides by the count, the geometric mean is built on multiplication, which makes it the right choice whenever your data represents rates, ratios, or quantities that compound over time.

Enter your numbers and the calculator instantly reports the geometric mean along with the count of values used. Because the geometric mean involves a product of all the values, it is only defined for positive numbers — a single zero would collapse the product to zero, and a negative value makes the root undefined for real data, so the calculator leaves the result blank in those cases.

How does it work?

The geometric mean of nn positive values is the nn-th root of their product:

GM=(i=1nxi)1/n=x1x2xnnGM = \left(\prod_{i=1}^{n} x_i\right)^{1/n} = \sqrt[n]{x_1 \cdot x_2 \cdots x_n}

To keep the arithmetic numerically stable for long lists, the calculator computes the same value through logarithms — averaging the natural logs of the inputs and exponentiating the result:

GM=exp ⁣(1ni=1nlnxi)GM = \exp\!\left(\frac{1}{n}\sum_{i=1}^{n} \ln x_i\right)

Both forms give an identical answer; the logarithmic version simply avoids overflow when many values are multiplied together.

Worked examples

Two numbers. For the list 22 and 88, the product is 1616 and there are n=2n = 2 values, so the geometric mean is the square root of 1616:

GM=28=16=4GM = \sqrt{2 \cdot 8} = \sqrt{16} = 4

Three numbers. For 22, 44, and 88, the product is 6464 and n=3n = 3, so the geometric mean is the cube root of 6464:

GM=2483=643=4GM = \sqrt[3]{2 \cdot 4 \cdot 8} = \sqrt[3]{64} = 4

Identical values. When every value is the same, the geometric mean equals that value. For 33, 33, and 33:

GM=3333=273=3GM = \sqrt[3]{3 \cdot 3 \cdot 3} = \sqrt[3]{27} = 3

When to use the geometric mean

The geometric mean shines whenever values multiply rather than add. Common uses include:

  • Average growth and return rates. For investment returns, population growth, or inflation measured year over year, the geometric mean of the growth factors gives the true compound average — the arithmetic mean overstates it.
  • Ratios and index numbers. Price indexes, aspect ratios, and other quantities expressed as ratios are averaged correctly with the geometric mean.
  • Data spanning several orders of magnitude. When values range across powers of ten, the geometric mean is far less distorted by extreme entries than the arithmetic mean.

For a single value the geometric mean is just that value, and for any list it always falls below or equal to the arithmetic mean of the same numbers, with equality only when all the values are identical.

Frequently asked questions

Why must the numbers be positive? The geometric mean depends on the product of all values. A zero makes the product zero, and a negative value makes an even root undefined for real numbers, so a meaningful geometric mean exists only when every input is greater than zero. To learn how the geometric mean relates to the everyday average, see the average calculator, and to measure how spread out your data is, try the standard deviation calculator.

How is it different from the median or mode? The median and mode describe position and frequency rather than a product-based center; the mean, median, and mode calculator covers those measures. The geometric mean is a true average, but one tuned for multiplicative data.

Report a bug

This field is required.