Harmonic Mean Calculator

Calculate the harmonic mean of positive values - the correct average for averaging rates, speeds, and price-to-earnings style ratios.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

All values must be greater than zero; zero and negative values make the harmonic mean undefined.

Calculated Output

Harmonic mean = n / Σ(1/xᵢ)

Harmonic mean

3.000000
Count of values2
Σ(1/x)0.66666667
Σ weights2
Arithmetic mean of the same inputs4.000000
Ratio arithmetic ÷ harmonic1.333333
Instant Browser CalculationNo Server Logging

Step-by-Step Mathematical Working

Take the reciprocal of each value: 0.500000, 0.166667.
Sum the reciprocals: 0.66666667.
Divide the weight total (2) by that sum: 2 ÷ 0.66666667 = 3.000000.

Formula and method

Harmonic mean = n / Σ(1/xᵢ)

The harmonic mean weights small values more heavily than the arithmetic mean, which is why it is the right average when the quantity in the denominator is held constant.

Variables

dataset
Positive numbers (comma or space separated)
weights
Weighting

Worked example

Travelling 60 km/h one way and 40 km/h back over the same distance gives a harmonic mean speed of 48 km/h - not 50 km/h.

Who this calculator is for

Students, physicists averaging speeds over equal distances, and analysts averaging ratios such as P/E or price per unit.

Complete guide to the harmonic mean calculator

Every figure below comes from this calculator itself. The method is Harmonic mean = n / Σ(1/xᵢ), applied to the tool's default inputs and then stress-tested one input at a time.

What the Harmonic Mean Calculator works out

Harmonic Mean Calculator answers one specific question: Calculate the harmonic mean of positive values - the correct average for averaging rates, speeds, and price-to-earnings style ratios. It is written for students, physicists averaging speeds over equal distances, and analysts averaging ratios such as P/E or price per unit.

The method is Harmonic mean = n / Σ(1/xᵢ). The inputs are Positive numbers (comma or space separated), Weighting. With the default values - Positive numbers (comma or space separated) = 2, 6, Weighting = equal - the result is Harmonic mean: 3.000000.

What each figure in the breakdown means

Alongside 3.000000 this method reports 5 supporting quantities: Count of values: 2; Σ(1/x): 0.66666667; Σ weights: 2; Arithmetic mean of the same inputs: 4.000000. On a statutory calculation the composition matters more than the total, because each band is charged at a different rate and the split is what a payslip or return has to show.

The arithmetic as executed: Take the reciprocal of each value: 0.500000, 0.166667. Sum the reciprocals: 0.66666667. Divide the weight total (2) by that sum: 2 ÷ 0.66666667 = 3.000000. Check one step independently; if it lands on the same figure, the inputs and the model agree.

How to interpret the answer

The harmonic mean weights small values more heavily than the arithmetic mean, which is why it is the right average when the quantity in the denominator is held constant.

In this case 3.000000 together with count of values of 2 is a single scenario, not a forecast range. Move the input you are least sure of, and watch the two figures change in step.

Reversing the calculation is often more useful than repeating it. Fix the target you need, then work back through Harmonic mean = n / Σ(1/xᵢ) to see which of the inputs has to change to reach it from 3.000000.

Common mistakes to avoid

Averaging speeds arithmetically over equal distances, which overstates the true average speed. Using it for values with different denominators, where a weighted arithmetic mean is usually intended.

Read the inputs back once before trusting the figure: Positive numbers (comma or space separated), Weighting and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Test one alternative scenario so you can see how sensitive the answer really is.

Limitations and responsible use

Undefined for zero and unreliable for mixed signs. Correct only when the same numerator holds for every observation, as with equal distances.

Each number above is bounded by the limits just described, so treat it as a conditional result. Every figure here can be reproduced by hand from the formula shown, but no calculation can confirm that the inputs match your actual circumstances. For a consequential decision, confirm the current figure independently, because published values change between editions.

Frequently asked questions

Why is the average of 60 km/h and 40 km/h only 48 km/h?

Over equal distances, more time is spent at the slower speed. The harmonic mean is 2 ÷ (1/60 + 1/40) = 48 km/h, not the arithmetic 50 km/h.

Can the harmonic mean ever exceed the arithmetic mean?

No. For positive values it is always less than or equal to the arithmetic mean, and they are equal only when every value is identical.

Related searches for this calculator

People also look for harmonic mean calculator, average speed harmonic mean, harmonic average and harmonic mean of rates. Everything on this page is calculated in your browser from the formula shown above.

Related Mathematics Calculators

Explore another calculator in this subject.