Harmonic Mean of Two Numbers
The harmonic mean is the number of values divided by the sum of their reciprocals.
Enter the details
Add the information requested below to get your result.
Your entries are used to produce the result in this browser.
Share or download
How to use this tool
What does the Harmonic Mean of Two Numbers do?
The harmonic mean is the number of values divided by the sum of their reciprocals. Enter the details above to see the result. The notes below explain the calculation method, any published formula, a worked example and important limitations.
When to use this tool
The harmonic mean is the number of values divided by the sum of their reciprocals. Have First positive value and Second positive value ready before you start. Keep an eye on number formats, percentages and units.
How to use the Harmonic Mean of Two Numbers
- Enter the requested information: First positive value, Second positive value.
- Check each value, date, text entry, or unit before continuing.
- Tap the main button to see your result.
- Review the result and use Copy result when you need to reuse it.
- Choose Clear to remove the entries and start again.
Formula and calculation method
Published formula: 2/(1/a+1/b)
The harmonic mean is the number of values divided by the sum of their reciprocals.
Harmonic Mean of Two Numbers worked example
The harmonic mean of 4 and 6 is 4.8.
Inputs required
- First positive value
- Second positive value
Accuracy and limitations
For a reliable math result, enter the values in the requested format and keep units consistent. Check whether the formula expects a percentage, decimal, or whole number. Use consistent units and check all input values before relying on the result. Results are generated by the method built into this tool. Rounding, input format, unit selection, and assumptions can affect the output. For important decisions, verify the result independently with an appropriate trusted source.
Part of Statistics and Data.
Sources and further reading
These external references support the standards, concepts or browser methods related to this tool. The exact assumptions used by this calculator are described above.
- Introductory Statistics 2e: Formula Review — OpenStaxReference for common descriptive statistics and probability formulas.
Frequently asked questions
What do I need to enter?
Start with First positive value, Second positive value. Follow the field labels and keep units and formats consistent.
How is the result worked out?
The harmonic mean is the number of values divided by the sum of their reciprocals.
What should I double-check?
Use consistent units and check all input values before relying on the result.