Five Number Summary Calculator

Calculate the five-number summary of any data set: minimum, first quartile, median, third quartile, and maximum, with the IQR, range, and 1.5 x IQR outlier fences. Free and instant.

https://hexacalculator.com/calculators/mathematics/statistics/5-number-summary-calculator

Mathematics

Statistics

Five Number Summary Calculator

Calculate the five-number summary of any data set: minimum, first quartile, median, third quartile, and maximum, with the IQR, range, and 1.5 x IQR outlier fences. Free and instant.

Five Number Summary Calculator

Your data

For an odd-sized data set the two methods split the halves differently: Exclusive leaves the overall median out of each half (the usual textbook convention), Inclusive keeps it in both halves. For an even-sized data set they always agree.

9 values

Show the outlier check

Add the 1.5 x IQR fences and flag any values beyond them.

Show extra statistics

Add the sample and population variance and standard deviation.

Five-number summary

The five-number summary is 3, 6, 12, 16, 21 (min, Q1, median, Q3, max).

Count (n)
Sum
Mean (average)

Charts, outliers, and steps

Show the sorted-data chart

Plot your values in ascending order.

Show the calculation steps

Show how the median splits the data and how each quartile is found.

Loading calculator…

A five-number summary is a concise summary of the properties of a data set. It consists of five values that divide sorted data into four equal parts and provide insight about the spread and central tendency of the data.

The five values are the minimum, first quartile, median, third quartile, and maximum. These form the basis of box plots which allow you to easily see where data is concentrated, how spread out it is, and whether there are any skewnesses in the distribution.

This calculator will also calculate the interquartile range and range in addition to the five values. Outlier limits, variance and standard deviation can be shown if required. Enter your numbers into the text box to find out the summarized results at a glance.

The values that make up a five-number summary are:

A five-number summary of a sorted data set consists of the following values:

Value

What it is

Minimum

The smallest value in the data set.

First quartile (Q1)

The median of the lower half; 25 percent of the data sits at or below it.

Median (Q2)

The middle value; it splits the data into two equal halves.

Third quartile (Q3)

The median of the upper half; 75 percent of the data sits at or below it.

Maximum

The largest value in the data set.

How to calculate a five-number summary.

If you arrange your data in a particular order, then it's simple.

1. Sort the data.The values are sorted in ascending order. This calculator will automatically sort the values for you.

2. Check the minimum and maximum value.The values at the beginning and end of a sorted list are directly the smallest or largest value respectively.

3. Calculate the median.If there are an odd number of data points, the middle value is taken; if even, then the average of the two middle values.

4. Calculate Q1 and Q3.Q1 is the median of the lower half of data values, and Q3 is the median of the upper half of data values.

There are two methods for calculating quartiles and there are reasons why results may differ.

If the number of data points is even, it's easy to split them into two groups with the median as a dividing point. If the number of data points is odd, then the median itself becomes an actual data point, and there are two generally accepted ways to handle this. This is often the most confusing part, since different textbooks and calculation tools use different rules.

Exclusion method (default)

In this method the overall data median is not included in either group and medians are calculated for each group. This method is used by many textbooks and TI graphing calculators and is also the default setting of this calculator.

Inclusion method

This method includes the overall median in both the upper and lower groups, and calculates medians for each group. This method tends to make Q1 and Q3 closer to the center than the exclusive method does.

It is important to note that when the number of data points is even, both methods will always produce the same quartiles. The difference only arises when the number of data points is odd. As neither method is wrong, it is advisable to specify which method was used. By switching the method in the settings of the calculation tool, both results can be displayed.

Example calculation:

We will take the nine values of 3, 7, 8, 5, 12, 14, 21, 13, 18 which are shown at the start of this calculator as an example. In ascending order they are: 3, 5, 7, 8, 12, 13, 14, 18, 21.

Since the number of data points is odd, the median is the middle value, 12. For the exclusion method, the lower halves are 3, 5, 7, 8 and 13, 14, 18, 21. The median of the first half is (5 + 7) / 2 = 6, and the median of the second half is (14 + 18) / 2 = 16.

Five-number summary={3,  6,  12,  16,  21}\text{Five-number summary} = \{\,3,\; 6,\; 12,\; 16,\; 21\,\}

If we switch to the inclusive method, then both groups will include the median of 12. So the lower halves are 3, 5, 7, 8, 12, and the median is 7. The upper halves are 12, 13, 14, 18, 21, and the median is 14. In this case, the five-number summary is 3, 7, 12, 14, 21. The smallest value, the median, and the largest value are all the same, but the quartiles differ.

Range, interquartile range and box plot:

Two indicators for dispersion can be directly calculated from these five measures.

