Home › Fence Calculator

Fence Calculator

Plan a wood picket or privacy fence. Enter the total length, the post spacing and any gates to see how many posts, rails and pickets to buy.

Units
Fence layout
Gates
Rails and pickets

Your estimate

Assumes a straight run. Add one post for each corner that does not fall on the normal post spacing.

How to use the fence calculator

  1. Measure the full length of the fence line, including where the gates will go.
  2. Enter the post spacing. Wood fences commonly use 6 to 8 ft (about 1.8 to 2.4 m) between posts.
  3. Enter the number of gates and their width. Gate openings are not filled with rails or pickets.
  4. Enter the rails per section (often 2 for short fences and 3 for 6 ft privacy fences), the picket width and any gap between pickets. Use a gap of 0 for a privacy fence.

The formulas

Fence length = total length − (gates × gate width) Sections = fence length ÷ post spacing (rounded up) Posts = sections + 1 + one extra post per gate Rails = sections × rails per section Pickets = fence length ÷ (picket width + gap) (rounded up)

Worked example

A 100 ft fence with one 4 ft gate, posts every 8 ft, 3 rails per section and 5.5 in pickets with no gap:

Tips

Frequently asked questions

How far apart should fence posts be?

Wood fence posts are commonly spaced 6 to 8 feet apart. Closer spacing makes a stronger fence, especially in windy areas or for heavy privacy panels.

How many posts do I need for a 100 ft fence?

With posts every 8 ft and no gates, 100 ÷ 8 = 12.5, which rounds up to 13 sections and 14 posts. Each gate adds about one more post.

How deep should fence posts be set?

A common rule of thumb is to bury about one-third of the post's total length. In cold climates the hole should also go below the frost line, so check your local building code.

Should pickets have a gap?

Privacy fences are usually built with no gap, or with boards that overlap. Decorative picket fences usually leave a gap of a couple of inches between pickets for a lighter look.

More calculators