Contact, if you are interested in this website / domain name / Sponsorship / Advertisement / Partnership: web.works/contact
000345Square-corner toolkit

Fence Calculator

Posts, rails, pickets and concrete for a straight-run fence.

Total run, excluding gates.
6–8 ft (1.8–2.4 m) is typical.
Each gate usually adds a post.
2 for fences under 5 ft, 3 for taller.
Actual width.
0 for a privacy fence.

A fence is a row of repeated sections, so material counts come straight from the length and post spacing. This calculator gives posts (including gates), rails, pickets with a 5% allowance, and a two-bags-per-post concrete estimate.

Method

  • Sections = length ÷ post spacing, rounded up.
  • Posts = sections + 1 + gates.
  • Rails = sections × rails per section.
  • Pickets = length ÷ (picket width + gap) + 5%.

Layout tips

Set corner and end posts first and pull a mason's line between them at the top and bottom. Where the fence turns a corner, square it with 3-4-5 on the line before digging. Check your property line and call your local utility-locate service before digging — it is free and required in many places.

Watch: how it is done

Square up a deck or wall using the 3 4 5 Rule

Contractor John · YouTube

Video by Contractor John on YouTube. More in our video library.

Frequently asked questions

How far apart should fence posts be?

8 ft is the maximum for most wood fences; 6 ft gives a sturdier fence in windy areas or with heavy boards.

How deep should fence posts go?

A common rule is one-third to one-half of the above-ground height, and below the frost line in cold climates.

Does the picket count include gates?

No. Gates are built separately; add their pickets based on gate width.

Results are planning estimates. For structural work, confirm requirements with your local building authority and a qualified professional. See our disclaimer.

Ready to build? Get up to 3 free quotes from local pros.

Tell us about the project in about a minute. We pass it to up to three vetted local contractors who cover your area.

  • Free for homeowners, no obligation to hire
  • Your details go only to the pros matched to your job
  • Bring your calculator numbers — pros quote faster with real measurements

Start with your postal code

Takes about 60 seconds. No spam.