Statistics
Upper outlier fence
Extend the upper quartile by one and a half times the interquartile range. Values above the result are flagged as potential outliers rather than removed.
Last updated
The Formula
Upper fence = Q3 + 1.5 x IQR
Extend the upper quartile by one and a half times the interquartile range. Values above the result are flagged as potential outliers rather than removed.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| Upper fence | Threshold for high-side outliers | same as data | Equal to 32.5 for the default values. |
| Q3 | Upper quartile | same as data | The starting point for the fence, 16 by default. |
| IQR | Interquartile range | same as data | The width used to scale the fence, 11 by default. |
What Each Symbol Means
Upper fencesame as data
Threshold for high-side outliers
Equal to 32.5 for the default values.
Q3same as data
Upper quartile
The starting point for the fence, 16 by default.
IQRsame as data
Interquartile range
The width used to scale the fence, 11 by default.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate the interquartile range page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate The Interquartile Range, filed under Math. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Upper outlier fence?
The formula for Upper outlier fence is Upper fence = Q3 + 1.5 x IQR. Extend the upper quartile by one and a half times the interquartile range. Values above the result are flagged as potential outliers rather than removed.
What does each symbol in Upper outlier fence stand for?
Upper fence is threshold for high-side outliers; Q3 is upper quartile; IQR is interquartile range.
What units should I use with Upper outlier fence?
Substitute Upper fence in same as data, Q3 in same as data, IQR in same as data. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Upper outlier fence?
Confusing the interquartile range with the full range. The range is the largest value minus the smallest, which is 20 - 3 = 17 for the default data, whereas the interquartile range is 11. The range uses the extremes and reacts strongly to them. Mixing the two leads to claims about the middle half that are actually statements about the outermost observations.