Last updated:

Fence Calculator

Creators

EverydayCalcPro TeamEverydayCalcPro TeamEditorial teamCalculators are built and tested in-house. Formulas and facts are checked against industry sources.Check our editorial policy

Reviewers

Ameet LadkaniAmeet 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 AliFaheem 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

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.

Units

10% is standard. Posts are bought whole — no waste added.

100 ft · 6 ft high · 8 ft spacing · 1 gate
14
posts needed
Rails36
Pickets232
Concrete~28 bags
  • 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

  1. Fenced length = 100 − 4 = 96 ft
  2. Sections = ceil(96 ÷ 8) = 12 sections
  3. Line + end posts = 12 + 1 = 13
  4. Gate posts = 1 × 2 = 2
  5. Total posts ≈ 14 (with mild sharing)
  6. Rails = 12 × 3 = 36 (+ 10% waste)
  7. 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?
For a straight 100-ft run with posts every 8 ft and no gates you need 14 posts (12.5 sections rounds up to 13 sections + 1). Add two extra posts for every gate. Always round sections up — never down.
What is the fencepost (off-by-one) error?
A classic mistake: dividing length by spacing gives the number of sections, not posts. A run of N sections always needs N + 1 posts because both ends need a post. Our calculator applies this correctly and also handles gates and corners.
How deep should fence posts be buried?
A common rule is to bury about one-third of the total post length (minimum 2 ft / 60 cm in most soils). For a 6-ft fence this usually means buying 8-ft or 9-ft posts. Gate and corner posts should be set deeper and often use larger timber (6×6).
How many rails does a 6-ft privacy fence need?
Three rails per section is standard for 5–6 ft fences. Use two rails for low 3–4 ft fences and four rails for 7–8 ft fences. The calculator lets you choose.
Should I use actual or nominal board width?
Always use the actual dressed width. A “1×6” board is usually 5½ inches wide. Entering 6 inches will under-count the number of pickets needed.
How much waste should I add?
10% is a safe standard for boards and rails (to cover splits, warps and cutting waste). Posts are bought at full stock lengths, so no waste is added to the post count.
Does the calculator handle L-shaped or multi-side fences?
The current version is optimised for a single run (or total length). For L-shapes or closed yards, calculate each straight side separately and add the results, remembering that corner posts are shared.
How many bags of concrete per post?
Most residential jobs use about two 80-lb bags (or three 50-lb bags) of concrete per post. Gate and corner posts often need more. The calculator gives a practical estimate based on this rule of thumb.
What post spacing should I use?
8 ft on centre is the most common for wood privacy and picket fences. 6 ft is stronger and better in high-wind areas. Never exceed the maximum recommended by the rail or panel manufacturer.
Is the cost estimate the full installed price?
No. The optional price field is for material cost only. Labour, equipment, permits, and profit are not included.

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.