Geometric Mean Calculator, With Harmonic and Arithmetic

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free geometric mean calculator. Find the geometric mean of a list of numbers, such as growth rates, alongside the arithmetic and harmonic means.

Arithmetic mean
0
Harmonic mean
0
Count
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the geometric mean calculator

  1. Enter your numbers, separated by commas, spaces or new lines. You can paste a column from a spreadsheet.
  2. Read the results.

The geometric mean calculator shows the geometric mean, the arithmetic mean and the harmonic mean, and how many numbers you entered. The geometric and harmonic means need every number to be greater than zero; if any aren't, the calculator still shows the arithmetic mean.

What is the geometric mean?

The geometric mean is a kind of average that multiplies the numbers together, rather than adding them, then takes the nth root:

Geometric mean = (x₁ × x₂ × … × xₙ)^(1/n)

For two numbers, it's the square root of their product. For three, it's the cube root, and so on.

The ordinary average, the arithmetic mean, answers the question "what single number, added n times, gives the same total?" The geometric mean answers "what single number, multiplied n times, gives the same product?" That makes it the right average for quantities that combine by multiplication, such as growth rates, ratios and percentages of change.

How the geometric mean calculator works

To avoid overflow with long lists or large numbers, the calculator uses logarithms, which give exactly the same result:

Geometric mean = exp((ln x₁ + ln x₂ + … + ln xₙ) ÷ n)

It also calculates:

Arithmetic mean = (x₁ + x₂ + … + xₙ) ÷ n

Harmonic mean = n ÷ (1/x₁ + 1/x₂ + … + 1/xₙ)

With the default figures, 2 and 8:

  • Geometric mean: √(2 × 8) = √16 = 4.
  • Arithmetic mean: (2 + 8) ÷ 2 = 5.
  • Harmonic mean: 2 ÷ (1/2 + 1/8) = 2 ÷ 0.625 = 3.2.

For positive numbers, the harmonic mean is never more than the geometric mean, which is never more than the arithmetic mean. They're equal only when all the numbers are the same. Together, these three are known as the Pythagorean means.

A worked example: average investment growth

An investment grows 10% in the first year, falls 20% in the second, and grows 25% in the third. What was the average yearly growth?

  1. Growth factors: 1.10, 0.80 and 1.25.
  2. Geometric mean: (1.10 × 0.80 × 1.25)^(1/3) = 1.1^(1/3) ≈ 1.0323.
  3. Average growth: about 3.23% a year.

Enter 1.10, 0.80 and 1.25 in the geometric mean calculator to check. The arithmetic mean of the percentages, (10 − 20 + 25) ÷ 3 = 5%, overstates the real growth. Check it: £100 growing 10%, falling 20% and growing 25% ends at £110, then £88, then £110, the same as growing 3.23% a year for three years. The geometric mean gives the true compound average; it's the same idea as the compound annual growth rate (CAGR).

When to use each mean

  • Arithmetic mean: for quantities that add up, such as test scores, heights or daily sales.
  • Geometric mean: for quantities that multiply, such as growth rates, returns, ratios, and data spanning several orders of magnitude.
  • Harmonic mean: for rates where the quantity is fixed, such as average speed over equal distances, or averaging price-earnings ratios.

The harmonic mean and average speed

You drive 60 km at 60 km/h and the next 60 km at 40 km/h. Your average speed isn't 50 km/h. The first leg takes 1 hour, the second 1.5 hours, so you cover 120 km in 2.5 hours, an average of 48 km/h. That's the harmonic mean of 60 and 40. Enter 60 and 40 in the geometric mean calculator to see all three: arithmetic 50, geometric about 48.99, harmonic 48.

Data spanning orders of magnitude

The geometric mean is useful when values vary widely, such as bacterial counts, earthquake energies or index scores combining different scales. A few very large values can dominate an arithmetic mean, while the geometric mean is less affected, because it averages on a logarithmic scale. For example, the geometric mean of 2, 8 and 32 is 8, while the arithmetic mean is 14.

Why the numbers must be positive

The geometric mean of a list including zero is zero, and with negative numbers it's either undefined or meaningless, because roots of negative products don't behave sensibly. That's why growth must be entered as factors, such as 0.80 for a 20% fall, rather than as percentages like −20. The geometric mean calculator only shows the geometric and harmonic means when every number is positive.

Who uses a geometric mean calculator

Investors and analysts use it to average returns and growth rates. Scientists use it for data on logarithmic scales, such as concentrations and counts. Economists use it in price indices. Students use it in statistics and maths courses, and businesses use it to average growth in sales, users or revenue over several periods.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Weighted geometric mean

Sometimes values should count unequally, such as returns over periods of different lengths. A weighted geometric mean raises each value to the power of its weight, multiplies them, and takes the root of the total weight. The geometric mean calculator treats every value equally; to weight a value, you can list it more than once, for example entering a two-year return factor as the yearly factor twice.

Common mistakes

  • Entering growth as percentages, such as 10 and −20, instead of factors like 1.10 and 0.80.
  • Using the arithmetic mean for returns, which overstates compound growth.
  • Including zero or negative numbers.
  • Averaging speeds arithmetically over equal distances.

Growth over many periods

The geometric mean is especially useful for averaging growth over many periods. If a business's revenue grew by 12%, 5%, −3%, 20% and 8% over five years, the factors are 1.12, 1.05, 0.97, 1.20 and 1.08. Their product is about 1.4783, so the revenue ended about 47.8% higher than it started. The geometric mean of the factors is about 1.0813, an average growth of 8.13% a year. Growing at exactly 8.13% a year for five years gives the same 47.8% overall increase. The arithmetic mean of the percentages, 8.4%, would slightly overstate it. Enter the five factors in the geometric mean calculator to check.

Ratios and index numbers

When averaging ratios, such as price relatives in an index, the geometric mean has a useful property: it treats increases and decreases symmetrically. The geometric mean of 2 and 0.5 is exactly 1, reflecting that doubling and halving cancel out, while their arithmetic mean is 1.25, which would suggest an overall rise. That's why many official price indices use geometric means at their lowest level, and why researchers average ratios, such as fold changes in laboratory results, on a logarithmic scale.

Normalising scores

When combining scores on different scales into a single index, such as rating products on price, quality and speed, the geometric mean stops any one score from dominating just because it's measured on a bigger scale. Multiplying all the values of one measure by 10, for example, multiplies the geometric mean by the same factor for every item, so the ranking doesn't change. Some well-known composite indices use the geometric mean for this reason.

Geometric mean in geometry

The name comes from geometry. The geometric mean of two lengths a and b is the side of a square with the same area as a rectangle with sides a and b. For example, a rectangle 2 by 8 has the same area as a square 4 by 4. In a right triangle, the altitude to the hypotenuse is the geometric mean of the two segments it divides the hypotenuse into.

Pasting data

You can paste a column straight from a spreadsheet into the geometric mean calculator. Remove thousands separators first, and convert percentages to growth factors before pasting.

A quick check

For any two positive numbers, the geometric mean sits between them, and it's always closer to the smaller one than the arithmetic mean is. If your result falls outside the range of your numbers, check the input.

Sources and further reading

Frequently asked questions

How do I calculate the geometric mean?

Multiply the numbers together and take the nth root, where n is how many numbers there are.

What is the geometric mean of 2 and 8?

When should I use the geometric mean?

For values that combine by multiplication, such as growth rates and returns.

Why is the geometric mean smaller than the average?

For positive numbers that aren't all equal, the geometric mean is always below the arithmetic mean.

Can I use negative numbers?

No. The geometric mean needs all numbers to be positive.

Is the geometric mean calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep