Boneyard Tools

Harmonic Mean Calculator

Paste a list of positive numbers to find their harmonic mean, the count divided by the sum of the reciprocals. It is the correct average for rates, speeds and ratios over a fixed base.

How to calculate the harmonic mean

  1. Enter your positive numbers separated by commas, spaces or new lines.
  2. The calculator sums the reciprocals and divides the count by that sum.
  3. Read the harmonic mean, for example an average speed over equal distances.

Examples

Harmonic mean of 1, 2, 4

1, 2, 4
Harmonic mean = 1.7143 (which is 12 / 7)

Average speed for equal distances

60, 40
Harmonic mean = 48

Frequently asked questions

What is the harmonic mean?

The harmonic mean is the number of values divided by the sum of their reciprocals. It gives more weight to smaller values and is always less than or equal to the geometric and arithmetic means of the same data.

When should I use the harmonic mean?

Use it to average rates and ratios that share a common base, such as speeds over equal distances, price-to-earnings ratios, or rates of work. In those cases the arithmetic mean would overstate the true average.

Why does the harmonic mean suit average speed?

If you travel equal distances at different speeds, the time spent at each speed differs, so a simple average is wrong. The harmonic mean weights by time correctly. Driving 60 then 40 over equal distances gives an average of 48, not 50.

Why must all the values be positive?

The harmonic mean adds the reciprocals of the values. A zero has no reciprocal and would make the result undefined, while mixing signs can produce a meaningless figure, so the calculator requires every value to be greater than zero.

How does the harmonic mean compare with the arithmetic mean?

For any data set with positive values that are not all equal, the harmonic mean is smaller than the arithmetic mean. The two are equal only when every value is the same. The harmonic mean is the most conservative of the common averages.

Related tools