Maths Statistics

Average calculator

Your numbers
Mean 5
sum 40 ÷ count 8 = 5
Everything else about the list
Median 4.5
Mode 4
How many 8
Sum 40
Smallest 2
Largest 9
Range 7
Standard deviation (sample) 2.1381
Standard deviation (population) 2
Live · sample and population deviation both shown

The set above averages 5, and its median is 4.5, and its mode is 4. All three are correct answers to "the average". The mean is pulled by extreme values, the median is not, and the mode is the only one that works on things you cannot add up.

The mean is the sum of the values divided by how many there are. The median is the middle value once they are sorted, or the midpoint of the two middle values in an even-length list. The mode is whichever value appears most often, and this page shows a dash for it when no value in the list repeats.

How to use it

1 Paste or type your numbers. Spaces, commas, semicolons, tabs and newlines all count as separators.
2 The mean appears immediately; the rest of the figures are listed underneath.
3 Check the count against how many numbers you meant to paste. If it is higher, a comma inside a number split it in two.
4 A pasted spreadsheet column works as it is, units and currency symbols included.

Two standard deviations are reported because they answer different questions. The sample figure divides by one less than the count and belongs on numbers that are a sample of something larger; the population figure divides by the count itself and is right only when you have measured every case there is. The gap between them is the square root of n over n minus one, so it closes as the list grows. On the eight numbers this page opens with, the sample deviation of 2.1381 sits 6.9 per cent above the population figure of 2. At fifty values the gap is 1 per cent, and at five hundred it is a tenth of that. On a short list the choice moves the number far enough to change what you would conclude from it.

The input box is blunt about what counts as a separator, and it is the one thing to watch. Spaces, tabs, newlines, semicolons and commas all split values, so a comma is never read as a decimal mark and never as a thousands separator. Paste 1,200 1,300 and you get four numbers rather than two, and a mean of 125.5 rather than 1250. The count field is the check: if it disagrees with how many values you thought you pasted, the separators are the reason. Text that is not a number at all is dropped rather than rejected, so a column carrying n/a loses those rows quietly; a unit or a currency symbol stuck to a number is stripped and the number kept, so 12kg reads as 12 and $5.50 as 5.5. A time does not survive that treatment: 12:30 reads as 1230, and a date reads as its year.

Which average to quote is a judgement the arithmetic cannot make for you. The mean uses every value and is the only one of the three you can add up or scale, so almost every further statistic is built on it. The median cares only where the middle sits and not how far away the extremes are, so one wild reading leaves it untouched. The mode is the only one that means anything for values you cannot do arithmetic on at all: shoe sizes, survey answers, the most common colour in a column.

What people use it for

  • Getting a class or exam average out of a pasted mark list
  • Deciding whether the mean or the median describes a skewed set better
  • Checking a figure quoted as “the average” against the other two
  • Finding the middle value of an even-length list without sorting it by hand
  • Reading the most common answer out of a column of survey responses
  • Seeing how far a set of repeated measurements actually spreads

Questions

One large value drags the mean up and leaves the median where it was. Incomes are the classic case, and median income is the figure normally quoted for exactly that reason.

NIST/SEMATECH e-Handbook: measures of scale
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding