📐 Geometric Mean Calculator
By ToolNimba Math Team · Updated 2026-06-19
The geometric mean is the average you reach by multiplying all your values together and taking the nth root of that product, where n is how many values you have. It is the right average for rates, ratios and anything that grows by multiplying, such as investment returns or population growth. Paste in your positive numbers and this calculator returns the geometric mean alongside the ordinary arithmetic mean, so you can compare the two at a glance.
What is the Geometric Mean Calculator?
The geometric mean of n positive numbers is the nth root of their product. For two numbers it is the square root of their product, for three it is the cube root, and so on. Written out, GM = (x1 x x2 x ... x xn)^(1/n). It answers a different question from the familiar arithmetic mean: instead of asking what single value, added n times, gives the same total, it asks what single value, multiplied by itself n times, gives the same product. That makes it the natural average whenever quantities combine by multiplication rather than addition.
The classic use is averaging growth rates and returns. If an investment grows 10 percent one year and falls 10 percent the next, the arithmetic mean of +10 and -10 is zero, yet you actually end up with 99 percent of your money. Working with the growth factors 1.10 and 0.90, the geometric mean is the square root of 0.99, about 0.995, which correctly says the portfolio shrank slightly on average each year. This is why fund performance is reported as a compound (geometric) return, not a simple arithmetic one.
Two facts are worth remembering. First, the geometric mean is always less than or equal to the arithmetic mean of the same data, with equality only when every value is identical. The bigger the spread in the values, the wider that gap. Second, the geometric mean is only defined for positive numbers: a single zero drags the whole product to zero, and negative values would force a root of a negative number. To stay accurate on long lists, this tool computes the result as exp(mean of the natural logs) rather than multiplying everything directly, which avoids numeric overflow while giving the identical answer.
When to use it
- Averaging annual investment returns or growth rates into one compound (annualized) figure.
- Combining ratios or index numbers, such as price relatives in a consumer price index.
- Averaging values measured on different scales when building a composite score or index.
- Finding a representative average for data that spans several orders of magnitude.
How to use the Geometric Mean Calculator
- Type or paste your positive numbers, separated by commas, spaces, or new lines.
- For growth rates, enter the growth factors (a 10 percent rise is 1.10, a 10 percent fall is 0.90).
- Read off the geometric mean, shown next to the arithmetic mean for comparison.
- Check the count and product fields to confirm every value was read correctly.
Formula & method
Worked examples
Find the geometric mean of 2 and 8.
- Multiply the values: product = 2 x 8 = 16
- There are n = 2 values, so take the square root
- GM = 16^(1/2) = 4
- For comparison, arithmetic mean = (2 + 8) / 2 = 5
Result: Geometric mean = 4 (arithmetic mean = 5)
Find the geometric mean of 1, 3 and 9.
- Multiply the values: product = 1 x 3 x 9 = 27
- There are n = 3 values, so take the cube root
- GM = 27^(1/3) = 3
- For comparison, arithmetic mean = (1 + 3 + 9) / 3 = 4.333
Result: Geometric mean = 3 (arithmetic mean ≈ 4.333)
Average four yearly growth factors: 1.10, 0.90, 1.25, 1.05.
- Multiply the factors: product = 1.10 x 0.90 x 1.25 x 1.05 = 1.299375
- There are n = 4 values, so take the fourth root
- GM = 1.299375^(1/4) ≈ 1.0677
- So the average compound change is about +6.77 percent per year
- The arithmetic mean of the factors is 4.30 / 4 = 1.075, which overstates it
Result: Geometric mean ≈ 1.0677 (about +6.77% per year), arithmetic mean = 1.075
Geometric mean versus arithmetic mean for sample data sets
| Values | Geometric mean | Arithmetic mean |
|---|---|---|
| 2, 8 | 4 | 5 |
| 1, 3, 9 | 3 | 4.333 |
| 4, 4, 4 | 4 | 4 |
| 1, 100 | 10 | 50.5 |
| 1.10, 0.90 | 0.995 | 1.000 |
Which average to use
| Situation | Best average |
|---|---|
| Adding up quantities (heights, test scores) | Arithmetic mean |
| Multiplying rates or returns over time | Geometric mean |
| Averaging ratios or index numbers | Geometric mean |
| Averaging speeds over a fixed distance | Harmonic mean |
Common mistakes to avoid
- Including zero or negative numbers. The geometric mean is only defined for positive values. A single zero makes the whole product zero, and a negative value would require the root of a negative number. Convert percentages to positive growth factors (1.05, not -0.05) before averaging.
- Averaging percentages instead of growth factors. Do not take the geometric mean of figures like 10 and -10. Turn each percentage change into a factor first: +10 percent becomes 1.10 and -10 percent becomes 0.90, then average those.
- Using the arithmetic mean for compound returns. The arithmetic mean overstates average growth whenever the values vary, because gains and losses do not cancel symmetrically. Use the geometric mean to report the true compound (annualized) rate.
- Confusing the geometric and harmonic means. They are different averages. The geometric mean suits rates that multiply over time, while the harmonic mean suits averaging rates over a fixed quantity, such as speeds over the same distance.
Glossary
- Geometric mean
- The nth root of the product of n positive values, the average for quantities that combine by multiplication.
- Arithmetic mean
- The familiar average: the sum of the values divided by how many there are.
- Growth factor
- A multiplier representing a percentage change, where +5 percent is 1.05 and -5 percent is 0.95.
- Product
- The result of multiplying all the values together, the quantity whose nth root is taken.
- nth root
- The value that, raised to the power n, gives the original number. The square root is the 2nd root.
- Compound (annualized) return
- The single constant rate that reproduces the actual cumulative growth, found with the geometric mean.
Frequently asked questions
What is the geometric mean?
The geometric mean of n positive numbers is the nth root of their product. For two numbers it is the square root of their product, for three the cube root, and so on. It is the right average when values combine by multiplication, such as growth rates and ratios.
How is the geometric mean different from the arithmetic mean?
The arithmetic mean adds the values and divides by the count, suiting quantities that add up. The geometric mean multiplies the values and takes the nth root, suiting quantities that multiply, like returns over time. The geometric mean is always less than or equal to the arithmetic mean of the same data.
Why must all the numbers be positive?
The geometric mean relies on a product and a root. A zero would make the product zero and collapse the result, while a negative value would require taking a root of a negative number, which is not a real number. So only positive values are allowed.
How do I use the geometric mean for investment returns?
Convert each periodic change into a growth factor (a 7 percent gain is 1.07, a 4 percent loss is 0.96), take the geometric mean of those factors, then subtract 1. The result is the compound (annualized) return that matches your actual cumulative growth.
Why does this tool use logarithms?
Multiplying many values can overflow into a number too large to store, while still wanting an exact root. Computing exp of the average of the natural logs gives the identical geometric mean without that overflow, so the result stays accurate even on long lists.
Is the geometric mean always smaller than the arithmetic mean?
For positive numbers it is always less than or equal to the arithmetic mean, and they are equal only when every value is identical. The more spread out the values, the larger the gap between the two averages.