How to Calculate the Geometric Mean in Excel With GEOMEAN
By ExcelReady TeamUpdated 6 min read
The short answer
To find the geometric mean in Excel, type =GEOMEAN(range), for example =GEOMEAN(A2:A6). It multiplies the values and takes the nth root. For growth rates or returns, turn each rate into a growth factor first: =GEOMEAN(1+B2:B5)-1. Every value must be above zero, or GEOMEAN returns #NUM!.
Key takeaways
- =GEOMEAN(range) multiplies the values and takes the nth root, where n is how many values there are.
- For returns or growth rates, add 1 to each rate, take GEOMEAN, then subtract 1.
- GEOMEAN needs every value to be greater than zero. A zero or negative value gives #NUM!.
- The geometric mean of growth is never higher than the simple AVERAGE, and it is the one that rebuilds the real end value.
- Without GEOMEAN, =POWER(PRODUCT(range),1/COUNT(range)) gives the same answer.
On this page+
The geometric mean in Excel is one function: =GEOMEAN(range). It multiplies the values together and takes the nth root, which makes it the right average for things that grow by multiplying, such as investment returns, sales growth or price changes. This guide shows the formula, how to use it with percentages, why it differs from the normal average, and how to fix the #NUM! error.
What is the geometric mean?#
The geometric mean is the nth root of the product of n positive numbers. In plain words: multiply all the values, then find the number that, multiplied by itself n times, gives the same product.
For 2 and 8, the product is 16. The square root of 16 is 4, so the geometric mean is 4. The ordinary average of 2 and 8 is 5.
| Values | Product | n | Geometric mean | Arithmetic mean (AVERAGE) |
|---|---|---|---|---|
| 2, 8 | 16 | 2 | 4 | 5 |
| 1, 3, 9 | 27 | 3 | 3 | 4.33 |
| 4, 4, 4 | 64 | 3 | 4 | 4 |
The geometric mean is never larger than the arithmetic mean. The two are equal only when every value is the same.
How to use GEOMEAN in Excel#
GEOMEAN takes numbers, cells or ranges, just like AVERAGE:
=GEOMEAN(number1, [number2], ...)To find the geometric mean of the values in A2:A6:
- Click an empty cell.
- Type
=GEOMEAN(A2:A6). - Press Enter.
GEOMEAN works in every current version of Excel on Windows and Mac, including Microsoft 365 and Excel for the web. Like AVERAGE, it skips empty cells and text inside a range. The AVERAGE function guide covers how those skipped cells work.
How to find the average growth rate with GEOMEAN#
For returns or growth rates, you can't put the percentages straight into GEOMEAN. A return of -5% is a negative number, and a return of 10% is 0.1, which would give a meaningless result. Instead, turn each rate into a growth factor: 1 plus the rate.
| A | B | C | |
|---|---|---|---|
| 1 | Year | Return | Growth factor |
| 2 | 2022 | 10% | 1.10 |
| 3 | 2023 | -5% | 0.95 |
| 4 | 2024 | 20% | 1.20 |
| 5 | 2025 | 4% | 1.04 |
In C2, type =1+B2 and fill down. Then find the average yearly growth:
=GEOMEAN(C2:C5)-1The result is 0.0686, or 6.86% when you format the cell as a percentage. The "minus 1" turns the average growth factor back into a rate.
You can skip the helper column. In Microsoft 365 and Excel 2021, this works as a normal formula:
=GEOMEAN(1+B2:B5)-1In Excel 2019 and older, it is an array formula. Confirm it with Ctrl+Shift+Enter on Windows (on a Mac, Ctrl+Shift+Return or ⌘+Shift+Return, depending on your version) or it may return the wrong value. If you need to average percentages that aren't growth rates, such as pass rates, see how to average percentages correctly.
Geometric mean vs average: which is right?#
Use the geometric mean when values multiply over time, and the ordinary AVERAGE when they add up. Here is why it matters with the table above.
The simple average of the four returns is (10% - 5% + 20% + 4%) / 4 = 7.25%. That sounds fine, but test it. Start with 1,000:
| Year | Real value | Grown by 7.25% a year | Grown by 6.86% a year |
|---|---|---|---|
| Start | 1,000.00 | 1,000.00 | 1,000.00 |
| 2022 | 1,100.00 | 1,072.50 | 1,068.64 |
| 2023 | 1,045.00 | 1,150.26 | 1,142.00 |
| 2024 | 1,254.00 | 1,233.65 | 1,220.39 |
| 2025 | 1,304.16 | 1,323.09 | 1,304.16 |
Only the geometric mean lands on the real end value of 1,304.16. The simple average overstates the growth because a loss followed by a gain does not cancel out. Losing 50% and then gaining 50% leaves you at 75%, not 100%.
This is the same idea as the compound annual growth rate. The CAGR formula guide shows the shortcut =(End/Start)^(1/Years)-1, which gives the same 6.86% here: =(1304.16/1000)^(1/4)-1. Use CAGR when you only know the first and last values, and GEOMEAN when you have each period's rate.
For skewed data that adds up, such as salaries or house prices, the median is often a better middle value than either mean. The comparison of average vs median explains when to choose it.
How to calculate a geometric mean without GEOMEAN#
You can build the geometric mean from PRODUCT, POWER and COUNT. This is useful in tools that lack GEOMEAN, or when you want to show each step:
=POWER(PRODUCT(C2:C5),1/COUNT(C2:C5))PRODUCT(C2:C5)multiplies the factors: 1.10 × 0.95 × 1.20 × 1.04 = 1.30416.COUNT(C2:C5)counts them: 4.POWER(..., 1/4)takes the 4th root: 1.0686.
Subtract 1 to get the rate, 6.86%. You can also write =PRODUCT(C2:C5)^(1/COUNT(C2:C5)), since ^ is the power operator. With a very long list, PRODUCT can grow too large or too small for Excel. In that case, GEOMEAN is safer.
Why does GEOMEAN return #NUM!?#
GEOMEAN returns #NUM! when any value is zero or negative. The geometric mean is only defined for positive numbers. Check these causes:
- You used rates instead of factors. A -5% return is -0.05. Use 1+rate, so it becomes 0.95.
- A real zero in the data. A zero makes the product zero. Decide whether that row belongs in the calculation, or exclude it.
- A loss of 100% or more. A factor of 0 or below means the investment was wiped out, and no average growth rate exists.
- Numbers stored as text. These are skipped inside a range, so the count and result can be off without any error. Convert them with VALUE first.
A #VALUE! error usually means you typed text directly into the formula, such as =GEOMEAN("ten",5).
Related averages: weighted and harmonic#
Excel has two other "special" averages you may meet:
- Weighted average: some values count more than others, such as course grades by credit hours. Use
=SUMPRODUCT(values,weights)/SUM(weights). The weighted average guide walks through it. - Harmonic mean:
=HARMEAN(range), used for averaging rates such as speed over equal distances.
For everyday summaries, AVERAGE, MIN and MAX still do most of the work. See how to use AVERAGE, MIN and MAX for a refresher.
Practise it#
The geometric mean builds on two skills: averaging a range and working with percent change. Practise AVERAGE, MIN and MAX in a live spreadsheet, then practise percent change and growth: you type each formula and it checks it instantly. Or try the growth-rate exercise on this page first.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Column C holds each year's growth factor (1 + the return). In F2, find the average yearly growth rate: take the geometric mean with =POWER(PRODUCT(C2:C5),1/COUNT(C2:C5)) and subtract 1. Press Enter.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Growth factor | ||||||
| 2 | Avg yearly growth | ||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 |
Tip: PRODUCT multiplies the four factors, POWER with 1/COUNT takes the 4th root, and -1 turns the factor back into a rate. The result is about 0.0686, or 6.86%.
Practise this in a lesson
Frequently asked questions
What is the formula for geometric mean in Excel?
Use =GEOMEAN(number1, [number2], ...), usually with a range such as =GEOMEAN(A2:A10). It returns the nth root of the product of the values. You can also write =POWER(PRODUCT(A2:A10),1/COUNT(A2:A10)).
Why does GEOMEAN return #NUM!?
At least one value is zero or negative. The geometric mean only works with positive numbers. For returns like -5%, convert each rate to a growth factor first with 1+rate, so -5% becomes 0.95.
How do I calculate the geometric mean of percentages in Excel?
Add 1 to each percentage, take the geometric mean and subtract 1: =GEOMEAN(1+B2:B5)-1. In Microsoft 365 and Excel 2021 this works as a normal formula. In older versions, confirm it with Ctrl+Shift+Enter.
When should I use the geometric mean instead of the average?
Use the geometric mean when values multiply together over time, such as investment returns, growth rates or price changes. Use the ordinary AVERAGE for values that add up, such as sales per day or test scores.
Is the geometric mean the same as CAGR?
They give the same result when you have every year's growth rate. The geometric mean of the yearly growth factors, minus 1, equals the compound annual growth rate between the first and last values.