CalculatorForEver
MATH / CALCULATOR

Harmonic Mean Calculator

Calculate harmonic mean with worked steps, clear input conventions and a result table.

For n positive observations, H = n/(1/x₁ + 1/x₂ + … + 1/xₙ). Values 30 and 60 have harmonic mean 40 because 2/(1/30+1/60) = 40.

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the harmonic mean calculator works

How to use this calculator

Enter the values in the stated format. Calculate and review the method, exact distinctions and any numerical limits before using the result.

What the result means

The harmonic mean averages positive values through their reciprocals. It is useful for certain rates when equal amounts of the underlying quantity are involved, such as equal distances traveled at different speeds. The weighting condition determines whether it answers the practical question. This calculator gives the unweighted harmonic mean of the entered positive observations. It does not infer distances, durations or other weights, and it does not replace every average of rates.

The formula

HM = n / Σ(1/x)

A worked example

The harmonic mean of 2 and 6 is 3.

Assumptions & methodology

Use consistent units and inspect the displayed working. Numerical results are rounded for display; unsupported or unstable inputs are rejected. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

Wolfram MathWorld: harmonic mean

WORK THROUGH THE DETAILS

Using your harmonic mean result

Work a three-observation reciprocal example

For positive values 2, 3 and 6, the reciprocal sum is 1/2 + 1/3 + 1/6 = 1. Dividing the count 3 by that sum gives harmonic mean 3. Their arithmetic mean is 11/3, approximately 3.6667, while their geometric mean is the cube root of 36, approximately 3.3019. For this positive dataset, the harmonic mean is the smallest of those three. That ordering gives a useful check, but it does not establish which average is appropriate to the task.

Understand the influence of small positive values

The reciprocal of a small positive observation is large, so it can contribute strongly to the denominator. Values 1 and 100 have harmonic mean 2/(1+0.01), approximately 1.9802, far below their arithmetic mean 50.5. This behavior fits a long delay caused by a slow equal-distance leg: high speed on another leg cannot erase time already spent. It can be inappropriate for a dataset whose observations are additive amounts. Choose the model from the quantity relationship before judging the result by familiarity.

Handle zero, negative and missing entries deliberately

This interface requires positive values. A zero observation makes its reciprocal undefined in the ordinary formula, and mixed signs can produce a zero denominator or an interpretation outside the positive-rate model. The tool rejects those inputs instead of dropping them. If zero means a stopped vehicle in a particular problem, calculate total distance and time from the actual situation; an infinite-duration implication may need an explicit model. Repeated values count as repeated observations. Keep units consistent, since combining kilometers per hour with miles per hour without conversion changes the input magnitudes.

Retain the count of repeated rate observations

The list 30, 60, 60 has harmonic mean 3/(1/30+1/60+1/60) = 45. Removing a repeated 60 changes the mean to 40. In an equal-distance interpretation, the repeated speed represents another leg of the same length, so its inclusion changes total distance and time. A distinct-value list does not preserve those frequencies. If an observation is duplicated by a data-import mistake, correct the underlying record before calculating. If it describes a genuine repeated measurement, keep it. The calculator treats each supplied positive number as one observation and does not decide which repetitions are intentional.

INTERPRETATION

Understanding harmonic mean results

Average equal-distance speeds through total time

Travel 60 kilometers at 30 km/h, then another 60 kilometers at 60 km/h. The first leg takes two hours and the second one hour. Total distance is 120 kilometers over three hours, so average speed is 40 km/h. The harmonic mean of 30 and 60 gives the same answer because the distances match. The arithmetic mean, 45, would correspond to equal time at each speed rather than equal distance.

Check what remains equal before choosing the mean

If you travel one hour at 30 km/h and one hour at 60 km/h, total distance is 90 kilometers over two hours. Average speed is then 45 km/h, the arithmetic mean. If distances or time intervals are unequal, an unweighted formula generally does not fit. Calculate the relevant totals or use suitable weights. Entering two speeds into this form cannot supply the missing information about how long or how far each speed applied.

RELATED GUIDES

Related questions and worked examples

Read a worked explanation before trying another calculation.

QUESTIONS

Harmonic Mean questions

Can I use this for unequal-distance journeys?+

Not without appropriate weights. Calculate total distance divided by total time, or use a weighted harmonic mean with the distances as weights.

Is harmonic mean always smaller than arithmetic mean?+

For positive unweighted data, it is no larger than the arithmetic mean. They are equal when all observations are equal.