Interquartile Range (IQR) – Calculations & Graphs

27/01/2023 Data characteristics Time to read: 5min

How do you like this article?

0 Reviews


Interquartile-range-Definition

There are many different measures and characteristics to gain an overview of your research data. The interquartile range is an essential component that is widely used in statistics, used to describe where the central point of a given set of data lies compared to its extremes. In this guide, you will find a thorough representation of how to calculate the interquartile range of a dataset, how to illustrate it, and discover some practical applications that it can be put to.

Interquartile range in a nutshell

The interquartile range is the distance between the first and the third quartile, including the middle 50% of the sample.

Definition: Interquartile range

The interquartile range, in short IQR, is a measure of descriptive statistics, which determines the range between the lower and the upper quartile, which can also be described as the middle 50% of a sample. A quartile is a type of quantile, which divides a sample into 4 same-sized groups of 25% each.

Interquartile-range-quartiles

The IQR is calculated by subtracting the lower quartile from the upper one.

IQR = Q3 – Q1 or IQR = UQ – LQ

If the distribution is symmetrical, the interquartile range is also symmetrical around the median. If the distribution is skewed, the distance on the x-axis might differ, as the following graphic shows.

Interquartile-range-distributions
Print Your Thesis Now
BachelorPrint is a leading online printing service that provides several benefits for students in the UK:
  • ✓ 3D live preview of your individual configuration
  • ✓ Free express delivery for every single purchase
  • ✓ Top-notch bindings with customised embossing

to printing services

Calculation

There are a few different methods on calculating the interquartile range, some of them depending on whether your dataset is even or odd numbered. Before starting to calculate, however, the dataset needs to be arranged in ascending order. For the exclusive and inclusive method, you also need to determine the median.

Quantile formula

The first method includes the simple formula for quantiles: n*p, where n is the number of values/participants and p is the percentage of the quantile. In the case of the interquartile range, you need the first and third quartile, meaning 25% and 75%. While the interquartile range is, as the name suggests, calculated with quartiles, you can also name them as the 25th percentile and the 75th percentile. These are technically synonyms, as they hold the same values. With this method, it does not matter if the dataset is odd or even numbered.

Example

Our example includes the following values: 23, 26, 34, 37, 51, 52, 59, 62, 68

  • → 3 → 34
  • → 7 → 59
  • IQR = 59 – 34 = 25

Example

Our example includes the following values: 23, 26, 34, 37, 51, 52, 59, 62

  • IQR = 55.5 – 30 = 25.5

Exclusive method

The exclusive method calculates the median first and then excludes it before dividing the sample into two groups.

Example

Our example includes the following values: 23, 26, 34, 37, 51, 52, 59, 62, 68

  • Median: 51
  • Lower half: 23, 26, 34, 37 → Q1 between 26 and 34 →
  • Upper half: 52, 59, 62, 68 → Q3 between 59 and 62 →
  • IQR = 60.5 – 30 = 30.5
Interquartile-range-exclusive-odd-numberd

Example

Our example includes the following values: 23, 26, 34, 37, 51, 52, 59, 62

  • Median:
  • Lower half: 23, 26, 34, 37 → Q1 between 26 and 34 →
  • Upper half: 51, 52, 59, 62 → Q3 between 52 and 59 →
  • IQR = 55.5 – 30 = 25.5
Interquartile-range-exclusive-even-numberd

Inclusive method

The inclusive method only works for odd numbered datasets, where the median is counted double, once in the lower half and once in the upper half. Even though you could theoretically split an even set into two parts as well, calculating the IQR that way is not common practice and furthermore defies the principle of symmetry around the median.
To be precise, the interquartile range is the exact 50% of values around the median, 25% to each side. If the median is included in one half and not the other, this symmetry ceases to exist, and the method is thus wrong.

Example

Our example includes the following values: 23, 26, 34, 37, 51, 52, 59, 62, 68

  • Median: 51
  • Lower half: 23, 26, 34, 37, 51 → 34
  • Upper half: 51, 52, 59, 62, 68 → 59
  • IQR = 59 – 34 = 25
Interquartile-range-inclusive-odd-numberd

Conclusion

In conclusion, you could say that the exclusive method is more suitable for even numbered datasets, while the inclusive method is used for odd numbered ones. When using the interquartile range in research, it is most important to be consistent and clear in your methodology. This does not mean that you have to use one method throughout your whole research paper, but instead make clear when you are using which method and why.

Semi-interquartile range & mid-quartile range

The semi-interquartile range (SIR or SIQR) is half of the interquartile range, also called (inter-)quartile deviation, and it is a measure of dispersion. It is calculated by dividing the interquartile range by 2. In contrast to the standard deviation, the SIQR is not influenced by extreme values in the dataset, showing a more stable measure of variability.

SIQR = (Q3 – Q1) 2

The mid-quartile range is the sum of the first and third quartile divided by 2. In many cases, it aligns with the median. However, it may also differ from that measure of central tendency. Generally, it is rarely used.

