Geometric and Harmonic Mean Calculator

Enter positive numbers to find their geometric and harmonic means.

Numbers more than 0, separated by commas.

Try

Result

You entereddata: 4, 9\text{data: } 4,\ 9

GM=6, HM≈5.538462\displaystyle \text{GM} = 6,\ \text{HM} \approx 5.538462

Arithmetic mean

6.5\displaystyle 6.5
Show the work
  1. Geometric mean

    The geometric mean multiplies the n=2n = 2 values together and takes the nnth root, which is the constant factor that would give the same product. It needs every value to be more than 0.

    GM=x1x2⋯xnn=4×92=36=6\begin{aligned} \text{GM} &= \sqrt[n]{x_1 x_2 \cdots x_n} \\ &= \sqrt[2]{4 \times 9} \\ &= \sqrt{36} \\ &= 6 \end{aligned}
  2. Harmonic mean

    The harmonic mean divides nn by the sum of the reciprocals of the values. It suits rates, such as an average speed over equal distances.

    HM=n1x1+1x2+⋯+1xn=214+19=21336≈5.538462\begin{aligned} \text{HM} &= \dfrac{n}{\frac{1}{x_1} + \frac{1}{x_2} + \cdots + \frac{1}{x_n}} \\ &= \frac{2}{\frac{1}{4} + \frac{1}{9}} \\ &= \frac{2}{\frac{13}{36}} \approx 5.538462 \end{aligned}
  3. Arithmetic, geometric and harmonic means compared

    For positive values the three means always come in this order, and they are all equal only when every value is the same.

    Using AM≥GM≥HM\text{AM} \ge \text{GM} \ge \text{HM}

    6.5≥6≥5.5384626.5 \ge 6 \ge 5.538462
  4. Result

    So the geometric mean is 66 and the harmonic mean is 7213≈5.538462\frac{72}{13} \approx 5.538462.

Worked examples