find iqr calculator

Formula used: IQR = Q3 - Q1. Outlier fences: Q1 - 1.5×IQR and Q3 + 1.5×IQR.

What is the IQR and why should you care?

The Interquartile Range (IQR) is one of the most useful statistics for understanding spread in a dataset. Instead of looking at the full range (max minus min), IQR focuses on the middle 50% of your values. That makes it much more resistant to extreme values and outliers.

If you are analyzing test scores, household income, business metrics, or experimental data, IQR helps you see how tightly clustered the bulk of your observations are. In practice, this often gives a better picture of variability than standard range.

Quick formula for finding IQR

To find IQR, compute two quartiles first:

  • Q1: the 25th percentile (lower quartile)
  • Q3: the 75th percentile (upper quartile)

Then apply the formula: IQR = Q3 - Q1.

How to calculate IQR step by step

1) Sort your data

Quartiles are position-based statistics, so sorting is required first.

2) Find Q1 and Q3

Split the data into lower and upper halves, then find the median of each half. Different textbooks use different rules when the dataset size is odd. This calculator lets you switch methods so your result can match your class or software.

3) Subtract

Once Q1 and Q3 are known, the IQR is just Q3 minus Q1.

Using IQR to detect outliers

IQR is also the foundation of the classic boxplot outlier rule:

  • Lower fence = Q1 - 1.5 × IQR
  • Upper fence = Q3 + 1.5 × IQR

Any value below the lower fence or above the upper fence is considered a potential outlier. This is extremely common in data cleaning and exploratory data analysis.

Example

Suppose your data is: 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49

  • Q1 = 15
  • Q3 = 43
  • IQR = 43 - 15 = 28

Then outlier fences are: 15 - 1.5(28) = -27 and 43 + 1.5(28) = 85. So values outside -27 to 85 would be flagged as outliers.

Common mistakes when finding IQR

  • Forgetting to sort data before calculating quartiles
  • Mixing quartile methods from different classes/software
  • Using full range instead of middle 50% spread
  • Not checking units or data entry errors before interpretation

When to use an IQR calculator

Use this tool when you need a fast, accurate summary of spread, especially when outliers may distort the mean and standard deviation. It is ideal for students, researchers, analysts, and anyone doing descriptive statistics.

🔗 Related Calculators