Search for...

How to Calculate the Interquartile Range

by Mark Kennan, Demand Media

    The interquartile range, sometimes called the IQR, represents the range from the 25th percentile to the 75th percentile, or middle 50 percent of a data set. The interquartile range can be used to show what the range of an average performance would be, such as where most people fall on a certain test or what the average employee makes. The interquartile range can be more effective than the mean or median because it shows the dispersion range rather than just one number.

    Items you will need

    • Calculator
    Step 1

    Order your data points from least to greatest. For example, if your data points were 10, 19, 8, 4, 9, 12, 15, 11 and 20, you would rearrange them like this: {4, 8, 9, 10, 11, 12, 15, 19, 20}.

    Step 2

    Determine the position of the the first quartile using the following formula: (N+1)/4 where N is the number of points in the data set. If the first quartile falls between two numbers, take the average. In the above example, since there are nine data points, you would add 1 to 9 to get 10 and then divide by 4 to get 2.5. Since the first quartile falls between the second and third value, you would take the average of 8 and 9 to get 8.5.

    Step 3

    Determine the position of the the third quartile using the following formula: 3*(N+1)/4 where N is the number of points in the data set. If the third quartile falls between two numbers take the average. In the above example, since there are nine data points, you would add 1 to 9 to get 10, multiply by 3 to get 30 and then divide by 4 to get 7.5. Since the first quartile falls between the seventh and eighth value, you would take the average of 15 and 19 to get 17.

    Step 4

    Calculate the interquartile range by subtracting the value of the first quartile (step 2) from the value of the third quartile (step 3). Finishing the example, you would subtract 8.5 from 17 to find that the interquartile range equals 8.5.

    Style Your World With Color

    About the Author

    Mark Kennan is a freelance writer specializing in finance-related articles. He has worked as a sports editor for "Ring-Tum Phi" and published articles on a number of online outlets. Kennan holds a Bachelor of Arts in history and politics from Washington and Lee University.

    Photo Credits

    • Hemera Technologies/PhotoObjects.net/Getty Images

    Watch An Education Video!