Understanding the average calculator (mean, median, mode) — concept and principle
"Average" usually means one number that represents a whole list. Statistics uses three main kinds: the mean, the median and the mode. This calculator gives all three, plus the count, sum and range, so you can summarise test scores, prices, times or measurements and see at a glance whether the data are balanced or skewed.
How it is calculated
- Mean = (x₁ + x₂ + … + xₙ) ÷ n, the sum divided by the count.
- Median: sort the values. If n is odd, it is the middle value; if n is even, it is the mean of the two middle values.
- Mode: the value that occurs most often. If several values tie for the highest count they are all listed; if every value occurs once, the result is "none".
- Range = largest value − smallest value.
Values can be in any unit, but all of them must be in the same unit; the mean, median and range keep that unit.
The principle
The mean is the balance point: the positive and negative deviations from it add up to exactly zero, and it minimises the sum of squared deviations. That makes it efficient, but every value pulls on it, so one extreme value can move it a lot. The median only cares about order: half of the data lie at or below it and half at or above it, which makes it robust against outliers. The mode describes the most typical single value and is the only one of the three that also works for categories such as shirt sizes.
Worked example
- Inputs: 4, 8, 15, 16, 23, 42 (n = 6).
- Sum = 4 + 8 + 15 + 16 + 23 + 42 = 108, so mean = 108 ÷ 6 = 18.
- The values are already sorted. n is even, so the median is (15 + 16) ÷ 2 = 15.5.
- Every value appears once, so the mode is none.
- Range = 42 − 4 = 38.
How to read the result
Compare the mean with the median. Here the mean (18) is above the median (15.5) because the single large value 42 pulls the mean upward: the data are skewed to the right. When the two are close, the data are roughly symmetric. For incomes, house prices and waiting times, which are usually right-skewed, the median is often the better "typical" value. The range is a quick but crude measure of spread; use the standard deviation for a fuller picture.
Common mistakes
- Forgetting to sort before picking the median.
- Reporting only the mean for skewed data with outliers.
- Averaging averages of groups with different sizes; that needs a weighted average.
- Mixing units, such as minutes and seconds, in one list.
Frequently asked questions
Which average should I use?
Use the mean for roughly symmetric numerical data, the median when there are outliers or strong skew, and the mode for categories or for the most common value.
Can a list have more than one mode?
Yes. A list with two equally frequent values is bimodal, and the calculator lists both.
Does the mean have to be one of the values?
No. The mean of 1 and 2 is 1.5. The median of an even-sized list can also fall between values.
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Section 1.3.5.1 Measures of Location · D. Freedman, R. Pisani and R. Purves, Statistics, W. W. Norton