Fence calculator: posts, rails and boards

Enter the length of a run and its post spacing to see the posts, rails and boards.

Units
ft
One straight run, from end post to end post, in feet.
ft
Center to center. Millard Lumber’s fence guide sets posts about 6 to 8 feet apart, by fence type, ground and purpose.
ft
Above the ground, in feet: it sets the post length. The default, 6, is an example.
in
The actual width, not the name: a 6-inch board is at least 5 1/2 inches wide dressed dry, a 4-inch one 3 1/2 (NIST’s lumber standard).

Result

Summary

Posts

14

Boards or pickets
214
Rails
39
Sections between posts
13
Post length, a third buried
9 ft

Another 10 feet of fence takes 21 more boards.

A count of materials for one straight run of wood fence with one layer of boards. A shadow-box or board-and-batten fence has two layers: count each with its own width and gap, and add them. It does not price materials, size footings or check local rules.

A worked example

The default is a run of 100 feet with posts 8 feet apart: 100 ÷ 8 = 12.5, so 13 sections and 14 posts. Three rails a section make 39 rails.

Boards 5 1/2 inches wide with 1/8 inch between them: 214 boards cover the 1,200 inches, since (1,200 + 0.125) ÷ 5.625 = 213.4. A row of boards has one gap fewer than boards, so the run plus one gap is divided by a board plus a gap. For a fence 6 feet high, posts with a third of their length in the ground are 6 × 3 ÷ 2 = 9 feet long.

Corners and gates

The page counts one straight run with a post at each end. A fence with corners is several runs: count each one, then take off one post for every corner two runs share.

A gate splits a run in two. Leave the gate’s width out, count the run on each side of it, and the end posts of those runs are the ones the gate hangs between.

Posts that last

Wood technologists at the USDA Forest Products Laboratory, writing for the University of Wisconsin Extension in 1979, call the post “the critical link” of a wood fence: decay is worst at the ground line, where moisture from the soil meets air. They advise posts with a preservative treatment that goes deep, preferably pressure-treated for use in the ground.

Where a post is set in concrete, they keep the concrete at least 6 inches below the ground line, because a collar that reaches the surface holds water against the post. Millard Lumber’s guide puts gravel in the bottom of each hole for drainage; the bulletin cautions that in clay soil crushed rock can instead hold a pool of water around the base of the post.

Before you dig

Find where your property line runs, and check the local ordinances on fences with your city or county, and any homeowners’ association. The 811 service lists installing a fence among the jobs to call about, a few business days ahead, so that utility lines under the post holes are marked.

For the concrete, use the tube form and post hole calculator of this site, listed below: enter the hole’s diameter and depth and the number of posts. This page does not price the fence: multiply each count by your supplier’s price. Posts come in stock lengths; buy the length at least as long as the one shown.

Sources

Questions

Why is there one more post than sections?

A straight run begins and ends with a post, and each section lies between two of them, so 13 sections need 14 posts. Corners shared by two runs are the exception; see above.

Where do the rails go?

Alta Forest Products puts the top rail 6 inches from the top of the fence, the bottom rail 6 inches from its bottom, and the middle rail halfway between. This page counts one rail of each row for every section.

Reviewed by the DirectCalculators team. The formula is tested against its source’s worked examples, where the source gives any, and cases worked by hand; see how we calculate.