How to Calculate Mean, Median and Mode
On this page
The mean is the total divided by how many values there are. The median is the middle value once the data is sorted. The mode is the value that appears most often. The range, largest minus smallest, measures spread. Each "average" answers a slightly different question.
Example data
We will use: .
Mean
Add the values and divide by the count:
Median
- Sort the data: .
- There are 6 values (even), so the median is halfway between the 3rd and 4th:
With an odd number of values, the median is the single middle value.
Mode
appears twice and everything else once, so the mode is .
A data set can have two modes (bimodal), such as , where both and appear twice. If every value appears equally often, there is no mode.
Range
Which average should I use?
| Average | Best when | Weakness |
|---|---|---|
| Mean | Data is fairly symmetric | Pulled by outliers |
| Median | There are outliers or skew | Ignores the actual sizes |
| Mode | Data is categories (shoe sizes, colours) | May not exist or be unique |
Example of an outlier: salaries of 25, 27, 28, 30 and 190 (thousands). The mean is 60, but the median of 28 better describes a typical salary.
Another worked example
has sum and count , so the mean is . The median is . There is no mode.
Common mistakes
- Finding the "middle" of unsorted data.
- Dividing by the wrong count, for example forgetting a zero value.
- Saying the mode is how many times a value appears, rather than the value itself.
Practice questions
For find:
- The mean.
- The median.
- The mode and range.
Answers: 1) 2) 3) Mode , range
Paste any list into the mean, median and mode calculator to see the sorted data with the mean and median marked on a chart, or use the average calculator for weighted averages. To measure spread properly, read standard deviation explained.
Frequently asked questions
Can the mean be a decimal when all values are whole numbers?
Yes. The mean of 1, 2 and 2 is 5/3 ≈ 1.67.
What is the median of an even number of values?
The average of the two middle values after sorting.
Is the average the same as the mean?
In everyday speech, "average" usually means the mean, but the median and mode are also kinds of average.
#statistics#averages#data
