Skip to content

Statistics Calculator

Paste or type a list of numbers to get the median and the full five-number summary, along with the mean, mode, spread, outliers and a frequency table.

Free, no sign-up · Last updated

commas, spaces or new lines
The data is a

Part of a bigger group, such as 50 people surveyed. Standard deviation divides by n − 1.

US defaults ·

Median of 11 values

78

Mean
76.454545
Mode
None
Minimum41
First quartile (Q1)70
Median (Q2)78
Third quartile (Q3)88
Maximum97
Count11
Sum841

Quartiles use the method taught in most school courses and on TI calculators: the median of each half, leaving out the middle value when the count is odd. Spreadsheet functions such as QUARTILE.INC can give slightly different Q1 and Q3. Percentiles interpolate between values like PERCENTILE.INC, so the 25th percentile may differ slightly from Q1.

Definition

What descriptive statistics measure

Descriptive statistics summarise a dataset’s centre, spread and shape. Measures such as the mean and median describe a typical value, while quartiles and standard deviation show how widely the observations are distributed.

Centre
Mean and median answer different questions
Middle half
Spans from Q1 to Q3
Outlier flag
A value beyond a quartile fence

What each result tells you

The median is the middle value, the mean is the arithmetic average, and the mode is the most common value. Together they describe the centre of the data. When the mean is much larger than the median, a few high values are pulling it up, as often happens with incomes or house prices; the median then describes a typical value better.

The spread is measured in several ways. The range is the maximum minus the minimum. The interquartile range (IQR) covers the middle half of the data and ignores extremes. The standard deviation measures how far values typically sit from the mean, and the variance is its square.

How to use the calculator

Type or paste your numbers, separated by commas, spaces or new lines; a column copied from a spreadsheet works. Choose whether the data is a sample or a whole population. The Summary tab shows the median, mean, mode and the five-number summary. The Spread tab shows the standard deviation, variance, range, IQR and any outliers, and the frequency table below lists each value with how often it appears.

A worked example

Eleven test scores: 62, 70, 74, 75, 78, 81, 85, 88, 90, 97 and 41. Sorted, they run 41, 62, 70, 74, 75, 78, 81, 85, 88, 90, 97. The middle (sixth) value is 78, so the median is 78. The mean is 841 ÷ 11 = 76.45, a little lower because of the low score of 41.

The lower half is 41, 62, 70, 74, 75, so Q1 = 70. The upper half is 81, 85, 88, 90, 97, so Q3 = 88. The IQR is 18 and the outlier fences are 43 and 115, so 41 is flagged as an outlier. Treated as a sample, the standard deviation is 15.33; as a population it is 14.62.

Mean or median?

Use the mean when the data is roughly symmetrical with no extreme values, such as heights or most test scores; it uses every value and works well with further calculations. Use the median when the data is skewed or has outliers, such as salaries, house prices or response times. Reporting both, along with the IQR, gives a fuller picture than either alone.

For a quick mean of a list, the average calculator is simpler; for a closer look at spread, including each value’s deviation from the mean, use the standard deviation calculator.

Reading a box plot

A box plot is drawn straight from the five-number summary. If the median line sits near the middle of the box and the whiskers are of similar length, the data is roughly symmetrical. A median close to Q1, with a long upper whisker, means the data is skewed to the right: most values are low with a few high ones. Outliers are usually drawn as separate dots beyond the whiskers.

Step-by-step example

Summarise the 11 test scores 62, 70, 74, 75, 78, 81, 85, 88, 90, 97 and 41.

StepResult
Mean76.45
Median78
First quartile70
Third quartile88
Interquartile range18
Flagged outlier41
Sample standard deviation15.33

Formulas used

Median

Odd n: the value at position (n + 1) ÷ 2 of the sorted data

Even n: the average of the values at positions n ÷ 2 and n ÷ 2 + 1

n
number of observations

Example: 41, 62, 70, 74, 75, 78, 81, 85, 88, 90, 97 (n = 11): position 6, so the median is 78.

Quartiles and IQR

Q1 = median of the lower half, Q3 = median of the upper half

IQR = Q3 − Q1

Outlier if below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR

Q1
first quartile
Q3
third quartile
IQR
interquartile range

Example: Q1 = 70, Q3 = 88, IQR = 18; fences 43 and 115, so 41 is an outlier.

Standard deviation

Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Population: σ = √( Σ(x − μ)² ÷ n )

s
sample standard deviation
σ
population standard deviation
Σ
sum over all observations
x
individual observation
x̄
sample mean
μ
population mean
n
number of observations

Example: For the eleven scores above, s = 15.33 and σ = 14.62.

When the answer can mislead

  • Different quartile conventions can give different fences for the same short list.
  • Check the original record before removing a value flagged by the fences.
  • Two datasets with similar means and spreads can have very different clusters or gaps.

Questions

How do I find a percentile?

Sort the data and find the position (n − 1) × p ÷ 100, counting from 0, then interpolate between the two values either side. For 15, 20, 35, 40 and 50, the 40th percentile is at position 1.6, so it is 20 + 0.6 × (35 − 20) = 29. The Percentiles tab shows the 5th to 95th percentiles and any percentile you choose under More options, and the frequency table gives the percentile rank of every value.

How do you find the median?

Sort the numbers from smallest to largest and take the middle one. With an even count there are two middle numbers, so the median is their average. For 3, 7, 8, 12 and 20 the median is 8; for 3, 7, 8, 12, 20 and 25 it is (8 + 12) ÷ 2 = 10. Unlike the mean, the median is not pulled far by a few very large or very small values.

How are quartiles calculated?

Q2 is the median. Q1 is the median of the lower half of the sorted data and Q3 is the median of the upper half. When the count is odd, the middle value is left out of both halves. For 1, 3, 5, 7, 9, 11, 13 the halves are 1, 3, 5 and 9, 11, 13, so Q1 = 3 and Q3 = 11. This is the method used in most school courses and on TI-83/84 calculators.

What is the five-number summary?

It is the minimum, Q1, median, Q3 and maximum. Together they show the centre, the spread of the middle half and the full range of the data, and they are exactly what a box plot draws: the box runs from Q1 to Q3 with a line at the median, and the whiskers reach out towards the minimum and maximum.

How do you find outliers?

A common rule (Tukey’s fences) calls a value an outlier if it is more than 1.5 × IQR below Q1 or above Q3, where IQR = Q3 − Q1. With Q1 = 70 and Q3 = 88, the IQR is 18, so the fences are 70 − 27 = 43 and 88 + 27 = 115; a score of 41 is an outlier. An outlier is not automatically a mistake, but it is worth checking.

Should I choose sample or population?

Choose population if your data includes every member of the group you care about, such as the scores of everyone in one class. Choose sample if it is a selection from a bigger group, such as 50 customers out of thousands. The choice only changes the standard deviation and variance: a sample divides by n − 1 instead of n, which gives a slightly larger, less biased estimate.

Why do other calculators give different quartiles?

There are several accepted ways to calculate quartiles. Excel’s QUARTILE.INC includes the median in both halves and interpolates between values, and QUARTILE.EXC uses yet another formula. On large data sets the results are nearly the same; on small ones Q1 and Q3 can differ a little. The median, mean and other results are the same everywhere.

Sources

  1. OpenStax: Mean, median and mode
  2. OpenStax: Sample and population standard deviation
  3. NIST: Quantile algorithms and percentile interpolation
Last updated How we check
Embed this calculator
Cite this calculator

Statistics Calculator. CalculatorLab. https://calculatorlab.site/calculators/statistics-calculator/. Last updated .