Article
Geometric Mean: How to Calculate It, Formula and Examples
The geometric mean of n positive numbers is the nth root of their product. For two numbers a and b it is √(a · b), and for 4 and 9 the result is 6. This article gives the formula, the comparison with the arithmetic mean, how to find it for three and five numbers, the average growth rate and the Excel function. You can check your own numbers in the geometric mean calculator, which finds the mean of two numbers.
Last updated:
Find the geometric mean of two numbers in the geometric mean calculator. Work out the arithmetic mean of the same numbers in the mean calculator.
The geometric mean formula
The geometric mean is the value that, multiplied by itself the right number of times, gives the same product as all the values together. For positive numbers you multiply all the values and take the root of the right degree.
GM = ⁿ√(x₁ · x₂ · … · xₙ)
for two numbers: GM = √(a · b)
example: √(4 · 9) = √36 = 6
| Numbers | Product | Geometric mean | Arithmetic mean |
|---|---|---|---|
| 4 and 9 | 36 | 6 | 6.5 |
| 2 and 8 | 16 | 4 | 5 |
| 16 and 25 | 400 | 20 | 20.5 |
| 1 and 4 | 4 | 2 | 2.5 |
| 5 and 5 | 25 | 5 | 5 |
The geometric mean needs positive numbers. If any value is zero, the whole product and the geometric mean are zero.
Try it with an example
Example: the numbers 4 and 9. Both values are already stored in the link to the calculator.
- Number a
- 4
- Number b
- 9
- Result
- geometric mean 6, arithmetic mean 6.5, ratio 0.923077
Open the calculator with these numbers
The calculator reads the values from the page address and shows the result right away. You can change them freely.
How the calculator works
The calculator takes two non-negative numbers, finds their product and takes the square root. It also shows the arithmetic mean, the difference between the arithmetic and the geometric mean and the ratio of the two means, along with a chart that compares them. For a negative number it shows an error message, and for zero it returns zero. It finds the mean of two numbers only, so for three or more values you have to multiply them by hand and take the root of the right degree.
Geometric mean versus arithmetic mean
For non-negative numbers the geometric mean is always less than or equal to the arithmetic mean. Equality holds only when all the numbers are identical. For 4 and 9 we have 6 against 6.5, and the ratio of the two means is 0.923077. For 16 and 25 the means are 20 and 20.5, so the gap is small because the numbers lie close together.
The more the numbers differ, the larger the gap between the means. The geometric mean is also less sensitive to one large value than the arithmetic mean, because the numbers are multiplied rather than added. Work out the arithmetic mean in the mean calculator and the harmonic mean of two numbers in the harmonic mean calculator. The arithmetic mean is covered in Arithmetic Mean.
Geometric mean of three and five numbers
For several numbers you multiply all the values and take the nth root. For 3, 4 and 18 the product is 216, and the cube root of 216 is 6. For 2, 6, 9, 5 and 12 the product is 6480, and the fifth root gives 5.7852. For 4, 8, 3, 9 and 17 the product is 14688 and the geometric mean is 6.8138.
A root of any degree can be found in the nth root calculator, and a square root in the square root calculator. With many values it is easier to use logarithms: GM = exp(mean of ln xᵢ). The natural logarithm can be found in the natural log calculator.
Average growth rate
The geometric mean is the right measure for quantities that are multiplied, such as successive percentage changes. Suppose a rise of 10%, a rise of 20% and a drop of 5%. The growth factors are 1.10, 1.20 and 0.95, and their product is 1.254, which is a total rise of 25.4%. The geometric mean of the factors is 1.07837, which is 7.84% per period on average.
The arithmetic mean of these changes is 8.33%, but applying such a rate three times gives a factor of 1.2714, which is more than the actual 1.254. That is why the geometric mean is used to average percentage changes. A single percentage change can be found in the percentage change calculator, and it is described in Percentage Change.
Zero, negative numbers and Excel
For negative numbers the geometric mean is not defined among the real numbers, and the calculator reports an error. When one of the numbers is zero, the result is zero and says nothing about the other values. With percentage changes, check that no factor is zero or negative. A drop of 100%, for example, gives a factor of 0.
In Excel the geometric mean is computed by the GEOMEAN function, for example =GEOMEAN(A1:A5). The function also requires positive numbers. A typical value in data with extreme values is also described by the median, which you can find in the median calculator. The article Median explains the difference.
Four worked examples
You can repeat the first example in the geometric mean calculator. The others need a root of a higher degree.
1. Geometric mean of 4 and 9
Two numbers.
- Multiply the numbers: 4 · 9 = 36.
- Take the square root: √36.
- The geometric mean is 6.
- The arithmetic mean is 6.5.
2. Geometric mean of 2, 6, 9, 5, 12
Five numbers.
- Multiply the numbers: 2 · 6 · 9 · 5 · 12 = 6480.
- Take the fifth root.
- The geometric mean is 5.7852.
- The arithmetic mean is 6.8.
3. Average growth rate: +10%, +20%, −5%
Growth factors.
- Turn the changes into factors: 1.10, 1.20 and 0.95.
- Multiply them: 1.254.
- Take the cube root: 1.07837.
- The average growth rate is 7.84% per period.
4. A square with the same area as a 4 × 9 rectangle
The geometric meaning.
- The area of the rectangle is 4 · 9 = 36.
- A square with the same area has a side of √36.
- The side of the square is 6.
- The side of the square is the geometric mean of the sides of the rectangle.
Common mistakes when finding the geometric mean
- Adding instead of multiplying — the geometric mean needs the product, not the sum of the numbers.
- Taking the wrong root — for n numbers take the nth root, not always the square root.
- Averaging percentage changes with the arithmetic mean — for percentage changes you should average the factors, for example 1.10 rather than 10.
- Using percentages instead of factors — for a rise of 10% the product uses 1.10, not 0.10 or 10.
- Using negative numbers or zero — the geometric mean needs positive numbers, and a zero makes the result zero.
- Confusing the geometric mean with the arithmetic mean — the two means are equal only when all the numbers are identical.
- Using the two-number calculator for more values — the calculator finds the mean of two numbers, so for three or more you have to take the nth root yourself.
Frequently asked questions
How do you calculate the geometric mean?
Multiply all the numbers and take the root of the product whose degree equals the number of values. For 4 and 9 it is √36 = 6.
How do you calculate the geometric mean of two numbers?
Multiply the two numbers and take the square root: GM = √(a · b). For 16 and 25 the result is √400 = 20.
How to calculate the geometric mean of 3 numbers?
Multiply the three numbers and take the cube root. For 3, 4 and 18 the product is 216 and the geometric mean is 6.
What is the geometric mean of 2, 6, 9, 5, 12?
The product of these numbers is 6480, and its fifth root is about 5.7852.
What is the difference between the geometric mean and the arithmetic mean?
The arithmetic mean adds the numbers and the geometric mean multiplies them. For 4 and 9 it is 6.5 against 6, and the geometric mean is never larger.
When is the geometric mean used?
For quantities that are multiplied, such as successive percentage changes. Rises of 10% and 20% and a drop of 5% average 7.84% per period.
Can you find the geometric mean of negative numbers or zero?
For negative numbers the geometric mean is not defined among the real numbers, and the calculator reports an error. If one of the numbers is zero, the result is zero.
How do you calculate the geometric mean in Excel?
Use the GEOMEAN function, for example =GEOMEAN(A1:A5). All the numbers must be positive.
Find the geometric mean of your own numbers
Enter two numbers in the geometric mean calculator and read the geometric mean, the arithmetic mean and their ratio.
Work out the arithmetic mean in the mean calculator and a weighted mean in the weighted average calculator.