Toolstia / Geometric mean calculator

Geometric mean calculator

The geometric mean is the right average for growth rates and ratios. Paste a list of numbers and get the geometric, arithmetic and harmonic means and the root mean square. Switch to growth mode to turn yearly returns into one average rate.

The geometric mean multiplies the numbers and takes the n-th root. It is the right average for growth rates and ratios. In growth mode each rate r becomes the factor 1 + r/100.

How it works

  1. Paste your numbers, separated by spaces, commas or new lines.
  2. Tick growth mode if they are percentage rates.
  3. Read the means.

The formula

The geometric mean is the n-th root of the product of n numbers. It is worked out with logarithms here, so long lists do not overflow.

Growth mode

Each rate r becomes the factor 1 + r/100. The geometric mean of those factors minus 1 is the steady yearly rate that gives the same total growth.

Why not the plain average

Gains of +50 percent then -50 percent leave you down 25 percent, but the plain average says 0. The geometric mean shows the true loss.

Requirements

The geometric and harmonic means need every number above 0. In growth mode each rate must be above -100 percent.

Questions

Can I include zero?

Not for the geometric or harmonic mean, because the result would be 0 or undefined. Everything happens in your browser, and nothing you enter is sent anywhere.

Which mean is largest?

For positive numbers the order is always RMS, then arithmetic, then geometric, then harmonic, unless all the numbers are equal.

Is this the same as CAGR?

The growth mode gives the same answer as the compound annual growth rate for yearly returns.