Outlier Calculator
Detect low and high outliers in a dataset with quartiles, IQR, fences, and a clear sorted summary.
What Is an Outlier?
An outlier is a value that sits much lower or much higher than the rest of a dataset. Outliers can point to data entry mistakes, unusual observations, or genuinely rare events. This outlier calculator uses the standard interquartile-range method to flag values that lie beyond the lower or upper fence.
Outlier Formula
First, compute the first quartile $Q_1$, median, and third quartile $Q_3$. Then find the interquartile range:
$$IQR = Q_3 - Q_1$$
The outlier fences are:
$$\text{Lower fence} = Q_1 - 1.5 \times IQR$$ $$\text{Upper fence} = Q_3 + 1.5 \times IQR$$
Any value below the lower fence or above the upper fence is treated as an outlier.
How This Outlier Calculator Works
- Sort the dataset from smallest to largest.
- Find $Q_1$, the median, and $Q_3$.
- Compute the interquartile range.
- Build the lower and upper fences.
- Return low outliers, high outliers, and the sorted list.
Why Outliers Matter
Outliers can distort averages, variance, and regression results. They matter in grading systems, experimental measurements, business metrics, and quality-control datasets. For a wider summary of your data, pair this tool with the Box Plot Calculator, Quartile Calculator, and Descriptive Statistics Calculator.
Frequently Asked Questions
Does every dataset have an outlier?
No. Many datasets have no values outside the 1.5 × IQR fences.
Should I always delete outliers?
No. First check whether the value is an error or a real observation. Removing valid extreme values can hide important behavior.
Why use IQR instead of mean and standard deviation?
Quartiles and IQR are more resistant to extreme values, so they work well for robust outlier detection.
Can a value be both a low and high outlier?
No. A value can only fall below the lower fence or above the upper fence.