Range=maxminIQR=Q3Q1\text{Range} = \text{max} - \text{min} \qquad \text{IQR} = Q_3 - Q_1

The range covers the entire data set while the interquartile range (IQR) only considers the middle half and is therefore less sensitive to extreme values.

A box plot is a graphical representation of these values. The rectangle represents the range from Q1 to Q3, and a line indicates the position of the median value. The "whiskers" extend from the minimum to the maximum or, if outliers are present, to the limits. In other words: A five-number summary and a box plot show the same information in different forms.

Outlier limits and 1.5 x IQR

The IQR is also often used to determine outliers. According to the Tukey method, values that are below Q1 and exceed 1.5 IQR or above Q3 and exceed the same amount are considered potential outliers.

lower fence=Q11.5IQRupper fence=Q3+1.5IQR\text{lower fence} = Q_1 - 1.5\,\text{IQR} \qquad \text{upper fence} = Q_3 + 1.5\,\text{IQR}

Values that exceed the limits are candidates for outliers and should be investigated further. When outlier checking is enabled you can display the limit values of the entered data as well as the number of values identified as outliers.

Applications of five-number summary

In education this method is often used as an introduction to statistics to summarize data sets before creating a box plot.

In business and science it allows the properties of a distribution to be captured quickly in a way that is less sensitive to outliers. Quartiles are useful because they are not directly affected by extreme values, so can show typical trends without being distorted by individual outliers. They are also helpful when comparing several data sets side-by-side.

In sports and business analytics it is used to compare players, seasons or processes at a glance and identify outliers that require further investigation.

Common mistakes.

The data is not sorted first.Each of the following steps assumes that your data is sorted in ascending order. If it's not, then the quartiles won't make sense.

I'm confused about how to calculate quartiles.If the number of data points is odd and your result differs from that in your textbook or a calculator, you are probably using a different method. Check which method is required.

Sometimes, interquartile range is confused with range.The range takes into account all values while the IQR only considers the middle half. Both are indicators of how spread out the data is but they reflect different aspects.

Symbols used:

The table below summarizes the symbols used in previous formulas.

Symbol

Meaning

Example

n

How many values there are

9

min, max

The smallest and largest values

3, 21

Q1, Q3

The first and third quartiles

6, 16

Q2

The median (second quartile)

12

IQR

Interquartile range, Q3 minus Q1

10

This calculator is for general learning and analysis purposes. If certain rules must apply to quartiles, check whether the exclusive method or inclusive method is required.

Frequently asked questions

What is a five-number summary?

A five-number summary is a set of descriptive statistics that provides information about a dataset's location and spread. It consists of the minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum. The five numbers divide the sorted data into four equal parts and summarize the central tendency and dispersion of the data. They also form the basis for box plots.

How do you calculate a five number summary?

The data is sorted in ascending order. The first and last values are the smallest and largest values respectively. The median is the middle value, and if the number of data points is even, it is the average of the two middle values. Q1 is the median of the lower half, and Q3 is the median of the upper half. The interquartile range (IQR) is the difference between Q3 and Q1, and the range is the difference between the largest and smallest values.

Why can different calculation tools give different quartiles for the same data?

This is because when there are an odd number of data points, there are several rules for how to split the data. The exclusion method does not include the overall median in either group. The inclusion method includes it in both groups. When the number of data points is even, the results from both methods agree, but with an odd number they can differ. This calculator uses the exclusion method by default, but you can switch to the inclusion method.

What is interquartile range (IQR) and how do you find outliers?

The IQR is the difference between the third quartile (Q3) and first quartile (Q1), and gives a measure of how spread out the middle half of the data is. According to Tukey's method, values that fall more than 1.5*IQR below Q1 (i.e., less than the lower limit), or values that exceed Q3 by more than 1.5*IQR (i.e., are larger than the upper limit) are considered potential outliers.

What is the relationship between a five-number summary and a box plot?

A box plot is a graphical representation of the five-number summary. The rectangle (the "box") represents the range from Q1 to Q3, and a line shows the position of the median. The "whiskers" extend from the minimum to the maximum, or in the case of showing outliers, to fences. It allows for a quick understanding of center, spread, and skewness of the distribution, and enables comparison of multiple data sets at a glance.

What is the five-number summary of 1, 21, 37, 4, 69?

The data is in ascending order: 1, 4, 21, 37, 69. The minimum is 1, the median is 21 and the maximum is 69. With the inclusive method, the quartiles are Q1 = 4 and Q3 = 37. With the exclusive method, Q1 = 2.5 and Q3 = 53. This example shows that with an odd number of data points, the results can be different depending on which method is used.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia: Five-number summary

    Definition and relationship to the box plot.

  2. Wikipedia: Quartile

    The exclusive and inclusive methods and why they differ for odd n.