Math calculators

Geometric Mean Calculator

Updated Jul 9, 2026 By Jehan Wadia
Rate Formulas
Data Input
Accepts commas, spaces, new lines or a mix. % symbols are stripped automatically. Scientific notation (e.g. 1.5e4) is supported.
n = 0 values
CSV files with multiple columns let you pick a column below; Excel files open an import dialog.

Introduction

The Geometric Mean Calculator finds the geometric mean of any set of numbers quickly and accurately. The geometric mean is a type of average that multiplies all your values together and then takes the nth root, where n is how many values you have. It is the best average to use when your numbers represent growth rates, percentages, ratios, or returns on investments. Unlike the regular (arithmetic) mean, the geometric mean handles compounding effects properly, which makes it essential in finance, biology, and many other fields.

This calculator supports both simple and weighted geometric mean calculations. You can type your numbers directly, paste them from a spreadsheet, or upload a CSV or Excel file. A built-in percentage mode lets you enter growth rates like 8% or -5% and converts them to multipliers automatically. After you click Calculate, you get the geometric mean along with a full step-by-step breakdown, a comparison with the arithmetic and harmonic means, and a bar chart that shows your data at a glance.

How to Use Our Geometric Mean Calculator

Enter your numbers into the calculator and it will find the geometric mean, show step-by-step work, and display a chart of your data.

Enter your numbers: Type or paste your values into the text box. You can separate them with commas, spaces, or put one number on each line. The calculator also accepts scientific notation like 1.5e4.

Weighted Mode: Turn this on if each value has a different weight or importance. When this is on, type one value and one weight per line, separated by a comma (for example, 5, 0.3). If you need a simple weighted average (arithmetic) instead, we have a dedicated tool for that as well.

Percentage / Growth Rate Mode: Turn this on if your numbers are percentage changes like 8% or -10%. The calculator will convert each percentage into a growth factor before finding the geometric mean. You can also use our Percent Change Calculator if you need to find the percentage change between two specific values.

Decimal places: Pick how many decimal places you want in your result. You can choose anywhere from 0 to 10. The default is 4.

Import from file: If your data is saved in a .csv, .xls, or .xlsx file, click the file upload button to load it. For CSV files with more than one column, you can pick which column to use. For Excel files, a dialog will let you choose the sheet, column, row, or cell range you want.

Calculate: Press the Calculate button to see your geometric mean, along with other stats like the arithmetic mean, harmonic mean, median, minimum, and maximum. Click Show Calculation Steps to see the full math behind the answer. Press Reset to clear everything and start over.

What Is the Geometric Mean?

The geometric mean is a type of average that works best when your numbers multiply together instead of add together. You find it by multiplying all your values, then taking the nth root, where n is how many values you have. For example, the geometric mean of 4 and 9 is the square root of 4 × 9, which equals 6.

How Is It Different from a Regular Average?

The regular average (called the arithmetic mean) adds all the numbers and divides by how many there are. The geometric mean multiplies them instead. This makes a big difference when your values change at different rates. The geometric mean is almost always smaller than or equal to the arithmetic mean. It also handles wide ranges of numbers much better because one very large value won't pull the result up as much. To explore all three common averages side by side, try our Mean Median Mode Calculator.

When Should You Use the Geometric Mean?

The geometric mean is the right choice any time your data involves growth rates, percentages, or ratios. Common uses include:

  • Investment returns — Finding the true average annual return of a stock or portfolio over several years. The geometric mean is the mathematical basis of the CAGR (Compound Annual Growth Rate), which is one of the most widely used metrics in investing.
  • Population growth — Calculating the average growth rate of a city, country, or species over time.
  • Inflation rates — Measuring how prices rise on average across multiple years. Our Inflation Calculator can help you see the real-world impact of inflation over time.
  • Science and biology — Comparing bacteria growth, pH levels, or lab results that span large ranges.
  • Business revenue growth — Tracking how fast sales or profits grow from year to year. You can also measure this with a Year Over Year Growth Calculator.

Important Rules to Know

The geometric mean only works with positive numbers in its basic form. If any value is zero, the result is automatically zero. If your data has negative numbers, that usually means you are working with percentage changes. In that case, you convert each percentage into a growth factor first. For example, a loss of 10% becomes 0.90, and a gain of 8% becomes 1.08. The calculator above handles this conversion for you when you turn on Percentage / Growth Rate Mode.

The Geometric Mean Formula

For n values labeled x₁, x₂, … xₙ, the formula is:

GM = (x₁ × x₂ × … × xₙ)1/n

When numbers get very large or very small, calculators use logarithms to avoid overflow errors. The formula then becomes:

GM = e(ln x₁ + ln x₂ + … + ln xₙ) / n

Both formulas give the same answer. The calculator above uses the logarithmic method to keep results accurate no matter how big or small your data is.

Weighted Geometric Mean

