The harmonic mean is the reciprocal of the average of reciprocals. Use it to average rates when the “per” quantity is fixed, such as speeds over the same distance or prices for the same amount spent.
HM = n ÷ Σ(1/x)
Example: you drive 60 km at 30 km/h and the next 60 km at 60 km/h. The average speed is not 45 km/h but 2 ÷ (1/30 + 1/60) = 40 km/h, because you spend longer at the slower speed.