What is Harmonic Mean?
The Harmonic Mean is a specific type of numerical average. While most people are familiar with the arithmetic mean (sum divided by count), the harmonic mean is calculated by dividing the number of observations by the sum of the reciprocals of each observation. It is one of the three classic Pythagorean means, alongside the Arithmetic and Geometric means. It is specifically designed to handle rates and ratios correctly.
Rate Averaging
It is the only mathematically correct way to average speeds over a constant distance. Averaging 60 km/h and 40 km/h arithmetically (50) is wrong; the harmonic mean (48) is correct.
Efficiency Metrics
Essential in finance for averaging Price/Earnings (P/E) ratios and in physics for calculating parallel resistance or series capacitance.
Harmonic Mean Formula
The formula might look intimidating, but the concept is simple: invert your numbers, find their average, and then invert that result.
H = n / (1/x₁ + 1/x₂ + ... + 1/xₙ)
n: Count of numbers | xᵢ: Each individual value
Real-World Application: The Speed Paradox
Consider a round trip where you drive to a destination at 60 km/h and return along the same route at 40 km/h. What is your average speed?
- Arithmetic Mean (Incorrect): (60 + 40) / 2 = 50 km/h. This assumes you spent equal time at both speeds, which is false (you spent more time driving slowly).
- Harmonic Mean (Correct): 2 / (1/60 + 1/40) = 48 km/h. This correctly accounts for the fact that the slower leg of the trip consumes a larger portion of the total time.
Comparison of Averages
| Mean Type | Best Used For | Formula Concept |
|---|---|---|
| Arithmetic | Sums, counts, additive data | Sum / Count |
| Geometric | Growth rates, compounding | n-th root of Product |
| Harmonic | Rates, speeds, densities | Reciprocal of mean of reciprocals |
How the Harmonic Mean Is Computed
The calculator takes each number, computes its reciprocal (1/x), sums all reciprocals, then divides the count (n) by that sum. The result is H = n / Σ(1/xᵢ). For example, for 2 and 3: 1/2 + 1/3 = 5/6; H = 2 / (5/6) = 2.4. The harmonic mean is always less than or equal to the arithmetic mean for positive data; it is very sensitive to small values (a single near-zero value drastically lowers H). Do not use if any value is zero or negative—the reciprocal would be undefined or negative.
How to Use This Harmonic Mean Calculator
Enter a set of positive numbers (e.g. rates, speeds, or ratios). The Harmonic Mean Calculator computes the harmonic mean: H = n / (1/x₁ + 1/x₂ + … + 1/xₙ). The harmonic mean is appropriate when averaging rates (e.g. average speed over equal distances) or ratios. It is always less than or equal to the arithmetic mean for positive data. Use it for average speed, average rates, or when data is in reciprocal form. Do not use it if any value is zero or negative. This tool is for educational and reference use.
When Harmonic Mean Applies
Harmonic mean is used for average speed (e.g. 60 km/h there and 40 km/h back → harmonic mean gives the correct average for the round trip), electrical resistance in parallel, and P/E ratios in finance. For simple averages of quantities (not rates), use the arithmetic mean; for growth rates, use the geometric mean. This calculator is for informational use only.
Limitations
The harmonic mean is only defined for positive numbers; zero or negative values make the reciprocal undefined or invalid. It is highly sensitive to small values—a single very small number can pull the result down sharply. For rates and ratios (e.g. average speed over equal distances), it is the correct average; for additive quantities, use the arithmetic mean. For growth rates or compounding, use the geometric mean. This tool does not handle weighted harmonic means.
Tips for Accurate Results
Enter only positive numbers. For average speed over equal distances, use the harmonic mean; for average speed over equal times, use the arithmetic mean. For parallel resistors (1/R = 1/R₁ + 1/R₂ + …), the total resistance is the harmonic mean of the individual resistances. For P/E ratios in finance, the harmonic mean gives the correct average. Pair with the Arithmetic Mean and Geometric Mean calculators to compare all three Pythagorean means. For parallel electrical resistance, the total resistance is the harmonic mean of individual resistances. For average speed over equal distances, always use the harmonic mean—the arithmetic mean gives the wrong result. This tool is for educational and reference use only.
Disclaimer
This tool is for informational use only. All values must be positive. For critical applications, verify the formula and data with a statistician or textbook.
Other Statistical Tools
Arithmetic Mean Calculator
Standard average calculations for simple datasets.
Standard Deviation
Analyze the spread and consistency of data.
About the Harmonic Mean
A statistical tool that finds the most reliable average for speed, efficiency, and ratio-based data.
Harmonic Mean How to Use?
- Enter the numbers to be calculated into the fields
- Increase the count of data using the add number button
- Click the Calculate button
- Examine the detailed solution steps
Frequently Asked Questions
What is harmonic mean?
The Harmonic Mean is one of the three Pythagorean means (along with arithmetic and geometric). It is calculated as the reciprocal of the arithmetic mean of the reciprocals of the data.
What is the harmonic mean formula?
The harmonic mean (H) of n numbers is calculated with the formula: H = n / (1/x1 + 1/x2 + ... + 1/xn).
When should the harmonic mean be used?
The harmonic mean is the correct average to use for rates and ratios, such as speed (km/h), density, or price-earnings (P/E) ratios in finance. Using the arithmetic mean in these cases usually yields incorrect results.
What is the difference between arithmetic and harmonic mean?
For any set of distinct positive numbers, the Harmonic Mean is always the smallest, the Geometric Mean is in the middle, and the Arithmetic Mean is the largest (H ≤ G ≤ A). The harmonic mean is less sensitive to large outliers but very sensitive to small values.
Harmonic Mean Features
- Dynamic data entry
- High precision result
- Step-by-step formula analysis
- Mobile-responsive design