The formula
mean = sum of values ÷ number of values
Mean, median and mode are three ways to describe the center of a data set. The mean uses every value, so one extreme number can drag it. The median is the middle value and resists outliers. The mode is the most frequent value.
How to use this calculator
- Enter your numbers.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Worked example
Using Your numbers: 4, 8, 15, 16, 23, 42, 8.
- Add the values: 116
- Divide by the count: 116 ÷ 7 = 16.57142857
- Sorted: 4, 8, 8, 15, 16, 23, 42
- Median is the middle value: 15
Mean (average): 16.57142857
Common questions
When should I use the median instead of the mean?
Use the median when the data is skewed or has outliers, such as incomes or house prices. One very large value shifts the mean but barely moves the median.
Can a data set have more than one mode?
Yes. If two or more values tie for most frequent, each one is a mode. If nothing repeats there is no mode.