Harmonic Mean of Two Numbers Calculator
Enter first, second to find harmonic mean. Harmonic mean = 2 × First × Second ÷ (First+Second).
How the result changes
Only first changes; all other inputs stay at your current values. The line illustrates the formula across the shown range. This is not a forecast of real-world outcomes.
About this calculation
The harmonic mean of two positive values is twice their product divided by their sum. Use this harmonic mean of two numbers calculator to find harmonic mean from first, second.
Formula
Harmonic mean = 2 × First × Second ÷ (First+Second)
Worked example
With First: 4, Second: 6, harmonic mean is 4.8.
How to calculate harmonic mean
The rule is Harmonic mean = 2 × First × Second ÷ (First+Second).
In the harmonic mean of two numbers example, first 4 produces harmonic mean 4.8. Entering 5 instead produces 5.454545.
Reading harmonic mean
The result gives more weight to the smaller positive value than the arithmetic mean does. With first 4, second 6, the calculator returns harmonic mean 4.8.
Practical use
Average two rates over equal distances or equal quantities when each rate applies to the same amount of work. Average rates over equal distances or equal quantities when a slower rate should have greater influence.
Limits and common mistakes
The sum of the inputs cannot be zero; equal-distance rates need distances that truly match. Do not use this mean for arbitrary quantities whose denominators represent different bases. Verify first before interpreting harmonic mean.
Why the relationship works
Take the reciprocal of each positive input, average those reciprocals, then invert the result. In the compact formula, twice the product of the inputs is divided by their sum. The harmonic mean of two numbers rule uses first, second in Harmonic mean = 2 × First × Second ÷ (First+Second); read each symbol as the field named on this page.
Interpreting another set of values
For harmonic mean of two numbers, the fields labeled first, second are the known quantities. The calculator solves for harmonic mean using Harmonic mean = 2 × First × Second ÷ (First+Second). The harmonic mean summarizes the entered observations using this page's particular averaging rule. Inspect the individual values before treating that summary as representative of a wider data set. When comparing two calculations, keep their units and input definitions identical.
For a second harmonic mean of two numbers check, keep the other default inputs fixed and change first from 4 to 6. Harmonic mean changes from 4.8 to 6. Holding the other fields fixed isolates the effect of first for this input step. Use the formula to check how a different step would affect the answer.
Checks and limits
This page has two inputs, and their sum cannot be zero. For positive inputs the harmonic mean lies between them and no higher than the arithmetic mean. Check the equal-quantity assumption before using it for rates. The reported harmonic mean is 4.8 in the worked example. Keep its stated unit or counting convention when checking it against another calculation.
Inputs
- First
- Second
Related calculators
- Geometric Mean of Two Numbers Calculator
- Root Mean Square of Three Numbers Calculator
- Average of Three Numbers Calculator
- Range of Three Numbers Calculator
- Population Variance of Three Numbers Calculator