CalcWorldHub
Free online calculator · no signup

Tukey outlier fences calculator

Find the interquartile range fences commonly used to flag potential outliers.

Tukey outlier fences calculator — Observations, comma-separated and calculation method
Tukey outlier fences calculator: inputs and calculation method.

How to use this calculator

Free Tukey outlier fences calculator. Find the interquartile range fences commonly used to flag potential outliers.

  1. Enter Observations, comma-separated. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.

Use the interquartile range to flag values for review

Tukey fences compare each observation with the middle half of the ordered data. They provide a consistent flagging rule for a box plot, but a flagged value may be valid and should not be deleted automatically.

Inputs for this calculation

Formula and method

Calculate IQR = Q3 − Q1. The lower fence is Q1 − 1.5×IQR and the upper fence is Q3 + 1.5×IQR. Observations outside either fence are potential outliers under this rule.

Worked example

For 1, 2, 3, 4, 20, the quartiles are Q1 = 2 and Q3 = 4, so IQR = 2. The fences are 2 − 3 = −1 and 4 + 3 = 7. The value 20 lies above 7 and is flagged for review.

Reading the result

The flag means the value is far from the middle half relative to the sample IQR. It could reflect a data-entry issue, a rare but real case, or a second population; context determines the next step.

Assumptions and limits

This rule is descriptive and does not test whether a value is erroneous. Quartile conventions can shift fences in small samples, so use the stated interpolation method when comparing results.

Tukey fences flag a value above the upper fenceFor values 1, 2, 3, 4, and 20, the box runs from Q1 equals 2 to Q3 equals 4, the upper fence is 7, and 20 is flagged as a potential outlier.Min 1Q1 2Median 3Q3 4Upper fence 720 flaggedLower fence −1
The point is a review flag under the 1.5×IQR rule, not an automatic deletion.

Frequently asked questions

Should I remove every value beyond a Tukey fence?

No. Verify the observation and understand the process that produced it. Exclusion needs a documented reason; the fence alone is not one.

How do I use the Tukey outlier fences calculator?

Enter Observations, comma-separated. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Tukey outlier fences?

For 1, 2, 3, 4, 20, the quartiles are Q1 = 2 and Q3 = 4, so IQR = 2. The fences are 2 − 3 = −1 and 4 + 3 = 7. The value 20 lies above 7 and is flagged for review.

What does the Tukey outlier fences calculator calculate?

Free Tukey outlier fences calculator. Find the interquartile range fences commonly used to flag potential outliers.

What assumptions apply to Tukey outlier fences?

This rule is descriptive and does not test whether a value is erroneous. Quartile conventions can shift fences in small samples, so use the stated interpolation method when comparing results. The point is a review flag under the 1.5×IQR rule, not an automatic deletion.

Related calculators