Calcamaze

Five Number Summary & Quartile Calculator

Find the minimum, Q1, median, Q3 and maximum of a data set, with the interquartile range, box-plot fences and outliers.

The two methods only differ when the count is odd.

Result

Five-number summary
2 · 7 · 11 · 15 · 34
Minimum · Q1 · Median · Q3 · Maximum
Interquartile range (IQR)
8
Q3 − Q1: the spread of the middle 50%.
Outlier fences (1.5 × IQR)
-5 to 27
Outliers
34
Values outside the fences — check them before removing anything.
Range
32
Count
11
Summary
StatisticValue
Minimum2
First quartile (Q1, 25th percentile)7
Median (Q2, 50th percentile)11
Third quartile (Q3, 75th percentile)15
Maximum34
Interquartile range8
Lower fence (Q1 − 1.5 × IQR)-5
Upper fence (Q3 + 1.5 × IQR)27

Paste a list of numbers to get the five-number summary — minimum, first quartile, median, third quartile and maximum — that a box plot is drawn from. The calculator also gives the interquartile range, the 1.5 × IQR fences and any values outside them that count as potential outliers.

What is a five-number summary?

The five-number summary describes a data set with five values: the minimum, the first quartile (Q1), the median, the third quartile (Q3) and the maximum. Together they show the centre, the spread and the shape of the data at a glance, and they are exactly what a box plot draws — a box from Q1 to Q3 with a line at the median, and whiskers out towards the extremes.

Quartiles split sorted data into four parts with roughly a quarter of the values in each. The distance from Q1 to Q3, the interquartile range (IQR), is the spread of the middle half of the data and is not pulled around by extreme values. That makes it the basis of the common 1.5 × IQR rule for flagging potential outliers, which statisticians use to spot errors or unusual cases worth a closer look.

How to use the five number summary & quartile calculator

  1. Paste or type your data, separated by commas, spaces or new lines.
  2. Read the minimum, Q1, median, Q3 and maximum.
  3. Check the fences to see which values, if any, are potential outliers.

Formula

IQR = Q3 − Q1 · fences = Q1 − 1.5 × IQR and Q3 + 1.5 × IQR

Sort the data and find the median. Q1 is the median of the lower half and Q3 the median of the upper half. With an odd count, the usual textbook method leaves the median out of both halves; the inclusive method puts it in both. Spreadsheet functions such as QUARTILE use yet another interpolation, so results can differ slightly for small data sets.

Values more than 1.5 × IQR below Q1 or above Q3 are potential outliers, drawn as separate points on a box plot.

Worked examples

Salaries with one high earner

Numbers
42, 45, 47, 48, 51, 53, 55, 58, 61, 64, 120
Quartile method
Exclude the median from each half (TI calculators, most textbooks)
Five-number summary
42 · 47 · 53 · 61 · 120
Interquartile range (IQR)
14
Outlier fences (1.5 × IQR)
26 to 82

Salaries in $1,000s: the median is 53, Q1 = 47 and Q3 = 61, so IQR = 14. The upper fence is 61 + 1.5 × 14 = 82, which flags 120 as an outlier.

How the quartile method changes the answer

Numbers
1, 3, 5, 7, 9, 11, 13
Quartile method
Include the median in each half (Tukey’s hinges)
Five-number summary
1 · 4 · 7 · 10 · 13
Interquartile range (IQR)
6
Outlier fences (1.5 × IQR)
-5 to 19

For seven values the median is 7. Leaving it out of each half gives Q1 = 3 and Q3 = 11; including it in both halves gives Q1 = 4 and Q3 = 10. Both are legitimate — check which one your course or software uses.

Reading a box plot

Part of the plotStatisticWhat it shows
Left end of the boxQ1 (25th percentile)A quarter of the data is below this value
Line inside the boxMedianThe middle value; half the data is on each side
Right end of the boxQ3 (75th percentile)Three quarters of the data is below this value
Width of the boxIQR = Q3 − Q1The spread of the middle 50% of the data
WhiskersMost extreme values inside the fencesThe range of the data without outliers
Separate pointsValues beyond Q1 − 1.5 × IQR or Q3 + 1.5 × IQRPotential outliers

When to report quartiles instead of mean and SD

For skewed data such as incomes, house prices, response times or hospital stays, the median and IQR describe the typical value and spread better than the mean and standard deviation, which a few extreme values can inflate. For roughly symmetric data the two summaries agree, and the mean and standard deviation are more familiar to most readers.

Common mistakes

  • Finding quartiles without sorting the data first.
  • Comparing quartiles from different software without checking the method. Spreadsheets, calculators and textbooks don’t all agree, especially for small data sets.
  • Deleting outliers automatically. A point outside the fences is a prompt to check the data, not proof that it is wrong.
  • Confusing the range (max − min) with the interquartile range (Q3 − Q1). The range is sensitive to extremes; the IQR is not.

Frequently asked questions

Why do different calculators give different quartiles?

There is no single agreed definition. Statisticians have catalogued at least nine methods, which differ in whether the median is included in each half and how they interpolate. For large data sets they agree closely; for small ones the choice matters, so state which method you used.

Is a value outside the fences always an outlier?

It is a potential outlier — a value worth checking for a typing or measurement error. If it is genuine, it is part of the data and usually should not be removed.

What does the interquartile range tell me?

The IQR is the width of the middle half of the data. Unlike the range or standard deviation, it is not affected by extreme values, which makes it a robust measure of spread for skewed data.

How do I find the quartiles by hand?

Sort the data and find the median. For 3, 5, 7, 8, 12, 13, 14, 18, 21 the median is 12. Q1 is the median of 3, 5, 7, 8, which is 6, and Q3 the median of 13, 14, 18, 21, which is 16, so the IQR is 10.

Sources

  1. Box Plot (NIST/SEMATECH e-Handbook of Statistical Methods), National Institute of Standards and Technology (NIST)
  2. Percentiles (NIST/SEMATECH e-Handbook of Statistical Methods), National Institute of Standards and Technology (NIST)
  3. Introductory Statistics 2e, 2.3: Measures of the Location of the Data, OpenStax, Rice University

Last updated · Calculations checked by automated tests· Editorial policy