If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Interquartile range review

Calculate interquartile range from small data sets with even or odd numbers of data points.

Interquartile Range (IQR)

Interquartile range is the amount of spread in the middle 50% of a dataset.
In other words, it is the distance between the first quartile (Q1) and the third quartile (Q3).
IQR=Q3Q1
Here's how to find the IQR:
Step 1: Put the data in order from least to greatest.
Step 2: Find the median. If the number of data points is odd, the median is the middle data point. If the number of data points is even, the median is the average of the middle two data points.
Step 3: Find the first quartile (Q1). The first quartile is the median of the data points to the left of the median in the ordered list.
Step 4: Find the third quartile (Q3). The third quartile is the median of the data points to the right of the median in the ordered list.
Step 5: Calculate IQR by subtracting Q3Q1.

Example with an odd number of data points

Essays in Ms. Fenchel's class are scored on a 6-point scale.
Find the IQR of these scores:
1, 3, 3, 3, 4, 4, 4, 6, 6
Step 1: The data is already in order.
Step 2: Find the median. There are 9 scores, so the median is the middle score.
1333lower half44466upper half
The median is 4.
Note that the median is not part of either the lower or upper half of the data.
Step 3: Find Q1, which is the median of the data to the left of the median.
There is an even number of data points to the left of the median, so we need the average of the middle two data points.
1333lower half
Q1=3+32=3
The first quartile is 3.
Step 4: Find Q3, which is the median of the data to the right of the median.
There is an even number of data points to the right of the median, so we need the average of the middle two data points.
4466upper half
Q3=4+62=5
The third quartile is 5.
Step 5: Calculate the IQR.
IQR=Q3Q1=53=2
The IQR is 2 points.

Example with an even number of data points

The foot lengths of the members of a dance troupe are in centimeters.
Find the IQR of these foot lengths:
25.5, 25.5, 26.5, 28.5, 29, 30.5, 31.5, 31.5, 32, 32.5
Step 1: The data is already in order.
Step 2: Find the median. There are 10 lengths, so the median is the average of the middle two lengths.
25.525.526.528.529lower half 30.531.531.53232.5upper half
median=29+30.52=29.75
The median is 29.75.
Step 3: Find Q1, which is the median of the data to the left of the median.
There is an odd number of lengths to the left of the median, so we need the middle length.
25.525.526.528.529lower half
The first quartile is 26.5.
Step 4: Find Q3, which is the median of the data to the right of the median.
There is an odd number of lengths to the right of the median, so we need the middle length.
30.531.531.53232.5upper half
The third quartile is 31.5.
Step 5: Calculate the IQR.
IQR=Q3Q1=31.526.5=5
The IQR is 5cm.
Want to learn more about calculating IQR? Check out this video.

Practice problem

The following data points represent the number of classes that each teacher at Broxin High School teaches.
Sort the data from least to greatest.
1
Find the interquartile range (IQR) of the data set.
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
classes

Want to practice more problems like these? Check out this exercise on interquartile range (IQR).

Want to join the conversation?

  • starky seedling style avatar for user Asia Aisa
    what if there are two numbers in the middle?
    (8 votes)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user 
    why do i need to know this?
    (5 votes)
    Default Khan Academy avatar avatar for user
    • blobby blue style avatar for user joshua
      Interquartile range is useful when analyzing data. For example, let 50, 100, 200, 300, 400 be 5 people's money before they work, and 100, 100, 200, 350, 700 be those 5 people after they work. Now if you want to claim that at least 50% of those people has their money increased, you can use interquartile range to evaluate the correctness of this claim.
      (20 votes)
  • starky sapling style avatar for user Kaylan
    guys i forgot to take my fish on a walk today
    (10 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user carcamo.lucia435
    how can you find the median
    (7 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user Terence Way
      The median is simply the middle number in the data set (if you have your data set ordered from least to greatest). This is easy if you have an odd number of data.

      If your number set has an even amount of data, then there's no central number. You would then take the average (or mean) of the two middle numbers to obtain the median for the data set.

      Someone else gave an example of 1,2,2,3,5. Since there are an odd number of data, the median would simply be the (third) middle number of '2'.

      Had the data set looked like this (with an even number of data)-
      1,2,2,3,5,9

      ...then you would take the middle two number, and find the average (mean) of them. In this case, 2 & 3, the median would be 2+3, divided by 2, which would be 2.5.
      (9 votes)
  • blobby green style avatar for user Ulrich  jack
    the only thing teachers teach is how to be a teacher 💀
    (8 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Sheetal Salunke
    khan ingtrquartile range is very fun to do. Thanks
    (11 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Trần Lê Khánh như
    why is it called "quartile" when there're only 2 parts? I'm not a native so it's a bit confusing to me
    (6 votes)
    Default Khan Academy avatar avatar for user
  • leafers sapling style avatar for user joaina
    For those in the comments who waste time asking when we will apply this knowledge in the real world, read this post.



    Several professions and fields may require knowledge of finding the interquartile range (IQR), including:

    Statistics and Data Analysis: Statisticians, data analysts, and data scientists often use the interquartile range as a measure of variability or spread in a dataset.
    Finance and Economics: Professionals in finance and economics use IQR for analyzing financial data, such as stock prices, to understand the dispersion of returns or volatility.
    Healthcare and Medicine: Researchers and epidemiologists might use IQR to analyze health-related data, such as patient outcomes or clinical trial results.
    Education: Teachers and educators may teach students about descriptive statistics, including measures of central tendency and measures of dispersion like the interquartile range.
    Quality Control and Six Sigma: Professionals involved in quality control and process improvement may use IQR to identify variability in manufacturing processes and to monitor process stability.
    Environmental Science: Environmental scientists might use IQR to analyze data related to pollution levels, biodiversity, or climate variables.
    Market Research: Market analysts and researchers may use IQR to analyze consumer data and understand variations in preferences or behaviors.
    Social Sciences: Researchers in fields like psychology, sociology, and political science may use IQR to analyze survey data or other forms of social research.
    Engineering: Engineers might use IQR to analyze data related to structural integrity, material properties, or performance of systems.
    Business Analytics: Professionals in various business sectors use IQR to analyze operational data, customer feedback, and market trends.
    These are just a few examples, but the application of interquartile range extends to various fields where understanding data variability is crucial for making informed decisions.
    (6 votes)
    Default Khan Academy avatar avatar for user
  • winston default style avatar for user ema  carrillo
    When they ask me in a quiz on what was the median on this plot versus the other. And how do I explain that since I am using 2 plot and whisker plots and I don't know how to answer them. So I anyone can help I would love the help.
    (4 votes)
    Default Khan Academy avatar avatar for user
  • starky seed style avatar for user qdebartolo
    when and how would i use this in the real world
    (4 votes)
    Default Khan Academy avatar avatar for user