Free online tools

Quartile and IQR Calculator

Paste a list of values, then choose how to calculate its quartiles. See the five-number summary, the middle spread and observations outside the selected 1.5 × IQR fences.

Enter your values

Enter up to 5,000 numbers, separated by commas, spaces, semicolons or new lines. Use decimal points and omit thousands separators.

This tool processes your input in your browser.

Result

Sort the data before finding Q1 and Q3

Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1. For 2, 4, 6, 8, 10 and 30, R type 7 gives Q1 = 4.5 and Q3 = 9.5, so the IQR is 5.

Check which convention your worksheet uses

R type 7 interpolates at zero-based index (n − 1) × p, using p = 0.25 or 0.75. Tukey hinges instead take the medians of the two halves, including the middle observation in both when the length is odd. For the example list, the hinges are 4 and 10. Other quartile conventions can give different results.

Use the 1.5 × IQR fences to flag values for review

The lower fence is Q1 − 1.5 × IQR and the upper fence is Q3 + 1.5 × IQR. For the interpolated example quartiles, those are −3 and 17. The value 30 lies beyond a fence. A flag signals an observation to check and can reflect real features of the data.

Frequently asked questions

Do repeated observations stay in the list?

Yes. Quartiles are based on sorted positions, and each occurrence counts as a separate observation.

What happens with only one observation?

Every quartile equals that observation, and the IQR is zero. The five-number summary still describes the supplied list.

Are the fences the same as boxplot whiskers?

The fences are numerical thresholds. A boxplot commonly ends its whiskers at the most extreme observed values inside those thresholds.