What this outlier calculator does
An outlier is a data point that sits far away from the rest of a dataset. This calculator finds outliers using the two most widely taught rules: the 1.5×IQR (Tukey) fence method and the Z-score method. Paste your numbers, and it sorts them, computes the quartiles, and reports which values fall outside the "typical" range.
The 1.5×IQR (Tukey) rule
The interquartile range method is based on three quartiles of the sorted data:
- Q1 — the first quartile (25th percentile): a quarter of the data lies below it.
- Q3 — the third quartile (75th percentile): a quarter of the data lies above it.
- IQR = Q3 − Q1 — the interquartile range, the spread of the middle 50% of the data.
The fences (cutoffs) are then:
- Lower fence = Q1 − 1.5 × IQR
- Upper fence = Q3 + 1.5 × IQR
Any value below the lower fence or above the upper fence is flagged as an outlier. This is exactly the rule that draws the "whiskers" and plotted dots on a box-and-whisker plot. Using a multiplier of 3.0 instead of 1.5 identifies "extreme" or "far" outliers only. This calculator lets you change the multiplier k if you want a stricter or looser cutoff.
A worked example
Take the dataset 10, 11, 12, 13, 14, 15, 16, 17, 18, 100 (n = 10, already sorted). Using linear interpolation for quartiles: Q1 = 12.25, Q3 = 16.75, so IQR = 4.5. The fences are 12.25 − 1.5×4.5 = 5.5 and 16.75 + 1.5×4.5 = 23.5. The value 100 is above 23.5, so it is the single outlier — which matches intuition, since every other value is between 10 and 18.
The Z-score rule
The Z-score of a value measures how many standard deviations it sits from the mean: Z = (x − mean) / σ. A common convention flags any point with |Z| > 3 as an outlier. This calculator reports the Z-score flags alongside the IQR result. The Z-score rule assumes the data is roughly normal (bell-shaped) and symmetric; it can miss outliers in small or skewed samples because the outlier itself inflates both the mean and the standard deviation.
Why the quartile numbers can differ between tools
There is no single universal definition of a quartile. This calculator uses the common linear interpolation method (equivalent to the default in NumPy's percentile and many statistics courses). Spreadsheet functions and different textbooks may use slightly different rules (for example, Excel's QUARTILE.INC vs. QUARTILE.EXC, or the Tukey "hinge" method), which can shift Q1 and Q3 by a small amount on the same data. The outliers flagged are usually identical, but the exact fence values may differ by a little.