
Harmonic Mean
Harmonic mean of a set of positive numbers.
Harmonic mean
48
2 values
Arithmetic mean
50
AI Breakdown & Smart Takeaway
Plain-English insight on your numbers
Get a personalized explanation of what these results mean — and how to improve them.
How the Harmonic Mean works
This calculator computes the harmonic mean of any set of positive numbers — the statistically correct average to use when your data represents rates, ratios, or speeds. It's ideal for students, engineers, analysts, and anyone who needs a mathematically rigorous alternative to the simple arithmetic mean.
The harmonic mean is calculated by dividing the count of values (n) by the sum of their reciprocals. In practice, you enter a list of positive numbers, and the calculator inverts each one, sums those reciprocals, then divides n by that sum. Because it weights smaller values more heavily than larger ones, the harmonic mean is always less than or equal to both the arithmetic mean and the geometric mean for any given dataset — a relationship guaranteed by the AM-GM-HM inequality.
The most important factor affecting your result is the presence of very small values. Because the harmonic mean uses reciprocals, a number close to zero will create an extremely large reciprocal that dominates the sum, pulling the harmonic mean sharply downward. This sensitivity is actually a feature, not a bug: in rate-based problems, a very slow leg of a journey really does drag down the overall average speed disproportionately, and the harmonic mean captures that reality accurately. This is precisely why the arithmetic mean gives misleading answers for averaged rates.
A classic use case is averaging speeds over equal distances. Suppose you drive 60 km/h on the way to a destination and 40 km/h on the return trip. The naive arithmetic average is 50 km/h, but the true average speed — total distance divided by total time — is the harmonic mean: 2 / (1/60 + 1/40) ≈ 48 km/h. The same logic applies in finance when averaging price-to-earnings ratios across a portfolio, in physics when combining parallel resistances, and in statistics when aggregating rates such as conversion rates, fuel efficiency figures, or unit costs per item.
A common mistake is applying the harmonic mean to data that isn't a rate or ratio. If you're averaging test scores, temperatures, or raw counts, the arithmetic mean is almost certainly the right tool. Another frequent error is including a zero in the dataset: because 1/0 is undefined, the harmonic mean is only valid for strictly positive numbers, and this calculator enforces that requirement. When some values are negative or zero, consider whether the data needs transformation or whether a different measure of central tendency is more appropriate.
Formula
HM = n / Σ(1/xᵢ)
Pro tips
- Use the harmonic mean whenever your numbers are rates with a fixed numerator — identical distances traveled, identical dollar amounts invested, or identical quantities produced — and the denominator varies.
- In financial analysis, the harmonic mean is the standard method for averaging valuation multiples like P/E or P/S ratios across a portfolio, because it correctly accounts for the reciprocal nature of these metrics.
- Always verify that every value in your dataset is strictly positive before computing the harmonic mean; even a single zero makes the calculation undefined and suggests you may be using the wrong metric.
- When comparing means, remember the order: if your dataset has any variation, HM < GM < AM. If your computed harmonic mean equals the arithmetic mean, all your input values are identical — useful as a quick sanity check.
- For fuel efficiency comparisons (e.g., miles per gallon), use the harmonic mean across equal distances driven; for energy intensity (gallons per mile), use the arithmetic mean — getting this backwards is one of the most common errors in environmental and engineering reporting.
Key terms
- Harmonic Mean
- — The reciprocal of the arithmetic mean of the reciprocals of a set of positive numbers, used as the correct average for rates and ratios.
- Arithmetic Mean
- — The sum of all values divided by their count; the familiar everyday average, appropriate for additive quantities but misleading for rates.
- Geometric Mean
- — The n-th root of the product of n values, commonly used for growth rates and index numbers; always falls between the harmonic and arithmetic means.
- Reciprocal
- — The multiplicative inverse of a number (1/x); taking reciprocals is the core operation that makes the harmonic mean sensitive to small values.
- AM-GM-HM Inequality
- — A fundamental mathematical theorem stating that for any set of positive numbers, the arithmetic mean ≥ geometric mean ≥ harmonic mean, with equality only when all values are identical.
- Rate
- — A ratio that compares two quantities with different units (e.g., km per hour, items per dollar), which should be averaged using the harmonic mean rather than the arithmetic mean.



