Math calculators

Geometric Mean Calculator

Updated Sep 1, 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).

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.

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.

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.
  • 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.

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.


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

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.

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.

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.

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.

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.