Upper & Lower Fence Calculator

Calculate both inner and outer fences for outlier detection. Shows box plot with dual fence boundaries, five-number summary, data classification, and distribution shape analysis.

Upper Inner Fence
119.63
Q₃ + 1.5×IQR = 90.00 + 29.63
Lower Inner Fence
40.63
Q₁ − 1.5×IQR = 70.25 − 29.63
Upper Outer Fence
149.25
Q₃ + 3×IQR = 90.00 + 59.25
Lower Outer Fence
11.00
Q₁ − 3×IQR = 70.25 − 59.25
IQR
19.75
Q₃ − Q₁ = 90.00 − 70.25
Fence Width
79.00
Upper − Lower = 79.00
Total Outliers
0 / 12
↑0 high, ↓0 low
Within Fence
100.0%
12 of 12 values

Box Plot with Fences

-- Inner Fence\u00B7\u00B7 Outer Fence\u25CF Mild\u25CF Extreme

Distribution Summary

StatisticValueDescription
Lower Outer Fence11.00Q₁ − 3×IQR (extreme outlier boundary)
Lower Inner Fence40.63Q₁ − 1.5×IQR (mild outlier boundary)
Min55.00Smallest observation
Whisker Low55.00Smallest value within inner fence
Q₁70.2525th percentile
Q₂ (Median)80.0050th percentile
Q₃90.0075th percentile
Whisker High105.00Largest value within inner fence
Max105.00Largest observation
Upper Inner Fence119.63Q₃ + 1.5×IQR (mild outlier boundary)
Upper Outer Fence149.25Q₃ + 3×IQR (extreme outlier boundary)

All Data Classification

#ValueZoneClassification
155.00Within inner fences✅ Normal
262.00Within inner fences✅ Normal
368.00Within inner fences✅ Normal
471.00Within inner fences✅ Normal
574.00Within inner fences✅ Normal
678.00Within inner fences✅ Normal
782.00Within inner fences✅ Normal
885.00Within inner fences✅ Normal
989.00Within inner fences✅ Normal
1093.00Within inner fences✅ Normal
1197.00Within inner fences✅ Normal
12105.00Within inner fences✅ Normal

Distribution Shape

Skewness
0.002
Approximately symmetric
Fence Symmetry
1.006
Upper/lower distance from median: 1.01×
Z of Upper Fence
2.68
Fence is 2.7σ above mean
Z of Lower Fence
-2.66
Fence is 2.7σ below mean
Planning notes, formulas, and examples

About the Upper & Lower Fence Calculator

The Upper & Lower Fence Calculator provides complete dual-fence outlier analysis using the IQR method. Unlike a simple upper-fence calculator, This calculator shows both inner fences (k × IQR, typically 1.5) and outer fences (3 × IQR), classifying every value into five zones: below outer, between outer and inner (low), normal, between inner and outer (high), and above outer.

The box plot visualization shows all four fence boundaries alongside the traditional box-and-whisker elements. Mild outliers (between inner and outer fences) deserve investigation — they might be unusual but legitimate. Extreme outliers (beyond outer fences) almost always indicate errors, contamination, or truly extraordinary observations.

The distribution shape analysis adds context: skewness reveals asymmetry that affects fence placement, while the fence symmetry ratio shows whether the upper and lower fences are equidistant from the median. Asymmetric fences are normal for skewed data and don't indicate a problem.

When This Page Helps

It gives the complete IQR-based outlier analysis that researchers and analysts need. The dual-fence system distinguishes between "somewhat unusual" and "extremely unusual" values, which is useful when you want to separate mild anomalies from likely data errors.

The box plot with both fence types, the five-number summary, and the distribution shape metrics give you everything needed for a thorough univariate data exploration. That makes it easier to decide whether to investigate, retain, or flag borderline values.

How to Use the Inputs

  1. Enter comma-separated data values (minimum 4 values).
  2. Choose the inner fence multiplier (1.5 is standard Tukey).
  3. Use presets for typical datasets.
  4. Review all four fence values and the outlier count.
  5. Examine the box plot with both inner and outer fence lines.
  6. Check the five-number summary for a complete distribution overview.
  7. Toggle between showing all values or only outliers in the classification table.
Formula used
Inner Fences: Q₃ + k×IQR (upper), Q₁ − k×IQR (lower). Outer Fences: Q₃ + 3×IQR (upper), Q₁ − 3×IQR (lower). IQR = Q₃ − Q₁. Default k = 1.5.

Example Calculation

Result: Inner: [38.13, 121.13], Outer: [6.88, 152.38], IQR = 20.75, 0 outliers

Q₁ = 69.25, Q₃ = 90, IQR = 20.75. Inner fences: 69.25 − 31.125 = 38.13 and 90 + 31.125 = 121.13. Outer: 69.25 − 62.25 = 6.88 and 90 + 62.25 = 152.38. All values fall within the inner fences.

Tips & Best Practices

  • Always examine both upper and lower fences — outliers can exist on either side.
  • The outer fence catches data entry errors; the inner fence catches legitimate but unusual values.
  • Skewed data will have asymmetric fences — this is expected, not an error.
  • Use the z-score equivalents to compare with parametric outlier criteria.
  • For publication, report Q1, Q3, IQR, and the fence values you used.
  • If the distribution is heavily skewed, consider the adjusted boxplot (medcouple-based) for more appropriate outlier detection.

Inner vs Outer Fences in Practice

The two-tier fence system maps to practical categories in most fields. In manufacturing, inner-fence outliers might trigger an investigation, while outer-fence outliers trigger a production stop. In clinical research, inner-fence values might be flagged for data verification, while outer-fence values are checked against medical records for plausibility.

The Five-Zone Classification

The complete fence system creates five zones: extreme low (below outer fence), mild low (between lower fences), normal (within inner fences), mild high (between upper fences), and extreme high (above outer fence). This five-zone classification provides more information than binary outlier/not-outlier systems.

Alternatives to the IQR Method

For normally distributed data, the z-score method (|z| > 2 or 3) is a common cross-check. The MAD (median absolute deviation) method replaces both mean and standard deviation with robust alternatives. For multivariate data, the Mahalanobis distance generalizes outlier detection to multiple dimensions. Each method has strengths; the IQR approach remains popular for its simplicity and robustness.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Inner fences (Q ± 1.5×IQR) identify mild outliers worth investigating. Outer fences (Q ± 3×IQR) identify extreme outliers that almost certainly represent errors or extraordinary events. The two-tier system provides a nuanced classification.