How to use the mean, median and mode calculator
- Type or paste your numbers into the box. Commas, spaces, semicolons and new lines all work as separators, so a column copied from a spreadsheet pastes in cleanly.
- The results update as you type: mean, median, mode, range, count, sum, minimum and maximum.
- Scroll down for the sorted list, the step-by-step working, a frequency table and a plot. Small data sets get a dot plot; large ones get a histogram. The mean (solid line) and median (dashed line) are marked on the picture.
Negative numbers and decimals are fine. If an entry is not a number (for example a stray word or “N/A”), the calculator ignores it and tells you which entries were skipped.
What the three averages mean
Mean, median and mode are three different ways to describe the “typical” value of a data set. Together they are called measures of central tendency.
| Measure | How to find it | Best when… |
|---|---|---|
| Mean | Add all the values, divide by how many there are | the data has no extreme values |
| Median | Sort the values, take the middle one | there are outliers or the data is lopsided (skewed) |
| Mode | Find the value that appears most often | you want the most common value, or the data is categories |
Mean
The mean is what most people call “the average”. The formula is mean = sum of the values ÷ number of values. Because every value is included in the sum, one very large or very small number can pull the mean a long way.
Median
The median is the middle value once the data is in order. Finding it depends on whether the count n is odd or even:
- Odd n: the median is the value at position (n + 1) ÷ 2. With 7 values it is the 4th one.
- Even n: there are two middle values, at positions n ÷ 2 and n ÷ 2 + 1. The median is their mean. With 6 values, average the 3rd and 4th.
Mode
The mode is the value with the highest frequency. A data set can have one mode, two modes (bimodal), several modes (multimodal) or no mode at all if every value appears exactly once.
Range
The range is not an average — it measures spread. It is simply maximum − minimum. For a fuller picture of spread, try the standard deviation calculator or the five-number summary and box plot calculator.
Worked example
Data: 4, 8, 15, 16, 23, 42 (already sorted, n = 6)
Mean: 4 + 8 + 15 + 16 + 23 + 42 = 108, and 108 ÷ 6 = 18.
Median: n is even, so average the 3rd and 4th values: (15 + 16) ÷ 2 = 15.5.
Mode: every value appears once, so there is no mode.
Range: 42 − 4 = 38.
Notice that the mean (18) is bigger than the median (15.5). The large value 42 drags the mean upward but barely affects the median. When the mean is above the median the data is usually skewed right; when it is below, skewed left.
Mean or median: which should I use?
Imagine five houses on a street worth $200,000, $210,000, $220,000, $230,000 and $1,900,000. The mean price is $552,000 — more than four of the five houses are worth! The median, $220,000, describes a typical house far better. That is why news reports about incomes and house prices nearly always quote the median. For data without extreme values, such as heights of students in one class, the mean and median are close together and the mean is the usual choice.
Common mistakes
- Forgetting to sort before finding the median. The middle of an unsorted list is meaningless.
- Dividing by the wrong count. Zeros are data too: the mean of 0, 4 and 8 is 12 ÷ 3 = 4, not 12 ÷ 2.
- Reporting the frequency as the mode. If 85 appears three times, the mode is 85, not 3.
- Rounding too early. Keep extra decimal places until the end — the rounding calculator can tidy the final answer.
Frequently asked questions
How do you find the mean, median and mode?
Mean: add all the values and divide by how many there are. Median: sort the values and take the middle one (or the average of the two middle ones if the count is even). Mode: find the value that appears most often.
What if there is no mode or more than one mode?
If every value appears exactly once, the data set has no mode. If two values tie for most frequent the set is bimodal, and with three or more it is multimodal. The calculator lists every mode.
How do you find the median when there is an even number of values?
Sort the data, find the two middle values (positions n ÷ 2 and n ÷ 2 + 1) and average them. For 3, 5, 8, 10 the median is (5 + 8) ÷ 2 = 6.5.
Is the mean the same as the average?
In everyday language, yes: “average” almost always means the arithmetic mean. In statistics, mean, median and mode are all kinds of average, so it is clearer to name the one you used.
Which is better, the mean or the median?
Use the mean for data without extreme values and the median when there are outliers or the data is skewed, such as incomes or house prices. The median is not pulled by a few very large or very small numbers.
What is the range of a data set?
The range is the largest value minus the smallest value. It tells you how spread out the data is. For 4, 8, 15, 16, 23, 42 the range is 42 − 4 = 38.