Skip to main content
Skip to main content
DigiCalcs
Back to Guides
3 min read6 Steps

How to Calculate Interquartile Range (IQR): Step-by-Step Guide

Calculate IQR manually

Skip the math — use the calculator

Step-by-Step Instructions

1

Sort Your Data

Arrange your data in ascending order to find the correct percentiles.

2

Find the 25th Percentile (Q1)

Calculate 25% of the total number of data points and find the corresponding value.

3

Find the 75th Percentile (Q3)

Calculate 75% of the total number of data points and find the corresponding value.

4

Calculate IQR

Subtract Q1 from Q3 to get the IQR.

5

Check for Common Mistakes

Verify that your data is sorted correctly and the percentiles are found accurately.

6

Consider Using an IQR Calculator

For large datasets or to reduce errors, consider using an IQR calculator for convenience.

Introduction to IQR Calculation

The Interquartile Range (IQR) is a statistical measure used to describe the spread of a dataset. It represents the difference between the 75th percentile (Q3) and the 25th percentile (Q1) of the data. In this guide, we will walk you through the steps to calculate IQR manually.

Understanding the Formula

The formula for IQR is: IQR = Q3 - Q1 Where Q3 is the 75th percentile and Q1 is the 25th percentile.

Step-by-Step Calculation

To calculate IQR, follow these steps:

Step 1: Sort Your Data

First, arrange your data in ascending order. This is crucial for finding the correct percentiles.

Step 2: Find the 25th Percentile (Q1)

Next, find the 25th percentile of your data. To do this, calculate 25% of the total number of data points. If the result is a whole number, the 25th percentile is the average of the values at this position and the next position. If the result is not a whole number, the 25th percentile is the value at the next whole number position.

Step 3: Find the 75th Percentile (Q3)

Then, find the 75th percentile of your data. To do this, calculate 75% of the total number of data points. If the result is a whole number, the 75th percentile is the average of the values at this position and the next position. If the result is not a whole number, the 75th percentile is the value at the next whole number position.

Step 4: Calculate IQR

Finally, subtract Q1 from Q3 to get the IQR.

Worked Example

Suppose we have the following dataset: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 First, we arrange the data in ascending order (already done). Next, we find Q1. 25% of 10 is 2.5, so Q1 is the average of the 2nd and 3rd values: (4 + 6) / 2 = 5. Then, we find Q3. 75% of 10 is 7.5, so Q3 is the average of the 8th and 9th values: (16 + 18) / 2 = 17. Finally, we calculate IQR: IQR = Q3 - Q1 = 17 - 5 = 12

Common Mistakes to Avoid

When calculating IQR, make sure to sort your data correctly and find the correct percentiles.

Using the Calculator for Convenience

While manual calculation is possible, using an IQR calculator can save time and reduce errors, especially for large datasets.

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 DigiCalcs