Saved

Press the star next to a tool's name to save it.

All my tools

Geometric Mean Calculator

Use this geometric mean calculator to find the geometric mean and the harmonic mean of positive numbers, and compare them with the arithmetic mean.

Restored your last values ·

Type two or more positive numbers separated by commas, spaces or new lines. The calculator gives the geometric mean and the harmonic mean, and the arithmetic mean for comparison. Choose which one to show first.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Type your numbers, choose which mean you want first, then press Calculate.

A geometric mean calculator finds the geometric mean of a list of positive numbers, and also the harmonic mean and the arithmetic mean so that you can compare them. Type your numbers, choose which mean to show first, and press the button. The definitions follow the Wikipedia pages on the geometric mean and the harmonic mean, and the work is done in your browser. It also works as a harmonic mean calculator.

How to use the geometric mean calculator

  1. Type your positive numbers, separated by commas, spaces or new lines.
  2. Choose whether to show the geometric or the harmonic mean first.
  3. Press Calculate.

The geometric mean

The geometric mean of n positive numbers is the nth root of their product. The Wikipedia page also gives it as the exponential of the average of the natural logarithms, which is how the calculator computes it, avoiding overflow for long lists. For 2 and 8, the product is 16 and the square root is 4. For 1, 12 and 18, the product is 216 and the cube root is 6. For 1, 2, 3 and 4, it is the fourth root of 24, about 2.213. The geometric mean is always at most the arithmetic mean, and equal to it only when all numbers are the same.

When to use the geometric mean

The geometric mean is the right average for quantities that multiply, such as growth factors, ratios and index numbers. The page works through a series of yearly factors, 1.10, 0.88, 1.90, 0.70 and 1.25, whose geometric mean is about 1.0998, meaning an average growth of about 10 percent per year. The arithmetic mean of those factors would overstate the true average growth. It is also used for averaging numbers that span several orders of magnitude, such as the geometric mean of 1 and 1,000, which is about 31.62.

The harmonic mean

The harmonic mean is the number of values divided by the sum of their reciprocals, the reciprocal of the average of the reciprocals. For two numbers it is 2ab divided by (a + b), and for three it is 3abc over (ab + ac + bc). The page's main example is average speed: a journey out at 60 km/h and back at 20 km/h has an average speed of 2 × 60 × 20 ÷ 80, which is 30 km/h, not the arithmetic mean of 40. It also shows that two pumps that take 6 and 4 hours have a harmonic mean of 4.8, and that the harmonic mean of 1, 4 and 4 is 3 divided by 1.5, which is 2.

The three Pythagorean means compared

For any positive numbers, the page states that the harmonic mean is the least of the three, the arithmetic mean is the greatest, and the geometric mean lies in between. For two numbers there is a neat link: the harmonic mean equals the square of the geometric mean divided by the arithmetic mean. For 2 and 8, the means are 3.2, 4 and 5, and 4 squared divided by 5 is 3.2. The calculator shows all three and the order, which serves as a check on your input.

Choosing the right mean

Use the arithmetic mean for quantities that add, such as heights or costs. Use the geometric mean for quantities that multiply, such as growth rates and ratios. Use the harmonic mean for rates when the amount of work or distance is fixed, such as speeds over equal distances or prices per unit when you spend equal amounts. Choosing the wrong mean gives a result that is systematically too high or too low.

A worked example with growth rates

An investment grows by 20 percent in the first year, falls by 10 percent in the second and grows by 15 percent in the third. The growth factors are 1.20, 0.90 and 1.15. Their product is 1.242, so the investment grew by 24.2 percent over the three years. The geometric mean of the factors is the cube root of 1.242, about 1.0746, which is an average growth of about 7.46 percent a year. The arithmetic mean of the rates, 8.33 percent, would suggest a larger gain than the investor actually made.

The geometric mean in other fields

Besides growth rates, the geometric mean is used in price indexes, in comparing computer benchmark scores that are given as ratios, and in the study of data that follow a skewed distribution. Because it is the exponential of the mean logarithm, it treats a doubling and a halving as equal and opposite, which is what you want for ratios.

Typing your data

You can paste a column of numbers copied from a spreadsheet, one per line, or type them on one line with commas. A comma used as a thousands separator, as in 1,200, is read as one number. Decimals use a point. At least two numbers are needed, and up to 5,000 are accepted. Very long lists are handled through logarithms, so the product never has to be stored as one huge number.

Common mistakes

  • Including a zero or a negative number. The geometric and harmonic means need positive numbers.
  • Averaging growth rates with the arithmetic mean. Use the geometric mean of the growth factors.
  • Averaging speeds with the arithmetic mean. Use the harmonic mean for equal distances.
  • Using percentages instead of factors. Convert 10 percent to 1.10 first.
  • Expecting the three means to be equal. They match only if all numbers are the same.

What next

Use this often? Add Geometric Me to your Home screen.

Frequently asked questions

What is a geometric mean calculator?

A tool that finds the nth root of the product of n positive numbers, and also the harmonic and arithmetic means.

How do you find the geometric mean?

Multiply the numbers and take the nth root. The geometric mean of 2 and 8 is √16 = 4.

When should I use the geometric mean?

For quantities that multiply, such as growth factors and ratios. For yearly factors 1.10, 0.88, 1.90, 0.70 and 1.25 it is about 1.0998.

What is the harmonic mean?

n divided by the sum of the reciprocals. For 60 and 20 km/h on equal distances it is 30 km/h.

How are the three means ordered?

Harmonic ≤ geometric ≤ arithmetic, with equality only when all the numbers are equal.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools