Last updated:
Fence Calculator
Creators
EverydayCalcPro Team
EverydayCalcPro TeamEditorial teamCalculators are built and tested in-house. Formulas and facts are checked against industry sources.Check our editorial policy
Reviewers
Ameet Ladkani
Ameet LadkaniReal Estate & Property Management SpecialistLinkedInAmeet Ladkani is a real estate professional associated with BSM Global Real Estate, with a focus on practical property-related information and real estate decision-making. He contributes to EverydayCalcPro by reviewing property and home-related calculators, helping ensure that estimates, assumptions and explanations are relevant to real-world property needs. See full profileCheck our editorial policy and Faheem Ali
Faheem AliSoftware Developer, Digital Marketing Specialist & Technical WriterLinkedInWebsiteFaheem Ali is a software developer, digital marketing specialist and technical writer with over 12 years of experience in programming, digital marketing and content development. He holds two master’s degrees in Management Sciences and has professional certifications in programming and digital marketing. Based in Finland, Faheem focuses on developing reliable calculators, verifying mathematical formulas and calculation logic, and making technical and financial information accessible through clear, practical guides. See full profileCheck our editorial policy
1 people find this calculator helpful
Copy the code below to add this free calculator to your website. Please keep the credit link.
Calculate how many posts, rails, pickets and bags of concrete you need for a wood privacy, picket or board-on-board fence. Correctly handles the classic fencepost (off-by-one) problem, gates, waste and recommended post length. Results update as you type.
10% is standard. Posts are bought whole — no waste added.
- Fenced length (gates removed)96.0 ft
- Sections12
- Line + end posts13
- Gate posts2
- Recommended post length8 ft
- Pickets (with 10% waste)232
Did we solve your problem today?
How the fence calculation works
The calculator first removes gate openings from the total length, then divides the remaining run into sections and correctly applies the classic “sections + 1” post rule.
Worked example: 100 ft of 6-ft privacy fence with one 4-ft gate
- Fenced length = 100 − 4 = 96 ft
- Sections = ceil(96 ÷ 8) = 12 sections
- Line + end posts = 12 + 1 = 13
- Gate posts = 1 × 2 = 2
- Total posts ≈ 14 (with mild sharing)
- Rails = 12 × 3 = 36 (+ 10% waste)
- Pickets ≈ 232 (5.5 in boards + 10% waste)
Key rules this calculator follows
- Always round sections up — never leave a partial bay.
- Posts = sections + 1 per continuous run (the classic fencepost problem).
- Each gate normally adds two dedicated gate posts.
- Corner posts are shared between two runs (calculate sides separately and subtract shared corners).
- Use the actual board width (usually 5½ in for a 1×6), not the nominal size.
Fence calculator FAQ
How many fence posts do I need for 100 feet?
What is the fencepost (off-by-one) error?
How deep should fence posts be buried?
How many rails does a 6-ft privacy fence need?
Should I use actual or nominal board width?
How much waste should I add?
Does the calculator handle L-shaped or multi-side fences?
How many bags of concrete per post?
What post spacing should I use?
Is the cost estimate the full installed price?
About this calculator
Method: Fenced length = total length − (gates × gate width). Sections = ceil(fenced length ÷ post spacing). Posts = sections + 1 per run, plus dedicated gate posts. Rails = sections × rails per section. Pickets = ceil(fenced length in inches ÷ (board width + gap)), with optional extra for board-on-board style. A user-selected waste percentage is applied only to boards and rails. Last reviewed November 27, 2026. Spotted a mistake? Tell us.
Sources: Standard residential fencing practice, the classic fencepost (off-by-one) rule, and common lumber dimensions used by major suppliers.