CCalclabhub

Statistics

Harmonic mean of n values

Add the reciprocals of all values, then divide the count by that sum.

Last updated

The Formula

H = n / (1/x1 + 1/x2 + ... + 1/xn)

Add the reciprocals of all values, then divide the count by that sum.

SymbolMeaning
HHarmonic mean
nCount
xiValues

What Each Symbol Means

Hsame as input

Harmonic mean

The rate-aware average of the values.

nunitless

Count

How many values are being averaged.

xisame as input

Values

The positive numbers being averaged.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate a harmonic mean page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate A Harmonic Mean, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Harmonic mean of n values?

The formula for Harmonic mean of n values is H = n / (1/x1 + 1/x2 + ... + 1/xn). Add the reciprocals of all values, then divide the count by that sum.

What units should I use with Harmonic mean of n values?

Substitute H in same as input, n in unitless, xi in same as input. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Harmonic mean of n values?

Averaging speeds with the arithmetic mean. Equal distances at 30 and 60 miles per hour average to 40, not 45. The trip spends twice as long at the slow speed, and the arithmetic mean ignores that.