Math

Instant, private, and free

Harmonic Mean Calculator.

Calculate the harmonic mean of positive values.

On-device calculationNo signup
01

Set your values

Results update as you type.

Result: harmonicMean: 3.000000 · count: 3.000000

Result

harmonicMean: 3.000000 · count: 3.000000

Use Cases

Average speed calculation

When you travel the same distance at different speeds, the harmonic mean gives the correct average speed. For example, if you drive 60 km at 30 km/h and 60 km at 60 km/h, the harmonic mean is 40 km/h.

Example: Speeds: 30, 60 → Harmonic mean = 40 km/h

Average cost per unit

When you buy items at different prices per unit, the harmonic mean can help find the average cost per unit when you spend the same amount on each purchase.

Example: Prices: $2, $3 → Harmonic mean = $2.40

Frequently Asked Questions

What is the harmonic mean?
The harmonic mean is a type of average calculated as the reciprocal of the arithmetic mean of the reciprocals of the data values. It is especially useful for rates and ratios, such as average speed or average cost per unit.
How do I use this harmonic mean calculator?
Simply enter your positive values in the provided field, separating them by commas or spaces. The calculator will compute the harmonic mean for you. Ensure all values are positive, as the harmonic mean is undefined for zero or negative numbers.
When should I use the harmonic mean instead of the arithmetic mean?
Use the harmonic mean when dealing with rates or ratios where the average of the reciprocals is more meaningful, such as average speed over multiple trips with equal distances, or average cost per unit when quantities vary.

Tips & Common Mistakes

Tips

  • Ensure all values are positive; the harmonic mean is undefined for zero or negative numbers.
  • Separate your values with commas or spaces for accurate input.
  • Use the harmonic mean when dealing with rates, ratios, or averages of reciprocals.
  • Double-check your entries to avoid typos that could skew the result.

Common Mistakes to Avoid

  • Including zero or negative values, which makes the harmonic mean undefined.
  • Using the arithmetic mean when the harmonic mean is more appropriate for rates.
  • Misformatting input, such as using semicolons or other separators not recognized by the calculator.

Last updated: August 13, 2026