Outlier Calculator
Use the interquartile rule to identify values below the lower fence or above the upper fence. The tool shows Q1, Q3, IQR and both fences beside the flagged values.
convention median of halves, odd centre excludeddata sorted 1 2 3 4 | 5 6 7 100method Q1 is the median of the lower 4, Q3 the median of the upper 4.Q1 2.5 Q3 6.5 IQR 4lower fence 2.5 - 1.5 x 4 = -3.5upper fence 6.5 + 1.5 x 4 = 12.5outside 100 (above) 1 of 8 values, listed here and kept in every figure abovesame data under R7 linear interpolation at 1 + (n - 1)pQ1 2.75 Q3 6.25 IQR 3.5
- IQR
- Lower fence
- Upper fence
- Outside the fences
Box plot on an axis from 1 to 100. Whisker at 1, box from 2.5 to 6.5 with the median at 4.5, whisker at 7. 1 value is outside the fences and drawn as a point: 100.
The 1.5 x IQR fences and every observation outside them, listed and kept in the data.
Under median of halves, odd centre excluded, the fences are -3.5 and 12.5, and 1 of the 8 values sits outside them: 100 (above). It stays in the data.
Commas, spaces, tabs, semicolons and new lines all separate values, so a column copied from a spreadsheet pastes straight in, and up to 10,000 values are read at a time. Figures on screen are rounded to six decimal places; the arithmetic itself keeps full double precision. Nothing you type leaves this browser.
Worked examples
Where the conventions disagree
The same 8 values under all four conventions. They agree on the median, always. Where they differ, it is on Q1 and Q3.
| Convention | Q1 | Median | Q3 | IQR |
|---|---|---|---|---|
| Median of halves (on screen) | 2.5 | 4.5 | 6.5 | 4 |
| Tukey hinges | 2.5 | 4.5 | 6.5 | 4 |
| R7 interpolation | 2.75 | 4.5 | 6.25 | 3.5 |
| R6 interpolation | 2.25 | 4.5 | 6.75 | 4.5 |
Common questions
- What rule identifies an outlier here?
- The lower fence is Q1 - 1.5 times IQR and the upper fence is Q3 + 1.5 times IQR. Values outside those fences are listed as outliers. Values exactly on a fence are not flagged. This rule describes the entered list and does not establish a data error.
Uses browser double-precision arithmetic under the named quartile convention, with ordinary figures rounded to six decimal places and very large or small figures shown in scientific notation. Values outside the 1.5 x IQR fences are listed and kept in the data; a flag alone does not identify a mistake.