Statistics Calculator

A statistics calculator sums up a list of numbers: where the middle is (the mean, median and mode) and how spread out the numbers are (the range, variance, standard deviation and quartiles). Paste your numbers to get them all at once, with the working.

Separate numbers with commas, spaces or new lines. Type 1200, not 1,200.

Mean (average)
25

For these 5 numbers, the mean is 25, the median is 27 and the sample standard deviation is 6.6.

Median 27
Mode None
Standard deviation 6.6

All your statistics

Every figure for the numbers in the box. Standard deviation and variance are shown both ways: use the sample figures unless your list holds every value there is.

MeasureAnswer
Count5
Sum125
Mean (average)25
Median27
ModeNone
Smallest15
Largest31
Range16
Midrange23
Standard deviation (sample)6.6
Standard deviation (population)5.9
Variance (sample)43.5
Variance (population)34.8
First quartile (Q1)18.5
Third quartile (Q3)30.5
Interquartile range (IQR)12
OutliersNone (1.5 × IQR rule)

What are descriptive statistics?

They are the few numbers that describe a whole list. Measures of location give a typical value: the mean (the numbers added up and divided by how many there are), the median (the middle number once they are in order) and the mode (the number that appears most often). Measures of spread show how far apart the numbers are: the range, the variance and the standard deviation.

The quartiles split the ordered list into four equal parts, and the interquartile range is the spread of the middle half.

Source NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.1 Measures of location ↗NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.6 Measures of scale ↗CDC · Principles of Epidemiology, Lesson 2, Section 7: Measures of spread ↗

How to calculate the mean, median, mode and standard deviation

Here are the steps CDC teaches, using your numbers.

Mean = sum ÷ count · Range = largest − smallest · Standard deviation = √(Σ(x − mean)² ÷ (n − 1))

Here it is with your numbers:

  1. Add the numbers: 27 + 31 + 15 + 30 + 22 = 125.
  2. Mean: divide the sum by how many numbers there are, 125 ÷ 5 = 25.
  3. Median: in order, the numbers are 15, 22, 27, 30, 31, and the middle one (number 3) is 27.
  4. Mode: no number appears more than once, so there is no mode.
  5. Range: the largest minus the smallest, 31 − 15 = 16.
  6. Sample variance: square each number’s distance from the mean and add them up (174), then divide by 4, one less than the count: 174 ÷ 4 = 43.5.
  7. Sample standard deviation: the square root of the variance, √43.5 = 6.6.

It means the numbers centre on about 25, the middle number is 27, and a typical number sits about 6.6 from the mean.

Source CDC · Principles of Epidemiology, Lesson 2, Section 6: Measures of central location ↗

Statistics examples

NumbersMean, median, mode
27, 31, 15, 30, 22 (days)25, 27, no mode
Hospital stays of 30 patients12, 10, 10
27 food poisoning cases (hours)Two modes, 3 and 12
Ages 4, 23, 28, 31, 3223.6, 28, no mode

The quartiles use the (n + 1) method from NIST and CDC. Excel’s QUARTILE.INC uses another rule, and the Quartile Calculator shows both.

Source NIST/SEMATECH e-Handbook of Statistical Methods · 7.2.6.2 Percentiles ↗

FAQs

How do you calculate the average?

Add the numbers, then divide by how many numbers there are. For 27, 31, 15, 30 and 22 days, the total is 125, and 125 ÷ 5 = 25 days. This average is also called the mean.

Source CDC · Principles of Epidemiology, Lesson 2, Section 6: Measures of central location ↗

What is standard deviation in statistics?

It is a measure of how spread out the numbers are around the mean: the square root of the variance, which puts the spread back in the same units as the numbers.

Source NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.6 Measures of scale ↗

What is variance in statistics?

The variance is roughly the average squared distance of the numbers from the mean. For a sample, add up the squared distances and divide by one less than how many numbers there are. Squaring gives far-off numbers more weight.

How do you find quartiles?

Put the numbers in order. The first quartile is the 25th percentile, the median is the 50th and the third quartile is the 75th. This calculator finds the 25th percentile at position (n + 1) ÷ 4 in the ordered list, and the 75th at 3 × (n + 1) ÷ 4, going part way between two numbers when the position isn’t whole.

Source NIST/SEMATECH e-Handbook of Statistical Methods · 7.2.6.2 Percentiles ↗

Sources

Related calculators