Skip to main content
Fence calculator

Buy the right amount, once.

Enter your fence line and see the full materials list: how many posts, rails and pickets you need, plus the concrete for the holes and the total installed cost. Everything updates as you type.

The fence line

ft
ft
Gates
ft
Pickets
in
in
%
Cost
$
Posts you need
0
line posts, corner posts and gate posts

Your materials list

    How the fence breaks down

    Posts, sections, rails and pickets

    Build checklist

      Bill of materials

      Spacing comparison

      The same fence line at different post spacings. Wider spacing uses fewer posts and rails; the picket count stays about the same.

      Post spacingSectionsPosts RailsPicketsConcrete bags

      Fence building, explained

      How to Estimate Fence Materials

      Start with the total fence length and subtract gate openings. Divide the remaining length by post spacing and add one to get the number of posts. Each section between posts needs 2-3 horizontal rails. Picket count depends on picket width and spacing. Add gate posts (2 per gate) to the total post count.

      Fence Post Depth and Sizing

      Fence posts should be buried one-third their total length or at minimum 2 feet deep. For a 6-foot fence, use 8-foot posts buried 2 feet deep. Post holes are typically 6-10 inches in diameter. Set posts in concrete for maximum stability, especially for gate posts and corner posts.

      Common questions

      How far apart should fence posts be?

      Standard post spacing is 6-8 feet for most residential fences. Closer spacing (6 feet) provides more strength for privacy fences. Wider spacing (8 feet) is common for ranch-style or picket fences. Never exceed 10 feet between posts.

      How many rails do I need per section?

      Most fences use 2 horizontal rails for fences under 5 feet and 3 rails for taller fences. The top rail is placed 6-8 inches from the top, and the bottom rail 6-8 inches from the ground. A middle rail adds structural support.

      How do I calculate the number of pickets?

      Divide the total fence length (in inches) by the picket width plus gap. Standard pickets are 3.5 inches wide with a 0-1 inch gap. For a privacy fence with no gap, divide total length by picket width.

      Estimates for planning only. Real counts vary with terrain, corners, end posts, board style and local code. Order a little extra and confirm post depth against your frost line before you dig.