ThisCalculator

Statistics

Box Plot Calculator: Find the Five-Number Summary

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Box Plot Calculator: Find the Five-Number Summary

A box plot calculator summarizes a numerical data set by finding its minimum, first quartile, median, third quartile, and maximum. Enter the values you want to analyze, and the calculator returns those five statistics along with measures such as the interquartile range, which help describe the data’s center and spread.

Formula

A five-number summary consists of the minimum, first quartile, median, third quartile, and maximum. For a sorted data set, the median is the middle value when the number of observations is odd, or the mean of the two middle values when it is even. The first and third quartiles divide the observations into lower and upper portions. The interquartile range is:

IQR = Q3 − Q1

  • Q1: first quartile, the lower quartile of the data.
  • Median (Q2): the central value, or the mean of the two central values.
  • Q3: third quartile, the upper quartile of the data.
  • IQR: the distance between Q1 and Q3, in the same units as the original values.

The calculator’s list functions return the quartiles according to its built-in convention. Quartile conventions can differ between statistical tools, particularly for small samples, so check the method when comparing results. The displayed calculator outputs give Q1, median, Q3, and IQR; the minimum and maximum are the smallest and largest input values.

Worked Example

Use the default list: 2, 4, 5, 7, 8, 10, 12, 15. It is already sorted and contains eight values. For this even-sized list, the median is the average of the fourth and fifth values:

Median = (7 + 8) / 2 = 7.5

Using the calculator’s quartile convention, the lower half is 2, 4, 5, 7 and the upper half is 8, 10, 12, 15. The middle of each half is the average of its two central values:

  • Q1 = (4 + 5) / 2 = 4.5
  • Q3 = (10 + 12) / 2 = 11
  • IQR = 11 − 4.5 = 6.5

Thus the calculator outputs Q1 = 4.50, median = 7.50, Q3 = 11.00, and IQR = 6.50. The complete five-number summary is 2, 4.5, 7.5, 11, 15.

How a Box Plot Uses These Statistics

A standard box plot turns the five-number summary into a compact visual. The box extends from Q1 to Q3, so its length represents the IQR. A line inside the box marks the median. Whiskers extend toward the low and high values; in a basic plot they reach the minimum and maximum. Some plotting systems instead draw whiskers only to the most extreme observations within 1.5 IQR of the quartiles, and mark more distant points separately as potential outliers.

That distinction matters: the whisker endpoints do not always equal the data set’s actual minimum and maximum. A box plot is a display, not a single universally fixed drawing rule. When reading a chart, check its key or documentation for its whisker and outlier convention.

Entering Data and Reading the Results

Enter individual observations as numbers, separated according to the calculator’s list-entry format. Include each observation once for each time it occurs: repeated values are meaningful, not duplicates to remove. Use one consistent unit throughout. For example, do not combine heights recorded in centimeters with heights recorded in inches unless you convert them first.

Quartiles and the median describe position rather than the arithmetic average. The median is relatively resistant to extreme values: a very large observation may change the mean considerably while leaving the median almost unchanged. The IQR describes the spread of the middle half of the data, but it does not reveal every feature of the distribution.

For example, two groups can have the same five-number summary but differ in how observations are clustered inside the box or beyond the whiskers. A box plot is useful for comparing center, spread, and possible skew, but a histogram or dot plot may show detail that the summary conceals.

Quartile Methods and Common Mistakes

There is more than one accepted way to calculate quartiles. One common approach splits the sorted observations into lower and upper halves and takes each half’s median; another uses percentile positions that may interpolate between values. With an odd number of observations, methods also differ on whether the overall median is included in each half. These choices can produce different Q1 and Q3 values, especially in short lists.

  • Do not assume every tool uses the same quartile rule. Compare methods as well as displayed numbers when results disagree.
  • Do not sort by hand incorrectly. Quartiles depend on the ordered values, not their original entry order.
  • Do not confuse IQR with range. Range is maximum minus minimum; IQR is Q3 minus Q1.
  • Keep the raw values when precision matters. Rounding inputs before calculating quartiles can alter the result.
  • Do not label every distant value an error. A box plot can flag a possible outlier, but context is needed to decide whether a value is erroneous or simply unusual.

When a Box Plot Calculator Is Useful

A calculator is useful when you need a quick summary of a class of measurements, a survey response, experimental observations, or another numerical sample. It can also help compare two or more groups: compare their medians for typical values and their IQRs for the spread of their middle observations. A much longer whisker on one side may suggest asymmetry, although the complete data may be needed to understand its cause.

For a very small data set, inspect the actual observations as well as the summary. Quartiles based on only a few values are sensitive to the chosen convention, and a box plot can make a sparse sample look more definitive than it is. For a large or complex data set, consider pairing the box plot with a histogram, a sample size, and relevant context.

Frequently Asked Questions

What does a box plot calculator calculate?
A box plot calculator finds summary statistics—usually the minimum, Q1, median, Q3, and maximum—and often the IQR. These values describe the center and spread of a numerical data set and can be used to draw a box plot.

How do you find the IQR from a box plot?
Subtract the first quartile from the third quartile: IQR = Q3 − Q1. For example, if Q1 is 4.5 and Q3 is 11, the IQR is 6.5.

Why do quartile results differ between calculators?
Different calculators may use different percentile or median-of-halves conventions, particularly when the data set is small or has an odd number of observations. Check the method before comparing results.

Does a box plot show the mean?
Not necessarily. The usual box plot marks the median, not the mean. Some specialized plots add a mean marker, but it should be identified separately.

Are points beyond the whiskers always errors?
No. They may be unusual observations under the plot’s outlier rule, but that alone does not establish that they are mistakes. Check the source and context of the data before deciding how to handle them.

Related

Formula used
list data | Data values | 2, 4, 5, 7, 8, 10, 12, 15
out q1 | First quartile Q1 | - | q1(data) | 2
out med | Median Q2 | - | median(data) | 2
out q3 | Third quartile Q3 | - | q3(data) | 2
out iqr | Interquartile range | - | q3(data) - q1(data) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.