Education
IQR Calculator
Last updated: June 19, 2026
An IQR (Interquartile Range) calculator is a descriptive statistics tool that measures data dispersion by calculating the range of the middle 50% of a dataset. It sorts the dataset, computes Q1 (25th percentile) and Q3 (75th percentile) using linear interpolation, determines the IQR (Q3 − Q1), and flags any values falling outside the 1.5 × IQR fence as outliers.
Find the interquartile range, quartiles Q1, Q2, and Q3, and detect outliers using the 1.5 × IQR rule with steps.
Quick Answer
Calculate the interquartile range (IQR), quartiles Q1, Q2, Q3, and detect data outliers from any list of numbers.
Separate values with commas, spaces, or new lines. Negative numbers and decimals are supported.
Interquartile Range (IQR)
21
Q₁ = 11.5 · Q₃ = 32.5
Step-by-Step Quartile Identification
Examples
Dataset: 4, 8, 15, 16, 23, 42, 108
Q1=11.5, Q3=32.5, IQR=21, Outliers=None
Dataset: 3, 5, 7, 8, 9, 11, 15, 30
Q1=6.5, Q3=12, IQR=5.5, Outliers=30
How it works
The Spread of Data
In descriptive statistics, a dataset is divided into quarters using quartiles. The first quartile (Q1) marks the 25th percentile, the second quartile (Q2) is the 50th percentile (the median), and the third quartile (Q3) marks the 75th percentile.
The IQR Formula
IQR = Q₃ − Q₁
To evaluate other measures of central tendency or dispersion, use our statistical packages like the standard deviation calculator, median calculator, or the combined mean median mode calculator.
Outliers and Box Plots
The IQR is the basis for box-and-whisker plots. The box spans from Q1 to Q3, and the 'whiskers' extend to the minimum and maximum data values that fall within the outlier fences. Points outside the fences are plotted individually as outlier dots.
Related Calculators
More tools from Education
Frequently asked questions
The interquartile range (IQR) is a measure of statistical dispersion representing the width of the middle 50% of a dataset. It is calculated by subtracting the first quartile (Q1, 25th percentile) from the third quartile (Q3, 75th percentile): IQR = Q3 − Q1.
Outliers are data points that lie far away from the rest of the distribution. Under the 1.5 × IQR rule, fences are set: Lower Fence = Q1 − 1.5 × IQR, and Upper Fence = Q3 + 1.5 × IQR. Any data values smaller than the lower fence or larger than the upper fence are flagged as outliers.
Standard deviation measures the average distance of all data points from the mean and is highly sensitive to extreme outliers. The IQR only looks at the middle 50% of the data, making it a robust or 'resistant' measure of spread that is unaffected by extreme outliers.
Quartiles divide a sorted dataset into four equal quarters. This calculator uses the inclusive linear interpolation method: the rank/index is calculated as (N − 1) × (P / 100). If the rank is a decimal, we interpolate proportionally between the two neighboring values.
Related calculators
Education
Variance Calculator
Compute sample and population variance, mean, count, and standard deviation from a list of numbers.
Education
Standard Deviation Calculator – Variance & SD
Use this sd calculator to compute sample and population standard deviation, variance, mean, and count from a list of numbers.
Education
Mean, Median, Mode & Range Calculator
Use this as a quick mean calculator, or find the median, mode, and range of any data set. Shows sorted values and step-by-step arithmetic.