Omni Calculator logo

Mean Calculator

Created by Rita Rain and Anna Szczepanek, PhD
Reviewed by Bogna Szyk and Jack Bowater
Last updated: May 16, 2024


This mean calculator is an arithmetic, geometric, and harmonic mean calculator, all rolled into one. It means no more struggling with the question, "how to calculate mean?" - this tool enables you to find three mean numbers of any dataset. You may demand all of them at once, or choose just one in the final field of this by no means average πŸ˜‰ calculator. Below, we give the mean formula, the mean math definition, and instruction on how to find the mean by hand. We also describe the inequality between the three means, and explain which situations require the arithmetic, geometric, and harmonic mean.

The other type of averages you may want to calculate are the most common measures of a central tendency included in our mean, median, mode calculator.

How to find the mean with our mean calculator

There are several kinds of mean. This mean calculator incorporates the three most popular means: arithmetic, geometric, and harmonic (also known as the Pythagorean means).

  1. By default, the mean calculator returns all three means. You can also choose the specific type of mean you want to determine;
  2. Enter each number into a separate field. You can input up to 50 numbers (new rows will appear as you fill out the fields). Remember that harmonic and geometric means can only use positive numbers; and
  3. The result will appear at the bottom of the mean calculator.

Mean math definitions and mean formulas

Let x1, x2, ..., xn be a collection of numbers. In the case of the geometric and harmonic means, we assume that they are positive.

  • Arithmetic mean formula:
A=x1+β‹―+xnn\quad A = \frac{x_1 + \dots + x_n}{n}

Arithmetic mean definition: the sum of values divided by the number of values, n.

  • Geometric mean formula:
G=x1Γ—β‹―Γ—xnn\quad G = \sqrt[n]{x_1 \times \dots \times x_n}

The n-th root can be rewritten by raising the product to the power of 1/n, so we have:

G=(x1Γ—β‹―Γ—xn)1n\quad G = \left( x_1 \times \dots \times x_n\right)^{\frac{1}{n}}

Geometric mean definition: the n-th root of the product of n values (the product of the values raised to the power of 1/n).

  • Harmonic mean formula:
H=n1x1+β‹―+1xn\quad H = \frac{n}{\frac{1}{x_1} + \dots + \frac{1}{x_n}}

Harmonic mean definition: the number of values, n, divided by the sum of reciprocals of the values (recall the reciprocal of x equals 1/x).

Well, those math formulas may look overwhelming... Keep calm and keep reading, as in the next section we explain how to calculate mean - step-by-step - and with examples. If you want to learn more details about certain types of mean, then you should check the geometric mean calculator or harmonic mean calculator.

How to calculate mean...

...when you're alone in the woods, without the Internet and calculators?

Make sure you found a water source, some safe shelter, made Chuck chop wood for fire... Take a piece of paper and something to write. and something to write - charcoal will do. Read on to learn how to find the mean.

  • How to calculate arithmetic mean:
  1. Add all the numbers together, and denote their sum by ss. For instance, if the numbers are 1,2,4,171, 2, 4, 17, then:
s=1+4+2+17=24\quad s = 1 + 4 + 2 + 17 = 24
  1. Divide the sum, ss, by the number of values, nn:
Amean=s4=244=6\quad A_\mathrm{mean} = \frac{s}{4} = \frac{24}{4} = 6
  • How to calculate the geometric mean:
  1. Multiply the values and denote their product by pp. As an example, for 2,4,82, 4, 8, we have:
p=4Γ—8Γ—2=64\quad p = 4 \times 8 \times 2 = 64
  1. Take the nn-th root of the product, where nn is the number of values under consideration. Here, we have three numbers, so we take the cube root:
Gmean=p3=634=4\quad G_\mathrm{mean} = \sqrt[3] p = \sqrt[3] 64 = 4
  • How to calculate the harmonic mean:
  1. Determine the reciprocal of each value, e.g. for 66, 5050, 7575:
1x1=161x2=1501x3=175\quad \frac{1}{x_1} = \frac{1}{6} \\[1em] \quad \frac{1}{x_2} = \frac{1}{50} \\[1em] \quad \frac{1}{x_3} = \frac{1}{75}
  1. Add the reciprocals, and denote the sum by ss:
s=16+150+175=15\quad s = \frac{1}{6} + \frac{1}{50} + \frac{1}{75} = \frac{1}{5}
  1. Divide the number of values, nn, by the sum of reciprocals, ss:
