This mean calculator lets you calculate the mean of a group of observations. It can also calculate for you the weighted mean if you provide the observations and the corresponding weights.
The calculator will give you not just the mean, but how to calculate it.
Usage Guide
Show
Hide
i. Valid Inputs
Your input needs to be a list of numbers spearated by commas. Each number can be a real number in any format — integers, decimals, fractions, or even mixed numbers. Here are a few examples.
- Whole numbers or decimals → 2, −4.25, 0, 0.33
- Fractions → 2/3, −1/5
- Mixed numbers → 51/4
For weighted mean, weights need to be in the same order as the corresponding observations/data. Also, weights must be non-negative.
ii. Example
If you would like to see an example of the calculator's working, just click the "example" button.
iii. Solutions
As mentioned earlier, the calculator won't just tell you the answer but also the steps you can follow to do the calculation yourself. The "show/hide solution" button would be available to you after the calculator has processed your input.
iv. Share
We would love to see you share our calculators with your family, friends, or anyone else who might find it useful.
By checking the "include calculation" checkbox, you can share your calculation as well.
Here's a quick overview of what "mean" is and how to calculate it.
Mean
Mean is a measure of the central tendency of a group of values. It is an estimate of a typical value in that group.
Mean is defined as the ratio of the sum of values in the group and the number of values.
So, for a group of n numbers x1, x2, x3, ... xn, the mean x would be
x=nx1+x2+x3+...+xn
A shorthand version of the same formula is
x=nΣxn
Example
The ages of five participants in a coding bootcamp are 25, 29, 30, 32, and 36 years old. Calculate their mean age.
Solution
Based on what we learned earlier, to get the mean age x, we divide the sum of their ages by the number of the participants.
x=525+29+30+32+36=30.4
So the mean age is 30.4 years.
Weighted Mean
There are cases where, in a dataset, the different observations or values do not share the same importance. Some are more important than others. In such cases, simple mean may not be very useful. Instead, the weighted mean is more prefereable.
So here's what we do.
We assign each value xr a weight of wr. And then we can calculate the weighted mean using the formula
x=w1+w2+w3+...+wnx1w1+x2w2+x3w3+...+xnwn
Now, this formula can be rewritten as
x=ΣwnΣxnwn
Example
A car sales agency is analyzing its quarterly sales data. They sold 100, 120, and 140 cars in the first, second, and third quarters respectively. However, in the fourth quarter, they had a significant increase, with 300 cars sold. Calculate the weighted mean of the quarterly sales data, considering the weights of each quarter as 2, 2, 3, and 4, respectively.
Solution
Using the formula for weighted mean, we have —
x=2+2+3+42×100+2×120+3×140+4×300=112060=187.27
And that's it.