Outlier Calculator
This outlier calculator finds Q1, Q3 and the interquartile range and flags values outside the fences. Example: in 12, 15, 11, 18, 14, 16, 13, 17, 40 the fences are 5 and 25, so 40 is an outlier.
Source: Wikipedia – Ausreißer. Updated: .
How it is calculated
Under the IQR rule a value is an outlier if it lies more than 1.5 times the interquartile range below the first or above the third quartile. The rule comes from John Tukey and underlies the whiskers of a box plot.
Steps
First Q1 and Q3 are found, then the interquartile range IQR = Q3 − Q1. The lower fence is Q1 − k · IQR and the upper fence Q3 + k · IQR, with k = 1.5 for outliers and k = 3 for extreme outliers. Every value outside the fences is reported. Because several quartile methods exist, you can choose one; results can differ for small samples.
Example
For 11, 12, 13, 14, 15, 16, 17, 18, 40 (n = 9) the median is 15. The lower half 11–14 gives Q1 = 12.5 and the upper half 16–40 gives Q3 = 17.5, so IQR = 5. The fences are 12.5 − 7.5 = 5 and 17.5 + 7.5 = 25. Only 40 lies above, so it is an outlier; with k = 3 the upper fence is 32.5 and 40 still stands out.
- The IQR rule is robust because quartiles are hardly affected by outliers.
- With very small samples the verdict is uncertain; from about ten values on it becomes more reliable.
Frequently asked questions
How do you detect outliers?
With the IQR rule: compute Q1, Q3 and the IQR. Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are outliers.
What does the factor 3 mean?
It sets the fences wider. Values beyond 3 × IQR are called extreme outliers and are especially unusual.
Should I always remove outliers?
No. They can be genuine, rare observations. First check for measurement or entry errors, and document it if you remove a value.
Sources and legal basis
As of: · Editorial policy
Related tools
- Quartile CalculatorQuartile calculator: enter your numbers to get Q1, median, Q3, the interquartile range and outliers, with four methods and the full working shown.
- Standard deviation calculatorStandard deviation calculator for a list or frequency table: switch between sample (s) and population (σ), see every step in a table, plus a box plot.
- Average CalculatorAverage calculator: mean, median, mode and weighted average of your numbers with working and frequency table – plus the value needed for a target average.
- Percentile CalculatorPercentile calculator for a data set: value at the 90th or 95th percentile, percentile rank of a value, quartiles – Excel methods and nearest rank with working.
- Standard Error CalculatorStandard error calculator for raw data or for standard deviation and sample size: SE = s / √n with steps, mean and variance shown for every result.
- Midrange CalculatorMidrange calculator for a list of numbers: (minimum + maximum) / 2, with range, mean and median shown for comparison and the working step by step.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- GPA calculator for Australian universities (7-point scale)GPA calculator Australia: enter each course with its grade (HD, D, C, P or 1–7) and credit points to get your GPA on the 7-point or 4-point scale, with working.
- SGPA calculator (grades and credits)SGPA calculator for Indian universities: enter each course with its grade and credits to get your semester grade point average by the UGC formula, step by step.