How to use this calculator
Free Tukey outlier fences calculator. Find the interquartile range fences commonly used to flag potential outliers.
- Enter Observations, comma-separated. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- 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
- Observations, comma-separated: Enter the sample to sort and summarize. Quartiles use this page’s linear-interpolation convention.
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.
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.