Geometric Mean Calculator
- Multiply the 2 numbers together: 4 × 9 = 36. Then take the square root: 36^(1/2) = 6.
- The ordinary (arithmetic) mean of the same numbers is 6.5 — always at least as large, and strictly larger unless all the numbers are equal. The geometric mean is the right average for things that multiply: growth rates, ratios and index numbers.
- A single zero anywhere forces the geometric mean to zero, and negative values break it entirely — that is the price of a multiplicative average.
Our geometric mean calculator finds the geometric mean of any set of positive numbers you enter. The geometric mean is the nth root of the product of n numbers; for two numbers, it is √(a × b). The calculator returns the exact result along with the arithmetic mean for comparison, so you can see how the two averages differ. For example, the geometric mean of 4 and 9 is exactly 6, while their arithmetic mean is 6.5. Likewise, 2, 8 and 32 give exactly 8 because their product 512 is a perfect cube, and 1, 3, 9 and 27 give 5.1962 against an arithmetic mean of 10.
The geometric mean is the correct average for growth rates, ratios and index numbers — things that multiply rather than add. It never exceeds the arithmetic mean, and the two are equal only when all numbers are equal, a result known as the AM–GM inequality. Note that a single zero forces the geometric mean to zero, and it is undefined for negative values. This page shows the formula, step-by-step workings, worked examples and sources so you can verify every result the calculator produces.
Worked examples
Classic pair 4 and 9
Primary result: 6. (2 numbers · 4 · 9 · 8 · 27)
| Geometric mean | 6 |
| Arithmetic mean (for contrast) | 6.5 |
| Product of the numbers | 36 |
| How many numbers | 2 |
Doubling triple 2, 8, 32
Primary result: 8. (3 numbers · 2 · 8 · 32 · 27)
| Geometric mean | 8 |
| Arithmetic mean (for contrast) | 14 |
| Product of the numbers | 512 |
| How many numbers | 3 |
Powers of three
Primary result: 5.1962. (4 numbers · 1 · 3 · 9 · 27)
| Geometric mean | 5.1962 |
| Arithmetic mean (for contrast) | 10 |
| Product of the numbers | 729 |
| How many numbers | 4 |
Multiplying, then rooting
Multiplying, then rooting
The geometric mean works by multiplying your numbers together and then taking the nth root of that product, where n is how many numbers you started with. For two numbers, this simplifies to the square root of their product: √(a × b). A geometric mean calculator applies this rule directly, so you enter your values and receive the result without working through the multiplication and root extraction by hand. The method differs sharply from the arithmetic mean, which adds values and divides by the count.
Why call this an average at all? Because the geometric mean sits between your smallest and largest values, just like the arithmetic mean does. The geometric mean of 4 and 9 is exactly 6, sitting neatly between them, while their arithmetic mean is 6.5. For three numbers, 2, 8 and 32 give exactly 8 — their product 512 is a perfect cube, so the cube root lands on a whole number. For four numbers, 1, 3, 9 and 27 give 5.1962, compared with an arithmetic mean of 10. In each case the geometric mean provides a central value, but one pulled toward the lower end when the data includes outliers.
A fundamental rule governs the relationship between these two averages. The geometric mean never exceeds the arithmetic mean, and they are equal only when all numbers are equal. This is the AM–GM inequality, a proven mathematical result. When your numbers spread out, the gap between the two averages widens, which is why the geometric mean of 1, 3, 9 and 27 falls so far below their arithmetic mean of 10. The inequality explains why the geometric mean is the correct average for growth rates, ratios and index numbers — things that multiply rather than add. When values compound or scale proportionally, the arithmetic mean overstates the true central tendency.
Two limitations shape when this method applies. A single zero forces the geometric mean to zero, because any product containing zero equals zero, and the nth root of zero is zero. The geometric mean is also undefined for negative values, since roots of negative products do not yield real results in this context. These constraints mean the method suits positive data only — prices, returns, rates and similar quantities that stay above zero.
Worked examples
The table below presents three verified cases that show how the geometric mean and arithmetic mean compare side by side. Each pair of inputs was chosen to illustrate a distinct property of the geometric mean, so you can see at a glance when a geometric mean calculator gives a cleaner, more representative result than the familiar arithmetic average.
The first example uses two numbers, 4 and 9. The geometric mean of two numbers equals the square root of their product, √(4 × 9) = √36 = 6, while their arithmetic mean is (4 + 9) / 2 = 6.5. The second example uses three numbers, 2, 8 and 32. Their product is 512, which is a perfect cube, so the cube root is exactly 8. The third example uses four numbers, 1, 3, 9 and 27. Their geometric mean is 5.1962, compared with an arithmetic mean of 10. In every case the geometric mean is smaller than the arithmetic mean, which is consistent with the AM–GM inequality: the geometric mean never exceeds the arithmetic mean, and the two are equal only when all numbers are identical.
These examples also highlight why the geometric mean is the correct average for growth rates, ratios and index numbers — quantities that multiply rather than add. A single zero in the input set forces the geometric mean to zero, and the geometric mean is undefined for negative values, so the tool is best suited to strictly positive data.
| Input numbers | Geometric mean | Arithmetic mean |
|---|---|---|
| 4 and 9 | 6 | 6.5 |
| 2, 8 and 32 | 8 | — |
| 1, 3, 9 and 27 | 5.1962 | 10 |
Why it is always ≤ the arithmetic mean
The geometric mean never exceeds the arithmetic mean, and the two are equal only when every number in the set is identical. This relationship, known as the AM–GM inequality, is a fundamental rule of mathematics that holds true for any collection of positive numbers. A quick example shows why this matters in practice: the geometric mean of 4 and 9 is exactly 6, while their arithmetic mean is 6.5. The gap between the two values is not a calculation error — it reflects how each average responds to the spread between the numbers.
The arithmetic mean treats every value additively, so a larger number pulls the result upward. The geometric mean, by contrast, is the nth root of the product of n numbers — for two numbers, it is the square root of their product. This multiplicative approach dampens the effect of high outliers. The same pattern appears with larger sets. For 2, 8 and 32, the geometric mean is exactly 8 because their product, 512, is a perfect cube. For 1, 3, 9 and 27, the geometric mean is 5.1962, well below the arithmetic mean of 10. In each case, the geometric mean stays at or below the arithmetic mean, never above it.
This inequality has practical consequences for anyone using a geometric mean calculator. The geometric mean is the correct average for growth rates, ratios and index numbers — things that multiply rather than add. Using the arithmetic mean on such data overstates results, sometimes by a wide margin. The geometric mean also has strict limits: a single zero forces it to zero, and it is undefined for negative values. Understanding these constraints helps ensure the right average is applied to the right problem.
Where geometric means are the right tool
Some quantities grow on top of themselves rather than adding up in a straight line. Investment returns, population growth, inflation, and geometric scaling all work this way. When each period's change multiplies the previous total, the arithmetic mean gives a misleading picture, overstating the true average. A geometric mean calculator applies the right math for these situations: the nth root of the product of n numbers, or √(a × b) for two numbers.
The difference is easy to see with simple values. The geometric mean of 4 and 9 is exactly 6, while their arithmetic mean is 6.5. For three numbers, 2, 8 and 32 give exactly 8 because their product, 512, is a perfect cube. With a larger set, 1, 3, 9 and 27 produce 5.1962 against an arithmetic mean of 10. The geometric mean never exceeds the arithmetic mean, and they are equal only when all numbers are equal. This relationship, known as the AM–GM inequality, is why the arithmetic mean consistently overstates averages for multiplicative data.
Because of this property, the geometric mean is the correct average for growth rates, ratios and index numbers — things that multiply rather than add. Compound annual growth rates depend on it. Screen aspect ratios use it to find a representative shape. Financial index numbers rely on it to combine related percentages without distortion. Anywhere rates compound or scale factors chain together, the geometric mean reflects what actually happens over time.
Two limits are worth keeping in mind. A single zero in the data set forces the geometric mean to zero, since multiplying by zero collapses the entire product. The geometric mean is also undefined for negative values, because roots of negative products do not yield real results in this context. For data that includes zeros or negatives, a different measure is needed.
Zeros and negatives
The geometric mean is the nth root of the product of n numbers, so any value that disrupts multiplication disrupts the average. A single zero in the dataset is the most direct example. Because the geometric mean is found by multiplying every number together and then taking the root, inserting a zero makes the entire product zero. No matter what the other values are, the result becomes zero. This makes a geometric mean calculator useless for datasets that contain even one zero, since the average collapses completely.
Negative values create a different but equally serious problem. The geometric mean is undefined for negative numbers. Multiplying an odd count of negative values produces a negative product, and taking a root of a negative number leads to complex or imaginary results that have no practical meaning as an average. Multiplying an even count of negatives gives a positive product, but the result no longer reflects a meaningful central value of the original data. For these reasons, standard geometric mean calculations simply do not accept negative inputs.
Practitioners who need an average for data that includes zeros or negative values typically turn to alternatives. A common substitute is the log mean, which works with transformed values and can handle zeros more gracefully than the geometric mean. Others switch to the arithmetic mean, which adds rather than multiplies and therefore tolerates both zeros and negatives. The trade-off is that the arithmetic mean may not represent the data correctly for growth rates, ratios, and index numbers — the exact situations where the geometric mean is the correct choice. The geometric mean never exceeds the arithmetic mean, and the two are equal only when every number in the dataset is the same.
The sensitivity to zeros and negatives is not a flaw so much as a reflection of what the geometric mean measures. It is built for quantities that multiply rather than add, and such quantities are naturally positive. Growth rates, price relatives, and index numbers all fit this description. When data falls outside that boundary, the issue is usually with the data, not the method.
- A single zero makes the geometric mean exactly zero, regardless of other values
- Negative values make the geometric mean undefined, since roots of negative products do not yield a usable average
- Log means offer a practical alternative when zeros appear in the data
- The arithmetic mean accepts zeros and negatives but may misrepresent multiplicative data
The logarithm shortcut
The geometric mean is defined as the nth root of the product of n numbers — for two numbers, that simplifies to √(a × b). Multiplying values together and then taking a root gets unwieldy fast, especially with large datasets. The logarithm shortcut sidesteps this problem entirely. Because logarithms convert multiplication into addition, taking the log of each number lets you add the values together instead of multiplying them. You then divide by the count of numbers and exponentiate the result. In effect, averaging the logarithms transforms a geometric mean calculation into a straightforward arithmetic one.
This bridge between the two worlds is more than a computational trick — it reveals why the geometric mean behaves the way it does. When you average logs and convert back, you are computing an arithmetic mean in logarithmic space, then translating that result into ordinary numbers. The arithmetic mean, by contrast, averages the numbers directly. The AM–GM inequality states that the geometric mean never exceeds the arithmetic mean, and the two are equal only when every value in the set is identical. That gap exists because multiplication and addition weight values differently: products are pulled by small numbers, while sums are driven by large ones.
The distinction matters most when the numbers represent things that multiply rather than add. Growth rates, ratios, and index numbers compound over time or across categories, so their correct average is the one that respects that multiplicative structure. A geometric mean calculator applies the logarithm approach behind the scenes, letting you enter raw values and receive the correct result without manual log tables or root extractions.
Two constraints shape when this method applies. A single zero in the dataset forces the geometric mean to zero, because any product containing zero is zero. Negative values make the geometric mean undefined, since logarithms of negative numbers are not real. For datasets that stay positive, though, the logarithm shortcut delivers exact, reproducible answers every time.
FAQs
How do you find the geometric mean?
Multiply all the numbers together, then take the nth root of the product, where n is the count of numbers. For example, with 4 and 9, you calculate √(4 × 9) = √36 = 6. This method captures the multiplicative relationship between values rather than their simple sum.
What is the difference between geometric and arithmetic mean?
The geometric mean (6) averages multiplicatively; the arithmetic mean (6.5) averages additively. The geometric is never larger. Use the arithmetic mean when values combine by addition, and the geometric mean when values combine by multiplication, such as rates or ratios.
When should I use the geometric mean?
Use it for anything that compounds: investment returns, growth rates, ratios, and scale factors. These quantities multiply over time, so a multiplicative average fits. Arithmetic means suit things that add, like totals or counts. Matching the averaging method to how the data combines gives a more accurate result.
What is the geometric mean of 1, 3, 9 and 27?
Multiply the four numbers and take the fourth root: (1 × 3 × 9 × 27)^(1/4) = 729^(1/4) ≈ 5.1962. This result reflects the multiplicative midpoint of the set, which is more meaningful than the arithmetic average for values that grow by a constant factor.
What happens if one number is zero?
Yes — a zero anywhere makes the product, and therefore the geometric mean, zero. Since the method multiplies every value together, a single zero collapses the entire product. This is why the geometric mean is not suitable for datasets that include zero unless a zero result is meaningful for your analysis.
Can the geometric mean handle negative numbers?
No — real-valued roots of negative products are not defined in general, which is why growth series are converted to growth factors first. A negative value can make the overall product negative, and even roots of negative numbers do not produce real results. Always transform data to positive growth factors before calculating.