Sometimes each value matters more or less than the others. A weighted geometric mean lets you assign a weight to each number. Values with higher weights have a bigger effect on the result. This is useful in finance when building index funds or in any situation where some data points count more than others. For a deeper look at how weighting affects standard arithmetic averages, see our Weighted Average Calculator. If you are working with broader datasets and want a full suite of descriptive statistics — including standard deviation, variance, and more — we have dedicated tools for those as well.


Formulas used

Geometric Mean
GM = \left(\prod_{i=1}^{n} x_i\right)^{\frac{1}{n}}
Geometric Mean (Logarithmic Method)
GM = \exp\!\left(\frac{1}{n}\sum_{i=1}^{n} \ln(x_i)\right)
Weighted Geometric Mean
GM_w = \exp\!\left(\frac{\sum_{i=1}^{n} w_i \cdot \ln(x_i)}{\sum_{i=1}^{n} w_i}\right)
Growth Rate Conversion
x_i = 1 + \frac{r_i}{100}
Arithmetic Mean
\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i
Harmonic Mean
H = \frac{n}{\sum_{i=1}^{n} \frac{1}{x_i}}

Frequently asked questions

What numbers can I enter into the Geometric Mean Calculator?

You can enter positive numbers of any size. The calculator accepts whole numbers, decimals, fractions written as decimals, and scientific notation like 1.5e4. If you turn on Percentage / Growth Rate Mode, you can also enter negative values like -5% because the calculator converts them into positive growth factors first.

Why is my geometric mean result zero?

If any value in your dataset is zero, the geometric mean is always zero. This happens because the formula multiplies all values together, and anything multiplied by zero equals zero. Remove the zero values or check your data for errors if you expected a different result.

Why do I get an error when I enter negative numbers?

The geometric mean is undefined when your dataset has a mix of positive and negative numbers. If your negative numbers represent percentage losses (like -10%), turn on Percentage / Growth Rate Mode. This converts each percentage into a positive multiplier so the calculation works correctly.

How does Percentage / Growth Rate Mode work?

When this mode is on, the calculator treats each number as a percent change and converts it to a growth factor. It adds each value to 100% and divides by 100. For example, 8% becomes 1.08 and -5% becomes 0.95. The geometric mean of these factors tells you the average growth rate per period.

How do I enter weighted data?

Turn on the Weighted Mode toggle. Then type one value and weight pair per line, separated by a comma. For example:
5, 0.3
10, 0.5
8, 0.2
Each weight must be a positive number. The weights do not need to add up to 1.

Do the weights need to add up to 1 or 100?

No. The calculator normalizes the weights for you. You can use any positive numbers as weights. For example, weights of 2, 3, 5 work the same as 0.2, 0.3, 0.5.

Can I paste data from a spreadsheet?

Yes. Just copy a column or row from Excel, Google Sheets, or any other spreadsheet program, and paste it directly into the input box. The calculator recognizes commas, spaces, tabs, and line breaks as separators.

What file types can I upload?

The calculator accepts .csv, .xls, and .xlsx files. For CSV files with multiple columns, you pick which column to use. For Excel files, a dialog lets you choose the sheet and the specific cells, column, or row you want to import.

What does the logarithmic method mean in the results?

When your numbers are very large or very small, multiplying them directly can cause overflow or rounding errors. The calculator uses logarithms to add the log of each value, divide by n, and then convert back. This gives the exact same answer as the standard formula but keeps the math accurate.

How is the geometric mean different from the harmonic mean?

The geometric mean multiplies values and takes the nth root. The harmonic mean divides n by the sum of the reciprocals (1 divided by each value). The harmonic mean is best for averaging rates like speed or price-to-earnings ratios. The geometric mean is best for growth rates and returns. For any positive dataset, the harmonic mean ≤ geometric mean ≤ arithmetic mean.

Can I use this calculator to find CAGR?

Yes. Enter your annual growth rates in Percentage / Growth Rate Mode. The geometric mean of the growth factors equals the compound annual growth rate (CAGR). The result line will show both the geometric mean and the equivalent average growth rate as a percentage.

How do I copy or download my results?

Click the Copy Result button below the geometric mean value to copy it to your clipboard. To save the bar chart, click Download Chart (PNG) to get a PNG image file of the visualization.

Is there a limit to how many numbers I can enter?

There is no fixed limit. The calculator handles hundreds or even thousands of values. Very large datasets may take a moment to process, but the logarithmic method keeps the result accurate regardless of how many numbers you enter.

Why is the geometric mean always less than or equal to the arithmetic mean?

This is a proven math rule called the AM-GM inequality. It states that for any set of positive numbers, the arithmetic mean is always greater than or equal to the geometric mean. The two are equal only when all values in the set are the same.

What do the step-by-step calculations show?

Click Show Calculation Steps to see every part of the math. The steps list your values, show the natural log of each one, add the logs together, divide by n, and then raise e to that power to get the final geometric mean. In Percentage Mode, an extra step shows how each rate is converted to a growth factor.