Skip to content
ihateDesmos

Mean, median and mode calculator

Paste a list of numbers to get the mean, median, mode and range, plus the quartiles, sum and count. The values are sorted for you, and each answer comes with its working.

Mean (average)
15.875
Median
13
Mode
8
Range
38
Count
8
Sum
127
Minimum
4
Maximum
42
Lower and upper quartiles
8 and 19.5
Steps
  1. Sort the values: 4, 8, 8, 11, 15, 16, 23, 42
  2. Mean: 127 ÷ 8 = 15.875
  3. Median: with 8 values, the two middle values are numbers 4 and 5, so take their average: 13
  4. Mode: 8 appears most often (2 times)
  5. Range: 42 − 4 = 38

How to use it

  1. 1
    Paste or type your numbers, separated by commas, spaces or new lines.
  2. 2
    Read the mean, median, mode and range from the results, which update as you type.
  3. 3
    Check the steps to see how each one was found.

Mean, median, mode and range

MeasureWhat it isHow to find it
MeanThe averageAdd the values, divide by how many there are
MedianThe middle valueSort them and take the middle one, or the average of the middle two
ModeThe most common valueFind what appears most often; there may be none, or several
RangeThe spreadLargest minus smallest

Which average should you use?

The mean uses every value, so it is the usual choice when data is roughly symmetric. But one extreme value drags it around: add a billionaire to a room and the mean income soars while almost nobody got richer.

The median ignores how extreme the extremes are, which is why house prices and incomes are usually reported as medians. The mode is the only one that works for categories, like the most common shoe size.

A worked example

For 3, 7, 7, 2, 9, sort first: 2, 3, 7, 7, 9.

  • Mean: (2 + 3 + 7 + 7 + 9) ÷ 5 = 28 ÷ 5 = 5.6
  • Median: the middle of five values is the third, which is 7
  • Mode: 7 appears twice, more than any other value
  • Range: 9 − 2 = 7

Frequently asked questions

How do you find the median with an even number of values?
Sort the values and average the two in the middle. For 2, 4, 6, 8 the median is (4 + 6) ÷ 2 = 5.
Can a data set have more than one mode?
Yes. If two values tie for most common, both are modes. If every value appears once, there is no mode.
How are the quartiles worked out?
This calculator uses the median-of-halves method, the same as a TI graphing calculator: the lower quartile is the median of the lower half and the upper quartile is the median of the upper half, leaving out the middle value when the count is odd.
What is the difference between mean and average?
In everyday use they are the same thing. “Average” can loosely mean the median or mode too, which is why statisticians say “mean” when they mean the arithmetic average.

Related tools and guides

Try the mean, median and mode calculator

It opens instantly, with no account and nothing to install.

Open the calculator