Harmonic Mean Calculator

Calculate the harmonic mean of a list of positive numbers entered as comma-, space-, or line-separated values.

Enter positive numbers separated by commas, spaces, or line breaks. Zero is not allowed.

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No values are stored or transmitted.

How it works

For positive values x₁, x₂, ..., xₙ, the harmonic mean is:
n / (1/x₁ + 1/x₂ + ... + 1/xₙ)

Examples

  • 2, 3, 6 → harmonic mean = 3
  • Useful for averaging rates such as speed or price-per-unit style data

FAQ

  • What is the harmonic mean?

    The harmonic mean is the number of values divided by the sum of their reciprocals.

  • When is the harmonic mean useful?

    It is useful for averaging rates, ratios, speeds, and quantities measured per unit when the denominator matters.

  • Why can’t the input contain 0?

    Because the formula uses reciprocals, and division by zero is undefined.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools