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

GM=2, HM≈1.714286\displaystyle \text{GM} = 2,\ \text{HM} \approx 1.714286

Arithmetic mean

73≈2.333333\displaystyle \frac{7}{3} \approx 2.333333
Show the work
  1. Geometric mean

    The geometric mean multiplies the n=3n = 3 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=1×2×43=83=2\begin{aligned} \text{GM} &= \sqrt[n]{x_1 x_2 \cdots x_n} \\ &= \sqrt[3]{1 \times 2 \times 4} \\ &= \sqrt[3]{8} \\ &= 2 \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=311+12+14=31.75≈1.714286\begin{aligned} \text{HM} &= \dfrac{n}{\frac{1}{x_1} + \frac{1}{x_2} + \cdots + \frac{1}{x_n}} \\ &= \frac{3}{\frac{1}{1} + \frac{1}{2} + \frac{1}{4}} \\ &= \frac{3}{1.75} \approx 1.714286 \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}

    2.333333≥2≥1.7142862.333333 \ge 2 \ge 1.714286
  4. Result

    So the geometric mean is 22 and the harmonic mean is 127≈1.714286\frac{12}{7} \approx 1.714286.

Worked examples