Fence calculator: posts, rails and boards
Enter the length of a run and its post spacing to see the posts, rails and boards.
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.
How this was calculated
Step by step, with the figures above.
- Sectionsrun ÷ post spacing, rounded up. run: 100 ft · spacing: 8 ft. Rounded up to a whole section.
- Postssections + 1. sections: 13
- Railssections × rails per section. sections: 13 · rails per section: 3
- Boards(run in inches + gap) ÷ (board width + gap), rounded up. run: 1,200 in · board: 5.5 in · gap: 0.125 in. Rounded up to a whole board.
- Post lengthfence height × 3 ÷ 2, a third of the post in the ground. height: 6 ft
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
- Building Wood Fences (Millard Lumber)
- Suggestions for Installation of Your Western Red Cedar Fence (Alta Forest Products)
- PS 20-25, American Softwood Lumber Standard, Table 3 (NIST)
- Protecting Wood Fences for Yard and Garden, A3052 (USDA Forest Products Laboratory)
- 811 before you dig (Common Ground Alliance)
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.
Related calculators
- Voltage drop calculator for copper and aluminum wire
- Water softener size calculator: grains of capacity
- Radon zone by county: EPA map lookup
- Roof pitch calculator: slope, angle and roof area
- Roofing calculator: squares and bundles
- Concrete slab and footing calculator: yards and bags
- Concrete stairs calculator: yards for a solid flight
- Concrete tube form and post hole calculator
- Mulch, topsoil and compost calculator
- Paint calculator for a room: gallons and coats
- Flooring and tile calculator: boxes and tiles for a room
- Deck materials calculator: boards, joists and screws
- Pool volume calculator: gallons in a pool or hot tub
- Board foot calculator for lumber and hardwood
- Epoxy resin pour calculator: volume, resin and hardener
- Lawn fertilizer calculator: pounds and bags from N-P-K
- Grass seed and lime calculator for a lawn
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.