The mean, median and mode are the three classic measures of central tendency: three different answers to “what is a typical value?”. The mean adds everything up and shares it out equally; the median is the value in the middle of the sorted list; the mode is the value that occurs most often. The range (largest minus smallest) and the midrange (halfway between them) round off a quick first look at the data.
Each measure has its place. The mean uses every value and is the basis of most statistical methods, but a single extreme value can drag it a long way. The median ignores how extreme the outer values are, which makes it the better summary for skewed data such as incomes. The mode is the only one that works for categories and shows where values bunch up; a data set can have several modes or none at all.
Enter your numbers and choose which calculation to explore: the step box shows the sum and division for the mean, the middle positions for the median, the frequency count for the mode, or the subtraction for the range and midrange.
How to use the Mean, Median, Mode and Range Calculator
- Data set
- Show the working for
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The list is sorted once. The mean divides the sum by the count, the median takes the middle value (or the average of the two middle values), the mode counts how often each value occurs, and the range and midrange use the smallest and largest values.
Worked example
Data: 2, 4, 4, 5, 7, 9, 10. Sum = 41 and n = 7, so the mean = 41 ÷ 7 ≈ 5.857. The list is already sorted; the 4th value, 5, is the median. The value 4 appears twice and everything else once, so the mode is 4. Range = 10 − 2 = 8 and midrange = (2 + 10) ÷ 2 = 6.
Which measure of centre to report
| Data | Best measure | Why |
|---|---|---|
| Symmetric, no outliers (heights, test scores) | Mean | Uses all values and supports further analysis |
| Skewed or with outliers (incomes, house prices) | Median | Not pulled by extreme values |
| Categories (shoe sizes sold, favourite colour) | Mode | The only measure that works for non-numeric data |
| Quick estimate from extremes | Midrange | Fast, but very sensitive to outliers |
Formula
Mean = Σx ÷ n · Median = middle value of the sorted data · Mode = most frequent value(s) · Range = max − min · Midrange = (max + min) ÷ 2
Worked example
Inputs: Data set: 2, 4, 4, 5, 7, 9, 10; Show the working for: Mean.
Results: Mean = 5.8571; Median = 5; Mode = 4 (appears 2 times); Range = 8; Midrange = 6; Minimum = 2.
Key terms
- Mean
- The arithmetic average, Σx ÷ n.
- Median
- The middle value of the sorted data.
- Mode
- The most frequent value; there may be several or none.
- Range
- The difference between the largest and smallest values.
- Midrange
- (minimum + maximum) ÷ 2.
Frequently asked questions
How do I find the mean, median and mode?
Mean: add all values and divide by how many there are. Median: sort and take the middle value. Mode: the value that appears most often.
What are the mean, median and mode of 2, 4, 4, 5, 7, 9, 10?
Mean = 41 ÷ 7 ≈ 5.857, median = 5 (the 4th value) and mode = 4.
What if two values tie for the most frequent?
Both are modes and the data are bimodal; this calculator lists every mode.
What if no value repeats?
Then there is no mode. The calculator says so instead of picking a value.
Which average should I use?
Mean for symmetric data without outliers, median for skewed data or data with outliers, mode for categories or to report the most common value.
How do outliers affect the mean?
Strongly. Replacing 10 by 100 in the example raises the mean from 5.857 to 18.714, while the median stays 5.
What is the midrange?
The average of the minimum and maximum, (2 + 10) ÷ 2 = 6 for the example.
How do I compute these in Excel?
=AVERAGE(range), =MEDIAN(range), =MODE.MULT(range) for all modes, and =MAX(range) − MIN(range) for the range.
Sources
Guides on this topic
- How to Find Mean, Median and Mode (Step by Step With Examples): Sort the numbers, then the mean is the sum divided by the count, the median is the middle value and the mode is the most common one. Here is one data set worked through.