To use this harmonic mean calculator, simply type in the numbers which you want to calculate the harmonic mean of, and the result will appear immediately. Keep reading if you are wondering what the harmonic mean is, or how to calculate it by hand. Apart from the harmonic average definition, we also explain the relationship between the arithmetic and harmonic mean, as well as give the formula for the weighted harmonic mean.

How to calculate the harmonic mean with our calculator?

Let's try to find the harmonic mean of 3, 4, 6, and 12:

  1. Type the first value into the first box: in our case it is 3.
  2. Enter the remaining values in the next three boxes. Eight boxes are available at the beginning, but you can enter up to 30 numbers - the boxes will appear as you type.

We see that the harmonic mean of 3, 4, 6, and 12 is equal to 4.8.

What is the harmonic mean?

The harmonic mean is one of the three most popular types of average, along with the well-known arithmetic mean and the geometric mean.

How to find the harmonic mean?

  • Count the numbers - let's say there are n of them.
  • Compute the reciprocal of each number - recall the reciprocal of x is just 1/x.
  • Add those reciprocals and denote the sum by s.
  • Calculate the harmonic mean by dividing n by s.

As an example, let us calculate the harmonic average of 3, 4, and 6:

  • There are three numbers, so n = 3
  • Let's take the reciprocals: ⅓, ¼, and ⅙
  • Hence, we have s = ⅓ + ¼ + ⅙ = ¾ .
  • Finally, calculate the harmonic average: n / s = 3 / ¾ = 4

Harmonic mean formula

Formally, the definition of the harmonic mean of n positive numbers, x₁, x₂, ..., xₙ is the following

harmonic mean formula

Harmonic average of two or three numbers

  • Two numbers

For two positive numbers, x and y, the harmonic mean formula simplifies to the following:

H = 2 * x * y / (x + y),

i.e., you need to double the product of x and y and divide it by the sum of x and y.

For instance, the harmonic mean of x = 2 and y = 8 is equal to:

H = 2 * 2 * 8 / (2 + 8) = 32 / 10 = 3.2

  • Three numbers

For three positive numbers x, y and z we have the following harmonic mean formula:

H = 3 * x * y * z / (x * y + y * z + z * x)

As an example, let's calculate the harmonic mean of x = 2, y = 5, and z = 10:

H = 3 * 2 * 5 * 10 / (2 * 5 + 5 * 10 + 10 * 2) = 300 / 80 = 15 / 4 = 3.75

Relation to other means

  1. The harmonic mean of x₁, ... , xₙ is equal to the reciprocal of the arithmetic mean of 1/x₁, ... , 1/xₙ.

  2. If there are only two numbers, you can compute the harmonic mean as the ratio of the geometric mean squared and the arithmetic mean: H = G2 / A.

  3. For any list of positive numbers, the harmonic mean exceeds neither the arithmetic and nor the geometric mean.

Weighted harmonic mean

Similarly to the weighted arithmetic average, the harmonic mean has a weighted variant. If we have a list of numbers x₁, x₂, ..., xₙ and an associated list of weights w₁, w₂, ..., wₙ, then the weighted harmonic mean is defined as:

weighted harmonic mean formula

Some applications

  1. Geometry:

  2. Finance:

  3. Physics:

    • Average speed: if you travel a certain distance at speed v₁, and then return (over the same distance!) at a speed v₂, then your average speed is the harmonic mean of v₁ and v₂. However, if you travel for a certain amount of time at a speed v₁ and then the same amount of time at a speed v₂, then your average speed is given by the arithmetic mean of v₁ and v₂!

    • Resistance: if you connect n resistors in parallel, then the effect is the same as if you had only one resistor which has a resistance equal to n times the harmonic average of all of the resistor's resistances. However, if you connect those resistors in series, then the total effect is n times the arithmetic mean!

    • Capacitance: if you have capacitors connected in series - use the harmonic mean to compute the average capacitance. If you have capacitors in parallel - use the arithmetic mean.

Anna Szczepanek, PhD candidate

Get the widget!

Harmonic Mean Calculator can be embedded on your website to enrich the content you wrote and make it easier for your visitors to understand your message.

It is free, awesome and will keep people coming back!

Harmonic Mean Calculator | Formula | Examples