Skip to content

Harmonic Mean Calculator

Enter a list of positive values separated by commas or spaces. The calculator divides the count by the sum of the reciprocals to get the harmonic mean, then shows the arithmetic and geometric means for comparison. For 60, 40, 30 the harmonic mean is 40.0000, below the arithmetic mean of 43.3333.

Updated 2026-11-18 Editorial estimate Calccc Editorial Team Free · No sign-up

All values must be greater than zero. Use it for rates such as speeds, prices per unit, or parallel resistances.

Scenarios A/BSave two input sets and compare the results. Stored only in this browser.
AEmpty
BEmpty

Your inputs stay in this browser. No account, no uploads.

Professional worksheet

Detailed schedule & assumptions

Inputs used, method, sensitivity, and any year-by-year table. The summary above stays compact; the audit lives here.

Professional worksheet

Inputs, scope, and sensitivity

Inputs used

Method and scope

Result audit

MetricValue

What this calculator does

The harmonic mean is the average to use when the values are rates or ratios and the thing being averaged is a fixed amount of something else. The classic case is speed: if you drive one kilometre at 60 km/h and another at 40 km/h, your average speed is not 50 km/h, because you spend longer at the slower speed. The harmonic mean gives the correct 48 km/h. The same logic applies to fuel economy in litres per 100 km, to price per unit when you spend equal amounts of money, and to resistances in parallel. The arithmetic is straightforward: divide the number of values by the sum of their reciprocals. Two useful checks follow. The harmonic mean is always less than or equal to the geometric mean, which is less than or equal to the arithmetic mean, with equality only when every value is identical. And all values must be positive, because a zero or negative value makes the reciprocal meaningless here.

How to use it

  1. Enter the values separated by commas, spaces, or semicolons.
  2. Make sure every value is greater than zero.
  3. Read the harmonic mean as the correct average for rates over equal amounts.
  4. Compare it with the arithmetic and geometric means to see the spread.
  5. Use the smallest and largest values to check that the mean falls between them.

How it works

Harmonic mean = n ÷ (1/x₁ + 1/x₂ + … + 1/xₙ. For 40 and 60: 2 ÷ (1/60 + 1/40) = 48.00. The three-value default gives 3 ÷ 0.08 = 40.0000.

Example calculations

Example 1: Two equal-distance legs

Driving one kilometre at 60 km/h and another at 40 km/h gives a harmonic mean of 48.00 km/h, not the arithmetic mean of 50 km/h. The slower leg takes longer, so it carries more weight in the average.

Example 2: Three values of rates

For 60, 40, and 30, the harmonic mean is 40.00, the geometric mean is 41.60, and the arithmetic mean is 43.33. The ordering harmonic ≤ geometric ≤ arithmetic always holds, and it widens as the values spread out.

Example 3: A wide spread

Values of 10, 20, and 60 give a harmonic mean of 18.0, against an arithmetic mean of 30.0. The harmonic mean sits much closer to the smallest value, which is why it is the right average when the slow or cheap item dominates the total time or quantity.

What the result means

The choice of mean is not a matter of taste; it follows from what is being averaged. When the numerator is fixed and the denominator varies, as with distance fixed and speed varying, the harmonic mean is the correct average. When the quantities are added directly, as with heights or scores, the arithmetic mean is right. When the values multiply together, as with growth rates or ratios chained over time, the geometric mean is right. The gap between the three means is a useful diagnostic: a large gap means the values are widely spread, and the harmonic mean will always be pulled toward the small end. If any value is zero or negative the harmonic mean is undefined in this form, which is a signal that the data may not be a set of rates.

Common mistakes

  • Using the arithmetic mean for speeds or rates over equal distances.
  • Including zero or negative values, which make the harmonic mean undefined.
  • Averaging fuel economy in litres per 100 km with the arithmetic mean.
  • Forgetting that the harmonic mean is always below the arithmetic mean unless all values are equal.
  • Mixing rates with different denominators, such as dollars per hour and hours per job.
  • Treating the harmonic mean as a robust statistic for skewed data without checking.

Assumptions and limits

  • All values are strictly positive.
  • The values are rates or ratios with the same meaning.
  • Each value carries equal weight in the average, which suits equal distances or equal spend.
  • The list is complete and free of data-entry errors.
  • The harmonic mean is compared with the other means rather than used alone.

Frequently asked questions

When should I use the harmonic mean instead of the arithmetic mean?

Use it when you are averaging rates over equal amounts, such as speed over equal distances or price per unit at equal spend. Use the arithmetic mean when the quantities are simply added together.

Why is the harmonic mean of 60 and 40 equal to 48?

Because 2 ÷ (1/60 + 1/40) = 48. One hour of driving covers different distances at each speed, so the slower leg contributes more time, which pulls the average below 50.

Can I calculate a harmonic mean with a zero?

Not in this form. One divided by zero is undefined, so the harmonic mean only exists for strictly positive values.

How is the harmonic mean related to the other means?

For positive values, harmonic ≤ geometric ≤ arithmetic, with equality only when every value is identical. The inequalities are a quick sanity check on your result.

What is a real use of the harmonic mean?

Fuel economy, average speed over equal distances, parallel electrical resistance, and price averaging when spending equal amounts at different unit prices.

Does the harmonic mean work for negative numbers?

The formula can be extended, but the interpretation as an average of positive rates breaks down. This tool requires positive values and returns an error otherwise.

Sources

This is an educational statistics tool. Only positive values are accepted, and the harmonic mean is only the correct average when the underlying quantities are rates over equal amounts. Check the input list for zeros and data-entry errors before relying on the result.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Calccc Editorial Team · Updated 2026-11-18

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.