Five-Number Summary

Calculate Five-Number Summary instantly with the exact formula and a worked example.

Five-Number Summary

How many values to use (first N fields)
x1
x2
x3
x4
x5
x6
x7
x8
x9
x10
Median
12
Calculate Five-Number Summary instantly with the exact formula and a worked example.
Minimum
3
Q1
6
Q3
16
Maximum
21
Interquartile range (IQR)
10

A five-number summary describes a data set with five values: minimum, first quartile, median, third quartile and maximum. Those are exactly the points you need to draw a box-and-whisker plot.

How the calculation works

Set how many values to use (3 to 10) in the first field and type your numbers into x1, x2 and so on. Only the first N fields are used; the rest are ignored. Entry order does not matter because the data are sorted first.

The median is the middle of the sorted list (the mean of the two middle values when N is even). Quartiles use the “method of halves”: the list is split into a lower and an upper half, and when N is odd the median itself is left out of both halves. Q1 is the median of the lower half and Q3 the median of the upper half. This is the convention taught in many textbooks and used on TI graphing calculators.

The calculator also reports the interquartile range, IQR = Q3 − Q1: the width of the box, which holds the middle half of the data. Unlike the range (max − min), it is not thrown off by a single extreme value.

Worked example

The defaults use N = 9 with 3, 7, 8, 5, 12, 14, 21, 13, 18 (x10 is ignored). Sorted: 3, 5, 7, 8, 12, 13, 14, 18, 21. The median is the 5th value, 12. Lower half 3, 5, 7, 8 → Q1 = (5 + 7)/2 = 6; upper half 13, 14, 18, 21 → Q3 = (14 + 18)/2 = 16. Minimum 3, maximum 21, IQR = 16 − 6 = 10.

Things to keep in mind

  • There are many quartile conventions, and on small samples they disagree. For this same data Excel’s QUARTILE.INC returns Q1 = 7 and Q3 = 14, while QUARTILE.EXC returns 6 and 16 like this tool. Check which method your course or software expects.
  • To flag outliers with Tukey’s rule, compute the fences Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Here they are −9 and 31, so there are no outliers. The calculator does not show the fences itself.
  • If the median sits much closer to Q1 than to Q3 (or vice versa), the distribution is skewed; comparing it with the mean confirms the direction.
  • The tool accepts up to 10 values. For larger data sets use a spreadsheet or statistics package.

More about: Five-Number Summary

What it calculates

The “Five-Number Summary” calculator computes Median from 11 parameters: how many values to use (first n fields), x1, x2, x3, x4, x5, x6, x7, x8, x9, x10.

A core calculation for studying, engineering tasks, and checking solutions.

Example calculation

With parameters How many values to use (first N fields) = 9, x1 = 3, x2 = 7, x3 = 8, x4 = 5, x5 = 12, x6 = 14, x7 = 21, x8 = 13, x9 = 18, x10 = 0 the result is 12.

How to use

  1. Enter how many values to use (first n fields), x1, x2, x3, x4, x5, x6, x7, x8, x9 and x10 — each field above is adjustable with a slider.
  2. Median is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

Is the median included in the halves when N is odd?
No. With an odd N this calculator excludes the median, so each half has (N − 1)/2 values.
Why does my textbook or Excel give different quartiles?
It uses another method, such as including the median in each half or linear interpolation. All are legitimate, but they give different numbers on small samples.
What is the IQR used for?
It measures the spread of the middle 50% of the data. It is the basis of the 1.5 × IQR outlier rule and a robust way to compare variability between groups.
Can I enter negative numbers or decimals?
Yes. Each field accepts values from −1,000,000 to 1,000,000 in steps of 0.1.

More calculators in this category

Explore related free tools

Area of a TrapezoidRegular n-gon areaArea of a CircleSector areaAnnulus (Ring) AreaArea of an EllipseCircular Segment AreaTriangle perimeterRectangle perimeterCircumference of a CircleSquare diagonalTriangle height