Fence Materials Calculator

Calculate posts, rails, and pickets needed for a wood or vinyl fence run.

Total linear feet of fence to build.

Distance between post centers — 6-8 ft is typical.

2 rails for short fences, 3 for taller privacy fences.

Width of each individual picket board.

Use 0 for a solid privacy fence.

A fence's material list flows from one number: how many posts it needs, since everything else — the number of rail sections and the total picket count — is derived from post placement. Posts are spaced along the run and rounded up, then sections (the gaps between posts) each get the same number of horizontal rails, and pickets are calculated by dividing the total linear footage by each picket's footprint, including its gap.

Frequently Asked Questions

How far apart should fence posts be spaced?

Most wood and vinyl fences space posts 6 to 8 feet apart on center. Wider spacing needs stronger rails or posts to avoid sagging.

How many rails does a privacy fence need?

A 6-foot-tall privacy fence typically uses 3 horizontal rails (top, middle, bottom) for adequate support, while shorter picket fences under 4 feet often only need 2.