Skip to content

Five-Number Summary

All Calculators Practice Questions

Try the Five-Number Summary Calculator

Back to Calculators

Calculator

Results

Enter your numbers, then press Calculate.

Your mean, median and mode appear here, together with the working, the frequency table and the advanced statistics.

Frequency table

Advanced statistics

Step by step

Saved calculations

History is stored only in this browser. Nothing is sent to our server, and Clear history removes it.

Results are for educational purposes. Please verify important calculations. Read the disclaimer, the privacy policy and the guide to how to use the calculator.

The five-number summary describes a dataset with five values and no arithmetic beyond sorting, which is why it is the first summary taught before box plots appear.

The five numbers

  1. Minimum the smallest value.
  2. Q1 the lower quartile: the median of the lower half.
  3. Q2 the median of the whole dataset.
  4. Q3 the upper quartile: the median of the upper half.
  5. Maximum the largest value.

Worked example

For 12, 15, 15, 18, 20 the summary is Min 12, Q1 15, Median 15, Q3 18, Max 20, and the interquartile range is 18 − 15 = 3.

Worked example with negative numbers

For −10, −5, 0, 5, 10 the summary is Min −10, Q1 −5, Median 0, Q3 5, Max 10, and the interquartile range is 5 − (−5) = 10. Negative quartiles are written with their signs, and subtracting a negative quartile widens the range rather than narrowing it.

The interquartile range

The interquartile range covers the middle half of the data. It ignores the smallest quarter and the largest quarter, which is why it survives outliers that would distort the range, and why it is the basis for the 1.5 × IQR rule.

Spotting outliers

The fences sit at Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. For 1, 2, 3, 4, 100 the quartiles are 2 and 4, so the IQR is 2 and the upper fence is 4 + 3 = 7. The value 100 sits far above it, so it is flagged as a possible outlier and is worth checking before any mean is reported.

From five numbers to a box plot

A box plot draws the minimum and maximum as whiskers, the quartiles as the ends of the box, and the median as a line inside it. A long whisker on one side shows skew, and the position of the median inside the box shows which half the data crowds into. Every one of those values is on the calculator result, so the plot can be drawn straight from it.

Which quartile method does this calculator use?

The calculator uses the median-of-halves method, also known as Tukey’s hinges. It sorts your numbers, finds the median, splits the list into a lower half and an upper half, and takes the median of each half. Q1 is the median of the lower half and Q3 is the median of the upper half.

  • Even number of values (n): the lower half is the first n ÷ 2 values and the upper half is the last n ÷ 2 values. The median falls between the two halves, so it is in neither of them.
  • Odd number of values: the median is included in both halves. The lower half is the first (n + 1) ÷ 2 values and the upper half is the last (n + 1) ÷ 2 values.

With only one value, all five numbers are that value. Other textbooks and tools may leave the median out of the halves, or use interpolation, so they can give a slightly different Q1 and Q3 for the same list. Check the method before you compare answers. The percentile calculator uses linear interpolation instead: for 10, 20, 30, 40, 50, 60 the lower quartile Q1 is 20, but the 25th percentile is 22.5.

Worked example with an odd number of values

Take the nine numbers 3, 7, 8, 5, 12, 14, 21, 13 and 18. Sort them first: 3, 5, 7, 8, 12, 13, 14, 18, 21. The middle (5th) value is 12, so the median is 12. Because n is odd, 12 goes into both halves.

PartValuesResult
Lower half (median included)3, 5, 7, 8, 12Q1 = 7 (the middle value)
Upper half (median included)12, 13, 14, 18, 21Q3 = 14 (the middle value)
Minimum and maximum3 and 21Min = 3, Max = 21
Interquartile rangeQ3 − Q114 − 7 = 7

The five-number summary is 3, 7, 12, 14, 21. If the median were left out of the halves, Q1 would be 6 and Q3 would be 16. This calculator gives 7 and 14, because it keeps the median in both halves when n is odd.

Worked example with an even number of values

Take the eight numbers 3, 7, 8, 5, 12, 14, 21 and 13. Sorted, they are 3, 5, 7, 8, 12, 13, 14, 21. The two middle values are 8 and 12, so the median is (8 + 12) ÷ 2 = 10. Because n is even, the list splits cleanly into two halves of four.

PartValuesResult
Lower half3, 5, 7, 8Q1 = (5 + 7) ÷ 2 = 6
Upper half12, 13, 14, 21Q3 = (13 + 14) ÷ 2 = 13.5
Minimum and maximum3 and 21Min = 3, Max = 21
Interquartile rangeQ3 − Q113.5 − 6 = 7.5

The five-number summary is 3, 6, 10, 13.5, 21. You can type either list into the calculator above to check the working.

How do I use the summary to check for outliers?

Multiply the interquartile range by 1.5. Subtract that from Q1 for the lower fence and add it to Q3 for the upper fence. A value is flagged only when it is below the lower fence or above the upper fence, so a value exactly on a fence is not flagged.

For 1, 2, 3, 4, 5, 20 the calculator finds Q1 = 2 and Q3 = 5, so IQR = 3 and 1.5 × 3 = 4.5. The fences are 2 − 4.5 = −2.5 and 5 + 4.5 = 9.5. The value 20 is above 9.5, so it is flagged. A flagged value is worth checking, not deleting automatically. Try it in the outlier calculator.

Five-number summary questions

Is the median included in both halves when the count is odd?

Yes, in this calculator. With an odd number of values the median belongs to both the lower half and the upper half. With an even number of values it belongs to neither.

Why does another calculator give a different Q1 or Q3?

There is more than one accepted way to find quartiles. Some methods leave the median out of the halves for an odd count, and some interpolate between values. This calculator uses the median-of-halves method, so state the method if you compare answers or hand in work.

What are the five numbers if I enter only one value?

All five are that value, and the interquartile range is 0.

Next, test your own numbers in the mean, median, mode and range calculator, find fences with the outlier calculator, compare with the percentile calculator, or practise with the statistics practice questions.

Last updated:

How are these results calculated?

The calculator uses the median-of-halves method for quartiles. For an odd number of values, the middle value is included in both halves. Percentiles use linear interpolation with position (p ÷ 100) × (n − 1). Other tools may use different rules.

Method and references

For an independent explanation of statistical methods, see the NIST/SEMATECH e-Handbook of Statistical Methods. This is a reference for general methods, not a claim of endorsement or external review. Check the calculator’s displayed steps for the exact operation used.

Scroll to Top