CCalclabhub

Statistics

Harmonic mean of two values

The two value shortcut, identical in shape to two parallel resistors.

Last updated

The Formula

H = 2 x a x b / (a + b)

The two value shortcut, identical in shape to two parallel resistors.

SymbolMeaning
HHarmonic mean
aFirst value
bSecond value

What Each Symbol Means

Hsame as input

Harmonic mean

The average of the two values.

asame as input

First value

The first positive number.

bsame as input

Second value

The second positive number.

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 two values?

The formula for Harmonic mean of two values is H = 2 x a x b / (a + b). The two value shortcut, identical in shape to two parallel resistors.

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

Substitute H in same as input, a in same as input, b 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 two values?

Feeding in a zero. One over zero is undefined, so a single zero in the list makes the whole mean undefined. Filter zeros out or switch to a different average.