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: 2, 8\text{data: } 2,\ 8

GM=4, HM=3.2\displaystyle \text{GM} = 4,\ \text{HM} = 3.2

Arithmetic mean

5\displaystyle 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=2×82=16=4\begin{aligned} \text{GM} &= \sqrt[n]{x_1 x_2 \cdots x_n} \\ &= \sqrt[2]{2 \times 8} \\ &= \sqrt{16} \\ &= 4 \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=212+18=20.625=3.2\begin{aligned} \text{HM} &= \dfrac{n}{\frac{1}{x_1} + \frac{1}{x_2} + \cdots + \frac{1}{x_n}} \\ &= \frac{2}{\frac{1}{2} + \frac{1}{8}} \\ &= \frac{2}{0.625} \\ &= 3.2 \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}

    5≥4≥3.25 \ge 4 \ge 3.2
  4. Result

    So the geometric mean is 44 and the harmonic mean is 3.23.2.

Worked examples