Fence Calculator

Posts, rails and pickets for a straight run of wood fence.

ft
ft
ft
in
in
Load ticket
 
  •  
  •  
  •  
  •  
  •  

Corners and gates need their own posts. Run the calculator once for each straight side.

Drawing updates as you type. Not to scale.

Posts, rails and pickets

Divide the run by the post spacing and round up for the number of sections; there is one more post than sections. Use the width of the panels or rails you will buy as the spacing, measured center to center of the posts.

Rails go between posts in every section. A wood fence kit guide marks three rails for a 6 foot privacy fence and two for a 3 foot spaced picket fence, so the calculator uses three rails above 4 feet and two at 4 feet or lower.

Pickets are the run in inches divided by one picket plus one gap. For a privacy fence the same guide butts pickets with no gap; for a spaced fence, cut a spacer board the width of the gap. A 1x6 picket is 5.5 inches actual. For the concrete under the posts, use the fence post concrete calculator.

Rails per section

FenceRails per sectionRail marks from the bottom
6 ft privacy39 1/2, 34 and 59 in
3 ft spaced picket25 1/2 and 28 in

Source: Wood fence kit maker, via The Home Depot, Wood Fence Kits installation instructions (product PDF hosted by The Home Depot), checked Nov 1, 2026. Every number is listed on How we calculate.

Worked examples

  1. 100 ft privacy fence, 6 ft high, posts every 8 ft: 219 pickets Open this job
  2. Same fence, posts: 14 posts Open this job
  3. Picket fence 48 ft, 3 ft high, 3.5 in pickets, 2 in gaps: 105 pickets Open this job
  4. Same picket fence, rails: 12 rails Open this job