Fence Calculator

Plan a fence run: how many posts, rails and pickets you’ll need from end to end.

Last reviewed 2026-06-06

Fencing is sold piece by piece, so the real question is how many posts, rails and pickets a run actually needs. This calculator turns a length and a post spacing into a full parts count.

Enter the total fence length and your post spacing (8 ft / 2.4 m is common). Add a picket width and gap and we’ll also count the boards. Leave the picket width at 0 for rail-only or wire fences.

How to use the Fence Calculator

  1. Measure the total length of the fence run.
  2. Choose your post spacing — 8 ft (2.4 m) is typical for wood fences.
  3. Pick 2 or 3 rails per section depending on fence height.
  4. Optionally enter picket width and gap to count boards too.

Frequently asked questions

How far apart should fence posts be?

Most wood fences use 6–8 ft (1.8–2.4 m) between posts, center to center. Closer spacing is stronger and stiffer; 8 ft is the common maximum for standard panels and rails.

How many posts do I need for a fence?

Number of sections plus one. Divide the fence length by the post spacing and round up to get sections, then add one for the final post. Corners and gate openings usually need an extra post.

How many pickets do I need?

Divide the fence length by the combined picket width plus gap. For a privacy fence the gap is zero, so pickets = length ÷ picket width. This calculator does it for you when you enter a picket width.

How deep should fence posts go?

A good rule is to bury about one-third of the post’s above-ground height, set in concrete. A 6 ft tall fence post is therefore often 8–9 ft long, with ~2–3 ft in the ground.