Skip to content
FiftyCalc Free calculators for all 50 states

Harmonic Mean Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Paste or type a list of positive numbers, such as speeds over equal distances or rates, to get their harmonic mean.

Result

Sample figures

Harmonic mean—

Arithmetic mean —

  • Geometric mean—
  • Count—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Harmonic Mean Calculator

Positive numbers (separated by commas, spaces or new lines): type or paste your values. Prefilled example: 40, 60.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Positive numbers (separated by commas, spaces or new lines): type or paste your values.
  2. Read the result: Harmonic mean; the panel also shows Arithmetic mean, Geometric mean and Count.

How this calculator works

Harmonic mean of n positive values: H = n ÷ (1/x₁ + 1/x₂ + … + 1/xₙ). It is defined here only when every value is greater than zero; otherwise the result shows —.

It is the right average for rates over equal amounts: driving equal distances at 40 mph and 60 mph gives an average speed equal to the harmonic mean of 40 and 60, not their arithmetic mean.

Worked example

Positive numbers (separated by commas, spaces or new lines)40, 60
Harmonic mean48
Arithmetic mean50
Count2

Frequently asked questions

What is the average speed for equal distances at 40 mph and 60 mph?

48 mph: 2 ÷ (1/40 + 1/60) = 48.

What is the harmonic mean of 1, 2 and 4?

3 ÷ (1 + 0.5 + 0.25) = 12/7 ≈ 1.7143.

Questions answered

Related calculators