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 section | Boards for the example, with 10% |
|---|---|---|
| Privacy, boards side by side | 18 | 425 |
| Picket, 3 1/2 in with 2 in gaps, 4 ft high | 18 | 427 |
| Board on board, 1 in overlap | 22 | 520 |
| Shadowbox, 1 in overlap | 22 | 520 |
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.

Fence Questions
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.
- Outdoor Essentials (UFP): fence calculator, building with pickets (rails by height, posts, 10% extra)
- YardGard chain link installation guide (materials checklist)
- Hoover Fence: chain link installation manual (tension bars, tie wires)
- Quikrete Fast Setting Concrete Mix 50 lb (0.375 cu ft per bag)
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.