Geometric Mean Calculator
Find the geometric mean of two to eight positive numbers: the nth root of their product. Useful for averaging growth rates, ratios and other multiplicative data.
Enter up to 8 positive values:
How to Use
- Enter at least two positive values in Value 1 and Value 2. Every value must be greater than zero.
- Add more values if you need them. Up to eight are supported, and blank fields are ignored.
- Read the geometric mean. It updates as you type, next to the arithmetic mean, harmonic mean and product for comparison.
- Averaging growth rates? Enter growth factors, not percentages: 1.10 for +10%, 0.95 for −5%. The last row then shows the average rate per period.
What You'll Discover
- Geometric mean — the single value that, multiplied by itself n times, gives the same product as your n numbers.
- Arithmetic and harmonic means — for positive numbers the three always rank harmonic ≤ geometric ≤ arithmetic, so you can see how much the choice of mean matters for your data.
- Product — all values multiplied together, so you can check the working by hand. Very large or very small products are flagged instead of being shown as a broken number.
- Growth rate (GM − 1) — if your values are growth factors, this row converts the geometric mean back into an average percentage change per period. If your values are not growth factors, ignore it.
If any value is negative the calculator shows no result and explains why. If any value is zero it returns 0, because a zero makes the whole product zero. See the edge-case section below.
Geometric Mean Formula and How to Calculate It
Multiply the n numbers together, then take the nth root of the product:
GM = (x₁ × x₂ × … × xₙ)1/n
The same value can be found with logarithms, which is how software avoids overflow when the product is huge:
GM = exp( (ln x₁ + ln x₂ + … + ln xₙ) / n )
In words, the geometric mean is the arithmetic mean taken on a logarithmic scale and then converted back. That is why it suits quantities that combine by multiplication.
Worked example with two numbers
For 4 and 9, the product is 36 and the square root of 36 is 6. By logarithms, ln 4 = 1.3863 and ln 9 = 2.1972, their average is 1.7918, and e1.7918 = 6. A rectangle 4 units by 9 units has the same area as a square with sides of 6.
Worked example with five numbers
For 1, 2, 4, 8 and 16 the product is 1,024. The fifth root of 1,024 is 4, because 45 = 1,024. Notice the values double each step and the geometric mean lands exactly in the middle of the sequence, while the arithmetic mean is 6.2.
Giving one value more weight
This calculator does not have a weight column, but whole-number weights can be handled by repeating a value. To weight 8 three times as heavily as 2, enter 2, 8, 8, 8. The product is 1,024, the fourth root is about 5.6569, and that is the weighted geometric mean. For ordinary weighted averages, use the weighted average calculator.
Geometric Mean vs Arithmetic Mean vs Harmonic Mean
All three are averages, but each answers a different question. For any set of positive numbers that are not all equal, the harmonic mean is the smallest, the geometric mean sits in the middle and the arithmetic mean is the largest. This ordering is known as the AM-GM-HM inequality. The three means are identical only when every value is the same.
| Data | Arithmetic | Geometric | Harmonic |
|---|---|---|---|
| 2, 8 | 5 | 4 | 3.2 |
| 4, 9 | 6.5 | 6 | 5.5385 |
| 1, 2, 4, 8, 16 | 6.2 | 4 | 2.5806 |
| 1, 2, 3, 4, 5 | 3 | 2.6052 | 2.1898 |
| 3, 3, 3 | 3 | 3 | 3 |
The gap between the means grows as the numbers spread out. For 1 and 1,000,000 the arithmetic mean is 500,000.5, the geometric mean is 1,000 and the harmonic mean is about 2.
Which mean should you use?
- Arithmetic mean for quantities that add up, such as test scores, daily temperatures or weights. Use the average calculator.
- Geometric mean for quantities that multiply: growth factors, compounding returns, ratios and index numbers.
- Harmonic mean for rates measured over a fixed distance or amount, such as average speed over equal legs of a trip. Use the harmonic mean calculator.
A useful property: the geometric mean of ratios does not depend on which way you write them. The ratios 2 and 0.5 have a geometric mean of exactly 1 whether you read them as "A to B" or "B to A", but their arithmetic mean is 1.25 either way, which would imply both directions are larger than 1.
Using the Geometric Mean for Growth Rates and Returns
Growth compounds: each period's change applies to the result of the previous one. That makes the geometric mean of the growth factors the correct average, because multiplying the average factor by itself for each period reproduces the real final amount. Averaging the percentages arithmetically overstates growth whenever the results vary.
To use this calculator for growth, convert each percentage to a factor: add the percentage change to 1 (+10% becomes 1.10, −5% becomes 0.95). Enter the factors, then read the geometric mean and the "GM − 1" row. To go the other way, the percentage change calculator turns an old and new value into a percent change.
| Yearly returns | Factors | Arithmetic average return | Geometric average return | $100 grows to |
|---|---|---|---|---|
| +10%, −5%, +20% | 1.10, 0.95, 1.20 | 8.33% | 7.84% | $125.40 |
| +12%, −8%, +25%, +5% | 1.12, 0.92, 1.25, 1.05 | 8.50% | 7.84% | $135.24 |
| +50%, −50% | 1.50, 0.50 | 0% | −13.40% | $75.00 |
The last row shows the effect clearly. A 50% gain followed by a 50% loss averages to 0% arithmetically, yet $100 becomes $150 and then $75. The geometric average of −13.40% per year is what reproduces that outcome: $100 × 0.8662 = $75.
The geometric average return is the same quantity usually called the compound annual growth rate (CAGR) when the periods are years. This page is an educational maths tool and not financial advice; past returns say nothing about future results.
Zeros, Negatives and Other Edge Cases
The geometric mean is built for positive numbers. Outside that domain the answer is either degenerate or not a real number, and this calculator tells you which instead of showing a misleading value.
| Situation | What happens | What this calculator does |
|---|---|---|
| A value is zero (others positive) | The product is 0, so the mean is 0 whatever the other values are. | Shows 0 and explains why; the harmonic mean is shown as undefined. |
| A value is negative | The product can be negative, and an even root of a negative number is not real. | Shows no result and asks for positive values. |
| Only one value entered | An average needs at least two values. | Asks for a second value. |
| Very large or very small values | The product can overflow or underflow in standard computer arithmetic. | Switches to a logarithm method so the mean is still correct. |
| All values equal | The mean equals that value. | All three means match. |
If your data are percentage changes that include losses, the standard fix is to convert them to growth factors first, as in the previous section. A −5% change is the positive number 0.95, so it is allowed. If a zero means "no data" rather than a true zero, remove it from the list before averaging. Only a loss of 100% (a factor of exactly 0) legitimately makes the geometric average zero.
Spreadsheet users will see the same rule: the GEOMEAN function in Excel returns a #NUM! error when any data point is zero or negative.
What Is the Geometric Mean If...
What is the geometric mean of 2 and 8?
The geometric mean of 2 and 8 is 4. The product is 2 × 8 = 16 and the square root of 16 is 4. The arithmetic mean is 5, so the geometric mean is lower, as it always is for unequal positive numbers.
What is the geometric mean of 4 and 9?
The geometric mean of 4 and 9 is 6. The product is 36 and its square root is 6. The arithmetic mean is 6.5 and the harmonic mean is about 5.54.
What is the geometric mean of 5 and 20?
The geometric mean of 5 and 20 is 10. The product is 100 and its square root is 10. With two numbers, the geometric mean is the value whose ratio to the smaller number equals the larger number's ratio to it: 10 ÷ 5 = 20 ÷ 10 = 2.
What is the geometric mean of 1, 2, 3, 4 and 5?
The geometric mean of 1, 2, 3, 4 and 5 is about 2.6052. The product is 120 and the fifth root of 120 is 2.6052. The arithmetic mean is exactly 3, so the geometric mean is about 13% lower.
What is the geometric mean of 10 and 1,000?
The geometric mean of 10 and 1,000 is 100. The product is 10,000 and its square root is 100. It is the midpoint on a logarithmic scale (10, 100, 1,000), whereas the arithmetic mean of 505 is far from the middle on that scale.
What is the geometric mean of 100, 1,000 and 10,000?
The geometric mean of 100, 1,000 and 10,000 is 1,000. The product is 1,000,000,000 and its cube root is 1,000. The arithmetic mean is 3,700, pulled up by the largest value.
What is the average growth rate if returns were +10%, −5% and +20%?
The average growth rate is about 7.84% per year. The factors 1.10, 0.95 and 1.20 multiply to 1.254, and the cube root of 1.254 is 1.07837. Starting with $100, the three years give $125.40, the same as growing at 7.84% each year. The arithmetic average of 8.33% would suggest $127.14, which is too high.
What is the geometric mean if one value is zero?
If any value is zero, the geometric mean is 0. A single zero makes the product zero and the nth root of zero is zero, regardless of the other numbers. This is rarely a useful average, so check whether the zero really means "none" or just "missing".
What is the geometric mean if a value is negative?
It is not defined for negative values in real numbers, so this calculator gives no result. With an even count and a negative product the root is not real, and with mixed signs the result is hard to interpret. If the negatives are percentage changes, convert them to growth factors (−5% becomes 0.95) and try again.
What is the geometric mean if all the values are equal?
If all the values are equal, the geometric mean equals that value. For 3, 3 and 3 the product is 27 and the cube root is 3. In this case the arithmetic, geometric and harmonic means are all the same number.
People Also Search For
How to calculate the geometric mean without a calculator
Multiply the numbers, then take the nth root of the product. For two numbers use a square root, for three a cube root. For 3, 12 and 48 the product is 1,728 and its cube root is 12. If the product is awkward, add the natural logarithms, divide by n, and raise e to that power.
How to find the geometric mean in Excel or Google Sheets
Use the GEOMEAN function, for example =GEOMEAN(A1:A8). It accepts a range or a list of values and returns an error if any value is zero or negative. This calculator gives the same result for up to eight values and also shows the arithmetic and harmonic means.
How to calculate a weighted geometric mean
Raise each value to its weight, multiply, then take the root of the total weight. The formula is (x₁w₁ × x₂w₂ × …)1/(w₁+w₂+…). For values 2 and 8 with weights 1 and 3 that is (2 × 83)1/4 = 1,0241/4 ≈ 5.657, the same as entering 2, 8, 8, 8 above.
How to find the geometric mean of percentages or growth rates
Convert each percentage to a growth factor, find the geometric mean, then subtract 1. For +4%, +9% and −2% the factors are 1.04, 1.09 and 0.98. Their product is 1.111, the cube root is 1.0357, and the average rate is about 3.57% per period. Do not take the geometric mean of the raw percentages.
Why use the geometric mean to average ratios
It gives the same answer whichever way the ratio is written. The geometric mean of a set of ratios equals the ratio of the geometric means, so choosing which quantity goes on top does not change the conclusion. The arithmetic mean of 2 and 0.5 is 1.25 in both directions, which is inconsistent. The geometric mean of 2 and 0.5 is exactly 1.
Geometric mean vs harmonic mean
Use the geometric mean for compounding factors and the harmonic mean for rates over equal distances or amounts. For 2 and 8 they give 4 and 3.2. If you drive two equal legs at 40 and 60 mph, the harmonic mean (48 mph) is the true average speed, while the geometric mean (about 49 mph) would overstate it. Compare them on the harmonic mean calculator.
Frequently Asked Questions
When should I use the geometric mean instead of the arithmetic mean?
Use the geometric mean when values combine by multiplication, such as growth factors, compounding returns, ratios and index numbers. Use the arithmetic mean for quantities that add, such as scores, heights or temperatures.
Why must all values be positive for the geometric mean?
The calculation takes the nth root of a product. A negative value can make the product negative, and an even root of a negative number is not real. A zero makes the product zero, so the mean is 0 whatever the other values are.
Is the geometric mean always less than the arithmetic mean?
For positive numbers it is less than or equal to the arithmetic mean. It is strictly less unless every value is the same, in which case the two are equal. This is the AM-GM inequality.
How is the geometric mean used in finance?
It gives the average compound growth rate. Returns of +10%, −5% and +20% have factors 1.10, 0.95 and 1.20, a geometric mean of about 1.0784 and an average of 7.84% a year. The arithmetic average of 8.33% would overstate growth. This is an educational example, not financial advice.
What is the relationship between geometric and harmonic means?
For positive numbers, harmonic mean ≤ geometric mean ≤ arithmetic mean, and all three are equal only when every value is identical. For two numbers there is a neat identity: the geometric mean squared equals the arithmetic mean times the harmonic mean. For 2 and 8 that is 4² = 16 = 5 × 3.2.
What does the calculator do if I enter zero?
It shows 0 as the geometric mean and a note explaining that a zero makes the product zero. The harmonic mean is shown as undefined because it would divide by zero. If the zero means "no data", delete it from the list instead.
Can I enter negative numbers or percentages?
Negative numbers give no result. For percentage changes, convert them to growth factors first: add the percentage as a decimal to 1, so +10% is 1.10 and −5% is 0.95. Enter the factors, then read the "GM − 1" row for the average rate per period.
How many numbers can I enter?
You can enter two to eight values. Blank fields are ignored. To weight a value, repeat it, so a weight of 3 on 8 means entering 8 three times, as long as the total stays within eight fields.
How do I convert the geometric mean of growth factors into a percentage?
Subtract 1 and multiply by 100. A geometric mean of 1.0784 means 7.84% growth per period, and a geometric mean of 0.866 means a 13.4% decline per period. The calculator shows this in the last row, which only makes sense if your inputs were growth factors.
Does the order of the numbers matter?
No. Multiplication does not depend on order, so 2, 8, 4 gives the same geometric mean as 8, 4, 2. For growth rates the order changes the path of the balance but not the final product or the average rate.
What happens with very large or very small numbers?
Multiplying many large numbers can exceed what a computer can store. When the product is out of range, the calculator computes the mean from logarithms instead, so the geometric mean stays accurate, and the product row says it is too large or too small to display.
Is the geometric mean the same as the median?
No. The median is the middle value of a sorted list, while the geometric mean uses every value through multiplication. They can be close for skewed data, but they are different measures. For medians and modes, try the mean, median and mode calculator.
Is my data stored or sent anywhere?
No. All calculations run in your browser. Nothing you type is sent to a server or saved, and no account is needed.
Last reviewed: November 2026 — formulas and worked examples verified.