MathPlainly

Fence Calculator: Posts, Pickets and Rails

Count posts, pickets and rails for a wood fence run, with room for gates and a spare allowance.

5.5 for a 1×6
0 for privacy
posts, pickets, rails
Fence run (less gates)
ft
Sections
Rail length needed
ft total

How the fence quantities are worked out

A fence is built from repeating sections, and every quantity follows from the section count. First, any gate openings are taken out of the total length, since a gate has its own frame and pickets. The remaining run is divided by the post spacing and rounded up to give the number of sections. Posts are the sections plus one, because both ends of a run need a post, plus one extra post for each gate opening.

Pickets depend on how much of the run each one fills: its width plus the gap. Divide the run in inches by that, round up after adding a spare allowance, and you have the count. Rails run horizontally between posts, so each section needs as many rails as you choose, each as long as the post spacing in this simple model. Those are planning assumptions, not code: fence style, height, wind load and local rules decide the real design.

Worked example: 100 ft of fence with 8 ft spacing

  1. No gates, so the run is 100 ft. Sections: 100 ÷ 8 = 12.5, rounded up to 13.
  2. Posts: 13 + 1 = 14.
  3. Pickets: 100 × 12 ÷ (5.5 + 0.5) = 200. Add 5%: 210, so 210 pickets.
  4. Rails: 13 sections × 2 = 26 rails, about 208 ft in total.
  5. With one 4 ft gate, the run is 96 ft: 12 sections, 12 + 1 + 1 = 14 posts, and 202 pickets.

Assumptions, waste and rounding

Pickets per 100 ft of fence

StylePicket + gapPickets, 5% extra
1×6, privacy (no gap)5.5 in230
1×6 with ½ in gap6 in210
1×4 with 2 in gap5.5 in230
1×4 with ½ in gap4 in315

Setting the posts? The post hole concrete calculator works out the bags from your post count.

Frequently asked questions

How many fence posts do I need?

Divide the fence run by the post spacing, round up to whole sections, and add one more post because a run needs a post at both ends. With 8 ft spacing, a 100 ft fence has 13 sections and 14 posts. Each gate adds one more post here, because a gate opening needs a post on both sides.

What is the usual post spacing?

Six to eight feet between posts is common for wood fences, and 8 feet matches the length of a standard rail. Heavier loads, tall privacy fences and windy sites often use closer spacing. Follow your fence supplier’s guidance and any local rules.

How many pickets do I need per foot?

Divide 12 inches by the picket width plus the gap between pickets. A 5.5 inch picket (a nominal 1 x 6) with a 1/2 inch gap is 6 inches per picket, so 2 pickets per foot. Privacy fences use no gap: 12 ÷ 5.5 = 2.18 pickets per foot.

How many rails per section?

Two rails are common for fences up to about 4 feet, and three for taller privacy fences. The calculator assumes each rail is as long as one post spacing. Change the setting to match your design.

Does this include concrete for the posts?

No, but the Sonotube and post hole calculator tells you the bags for each post hole. Use the post count from here as the number of holes.

Related calculators

Reviewed 2026-12-06 by the MathPlainly editorial team. Formulas are checked against hand-worked examples. Results are estimates for planning, not engineering advice.