GintiCalcEvery calculation

SigmaCalc

Quartiles & IQR Calculator

Split your data into four equal parts and spot the outliers.

Quartiles and interquartile range

Q1 is the median of the lower half, Q3 the median of the upper half, and the IQR is the distance between them - the range of the middle 50%.

DatasetQ1Q2 (median)Q3IQR
2, 4, 4, 4, 5, 5, 7, 94.004.505.501.50
10, 12, 23, 23, 16, 23, 21, 1615.0018.5023.008.00
1, 2, 3, 4, 52.003.004.002.00
5, 10, 15, 20, 25, 3011.2517.5023.7512.50
70, 75, 80, 85, 90, 95, 10077.5085.0092.5015.00
3, 7, 7, 19, 24, 30, 32, 457.0021.5030.5023.50

The IQR is the spread measure that ignores outliers by construction, since it discards the top and bottom quarters entirely. Compare rows one and six: both have eight values, but an IQR of 1.50 against 23.50 tells you how much more scattered the second is, and neither figure is affected by how extreme the largest value happens to be. The usual outlier rule flags anything below Q1 minus 1.5 times the IQR or above Q3 plus 1.5 times it, which is exactly what draws the whiskers on a box plot. Note that different software uses slightly different quartile conventions, so Q1 and Q3 may vary by a small amount between tools.

Splitting data into quarters

Q1 is the value below which 25% of the data falls, Q2 is the median (50%), and Q3 marks 75% — the interquartile range (Q3 − Q1) captures the middle 50% of your data, ignoring extreme tails entirely.

The 1.5×IQR outlier rule

Any value below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is flagged as a statistical outlier — this is the same rule that draws the whiskers on a box plot, and it's far more resistant to extreme values than a simple standard-deviation cutoff.

Frequently asked questions

Home prices in a neighbourhood: $180K, $195K, $210K, $225K, $240K, $260K, $890K. Which are outliers?

Q1 = $195K, Q3 = $260K, IQR = $65K. Upper fence = $260K + 1.5×$65K = $357.5K. The $890K house is above the fence — it's a statistical outlier. This is why median home price is more meaningful than mean in real estate.

How is IQR different from standard deviation?

IQR measures the spread of the middle 50% and ignores extremes entirely. SD uses every value and is pulled by outliers. For skewed data (income, house prices, medical costs), IQR is more robust. For symmetric data, SD gives more information. Use the standard deviation calculator for SD.

What are quartiles used for in box plots?

A box plot uses Q1 (left edge of box), Q2/median (line inside box), Q3 (right edge). The box shows the middle 50%. Whiskers extend to the most extreme non-outlier values. Points beyond 1.5×IQR are plotted individually as outliers.

Related Math calculators

You might also like

Last updated: September 6, 2026