Short answer: the mean is the total divided by how many values there are. The median is the middle value once the numbers are in order. The mode is the value that appears most often. The range is the largest value minus the smallest. Paste your numbers into the calculator below to get all four, with the working shown.
Last updated: November 2026.
Mean, median, mode and range calculator
Type or paste numbers separated by commas, spaces or new lines. Negative numbers and decimals work. Nothing is sent anywhere: the maths runs in your browser.
How to find each one
| Measure | What it tells you | How to work it out |
|---|---|---|
| Mean | The “fair share” average | Add all values, divide by how many there are (n) |
| Median | The middle of the data | Sort the values. The median sits at position (n + 1) ÷ 2 |
| Mode | The most common value | Count how often each value appears. Two modes = bimodal |
| Range | How spread out the data is | Largest value minus smallest value |
The mean, median and mode are all “averages”, or measures of centre. The range is not an average. It measures spread. For a fuller measure of spread, see variance.
Worked example: an odd number of values
Data: 3, 7, 7, 2, 9, 4, 10. Sorted: 2, 3, 4, 7, 7, 9, 10. There are 7 values.
| Step | Working | Answer |
|---|---|---|
| Mean | (2 + 3 + 4 + 7 + 7 + 9 + 10) ÷ 7 = 42 ÷ 7 | 6 |
| Median | Position (7 + 1) ÷ 2 = 4th value | 7 |
| Mode | 7 appears twice; every other value once | 7 |
| Range | 10 − 2 | 8 |
Worked example: an even number of values
Data: 4, 8, 15, 16, 23, 42. There are 6 values, already in order.
- Mean: 108 ÷ 6 = 18.
- Median: position (6 + 1) ÷ 2 = 3.5, so take the average of the 3rd and 4th values: (15 + 16) ÷ 2 = 15.5.
- Mode: every value appears once, so there is no mode.
- Range: 42 − 4 = 38.
Note that 3.5 is the position of the median, not its value. Mixing the two up is a common exam slip.
Mean or median? When outliers mislead
Imagine a small town of 50 people. 49 earn £30,000 a year and one earns £5,000,000. The numbers follow a classic OpenStax textbook example (there in dollars; the maths is identical in pounds).
| Average | Value | Does it describe a typical person? |
|---|---|---|
| Mean pay | £129,400 | No: nobody in the town earns this |
| Median pay | £30,000 | Yes |
| Mode pay | £30,000 | Yes |
One extreme value (an outlier) drags the mean far above what most people earn. The median ignores how extreme the outlier is, which is why OpenStax calls it the better measure of centre when the data has outliers. That is also why salary and house-price statistics usually quote the median.
Common mistakes
- Not sorting first. The median only works on ordered data.
- Forgetting repeated values. Every copy counts towards n and the mean.
- Inventing a mode. If every value appears once, there is no mode. If two values tie for most common, the data is bimodal.
- Calling the range an average. It measures spread, not centre.
Frequently asked questions
Can a set of data have more than one mode?
Yes. If two values tie for most common, the data is bimodal. OpenStax gives the example 430, 430, 480, 480, 495, where both 430 and 480 are modes.
How do you find the median of an even number of values?
Sort the values and average the two middle ones. For 4, 8, 15, 16, 23, 42 the median is (15 + 16) ÷ 2 = 15.5.
Is “average” the same as the mean?
In everyday use, yes: “average” usually means the mean. Strictly, the median and mode are averages too, so check which one a statistic uses.
Related: what “n” means in statistics, how to find a percentile, or browse more statistics by topic.
Sources
- OpenStax: Introductory Statistics 2e, 2.5 Measures of the Center of the Data
- Worked examples and calculator: My Web Stats.







Leave a Reply