How the picket fence calculator counts
A picket fence is posts, rails and pickets with a gap between each picket. The calculator first splits your fence line into sections no longer than your post spacing, with a post at every corner, end and gate. Then it counts pickets section by section, because each picket takes up its own width plus one gap.
Pickets per section = (section length + gap) ÷ (picket width + gap), rounded up
Adding one gap to the section length accounts for the last picket, which needs no gap after it. Rails follow the height: two per section up to 4 ft, three up to 6 ft. The total gets 10% extra for pickets, rails and nails, the allowance Inch Calculator recommends for cutoffs and waste.
The spacing tool below the calculator answers a different question: how to lay out one bay so every gap is the same. With a gap at each post, a bay holds n pickets and n + 1 gaps.
Gap = (space between posts − pickets × picket width) ÷ (pickets + 1)
It tries the picket counts either side of your target and keeps the one whose gap comes closest.
A worked example
The calculator opens on 150 ft of 4 ft picket fence with two corners and one 4 ft walk gate. That makes three 50 ft sides. The gate splits one side into two 23 ft stretches, leaving 146 ft of fence.
- Posts at 8 ft at most: each 23 ft stretch becomes 3 sections of about 7.67 ft, and each 50 ft side becomes 7 sections of about 7.14 ft. That is 20 sections and 22 posts (16 line, 2 corner, 2 end, 2 gate).
- 1x4 pickets are 3 1/2 in wide. With a 2 1/2 in gap, a 7.67 ft section (92 in) takes (92 + 2.5) ÷ 6 = 15.75, so 16 pickets. A 7.14 ft section takes 15.
- 6 × 16 + 14 × 15 = 306 pickets, plus 10% gives 337 pickets.
- Two rails per section is 40 rails, or 44 with waste.
- Holes 30 in deep take 61 bags of 50 lb fast-setting concrete, about 2.8 per post, and 6 ft posts.
For the spacing tool, take posts at 7 ft 10 in centers, the spacing America's Fence Store uses. With 4x4 posts that leaves 90 1/2 in between them. Aiming for 2 1/2 in gaps with 1x4 pickets:
- (90.5 − 2.5) ÷ (3.5 + 2.5) = 14.7, so try 14 and 15 pickets.
- 15 pickets use 52 1/2 in, which leaves 38 in for 16 gaps: 2 3/8 in each.
- 14 pickets would leave 2 3/4 in gaps, and 16 would leave 2 in. 2 3/8 in is closest to the target.
How wide should the gap between pickets be?
America's Fence Store says a picket fence "generally has a 2 1/2" gap between the pickets", and that is the default here. Wider gaps use fewer pickets but let more through. The table under the calculator shows how the count per 8 ft section changes: 17 1x4 pickets at 2 1/2 in, 20 at 1 1/2 in, 15 at 3 1/2 in.
Nominal sizes are not actual sizes: ProWood lists a 1x4 as 3/4 by 3 1/2 in and a 1x6 as 3/4 by 5 1/2 in. Measure a picket from your store before you cut a spacer.
Picket fence gap rules around a pool
If the fence is part of a pool barrier, the gap is set by safety, not looks. The U.S. Consumer Product Safety Commission's pool barrier guidelines say:
- The barrier should be at least 48 in high, and some places require 60 in.
- No opening should let a 4 in sphere pass through.
- If the horizontal rails are less than 45 in apart, the rails go on the pool side and the gap between pickets should be no more than 1 3/4 in.
- The gap under the fence should be no more than 4 in, or 2 in over grass or pebbles.
A 4 ft picket fence with rails near the top and bottom has them less than 45 in apart, so the 1 3/4 in limit applies. At 1 3/4 in a 1x4 fence takes 19 pickets per 8 ft section instead of 17. Your local code may be stricter than CPSC, so check it before you build.
How many rails and nails does a picket fence need?
America's Fence Store uses two rails per bay for 4 ft fencing and three for 6 ft. Each picket gets two 6d nails at each rail. On a two-rail fence that is four nails per picket, and each rail end gets two 16d nails. Rails usually come as 8 ft 2x4s, so a section up to 8 ft needs one per row.
What to work out next
- Post holes: the fence post depth calculator sets the hole depth for your height and frost line.
- Concrete: the fence post concrete calculator counts bags by hole size and bag type.
- Other wood styles: the wood fence calculator compares picket, privacy, board on board, shadow box and horizontal fences per 100 ft.
- Finish: the fence stain calculator works out gallons for the pickets you just counted.
- For mixed materials or a whole property, start from the fence calculator.
