Tukey Fence Outlier Calculator

Tukey’s rule flags any value more than 1.5 interquartile ranges below Q1 or above Q3, the same rule box plots use for their whiskers.

Also called: IQR outlier calculator · Upper and lower fence calculator

  • Last updated
  • Formula tested against reference values

Your numbers

At least 4 values.

1.5 for outliers, 3 for extreme (far-out) values.

Result

Outliers found
—

Calculating…

Outlying values
—
Lower fence
—
Upper fence
—
Q1
—
Q3
—
IQR
—
Far-out values (beyond 3 × IQR)
—

How to use this calculator

  1. Enter or choose numbers.
  2. Enter or choose fence multiplier k.
  3. Enter or choose quartile method.
  4. The outliers found updates as you type. Use Copy result or Share to keep it.

Method

IQR = Q3 − Q1; lower fence = Q1 − k × IQR; upper fence = Q3 + k × IQR; outlier if x < lower or x > upper

Q1, Q3
first and third quartiles
k
multiplier: 1.5 (outlier) or 3 (far out)

Worked example

  1. Q1 = 4 and Q3 = 7 (inclusive method), so IQR = 3.
  2. Fences: 4 − 1.5 × 3 = −0.5 and 7 + 1.5 × 3 = 11.5.
  3. Only 30 lies outside; it is also beyond 7 + 3 × 3 = 16, so it is far out.

One outlier, 30, lies above the upper fence of 11.5.

What the result means

A flagged value is a prompt to investigate, not to delete: check for data-entry errors, unit mix-ups or a genuinely different case before deciding what to do.

Assumptions and limits

  • Tukey’s fences make no normality assumption; for normal data about 0.7% of values fall outside the 1.5 × IQR fences by chance.
  • In small or heavily skewed samples the rule may flag legitimate values; the quartile method also shifts the fences slightly.

Questions

Why 1.5?

Tukey chose it as a practical compromise: for normal data the fences sit about 2.7 standard deviations from the mean.

Should I remove outliers?

Only with a reason, such as a proven measurement error. Otherwise report results with and without them, or use robust statistics like the median.