Outlier Calculator

Spot outliers with the standard 1.5 × IQR rule — the fences, quartiles and a box plot are shown.

Outliers48
Lower fence6.25
Upper fence28.25
IQR5.5
mean1020304050
values mean box plot (Q1–Q3, median) outlier

Step by step

  1. Sort the data: 12, 14, 15, 15, 16, 18, 19, 21, 48
  2. The median is the middle value (position 5): 16
  3. Lower half (median excluded): 12, 14, 15, 15 → Q1 = its median = 14.5
  4. Upper half: 18, 19, 21, 48 → Q3 = 20
  5. IQR = Q3 − Q1 = 20 − 14.5 = 5.5
  6. Fences: Q1 − 1.5 × IQR = 6.25 and Q3 + 1.5 × IQR = 28.25
  7. Values outside the fences are outliers: 48
Count (n)9
Sum178
Mean19.7778
Median16
Mode15 (appears 2 times)
Minimum12
Maximum48
Range36
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 mean3.643
Coefficient of variation55.26%
Mean absolute deviation6.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

Lower fence = Q1 − 1.5 × IQR
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.