Harmonic Mean Explained: How to Average Rates Correctly

The harmonic mean is an average formed by taking the reciprocals of positive values, averaging those reciprocals and then taking the reciprocal again. It is especially useful when combining rates over equal amounts of the quantity in the numerator, such as speeds over equal distances. It gives more influence to small values than the ordinary arithmetic mean does.

That difference is practical rather than decorative. Travelling equal distances at 30 and 60 kilometres per hour produces an average speed of 40, not 45. The slower section occupies more time. Understanding why helps students avoid misleading averages in journeys, production rates and other comparisons. The safest starting point is always the underlying total, not a rule that says one particular average is automatically best.

Key takeaways

  • The harmonic mean averages reciprocals and then inverts the result.
  • It correctly combines positive speeds over equal distances.
  • Equal-time journeys instead use a time-weighted arithmetic calculation.
  • Unequal distances require suitable weights or direct totals.
  • Zeros, negative values and mixed units need special care.

Start with what average speed means

Average speed over a journey is total distance divided by total elapsed time. This definition works whether the speed changes twice or hundreds of times. It is more fundamental than choosing an averaging formula from a list.

Consider an invented journey with two 60-kilometre sections. The first is travelled at 30 kilometres per hour and takes two hours. The second is travelled at 60 kilometres per hour and takes one hour.

The total is 120 kilometres in three hours, giving 40 kilometres per hour. Adding the two speeds and dividing by two gives 45, but that calculation assigns equal importance to sections that occupied unequal amounts of time.

The arithmetic is not malfunctioning. It answers a different question: the unweighted average of the two listed speed values. To describe the whole journey, the averaging method must preserve the relationship between distance and time.

What is a reciprocal?

The reciprocal of a non-zero number is one divided by that number. The reciprocal of 4 is one-quarter; the reciprocal of one-half is 2. Multiplying a number by its reciprocal gives 1.

For a speed, taking the reciprocal changes the interpretation of the units. Kilometres per hour become hours per kilometre. The reciprocal therefore describes how much time is required for one kilometre at that speed.

This is the key to the harmonic mean’s usefulness. When distances are equal, comparing time per unit distance allows the time requirements to be added fairly. The final inversion turns the result back into distance per time.

Earth Site’s guide to using units to check calculations explains why retaining those units is helpful. Without them, reciprocals can look like an arbitrary numerical trick rather than a change in the quantity being averaged.

The harmonic mean formula

For positive numbers x1, x2 and so on up to xn, the harmonic mean is n divided by the sum of their reciprocals. Written in plain text: H = n / (1/x1 + 1/x2 + … + 1/xn).

For two values, the same expression simplifies to H = 2ab / (a + b). With 30 and 60, this gives 2 × 30 × 60 / 90 = 40. It matches the direct journey calculation because the two distances were equal.

The formula does not need to be memorised before its logic is understood. Equal distances mean that the required times are proportional to reciprocal speeds. Averaging those reciprocal speeds gives the time needed per unit distance across the combined trip.

Then taking the reciprocal returns a speed. This sequence explains both the formula and its conditions. If the distances are not equal, the simple unweighted expression no longer gives the whole-trip answer automatically.

Why small values have a strong effect

A small positive number has a large reciprocal. A very slow section therefore contributes a large amount of time per kilometre. That is why the harmonic mean is pulled towards smaller values more strongly than the arithmetic mean.

For the same positive dataset, the harmonic mean is no greater than the geometric mean, which is no greater than the arithmetic mean. They are equal when all the values are equal. This relationship compares formulas; it does not declare one universally preferable.

If all sections are travelled at 50 kilometres per hour, every sensible whole-journey calculation returns 50. Differences between the means become important when the values vary and the structure of the problem determines the appropriate weighting.

What changes when the times are equal?

Now imagine travelling for one hour at 30 kilometres per hour and one hour at 60. The distances are 30 and 60 kilometres. Total distance is 90 kilometres, total time is two hours and average speed is 45 kilometres per hour.

The same listed speeds now produce a different correct average because the exposure changed. Equal time gives equal time weights, so the ordinary arithmetic mean works. Equal distance gives equal distance weights, leading to the harmonic mean.

This comparison is a useful antidote to the rule “always use the harmonic mean for speeds”. That rule is incomplete. The correct method depends on what was held equal and on the quantity the final result is intended to describe.

A table of speeds without distances or durations may not contain enough information to determine a journey average. Asking for the missing information is better than selecting a formula that produces a plausible-looking number.

Unequal distances and the weighted harmonic mean

Suppose a fictional journey covers 40 kilometres at 20 kilometres per hour, followed by 80 kilometres at 80. The first section takes two hours and the second one hour. The average is again 120 divided by 3, or 40 kilometres per hour.

The unweighted harmonic mean of 20 and 80 is 32, which is not the journey average. The distances differ, so each reciprocal speed must be weighted by the distance to which it applies.

The general calculation is total distance divided by the sum of each section’s distance divided by its speed. In symbols: average speed = (d1 + d2) / (d1/v1 + d2/v2). This is a distance-weighted harmonic mean.

Notice that the formula is simply total distance divided by total time in another form. The weighted-mean language is useful, but it should not obscure the underlying definition that makes the answer correct.

