Statistics Calculator

Mean, median, mode, range, quartiles, outliers and spread for a list of numbers, all in one go.

How it works

Paste your numbers separated by spaces, commas or new lines. You get the mean, median, mode, range, the five-number summary (smallest, Q1, median, Q3, largest), standard deviation and variance, and a list of outliers.

Quartiles use linear interpolation, the same as Excel QUARTILE.INC and PERCENTILE.INC. Other textbooks use slightly different rules for Q1 and Q3, so a hand answer can differ a little on small lists. Outliers are the numbers more than 1.5 times the IQR below Q1 or above Q3, the usual box plot rule.

The formula

mean = sum / n
median = the middle value of the sorted list (average of the two middle ones if n is even)
IQR = Q3 - Q1
outlier if x < Q1 - 1.5 x IQR or x > Q3 + 1.5 x IQR

Worked example

Marks 12, 15, 11, 18, 15, 20, 9: sorted they are 9, 11, 12, 15, 15, 18, 20. Mean = 100 / 7 = 14.29, median = 15, mode = 15, range = 11.

Good to know

Common questions

Which standard deviation should I use?
Both are shown. Use the sample one if your numbers are a sample of a bigger group.
Why does my textbook give a different Q1?
Books use different quartile methods. This tool uses the Excel inclusive method.
What counts as an outlier?
A value beyond 1.5 times the IQR from the quartiles.
How many numbers can I enter?
Thousands, if you paste them in.

More in Utilities.