Mean, Median, Mode Calculator
Enter a list of numbers to find its mean (average), median (middle value), mode (most common value) and range.
Formula
Median = middle value of the sorted data (average of the two middle values when n is even)
Mode = most frequent value
Range = max − min
| Symbol | Meaning |
|---|---|
| Σx | Sum of all values |
| n | Number of values |
| x̄ | Arithmetic mean |
How to Use This Calculator
- Type or paste the Data set. Numbers separated by commas, spaces or new lines.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Data set | 12, 15, 11, 18, 15, 20, 14, 15, 17, 13 |
|---|
| Mean | 15 |
|---|---|
| Median | 15 |
| Mode | 15 |
| Range | 9 |
| Minimum | 11 |
| Maximum | 20 |
| Sum | 150 |
| Count | 10 |
About This Calculation
The mean, median and mode are the three classic measures of central tendency: each tries to describe a "typical" value of a data set with a single number. The mean adds everything up and divides by the count, so it uses every observation. The median is the value in the middle once the data are sorted, and the mode is whichever value occurs most often.
Which one to report depends on the shape of your data. For roughly symmetric data the three are close together and the mean is usually preferred. When the data are skewed or contain outliers, the median is more robust: a single very large salary can pull the mean income of a small company far above what most employees earn, while the median barely moves. The mode is most useful for discrete or categorical data, such as the most common shoe size sold.
A data set can have no mode (every value appears once) or several modes (two or more values tie for most frequent). The range, the gap between the largest and smallest value, is a quick first look at spread; for a more reliable measure, use the standard deviation.
Frequently Asked Questions
- When should I use the median instead of the mean?
- Use the median when the data are skewed or contain outliers, such as house prices or incomes. It reflects the typical value better because extreme values do not pull it around.
- Can a data set have more than one mode?
- Yes. If two values tie for the highest frequency the data are bimodal, and with more ties they are multimodal. This calculator lists every mode.
- How do I find the median of an even number of values?
- Sort the values and take the average of the two in the middle. For 3, 5, 8, 10 the median is (5 + 8) ÷ 2 = 6.5.