How to Calculate Upper and Lower Fence

Updated 6 Dec 2026 · By , HisaabHub · How we check

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

  1. Sort the data and find Q1 and Q3.
  2. IQR = Q3 − Q1.
  3. Lower fence = Q1 − 1.5 × IQR.
  4. Upper fence = Q3 + 1.5 × IQR.
  5. 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.

Upper and Lower Fence Calculator table
Q1Q3IQRLower fenceUpper fence
102010-535
254520-575
4060201090
51712-1335
509040-10150
123018-1557

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