Skip to main content
Calkulon
Back to Guides
3 min read5 Steps

How to Calculate the Five-Number Summary for a Box Plot: Step-by-Step Guide

Learn to manually calculate the five-number summary (min, Q1, median, Q3, max) and IQR for a box plot. Includes examples and common pitfalls.

Skip the math — use the calculator

Step-by-Step Instructions

1

Order Your Data

First things first, arrange all your data points from the smallest value to the largest value. This is a crucial step for accurately finding all the other values. **Example:** Our dataset `[12, 5, 18, 7, 21, 3, 14, 13, 8]` becomes: `[3, 5, 7, 8, 12, 13, 14, 18, 21]`

2

Find the Minimum and Maximum Values

Once your data is ordered, identifying the minimum and maximum is super easy! The minimum is simply the smallest number, and the maximum is the largest number in your sorted list. **Example:** From our ordered dataset `[3, 5, 7, 8, 12, 13, 14, 18, 21]`: * **Minimum (Min): 3** * **Maximum (Max): 21**

3

Calculate the Median (Q2)

The median is the middle value of your entire dataset. It's also known as the Second Quartile (Q2). Here's how to find it: * **If your dataset has an ODD number of values:** The median is the single middle value. Count (N+1)/2 positions from either end. * **If your dataset has an EVEN number of values:** The median is the average of the two middle values. Count N/2 and (N/2)+1 positions from the start, then add them and divide by 2. **Example:** Our dataset `[3, 5, 7, 8, 12, 13, 14, 18, 21]` has 9 values (an odd number). There are (9+1)/2 = 5 values from the start (or end). The 5th value is 12. * **Median (Q2): 12**

4

Calculate the First Quartile (Q1) and Third Quartile (Q3)

Now that you have the median, you can find the first and third quartiles. Q1 is the median of the *lower half* of your data, and Q3 is the median of the *upper half* of your data. **Important Note:** If your original dataset had an ODD number of values, *exclude* the overall median when splitting your data into halves for Q1 and Q3 calculation. **Example:** Our dataset `[3, 5, 7, 8, 12, 13, 14, 18, 21]` has an odd number of values, and our median (12) is excluded. * **Lower Half:** `[3, 5, 7, 8]` * **Upper Half:** `[13, 14, 18, 21]` Now, let's find the median for each half: * **For Q1 (Lower Half: `[3, 5, 7, 8]`):** This half has 4 values (even). The middle two are 5 and 7. (5 + 7) / 2 = 6. * **First Quartile (Q1): 6** * **For Q3 (Upper Half: `[13, 14, 18, 21]`):** This half also has 4 values (even). The middle two are 14 and 18. (14 + 18) / 2 = 16. * **Third Quartile (Q3): 16**

5

Calculate the Interquartile Range (IQR)

The Interquartile Range (IQR) is the difference between the Third Quartile (Q3) and the First Quartile (Q1). It represents the spread of the middle 50% of your data, giving you a good sense of its central variability. **Formula:** `IQR = Q3 - Q1` **Example:** From our calculations in Step 4, we found Q1 = 6 and Q3 = 16. * `IQR = 16 - 6` * **IQR: 10** **Congratulations! You've calculated the full five-number summary and the IQR for your dataset!** **Summary for our example:** * **Min:** 3 * **Q1:** 6 * **Median (Q2):** 12 * **Q3:** 16 * **Max:** 21 * **IQR:** 10

Hello there! Ever wondered how those neat box plots are made? They're super useful for visualizing data distribution, and their secret lies in something called the 'five-number summary.' Don't worry, calculating it by hand is a straightforward process, and we'll walk through it together.

What is the Five-Number Summary?

The five-number summary consists of five key values that describe your dataset's distribution: the Minimum, First Quartile (Q1), Median (Second Quartile, Q2), Third Quartile (Q3), and the Maximum. Once you have these, you can also easily find the Interquartile Range (IQR), which tells you the spread of the middle 50% of your data.

Why is it Important?

Understanding these values helps you grasp the spread, center, and potential outliers of your data at a glance. It's fundamental for creating box plots, which are excellent for comparing distributions between different groups.

Prerequisites

All you need is a set of numerical data and a basic understanding of how to order numbers from smallest to largest. A calculator might be handy for division, but it's not strictly necessary.

Let's Get Started with an Example!

We'll use the following dataset for our example: [12, 5, 18, 7, 21, 3, 14, 13, 8]

Common Pitfalls to Avoid

  • Not Ordering Your Data: This is the most common mistake! Always sort your data first.
  • Incorrect Median Calculation: Be careful when finding the median for an even number of data points (average the two middle numbers).
  • Including the Median in Quartile Calculations (for odd datasets): If your dataset has an odd number of values, you exclude the median from both the lower and upper halves when calculating Q1 and Q3. If your dataset has an even number of values, you simply split the data exactly in half, and the median isn't part of either half, so this isn't an issue.
  • Misidentifying Quartiles: Remember, Q1 is the median of the lower half, and Q3 is the median of the upper half.

When to Use a Calculator

While it's great to understand the manual process, for very large datasets (dozens or hundreds of values), calculating the five-number summary by hand can become tedious and prone to errors. That's when a dedicated box plot calculator or statistical software becomes incredibly convenient, saving you time and ensuring accuracy. For smaller datasets, however, the manual method is a fantastic way to deepen your understanding of data distribution.

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 Calkulon