How this calculator works
IQR is the difference between the 75th and 25th percentile cut points. It describes central spread without using the distance to the most extreme observations. In data mode, linear interpolation, medians of halves or nearest rank determine the quartiles. In known-quartile mode the tool simply subtracts, so those quartiles should have been calculated using the same method and unit.
Formula
IQR = Q3 - Q1; quartile deviation = (Q3 - Q1)/2.
Worked example
For 1, 2, 3, 4, 5, linear interpolation gives Q1 = 2 and Q3 = 4. IQR is 2 and quartile deviation is 1.
Advertisement
Frequently asked questions
Can IQR be negative?
No. Ordered quartiles require Q3 to be at least Q1. A negative difference signals reversed or inconsistent inputs.
Can IQR be zero in nonconstant data?
Yes. Ties can make the two quartiles equal even when a few observations differ.
Does IQR identify outliers by itself?
It supplies the spread used in common outlier fences. The outlier tool applies a chosen multiple to Q1 and Q3.