Harmonic Mean Calculator workspace
- Values
- 3
- Reciprocal sum
- 1
- Precision
- Exact
Step-by-step calculation
- 1
Count the observations: n = 3.
- 2
Take each reciprocal and add them: Σ(1/xᵢ) = 1.
- 3
Divide the count by the reciprocal sum: H = 3 ÷ 1.
- 4
The harmonic mean is H = 3.
View transformed values 3 rows
| i | xi | 1 / xᵢ |
|---|---|---|
| 1 | 2 | 0.5 |
| 2 | 3 | 0.33333333333333333333333333333333 |
| 3 | 6 | 0.16666666666666666666666666666667 |
What is a harmonic mean calculator?
The harmonic mean is a measure of central tendency defined as the number of observations divided by the sum of their reciprocals. It is especially useful for averaging positive rates when each rate applies to an equal amount of the underlying quantity, such as equal-distance speeds.
Important terms
- Observation
- A positive input value xᵢ in the data set.
- Reciprocal
- The multiplicative inverse 1/xᵢ of an observation.
- Harmonic mean
- The count n divided by the sum of all reciprocals.
- Rate
- A ratio such as distance per time, where the correct average depends on what quantity is held equal.
When this method is useful
- Average speeds across equal-distance segments.
- Summarize positive ratios when a reciprocal-based average matches the problem.
- Calculate an equivalent rate for repeated equal-work or equal-distance stages.
- Compare the harmonic mean with arithmetic and geometric means for positive data.
Formula and variables
- H
- harmonic mean
- n
- number of observations
- xᵢ
- ith positive observation
Take the reciprocal of each observation, find the arithmetic mean of those reciprocals, and then take the reciprocal of that mean. This is algebraically equivalent to n divided by the reciprocal sum.
Domain note: This real-valued averaging tool requires at least one strictly positive finite value. Zero has no reciprocal; negative values do not follow the standard positive-data harmonic-mean interpretation.
How to use this calculator
- 1
Enter one or more positive observations; fractions and decimals are accepted.
- 2
Count the observations to obtain n.
- 3
Calculate each reciprocal 1/xᵢ and add them.
- 4
Divide n by the reciprocal sum. The displayed table lists each reciprocal.
Step-by-step examples
Example 1
Problem: Find the harmonic mean of 2, 3, and 6.
Substitution: H = 3 / (1/2 + 1/3 + 1/6) = 3 / 1
Result: 3
The reciprocal sum is 1, so the harmonic mean is 3.
Example 2
Problem: Find the harmonic mean of speeds 40 and 60 over equal distances.
Substitution: H = 2 / (1/40 + 1/60)
Result: 48
For equal distances, the combined average speed is 48 units per hour, not the arithmetic mean 50.
Example 3
Problem: Find the harmonic mean of 1/2, 1/3, and 1/6.
Substitution: H = 3 / (2 + 3 + 6)
Result: 3/11 ≈ 0.272727…
The calculator accepts fractional observations and reports a decimal value.
Rules, edge cases, and related ideas
Reciprocal weighting
A low input contributes a large reciprocal, pulling the harmonic mean downward.
Choose the right average
Equal time and equal distance are different assumptions. For speeds, equal-distance segments call for the harmonic mean; equal-time segments call for the arithmetic mean.
Edge cases and limitations
- A single positive observation returns itself.
- Repeated values are counted separately.
- A zero input is undefined because its reciprocal does not exist.
- All values must be positive for the standard real-valued statistical interpretation.
How this differs from a related concept
The arithmetic mean preserves an equal-share sum. The geometric mean summarizes multiplicative scale. The harmonic mean is based on reciprocals and is often appropriate for rates under equal-quantity conditions.
Understand the result
For positive observations, the harmonic mean is no greater than the arithmetic mean. Small values have greater influence because their reciprocals are large. The result is useful only when a reciprocal-based average suits the quantities being combined.
Common mistakes
- Using the harmonic mean without checking what is equal in the situation.
- Averaging speeds arithmetically over equal distances.
- Taking the mean of reciprocals but forgetting to take the reciprocal again.
- Including zero or negative data in a formula intended for positive rates.
Frequently asked questions
How do I calculate a harmonic mean?
Add the reciprocals of all positive values, then divide the number of values by that reciprocal sum.
When should I use the harmonic mean for speed?
Use it for equal-distance legs traveled at different positive speeds. If the time spent at each speed is equal instead, use the arithmetic mean.
Can the harmonic mean include zero?
No. A zero input has no reciprocal, so the harmonic mean is undefined.
Can I enter fractions?
Yes. Enter values such as 1/2 or 3/4 along with decimals or integers.
Why is it usually below the arithmetic mean?
For positive data, the reciprocal-based harmonic mean is at most the arithmetic mean, with equality when all observations are equal.