Outlier Calculator
Spot outliers with the standard 1.5 × IQR rule — the fences, quartiles and a box plot are shown.
Step by step
- Sort the data: 12, 14, 15, 15, 16, 18, 19, 21, 48
- The median is the middle value (position 5): 16
- Lower half (median excluded): 12, 14, 15, 15 → Q1 = its median = 14.5
- Upper half: 18, 19, 21, 48 → Q3 = 20
- IQR = Q3 − Q1 = 20 − 14.5 = 5.5
- Fences: Q1 − 1.5 × IQR = 6.25 and Q3 + 1.5 × IQR = 28.25
- Values outside the fences are outliers: 48
| Count (n) | 9 |
|---|---|
| Sum | 178 |
| Mean | 19.7778 |
| Median | 16 |
| Mode | 15 (appears 2 times) |
| Minimum | 12 |
| Maximum | 48 |
| Range | 36 |
| Q1 (first quartile) | 14.5 |
| Q3 (third quartile) | 20 |
| Interquartile range (IQR) | 5.5 |
| Sample standard deviation (s) | 10.9291 |
| Population standard deviation (σ) | 10.304 |
| Sample variance (s²) | 119.4444 |
| Population variance (σ²) | 106.1728 |
| Standard error of the mean | 3.643 |
| Coefficient of variation | 55.26% |
| Mean absolute deviation | 6.5432 |
| Sum of squares (Σ(x − x̄)²) | 955.5556 |
| Outliers (1.5 × IQR rule) | 48 |
Sorted data
12, 14, 15, 15, 16, 18, 19, 21, 48
The 1.5 × IQR rule
Upper fence = Q3 + 1.5 × IQR
Any value outside the fences is an outlier. In 12, 14, 15, 15, 16, 18, 19, 21, 48: Q1 = 14.5, Q3 = 20, IQR = 5.5, fences 6.25 and 28.25, so 48 is an outlier.
What to do with outliers
Check first whether an outlier is a typo or measurement error. If it is a real value, keep it, but consider reporting the median and IQR, which are not distorted by it. Some courses use 3 × IQR for “extreme” outliers, or z-scores beyond ±3 (z-score calculator).
Frequently asked questions
How do you find outliers?
Compute Q1, Q3 and IQR = Q3 − Q1. Values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR are outliers.
Is 48 an outlier in 12, 14, 15, 15, 16, 18, 19, 21, 48?
Yes — the upper fence is 28.25.
Can data have no outliers?
Yes, when every value lies between the fences.
Last reviewed November 2026. Results are rounded to 4 decimal places; all math runs in your browser.