Quartiles use the median-of-halves method taught in most schools (the median itself is left out of each half when the count is odd). Outliers are values more than 1.5 × IQR below Q1 or above Q3.
The mean, median and mode calculator finds the average, the middle value, the most common value and the range of any list of numbers, with every step shown. It also gives the count, sum, quartiles, interquartile range, outliers and standard deviation, draws a dot plot, works from a frequency table, and tells you the score you need for a target average.
In short: Mean = add the numbers and divide by how many there are. Median = the middle number after sorting. Mode = the number that appears most often. Range = largest minus smallest. For 4, 8, 6, 5, 3, 8, 9: mean ≈ 6.14, median 6, mode 8, range 6.
How to Use the Mean, Median and Mode Calculator
- Type or paste your numbers separated by commas, spaces or new lines, such as
4, 8, 6, 5, 3, 8, 9. Decimals and negative numbers work, and you can paste a whole column from a spreadsheet. - Press Calculate. The mean, median, mode and range appear at the top, with the count, sum, quartiles, outliers and standard deviation below.
- Read the steps and the dot plot. The sorted list highlights the middle value, the dot plot marks the mean and median, and the frequency table shows the mode.
- Have a frequency table? Open From a frequency table and enter the values and how often each one appears.
- Need a grade? Open Score needed for an average, enter your scores and the average you want.
What Are the Mean, Median, Mode and Range?
| Measure | What it tells you | How to find it |
|---|---|---|
| Mean (average) | The balance point of the data | Add all the values and divide by how many there are |
| Median | The middle value | Sort the values and take the middle one, or the average of the two middle ones |
| Mode | The most common value | Find the value that appears most often; there can be none, one or several |
| Range | How spread out the data is | Largest value minus smallest value |

Worked Examples
| Data | Mean | Median | Mode | Range |
|---|---|---|---|---|
| 4, 8, 6, 5, 3, 8, 9 | 43 ÷ 7 ≈ 6.14 | 6 | 8 | 6 |
| 12, 15, 11, 18, 14, 20 | 90 ÷ 6 = 15 | (14 + 15) ÷ 2 = 14.5 | No mode | 9 |
| 2, 3, 3, 5, 7, 7, 9 | 36 ÷ 7 ≈ 5.14 | 5 | 3 and 7 (bimodal) | 7 |
| 10, 12, 11, 13, 12, 95 | 153 ÷ 6 = 25.5 | 12 | 12 | 85 |
| 1.5, 2.25, −3, 4, 2.25 | 7 ÷ 5 = 1.4 | 2.25 | 2.25 | 7 |
Example: An even count: 12, 15, 11, 18, 14, 20 sorts to 11, 12, 14, 15, 18, 20. The two middle values are 14 and 15, so the median is (14 + 15) ÷ 2 = 14.5. Each value appears once, so there is no mode.
Which Average Should You Use?
In 10, 12, 11, 13, 12, 95 most values are about 12, but the single value 95 pulls the mean up to 25.5. The median, 12, is not affected. The calculator flags 95 as an outlier, because it is more than 1.5 × IQR above the upper quartile.
- Mean: best when the data has no extreme values, such as test scores in a class.
- Median: best when a few values are much bigger or smaller, such as house prices or incomes.
- Mode: best for the most popular choice, such as shoe sizes or favorite colors, and the only one that works for words.
Mean, Median and Mode From a Frequency Table
A frequency table lists each value once with the number of times it appears. In a class survey of goals scored per match, the values 1, 2, 3, 4, 5 have frequencies 2, 5, 8, 4, 1.
- Mean: multiply each value by its frequency and add: 1×2 + 2×5 + 3×8 + 4×4 + 5×1 = 57. Divide by the total frequency, 20: 57 ÷ 20 = 2.85.
- Median: with 20 values, the middle is between the 10th and 11th. Counting up (2, then 7, then 15) both fall on 3, so the median is 3.
- Mode: the value with the highest frequency, 3 (8 times).
- Range: 5 − 1 = 4.
What Score Do I Need for a Target Average?
Multiply the average you want by the total number of scores, then subtract what you already have. With 78, 85 and 90, an average of 85 over four tests needs 85 × 4 = 340 in total, and 340 − 253 = 87 on the next test. This is the same idea as the inequality (253 + x) ÷ 4 ≥ 85 in our linear inequalities guide.
Quartiles, IQR, Outliers and Standard Deviation
- Quartiles: Q1 is the median of the lower half and Q3 is the median of the upper half. When the count is odd, the calculator leaves the median out of both halves, the method used in most school courses.
- Interquartile range (IQR): Q3 − Q1, the spread of the middle half of the data.
- Outliers: values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
- Standard deviation: the typical distance of a value from the mean. Use the population figure for a whole group and the sample figure (divided by n − 1) for a sample.
Learn the Methods
- Mean, median, mode and range: how to find each one by hand, with practice problems.
- Linear inequalities: solve “at least” and “at most” problems such as the score you need.
- Percentage calculator: turn scores into percents.
- Math glossary: quick definitions of mean, median, mode and more.
Need a different tool? See all free math calculators on one page.
Mean, Median and Mode Calculator: FAQ
How do you find the mean, median and mode?
Mean: add the numbers and divide by how many there are. Median: sort them and take the middle one. Mode: the number that appears most often. For 4, 8, 6, 5, 3, 8, 9 the mean is about 6.14, the median is 6 and the mode is 8.
How do you find the median with an even number of values?
Sort the values and take the average of the two middle ones. For 11, 12, 14, 15, 18, 20 the median is (14 + 15) ÷ 2 = 14.5.
What if there is no mode?
If every value appears the same number of times, there is no mode. For 12, 15, 11, 18, 14, 20 each value appears once, so there is no mode.
Can there be more than one mode?
Yes. In 2, 3, 3, 5, 7, 7, 9 both 3 and 7 appear twice, so the data is bimodal with modes 3 and 7.
Which is better, the mean or the median?
Use the median when there are outliers. In 10, 12, 11, 13, 12, 95 the mean is 25.5 but the median, 12, is closer to the typical value.
Can I use decimals and negative numbers?
Yes. For 1.5, 2.25, −3, 4, 2.25 the calculator gives a mean of 1.4, a median of 2.25, a mode of 2.25 and a range of 7.
Is the mean, median and mode calculator free?
Yes. It is free, needs no sign-up and runs in your browser.
Sources and Further Reading
- OpenStax, Introductory Statistics 2e, Section 2.5: Measures of the Center of the Data, Rice University.
- OpenStax, Introductory Statistics, Section 2.3: Measures of the Location of the Data (quartiles, IQR and outliers).
- Illustrative Mathematics: Grade 6, Statistics and Probability (6.SP.B.5).
Also try the fraction calculator, the solve for x calculator and the scientific calculator.