Mean, Median and Mode Calculator with Range and Quartiles

Paste a list of numbers and get the mean (average), median, mode, range, minimum, maximum, sum, count, quartiles and interquartile range at once. The calculator also shows the sorted data and the geometric mean when all values are positive.

Related Tools

Standard Deviation Calculator Percentage Calculator GPA Calculator Final Grade Calculator Fraction Calculator All Calculators

Mean, median and mode explained

The mean, the median and the mode are three ways to describe the center of a data set. The mean is the sum of all values divided by how many there are. The median is the middle value when the numbers are sorted. The mode is the value that appears most often. Each answers a slightly different question, and they can give quite different answers for the same data.

Add the range, which is the largest value minus the smallest, and quartiles, which split the sorted data into four parts, and you have a good summary of both the center and the spread of any list of numbers.

How to use the calculator

  1. Type or paste numbers separated by commas, spaces or new lines.
  2. Read the mean, median, mode and range.
  3. Check the quartiles and the interquartile range for the spread.
  4. Look at the sorted list to spot outliers and mistakes.

How each measure is calculated

For the data 12, 15, 11, 15, 20, 18, 15, 9, the sorted list is 9, 11, 12, 15, 15, 15, 18, 20. The sum is 115, so the mean is 115 / 8 = 14.375. With eight values, the median is the average of the 4th and 5th values, (15 + 15) / 2 = 15. The value 15 appears three times, so the mode is 15. The range is 20 - 9 = 11.

The first quartile (Q1) is the median of the lower half, 11.5. The third quartile (Q3) is the median of the upper half, 16.5. The interquartile range is Q3 - Q1 = 5. If there is no value that repeats, the data set has no mode, and if two or more values tie for the highest count, all of them are modes.

Which measure should you use?

  • Use the mean for data that is fairly symmetrical, such as test scores or heights.
  • Use the median when the data is skewed or has outliers. Income and house prices are classic examples, because a few very large values pull the mean up.
  • Use the mode for categories or the most common value, such as the most popular shoe size.
  • Report the range or the quartiles with an average, so readers can see how spread out the data is.

Outliers and quartile methods

A common rule marks a value as an outlier if it is more than 1.5 times the interquartile range below Q1 or above Q3. For the example above, those fences are 4 and 24, so there are no outliers. Statistics books and programs use slightly different ways to calculate quartiles, so your answer may differ by a small amount from a textbook or a spreadsheet. This calculator uses the method of taking the median of each half of the sorted data.

Example data set: 12, 15, 11, 15, 20, 18, 15, 9

Measure Value
Mean 14.375
Median 15
Mode 15 (three times)
Range 11
Q1 / Q3 11.5 / 16.5
IQR 5

Frequently Asked Questions

How do I find the mean, median and mode?

Add the numbers and divide by the count for the mean, find the middle value of the sorted list for the median and find the most frequent value for the mode.

What is the difference between mean and median?

The mean is the average of all values. The median is the middle value, and it is less affected by extreme values.

Can a data set have more than one mode?

Yes. If several values tie for the highest count, all of them are modes. If no value repeats, there is no mode.

What is the range?

The difference between the largest and the smallest value.

What are quartiles?

Values that split the sorted data into four equal parts. Q1 is the 25th percentile and Q3 the 75th.

What is the geometric mean?

The nth root of the product of n positive numbers, used for growth rates and ratios.

Is my data stored?

No. Everything is calculated in your browser.