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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Positive numbers (separated by commas, spaces or new lines): type or paste your values.
- Read the result: Harmonic mean; the panel also shows Arithmetic mean, Geometric mean and Count.
Data plot
Table of values
| Value | 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 mean | 48 |
|---|---|
| Arithmetic mean | 50 |
| Count | 2 |
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.