Mean Calculator

Separate values with commas, spaces or semicolons (up to 1000). Use a dot for decimals.
Math Updated 31 Oct 2026

Calculates the three classical (Pythagorean) means of a data set: the arithmetic mean (the everyday average), the geometric mean (for growth rates and ratios) and the harmonic mean (for rates such as speeds and prices per unit). Choose one or show all three side by side, with the sum, product or reciprocal sum each one is built from.

  • Every value has equal weight.
  • A comma always separates two values; it is never a decimal point.

Formula

AM = (x₁ + … + xₙ) ÷ n; GM = (x₁ × … × xₙ)^(1/n); HM = n ÷ (1/x₁ + … + 1/xₙ)
  • n is the number of values. Results are rounded to 4 decimal places.
  • The geometric and harmonic means are defined here only when every value is greater than 0, as in the reference calculator.
  • The geometric mean is computed as e raised to the mean of the natural logarithms, so long lists do not overflow.
  • For positive data AM ≥ GM ≥ HM, with equality only when all values are the same.
  • Use the arithmetic mean for amounts that add, the geometric mean for factors that multiply (growth, returns, ratios) and the harmonic mean for rates over a fixed amount (average speed over equal distances).

The numbers 2, 4 and 8

Inputs
  • Data set: 2, 4, 8
  • Type of mean: all

AM = 14 ÷ 3 = 4.6667. GM = ∛(2 × 4 × 8) = ∛64 = 4. HM = 3 ÷ (½ + ¼ + ⅛) = 3 ÷ 0.875 = 3.4286. As expected, 4.6667 ≥ 4 ≥ 3.4286.

Sources & references

Frequently asked questions

How do you find the mean?
Add all the values and divide by how many there are. The mean of 3, 7 and 11 is (3 + 7 + 11) ÷ 3 = 21 ÷ 3 = 7.
When should I use the harmonic mean?
For averaging rates. Driving 60 km at 30 km/h and 60 km at 60 km/h gives an average speed of 2 ÷ (1/30 + 1/60) = 40 km/h, the harmonic mean, not the arithmetic 45 km/h.
When should I use the geometric mean?
For quantities that compound. Returns of +10% and +50% (factors 1.1 and 1.5) have a geometric mean of √1.65 ≈ 1.2845, an average growth of 28.45% a year.
What is the difference between mean and average?
In everyday use, "average" means the arithmetic mean. Strictly, mean, median and mode are all kinds of average, and the arithmetic, geometric and harmonic means are three kinds of mean.

Related calculators