Skip to calculator

Fence Calculator

A 6 ft wood privacy fence on three sides of 50, 80 and 50 ft with a 4 ft gate needs 26 posts, 72 rails and 425 boards. Enter your sides below for any fence style.

Fence calculator

Enter each straight side of the fence. Measure along the fence line, and include gate openings in the side’s length.

Gates

Posts, boards and spacing
Enter the length of each side.

Start With the Property Line

Before measuring anything, find out exactly where your property ends, from a survey or the plat for your lot, and check your local rules on fence height and setbacks. A fence a foot over the line is an expensive mistake to undo. Call 811 a few days before you dig so buried cables and pipes are marked.

Measuring the Sides and Gates

Walk the fence line and measure each straight side along the ground where the posts will go, from the start to the next corner or end. Include gate openings in the side’s length and note each gate’s width separately; the calculator takes the gates out and splits that side into a run on each side of the gate. The example is a common backyard: three sides of 50, 80 and 50 ft running out from the house and back, with a 4 ft walk gate in the long side. That’s 180 ft of fence line, or 176 ft of actual fence. If the fence goes all the way round, tick the box so the last corner is counted and there are no end posts.

How Far Apart the Posts Go

Wood fences usually have posts 8 ft apart on centre or a little less, because rails come in 8 ft lengths. Chain link line posts go 10 ft apart or less, and panel fences need a post at every panel. Each run is divided by the spacing and rounded up, so no gap ends up too wide, and then the posts are spread evenly. In the example, the 50 ft sides become 7 sections of 7 ft 1 11/16 in, and each 38 ft run beside the gate becomes 5 sections of 7 ft 7 3/16 in.

Count one post more than sections on every run, share the posts at corners, and give each gate its own pair. The example comes to 26 posts: 2 ends, 2 corners, 2 gate posts and 20 line posts. Closing the spacing to 6 ft makes the fence stiffer, but takes it to 34 posts and 96 rails. Set each post about 30% of the fence height into the ground, and at least 2 ft: a 6 ft fence needs posts 8 ft long, and gate posts go 6 in deeper because the gate pulls on them.

Which Style Needs How Many Boards

Rails run between the posts: 2 per section for a fence up to 4 ft, 3 up to 6 ft, and 4 for anything taller. Boards depend on the style. Divide each run by a board’s width plus the gap, round up, and add 10% for split and warped boards. Overlapping styles cover less per board, so they need more:

Style (1x6 boards unless noted)Boards per 8 ft sectionBoards for the example, with 10%
Privacy, boards side by side18425
Picket, 3 1/2 in with 2 in gaps, 4 ft high18427
Board on board, 1 in overlap22520
Shadowbox, 1 in overlap22520

Board on board puts a layer of boards on the rails with gaps, then a second layer over the gaps, so it looks solid from both sides. Shadowbox alternates boards on each side of the rails and lets air through. Both use about a fifth more boards than a plain privacy fence. Panel fences are simpler: one panel per section, and the last panel on a run usually needs cutting, which the calculator works out. Vinyl, aluminum and steel panels each set their own post spacing and fittings, so check the maker’s guide before you dig.

Grey steel boundary fence with timber plinth boards along the bottom
The steel panel fence I put up at my dad’s house.

Fence Questions

14 for a straight 100 ft wood fence with posts 8 ft apart: 100 ÷ 8 is 12.5, so 13 sections, and one more post than sections. Each gate adds two gate posts, and each extra side adds its own sections. Chain link with line posts 10 ft apart needs 11.

About 18 for 3 1/2 in pickets with 2 in gaps, and 18 for 1x6 boards (5 1/2 in) butted together for privacy. Divide 96 in by the picket width plus the gap and round up. Then add 10% across the whole fence for splits and boards you reject.

About 22 1x6 boards per 8 ft section with a 1 in overlap, against 18 for a plain privacy fence. Each board covers its width less the overlap, so the overlap costs you boards: the worked example takes 520 boards as board on board and 425 as privacy.

Usually 2 80 lb bags or 4 50 lb bags for a 4x4 on a 6 ft fence, in a 10 in hole 24 in deep with 10% for waste. Gate posts take more, and cold areas need deeper holes: the post depth and concrete calculator works it out for your frost line and soil.

Posts, top rail, fabric and the fittings. For 100 ft of 4 ft fence with one 4 ft gate that is 4 terminal and 8 line posts, 10 top rails, 2 rolls of fabric, 4 tension bars, 12 tension bands, 4 rail end bands and cups, 16 carriage bolts, 12 post caps and about 80 tie wires, plus hinges and a latch.

Behind the numbers: posts are shared at corners but never at gates, rails are packed into 8 ft lengths, and boards get 10% extra, at least 2, as the Outdoor Essentials picket guide suggests. Chain link counts follow the materials checklist in the YardGard installation guide sold at Lowe’s, and the Hoover Fence manual for tension bars and ties. Post depth, hole size and concrete use the same rules as our post depth and concrete calculator, assuming no frost line, average soil and moderate wind. We test the engine on tens of thousands of random fences to check that every gap is within the spacing and the boards always cover every run.

Written and checked by Kris Lynch. Not reviewed by a licensed professional; check local rules before you build. See our methodology. Spotted a problem? Tell us. Updates: Nov 2026, launched, replacing the picket fence calculator.

Related Calculators