30 km/h out and 60 km/h back averages 40 km/h, not 45

Equal distances want the harmonic mean 2ab/(a + b). With 30 and 60 it gives exactly 40.

Statistics and data · Level: Classroom · Updated on 2026-11-10

The temptation is to answer 45, the arithmetic mean of 30 and 60. Ask the workbench for 2*30*60/(30+60) and it answers 40, and that is the average speed over the whole trip. The reason is that time, not distance, is what the speeds are spending: at 30 km/h the first half of the route takes twice as long as the second half at 60, so the slow leg gets two-thirds of the clock and pulls the average down toward itself.

The three classical means order the same pair differently, and the inequality is not a curiosity: for positive a and b the harmonic mean is at most the geometric, which is at most the arithmetic, with equality only when a = b. For 30 and 60 that is 40, √1800 ≈ 42.43 and 45. Any quantity built by adding reciprocals wants this mean — fuel economy quoted per distance rather than per hour, the average of price-earnings ratios across an index, the equivalent resistance of two conductors in parallel, whose reciprocal rule is the same algebra — and quoting the arithmetic mean in those places is the error this page exists to prevent.

Answer

40

How to read it

2·30·60/(30 + 60) on the workbench. The second link is the sum 90 that sits in the denominator; the third is the numerator 3600.

Source

The harmonic mean is the mean of rates taken over equal quantities rather than equal times; 2ab/(a + b) for two values is the standard form, and the out-and-back driving puzzle is the usual textbook instance

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.