Fence Calculator

Get an overall materials estimate: posts, rails, and pickets for a wood fence run.

Your numbers
Your project

Posts needed

Enter your numbers above.

How the overall fence material estimate works

This calculator gives a whole-fence overview by combining three separate material counts that each follow standard fence layout logic: posts set at a fixed spacing, horizontal rails run between posts, and vertical pickets attached to the rails.

Posts: the fence length is divided by your post spacing and rounded up to a whole number of sections; posts are always one more than the number of sections, since a post sits at both ends of every section. Rails: each section needs a rail run between its two posts, and the number of horizontal rails per section (commonly 2 for shorter fences, 3 for taller privacy fences) multiplies that section length. Pickets: fence length is divided by the combined width of one picket plus its gap to the next, giving the number of pickets needed to run the full length.

For a deeper look at any one part of the job — exact post count and spacing, post embedment depth, concrete volume per hole, or a full cost breakdown — use the dedicated calculators linked below; this page is meant as the fast, whole-job starting estimate.

Where these numbers come from

The formula and default values in this calculator are based on:

These are planning estimates. Check your local building code, product specifications, and a licensed contractor before you buy materials or build.

Frequently asked questions

What post spacing should I use for a wood privacy fence?

6 to 8 feet on center is a common range for standard wood privacy fencing; shorter spans add rigidity and wind resistance but cost more in posts, while longer spans reduce post count but require thicker rails to avoid sagging.

How many rails does my fence need?

Two rails is typical for shorter fences (around 4 feet or less), while taller privacy fences (6 feet and up) commonly use three rails for added rigidity against wind load and to support the extra picket height.

Does this include gates?

No -- this calculator estimates materials for straight fence runs only. Measure gate openings separately and subtract that length from your total run, then price the gate hardware and framing independently.

All LumberCalcs tools