Skip to content
Statistics

5 Number Summary Calculator

Paste or type your numbers (separated by commas or spaces) and get the full five-number summary instantly: minimum, first quartile (Q1), median, third quartile (Q3), and maximum. The calculator also shows the interquartile range, flags outliers using the standard 1.5 x IQR rule, and walks through every step of the calculation.

Your details

Enter your numbers separated by commas, spaces, or semicolons. Decimals and negative numbers are accepted.
Inclusive uses linear interpolation and matches Excel QUARTILE.INC. Exclusive (Tukey) drops the median from both halves before computing Q1 and Q3.
Q1 (First Quartile)
8

25th percentile - 25% of values fall at or below this point

Minimum3
Median (Q2)15
Q3 (Third Quartile)21
Maximum30
IQR (Interquartile Range)13
Range27
Count (n)9
Outliers (1.5 x IQR rule)None detected
Sorted data3, 7, 8, 12, 15, 18, 21, 25, 30
Minimum3
Q18
Median15
Q321
Maximum30

Five-number summary for 9 values: 3, 8, 15, 21, 30

  • The median (15) sits close to the midpoint of Q1 and Q3, suggesting a roughly symmetric distribution.
  • The middle 50% of values (IQR = 13) spans 48% of the total range (27).
  • No outliers were detected using the standard 1.5 x IQR rule.

Next stepUse this summary as the basis for a box-and-whisker plot, or pair it with mean and standard deviation for a fuller picture of your distribution.

What is the five-number summary?

The five-number summary is a concise description of a dataset using just five values: the minimum, the first quartile (Q1), the median, the third quartile (Q3), and the maximum. These five numbers divide your sorted data into four equally populated sections, each containing about 25% of the observations. Together they reveal the center, spread, and skew of the data without requiring you to look at every value individually. The summary is the backbone of a box-and-whisker plot and is one of the first tools applied in exploratory data analysis.

How to calculate the five-number summary by hand

Start by sorting all values from smallest to largest. The minimum is the first value and the maximum is the last. The median is the middle value if there is an odd number of observations, or the average of the two middle values if there is an even number. Q1 is the median of the lower half of the data, and Q3 is the median of the upper half. Whether the overall median is included in those halves depends on the method (see the table above). The interquartile range (IQR) is Q3 minus Q1, and represents the spread of the central 50% of the data.

The IQR and outlier detection

The interquartile range is a robust measure of spread because it ignores the extreme values that can distort the standard deviation. A common rule for flagging potential outliers, credited to statistician John Tukey, marks any value below Q1 - 1.5 x IQR or above Q3 + 1.5 x IQR as a suspected outlier. Values more than 3 x IQR beyond the quartiles are sometimes called extreme outliers. These thresholds are heuristics, not hard rules: flagged values should be investigated, not automatically deleted.

Box-and-whisker plots

A box plot is the standard visual for the five-number summary. A rectangle (the box) is drawn from Q1 to Q3, with a line inside at the median. Whiskers extend from the box to the minimum and maximum values, or sometimes only as far as the Tukey fences, with individual points beyond the fences shown as dots. The length of the box indicates the IQR. A median closer to Q1 than Q3 suggests right skew; a median closer to Q3 than Q1 suggests left skew. Side-by-side box plots are a fast way to compare two or more groups.

Choosing a quartile method

There is no single universal definition of Q1 and Q3, and different tools give different answers on the same dataset. Excel QUARTILE.INC and Python numpy use linear interpolation (the "inclusive" method here). Minitab, the TI-84 graphing calculator, and R's default boxplot() function use the exclusive method, which excludes the median from both halves. For most practical purposes the difference is small, but if you need to match a specific tool or curriculum, use the same method it does. Both options are available in this calculator.

Quartile method comparison

MethodUsed byHow Q1 and Q3 are found
Inclusive (interpolation)Excel QUARTILE.INC, R default, Python numpyLinear interpolation at the 0.25(n-1) and 0.75(n-1) positions
Exclusive (Tukey)Minitab, R type=2, TI-83/84Median of the lower and upper halves, excluding the overall median
Nearest rankSome textbooksFloor of (p/100) x n, rounded to the nearest integer position

Different software packages use different conventions for Q1 and Q3. The two most common are shown here.

Frequently asked questions

What is the five-number summary used for?

It summarizes the distribution of a dataset using five key values: the minimum, Q1, median, Q3, and maximum. It is used to understand central tendency and spread, to draw box-and-whisker plots, to compare distributions, and to identify potential outliers, all without needing to look at every individual data point.

What is the difference between the median and the mean?

The median is the middle value in a sorted dataset and is not affected by extreme values. The mean is the arithmetic average and can be pulled toward outliers. For skewed distributions or datasets with outliers, the median is usually a better measure of center. The five-number summary always reports the median, not the mean.

Why does Excel give a different Q1 than my textbook?

Several different algorithms exist for computing quartiles. Excel QUARTILE.INC uses linear interpolation (the inclusive method), while many statistics textbooks and the TI-84 calculator use an exclusive method that excludes the median from the lower and upper halves before taking their medians. On small datasets the two methods can differ noticeably. This calculator offers both - choose the one that matches your course or software.

What is the interquartile range and why does it matter?

The IQR is Q3 minus Q1. It measures the spread of the middle 50% of your data and is resistant to outliers, unlike the range (maximum minus minimum) or the standard deviation. A small IQR means the central data are tightly clustered; a large IQR means they are spread out. It is also the basis of Tukey's outlier rule.

How do I detect outliers using the five-number summary?

Calculate the IQR, then find the lower fence (Q1 - 1.5 x IQR) and the upper fence (Q3 + 1.5 x IQR). Any value below the lower fence or above the upper fence is a potential outlier. This calculator applies the rule automatically and lists any flagged values. Remember that a statistical outlier is not necessarily an error; it may simply be an unusual but valid observation.

What is the minimum number of values I need?

Technically you need at least four values to have distinct Q1, median, and Q3 figures; with fewer you will get meaningful results only for the minimum and maximum. In practice, the five-number summary is most useful with five or more values, and box plots are usually drawn for datasets of at least eight to ten observations.

Can I use this calculator with negative numbers or decimals?

Yes. The calculator accepts any mix of positive numbers, negative numbers, and decimal values. Separate them with commas, spaces, or semicolons. The sort order and all five summary values will be computed correctly regardless of sign or precision.

Sources

Written by Dr. Hannah Brandt, PhD Statistician · Munich, Germany

Applied statistician translating rigorous probability theory into clear, accurate tools for researchers and practitioners.

Search 3,500+ calculators

Loading search…