Hmean=ns=31/5=3Γ—5=15\begin{split} \quad H_\mathrm{mean} =& \frac{n}{s} = \frac{3}{1/5} = \\[1em] &3 \times 5 = 15 \\ \end{split}

Relationships between the means

  • Inequality between the three means:

    Experiment a bit with the mean calculator, restricting your input to positive numbers. You'll surely notice that the three means are always different in the same kind of way. You may have already heard about the geometric-arithmetic means inequality: it says that it is not possible to make the geometric mean greater than the arithmetic mean. In addition, the harmonic mean cannot exceed either of the two other means, so we always have:

  harmonic≀geometric≀arithmetic\footnotesize \ \ \text{harmonic} \le \text{geometric} \le \text{arithmetic}

Moreover, the only way to make all three means equal is to have a list of identical numbers. In such a case, all three means are equal to the number appearing in the list.

  • Harmonic and arithmetic mean:
H(x1,…,xn)=A( ⁣1x1,…,1xn)β€‰β£β€‰β£βˆ’1\small H (x_1, \dots, x_n ) = A \left( \! \frac{1}{x_1}, \dots, \frac{1}{x_n} \right)^{ \! \! -1}

That is, the harmonic mean of a list of values is the reciprocal of the arithmetic mean of the reciprocals of those values.

  • Geometric and arithmetic mean:
G(x1,…,xn)=eA(ln⁑x1,…,ln⁑xn)G(x_1, \dots, x_n) = \mathrm e^{A (\ln x_1, \dots, \ln x_n)}

What this means is the logarithm of the geometric mean of a list of values is equal to the arithmetic mean of the logarithms of those values.

Weighted means

By default, each number in the list contributes equally to the average. However, sometimes we want some values to contribute more than others. In these situations we resort to weighted means, where, apart from a list of numbers x1, x2, ..., xn, we also have an associated list of weights w₁, wβ‚‚, ..., wn. These weights quantify how much a respective number in the list contributes to the final result.

Each of three means has its weighted version:

  • Weighted arithmetic mean formula:
A=w1x1+β‹―+wnxnw1+β‹―+wn\quad A = \frac{w_1 x_1 + \dots + w_n x_n}{w_1 + \dots + w_n}

It has lots of real-life applications. Most probably, you've used it many times to calculate your college GPA. Our college GPA calculator do precisely that thing.

  • Weighted geometric mean formula (for positive values):
G=(w1x1 ⁣×⋯× ⁣wnxn)1w1+β‹―+wnG = \left( w_1 x_1 \! \times \dots \times \! w_n x_n \right)^{\frac{1}{w_1 + \dots + w_n}}
  • Weighted harmonic mean formula:
H=w1+β‹―+wnw1x1+β‹―+wnxn\quad H = \frac{w_1 + \dots + w_n}{\frac{w_1}{x_1} + \dots + \frac{w_n}{x_n}}

Obviously, if all the weights are equal, the weighted means reduce to their standard versions.

Arithmetic, geometric, and harmonic mean applications

  1. The arithmetic mean of a sample is the most common estimator of the population's mean: if you need a single number as the "typical" value for a set of known numbers, then the arithmetic mean of the numbers does this best, in the sense that it minimizes the sum of squared deviations from the typical value. Learn more about it with our z-score calculator!

  2. The geometric mean owes its name to its various appearances in geometry, e.g. it is useful in calculating areas, or helping solve triangles (like in the right triangle altitude theorem). Also, geometric mean is very often applied in finance, e.g., in finding the average rate of return.

  3. The harmonic mean of two speeds is the proper way of calculating the average speed if we travel a certain distance at some speed, and then return over the same distance at a different speed. In geometry, harmonic mean links the radius of the incircle of a triangle with the height of the triangle, while, in finance, it allows us to determine the price/earnings ratio (P/E) when dealing with an index made of several stocks.

Rita Rain and Anna Szczepanek, PhD
Values (you may enter up to 50 numbers)
#1
#2
#3
#4
#5
#6
#7
#8
Type of mean
all
Check out 32 similar collection of journalist's guide calculators
AveragePercentagePercentage change… 29 more
People also viewed…

Box method

The box method calculator allows you to factor trinomials quickly and easily. It also provides step-by-step details of the process for those who are interested.

Circle skirt

Circle skirt calculator makes sewing circle skirts a breeze.

Flat vs. round Earth

Omni's not-flat Earth calculator helps you perform three experiments that prove the world is round.

Harmonic mean

Find the harmonic mean of up to 30 values with this harmonic mean calculator.
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service