MQR = (Q3 + Q1) 2

Boxplots

A boxplot, also called a box-and-whisker plot, is the visual summary of a dataset, containing five crucial points: The lowest value, the lower quartile, the median, the upper quartile and the highest value. Depending on where the box is placed, the boxplot shows how symmetrical or skewed the distribution is. A left-shifted box indicates a positively skewed distribution, while a right-shifted one indicates a negatively skewed distribution.

Interquartile-range-boxplots

When to use the interquartile range

The interquartile range is best used to avoid outliers influencing the results. When most figures are close to a central point but just a few would drastically adjust the mean average, for instance, viewing only the middle range of data can help to deal with errors or unlikely events.

Print your thesis for £0
  • Post a picture on Instagram
  • Get the most likes on your picture
  • Receive up to £300 cash back

FAQs

This is the data point that lies 25% from the lowest point. Take the lower half of a set of data and work out the middle value. Or you multiply the number of values by 0.25 and take the resultth number either adjusted upwards as the median value or, if an integral is your result, add this value to the next before dividing the sum by 2.

This is the data point that lies 75% from the lowest point. Take the upper half of a set of data and work out the middle value. Or you multiply the number of values by 0.75 and take the resultth number either adjusted upwards as the median value or, if an integral is your result, add this value to the next before dividing the sum by 2.

Mathematicians don’t agree on whether the exclusive or inclusive method is best. There is no consensus. However, the exclusive method is better suited for even numbered sets, while the inclusive method is preferably used for odd numbered sets.

The interquartile range is calculated by subtracting the lower quartile from the upper one, as the following example shows:

Dataset: 11,12,13,14,15,16,17,18,19,20

Q1 (lower quartile): 10×0.25= 2.5 → 3 → 13

Q3 (upper quartile): 10×0.75= 7.5 → 8 → 18

IQR = 18–13 = 5

From

Salome Stolle

How do you like this article?

0 Reviews
 
About the author

Salome Stolle works as the brand manager for the English market at BachelorPrint. Throughout her 12-year residency in Denmark, she completed her International baccalaureate and Master’s in Culture, Communication, and Globalization with a specialization in media and market consumption. Through this experience, she has gained advanced competencies in academic writing and a high proficiency level in the English language. With her passion for writing, she does not only deliver well-written content but also strives to adjust to the students’ demands.

Show all articles from this author
About
BachelorPrint | The #1 Online Printing Service
For Students

Specialised in the printing and binding of academic papers, theses, and dissertations, BachelorPrint provides a comprehensive variety of bindings and design options. The BachelorPrint online printing service sets out to facilitate that every single British student attains the binding of their dreams.<br/>Beyond that, BachelorPrint publishes a multitude of educational articles on diverse subjects related to academic writing in their Study Guide section, which assists students in the creation of their thesis or dissertation.


Cite This Article

Bibliography

Stolle, S. (2023, January 27). Interquartile Range (IQR) – Calculations & Graphs. BachelorPrint. https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved 02/04/2025)

In-text citation

Parenthetical
(Stolle , 2023)
Narrative
Stolle (2023)

Bibliography

Stolle, Salome. 2023. "Interquartile Range (IQR) – Calculations & Graphs." BachelorPrint, Retrieved April 02, 2025. https://www.bachelorprint.com/uk/statistics/interquartile-range/.

In-text citation

Parenthetical
(Stolle 2023)

Bibliography

Salome Stolle, "Interquartile Range (IQR) – Calculations & Graphs," BachelorPrint, January 27, 2023, https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved April 02, 2025).

Footnotes

Short note
Stolle, "Shortened title."

Bibliography

Stolle, Salome: Interquartile Range (IQR) – Calculations & Graphs, in: BachelorPrint, 27/01/2023, [online] https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved 02/04/2025).

Footnotes

Full note
Stolle, Salome: Interquartile Range (IQR) – Calculations & Graphs, in: BachelorPrint, 27/01/2023, [online] https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved 02/04/2025).
Direct quote
Stolle, 2023.
Indirect quote
Stolle, 2023.

Bibliography

Stolle, Salome (2023): Interquartile Range (IQR) – Calculations & Graphs, in: BachelorPrint, [online] https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved 02/04/2025).

In-text citation

Direct quote
(Stolle, 2023)
Indirect quote
(Stolle, 2023)
Narrative
Stolle (2023)

Bibliography

Stolle, Salome. "Interquartile Range (IQR) – Calculations & Graphs." BachelorPrint, 27/01/2023, https://www.bachelorprint.com/uk/statistics/interquartile-range/ (retrieved 02/04/2025).

In-text citation

Parenthetical
(Stolle)
Narrative
Stolle

Bibliography

Number. Stolle S. Interquartile Range (IQR) – Calculations & Graphs [Internet]. BachelorPrint. 2023 [cited 02/04/2025]. Available from: https://www.bachelorprint.com/uk/statistics/interquartile-range/


New articles