Stops reveal a limitation of the simple formula

A vehicle that stops travels zero distance during a period of positive time. Overall journey speed must include that time if the question concerns elapsed travel time. A distance-only breakdown can miss the stop because its distance weight is zero.

Imagine the first 120-kilometre journey taking three hours of movement plus one hour stopped. Its elapsed-time average is 30 kilometres per hour, not 40. Its moving average and overall average answer different questions.

Trying to insert zero speed into a simple reciprocal formula creates division by zero. That is a signal to return to direct totals, not a reason to ignore the stop. Distance and elapsed time remain perfectly usable.

This example shows why formula conditions matter. A rule derived for positive speeds over non-zero sections should not be stretched silently into a situation involving waiting time. Define the journey and its time interval first.

Another example: completing equal amounts of work

Suppose a hypothetical machine processes one batch of 120 items at 30 items per minute and another batch of 120 at 60. The batches take four and two minutes. Across both batches, 240 items are processed in six minutes, giving 40 items per minute.

The harmonic mean appears because equal quantities of output are completed at different rates. The slower batch occupies more of the operating time. Averaging the two rate labels arithmetically would overstate the combined throughput.

If the machine instead runs for equal durations at the two rates, an arithmetic average is appropriate for output per total operating time. Once again, the rates themselves do not determine which mean is correct.

Real production adds downtime, rejects and setup periods. A calculation using only ideal processing rates may describe a simplified model rather than actual output per shift. The denominator must include the time relevant to the question.

Changing the units should not change the result

Converting all speeds consistently from kilometres per hour to metres per second changes the numerical values but not the physical average. Multiplying every input by the same positive conversion factor multiplies the harmonic mean by that factor.

Mixing units is different. Taking the harmonic mean of a number expressed in miles per hour and another expressed in kilometres per hour without conversion is meaningless. The formula cannot recognise that the numbers use different scales.

The same caution applies to rates expressed per hundred or per thousand. Earth Site’s guide to percentages helps explain why the scale factor belongs to the quantity, not just its typography.

Before calculating, write each rate with its numerator and denominator. Then identify what is being added in the real situation. This often reveals the needed weighting more clearly than the word “average” does.

What about zero and negative numbers?

The standard harmonic mean used here is defined for positive values. Zero has no finite reciprocal, and negative values can create cancellation or results that behave very differently from an ordinary positive-rate average.

A signed velocity is not the same as speed. Velocity includes direction; speed does not. A traveller who returns to the starting point can have zero average velocity over the full trip while maintaining a positive average speed.

Blindly combining signed velocities through a harmonic formula can therefore mix incompatible questions. Work from displacement and time for average velocity, or distance and time for average speed, using the definitions appropriate to each.

There are mathematical extensions and specialised conventions, but they should not be imported into a classroom rate problem without explanation. The positive-value condition is a useful safeguard rather than an inconvenient technicality.

How measurement uncertainty affects the average

A precise formula does not make uncertain inputs exact. If a speed is rounded or measured poorly, its reciprocal carries that uncertainty into the calculation. Small values can have a substantial influence on the result.

For a real journey, measuring total distance and elapsed time directly may be simpler and more reliable than combining many rounded section speeds. The best approach depends on the available observations and how they were collected.

Earth Site’s explanation of measurement uncertainty is useful here. Reporting an answer with many decimal places does not add knowledge if the underlying distances and times were approximate.

It is also worth checking the result against reasonable bounds. For positive moving sections without additional stops, the combined speed should lie between the smallest and largest section speeds. A result outside those bounds suggests an error or an unstated feature of the calculation.

A reliable method for choosing an average

First define the final quantity in words. Then write its total numerator and total denominator. For average speed, those are distance and time; for throughput, output and time. Calculate from those totals whenever possible.

Next identify what the supplied rates cover. Are the times equal, the distances equal or neither? If neither, use appropriate weights. Finally check units, include relevant pauses or losses and state the assumptions behind the answer.

This routine also exposes misleading comparisons. Two reports may give different averages because one describes moving time and the other elapsed time. Before deciding that one is wrong, establish whether they are answering the same question.

Conclusion

The harmonic mean is useful because it preserves the structure of certain rate problems, not because it is a more sophisticated replacement for ordinary averaging. Equal-distance journeys reveal its logic especially clearly: slower sections consume more time. Starting from totals, keeping units visible and identifying the correct weights turns a formula into an explanation—and makes misleading average claims much easier to recognise.

Frequently asked questions

When should I use the harmonic mean for speed?

Use the unweighted harmonic mean for positive speeds over equal distances. For unequal distances, use distance weights or calculate total distance divided by total time.

Why is the arithmetic mean sometimes correct?

It is correct when the speeds apply for equal durations. More generally, a time-weighted arithmetic mean gives the corresponding overall speed.

Can the harmonic mean exceed the arithmetic mean?

Not for the same set of positive values with matching weights. The harmonic mean is less than or equal to the arithmetic mean.

How should stops be handled?

Include stop time in total elapsed time when calculating the overall journey average. Do not force zero speed into a reciprocal formula that requires positive values.

Is a harmonic mean always the best average of rates?

No. The right method depends on what the rates describe, what is held equal and which total ratio you want. Start with the underlying definition.

Scroll to Top