Compute quartiles and the IQR of a dataset, with fences that flag outliers.
Quartile IQR Calculator
Paste numbers, any separator.
Result
-
Enter numbers to see the result.
Q1
-
Median
-
Q3
-
Formula: Tukey hinges: Q1 is the median of the lower half, Q3 of the upper half. IQR = Q3 - Q1; fences at Q1 - 1.5 IQR and Q3 + 1.5 IQR.
Advertisement
Tukey's hinges
Quartiles split sorted data into quarters. The tool uses Tukey's hinge method: Q1 is the median of the lower half, Q3 the median of the upper half, and the median itself is Q2. The interquartile range, Q3 - Q1, covers the middle 50% of values.
Fences catch outliers
Values beyond Q1 - 1.5 x IQR or Q3 + 1.5 x IQR are flagged as outliers. This is the rule behind box-plot whiskers, and unlike the range it resists being stretched by a single wild value.