Harmonic Mean: Formula, Examples and When to Use It
The harmonic mean is the average built for rates and ratios. For n positive values it is n divided by the sum of their reciprocals. For two numbers a and b it simplifies to 2ab/(a + b). The harmonic mean of 40 and 60 is (2 times 40 times 60)/(40 + 60) = 4800/100 = 48. It is always the smallest of the three classical means.
The harmonic mean matters because the ordinary average gives wrong answers for rates measured over equal distances, equal quantities, or equal money. A car driven out at 40 km/h and back at 60 km/h does not average 50 km/h; the slower leg takes more time, dragging the true average down to 48 km/h. The harmonic mean captures exactly this time-weighting.
Key Concepts
- Definition: HM of positive x_1, …, x_n = n/(1/x_1 + 1/x_2 + … + 1/x_n).
- Two numbers: HM of a and b = 2ab/(a + b).
- When to use it: averaging rates (speed, price per unit, work rates) when the denominator quantity — distance, items, money spent — is equal across observations.
- Size relation: for positive data, HM is less than or equal to the GM, which is less than or equal to the AM.
- Equal-time contrast: if instead the time spent at each speed is equal, the ordinary arithmetic mean is correct. The choice depends on what is held equal.
Formulas
- Harmonic mean: HM = n/(sum of reciprocals).
- Two-value form: HM = 2ab/(a + b).
- Assumptions: all values are positive; zero or negative values make the reciprocal sum meaningless or misleading.
Worked Example
A cyclist rides 60 km to a town at 40 km/h and returns the same 60 km at 60 km/h. What is the average speed for the whole trip? The times are 60/40 = 1.5 hours out and 60/60 = 1 hour back, totalling 2.5 hours for 120 km. So the average speed is 120/2.5 = 48 km/h. The harmonic mean gives it directly: (2 times 40 times 60)/(40 + 60) = 4800/100 = 48 km/h. The naive arithmetic mean (40 + 60)/2 = 50 km/h is wrong because the slower outward leg consumes more time. Note the contrast: had the cyclist ridden 1 hour at 40 km/h and 1 hour at 60 km/h, the AM's 50 km/h would be correct.
Common Misconceptions
- Average speed is always (v_1 + v_2)/2: only when the times are equal. For equal distances, the harmonic mean is required, and it always comes out lower than the arithmetic mean.
- The HM can exceed the AM: impossible for positive data. The harmonic mean is the smallest of the three Pythagorean means, never the largest.
- The HM handles zeros: it does not. A zero value makes 1/0 undefined, so the harmonic mean is undefined for data containing zero.
Real-World Applications
- Travel: average speed over equal-distance legs, such as round trips, is a harmonic mean.
- Investing: the average price per share when equal money is invested at different prices (rupee-cost averaging) is the harmonic mean of the prices.
- Fuel economy: averaging km-per-litre figures over equal distances uses the HM, not the AM.
- Work rates: two workers' combined time to finish one job relates harmonically to their individual times.
- Electronics: the equivalent of parallel resistors follows the harmonic-mean pattern.
The harmonic mean, n divided by the sum of reciprocals, is the correct average whenever equal chunks of the denominator — distance, quantity, or money — are combined at different rates. Remember its signature use in round-trip speeds, never let it exceed the arithmetic mean in your checks, and keep zeros out of the data.
Related blogs
- Arithmetic Progression: Formulas & Examples
- nth Term of an Arithmetic Progression: Formula Guide
- Sum of an Arithmetic Progression (AP): Formula and Examples
- Geometric Progression: Concepts, Formulas and Examples
- nth Term of a Geometric Progression: Formula & Examples
- Sum of a Geometric Progression (GP): Formula and Examples