Statistics Calculator
Paste a list of numbers to get the count, sum, mean, median, mode, range, quartiles, interquartile range, variance and standard deviation, for a sample or a population.
Input
Output
Readme
What does the statistics calculator show?
Paste a list of numbers and the calculator describes it at once:
- Center: the count, the sum, the mean (average), the median (the middle value) and the mode (the most frequent value)
- Spread: the minimum and maximum, the range between them, the first and third quartiles and the interquartile range
- Variance and standard deviation, each for a sample and for a population
Every result has a copy button, so you can paste it into a report or a spreadsheet. Results are rounded to 12 significant digits, which hides the tiny rounding errors of computer arithmetic: 0.1 + 0.2 shows as 0.3.
Sample or population?
Use the population values when your list holds every member of the group you care about, such as the scores of everyone in one class. Use the sample values when your list is a part of a larger group that you want to say something about, such as a survey of some of the customers.
The population variance divides the sum of squared differences from the mean by the number of values, n. The sample variance divides it by n - 1 (Bessel's correction), which makes up for a sample usually lying closer to its own mean than the whole group does. The standard deviation is the square root of the variance, in the same unit as the numbers. A single value has no sample variance, so the calculator shows a dash there.
How the quartiles are calculated
The quartiles split the sorted list into four parts. The calculator finds them by linear interpolation between the closest values, the same method as Excel's QUARTILE.INC, Google Sheets' QUARTILE and R's default. For 1, 2, 3, 4 the first quartile is 1.75 and the third is 3.25. Other methods, like Excel's QUARTILE.EXC, can give slightly different values for short lists. The interquartile range, Q3 minus Q1, is the spread of the middle half of the numbers and isn't thrown off by outliers.
The mode
The mode is the value that appears most often, shown with how many times it appears. When several values tie, all of them are listed. When every value appears only once, there is no mode.
Entering numbers
- Separate numbers with spaces, tabs, new lines, semicolons or commas. A column copied from a spreadsheet works as it is.
- Negative numbers, decimals and exponents like 1.5e3 are read.
- Pick a decimal comma under Decimal separator to read 1,5 as one and a half. Commas then no longer separate numbers, and a point in a number with a comma groups thousands, as in 1.234,5. The setting starts on the decimal separator of your regional settings.
- Entries that aren't numbers, like a column heading, are left out, and a warning lists them.
Example
Daily step counts over twelve days: 6230, 7810, 8450, 7810, 9120, 10340, 5980, 7810, 8770, 9450, 11020, 6890.
- Count 12, sum 99680, mean 8306.66666667, median 8130
- Mode 7810, appearing 3 times
- Minimum 5980, maximum 11020, range 5040
- First quartile 7580, third quartile 9202.5, interquartile range 1622.5
- Sample standard deviation 1542.53235318, population standard deviation 1476.86228953
Features
- Count, sum, mean, median and mode
- Minimum, maximum, range, quartiles and interquartile range
- Sample and population variance and standard deviation side by side
- Point or comma as the decimal separator
- Copy any result
- Runs in your browser