How to Calculate Upper and Lower Fence
Quick answer: IQR = Q3 − Q1. Lower fence = Q1 − 1.5 × IQR; upper fence = Q3 + 1.5 × IQR. For Q1 = 25 and Q3 = 45: IQR = 20, fences = -5 and 75. Values outside are outliers.
Advertisement
How to find the fences
- Sort the data and find Q1 and Q3.
- IQR = Q3 − Q1.
- Lower fence = Q1 − 1.5 × IQR.
- Upper fence = Q3 + 1.5 × IQR.
- Any value below the lower or above the upper fence is an outlier.
Roman Urdu: Fence se bahar ki value outlier hoti hai.
Upper and Lower Fence Calculator table
Quick reference values you can check your own numbers against.
| Q1 | Q3 | IQR | Lower fence | Upper fence |
|---|---|---|---|---|
| 10 | 20 | 10 | -5 | 35 |
| 25 | 45 | 20 | -5 | 75 |
| 40 | 60 | 20 | 10 | 90 |
| 5 | 17 | 12 | -13 | 35 |
| 50 | 90 | 40 | -10 | 150 |
| 12 | 30 | 18 | -15 | 57 |
Uses the 1.5 x IQR rule. Use 3 x IQR for extreme outliers.
Advertisement
Real fence: boards, posts, paint and stain
For a garden fence: posts = length ÷ spacing + 1 (spacing 2.4 m); boards = length ÷ (board width + gap). A 30 m fence with 150 mm boards and 10 mm gaps needs about 188 boards and 14 posts. Paint or stain: area (length × height) ÷ coverage per litre (about 8 m²/L), times 2 coats. Add 10% waste. Use the scientific calculator or the calculators hub.
Official sources
Questions people ask
How do I calculate the lower fence?
Lower fence = Q1 minus 1.5 times the IQR.
How do I calculate the upper fence?
Upper fence = Q3 plus 1.5 times the IQR.
What is an outlier?
A value below the lower fence or above the upper fence.
How do I calculate fence boards?
Divide fence length by board width plus gap.
How much paint do I need for a fence?
Area divided by coverage per litre, multiplied by the number of coats.
Advertisement