The yard in the default example, counted by hand
The calculator opens on a common job: a 6 ft wood privacy fence that leaves the back corners of a house, runs 60 ft to the back line, 100 ft across it and 60 ft back, with one 4 ft gate on the long side. Posts are 4x4s on 8 ft centers, pickets are 1x6 boards butted tight, and the holes follow QUIKRETE's rule.
| Item | Working | Result |
|---|---|---|
| Fence length | 60 + 100 + 60, less the 4 ft gate | 216 ft |
| Sections, short sides | 60 / 8 = 7.5, rounded up, on each | 8 + 8 |
| Sections, long side | 96 / 8 = 12, plus 1 if the gate splits a section | 12 or 13 |
| Posts | sections + 1 gate opening + 1 for the open end | 30 or 31 |
| Rails | 3 per section | 84 to 87 |
| Pickets | 216 x 12 / 5.5, rounded up | 472, or 496 with 5% spares |
| Concrete per hole | (10.5 in hole area less the 3.5 x 3.5 in post) x 21 in of fill | 0.90 cu ft |
| 50 lb fast-setting bags | 31 x 0.90 / 0.38, rounded up | 74 |
Mixing whole bags hole by hole (3 per post) buys 93 bags for 31 posts; sharing part bags across holes needs 74. Keep a few spare bags either way: a hole dug wider than planned eats the difference quickly.
Why the total length undercounts posts
Most fence calculators divide the whole length by the spacing and add one. That is right for a single straight run and wrong once the fence turns. A corner post has to sit at the corner, so each side is laid out on its own: a 60 ft side at 8 ft spacing is seven full sections and a 4 ft one, and the leftover 4 ft does not carry over to the next side. With no gate, three sides of 60, 100 and 60 ft need 8 + 13 + 8 = 29 sections and 30 posts. Laid out straight, 220 ft needs 28 sections and 29 posts.
Gates work the same way. A gate splits its side into two runs, each ending at a gate post, so the gate span adds one post compared with the same length of fence without it, and up to a second one depending on where it sits. The gate also takes 4 ft out of the fence, which can cancel rounding the side needed anyway: the 100 ft side drops to 96 ft, exactly 12 sections, so the example yard needs 30 posts with the gate placed well and 30 without it. The calculator shows both counts so you can move the gate a foot or two and save the post. Close the last side back to the first (a full enclosure) and the open end disappears: the count drops by one.
Hole size and concrete
QUIKRETE's instructions for setting posts call for a hole three times the post's width, deep enough to bury one third to one half of the post's height above ground, plus 6 in more for a layer of compacted gravel. The concrete stops 3 to 4 in below grade so soil can cover it. For a 4x4, which is 3-1/2 in square once dressed under the American Softwood Lumber Standard (PS 20-25), that is a 10.5 in hole. A 6 ft fence then needs 24 to 36 in of post in the ground, which is why 8 ft posts are the usual buy for a 6 ft fence.
The post is solid, so it displaces concrete. In the 10.5 in hole the 4x4 takes up 12.25 of the hole's 86.6 square inches, about 14% of the volume. Skip that and you over-buy by roughly one bag in seven. Bag yields come from the makers' data sheets: QUIKRETE Fast-Setting Concrete Mix gives about 0.45 cu ft per 60 lb bag, QUIKRETE Concrete Mix about 0.45 cu ft per 60 lb and 0.60 per 80 lb, and Sakrete Fast Setting Concrete 0.38 cu ft per 50 lb bag. For a footing that is not a post hole, use the concrete calculator; our guide to how many bags of concrete you need covers mixing and yield.
In ground that freezes, the hole has to reach below the frost line whatever the one-third rule gives. The Treated Wood Alliance adds a floor of 2 ft and asks for posts rated for ground contact; the American Wood Protection Association lists UC4A, general use ground contact, as the minimum for fence posts.
Rails, pickets and panels
A rail spans one section, so rails are sections times rows. Two rows are the usual choice for a 4 ft picket fence. The Treated Wood Alliance suggests three once pickets reach 60 in, which covers every 6 ft privacy fence. Keep spacing at 8 ft or less and each rail is one standard 8 ft board; wider spacing means longer, dearer rails.
Pickets go by actual width, not the name on the label. A 1x6 is 5-1/2 in wide under PS 20-25 and a 1x4 is 3-1/2 in. For a privacy fence set the gap to zero; boards shrink as they dry, so a tight fence opens small gaps on its own. For spaced pickets, take the clear opening between two posts, subtract the width of the pickets that fit, and divide what is left by the number of gaps, counting the two against the posts, so the last picket does not end up narrow against a post.
Vinyl and prebuilt panels fix the post spacing. CertainTeed's Bufftech installation manual sets posts 72 in on center for some styles and 96 to 97 in for most others, with a 10 in hole for 4x4 posts and 12 in for 5x5, 30 in deep or to the frost line. Enter the post center distance from your panel's own instructions and the calculator counts panels the same way it counts wood sections.
Chain link takes different posts and fittings
A chain link fence has two kinds of post. Terminal posts (ends, corners and gate posts) carry the fabric's tension and are heavier; in Lowe's residential kit they are 2-3/8 in outside diameter against 1-5/8 in for line posts. The Chain Link Fence Manufacturers Institute (CLFMI) product manual puts line posts no more than 10 ft apart, sizes each footing at four times the post's diameter for posts up to 4 in, and sets the depth at 24 in plus 3 in for each foot of fence above 4 ft. A 4 ft fence on those posts needs 9.5 in terminal holes and 6.5 in line holes, both 24 in deep. Home Depot's guide digs smaller holes, 6 to 8 in for end posts and 4 to 6 in for line posts; the calculator follows the CLFMI manual.
The fittings follow the terminal posts. Each end or gate post takes one tension bar and each corner takes two, since fabric is stretched to it from both directions. Home Depot's install guide puts 3 tension bands on each bar for a 4 ft fence, 4 for 5 ft and 5 for 6 ft, and one brace band per bar, with one rail end per bar from the Lowe's guide. Fabric comes in 50 ft rolls in that kit. Top rail is sold in 21 ft lengths in the CLFMI specification and in 10 ft 6 in sticks at retail; the calculator counts 21 ft lengths, so double the number if you buy the short ones.
Before the first hole
Contact 811 a few business days before you dig, for every project, fence posts included. The 811 service passes your request to the utilities, who mark their lines; how many days they get depends on your state, so check your state 811 center and confirm every utility has answered your ticket before you start.
Fence permits are local. Some cities exempt fences up to a set height: Federal Way, Washington, for example, lists fences not over 6 ft among its permit exemptions. Ask your city or county, and your homeowners association if you have one, before buying posts for a 6 ft fence. Around a pool the rules are stricter. The International Swimming Pool and Spa Code requires the barrier to stand at least 48 in above grade on the side away from the pool, with no more than 2 in under it over grass or gravel and 4 in over a hard surface. For the gravel under each post, or a path beside the new fence, the gravel calculator turns an area and depth into tons; the other construction calculators sit on one page.
Sources (checked November 23, 2026)
- QUIKRETE, Setting posts, and the Fast-Setting Concrete Mix (1004) and Concrete Mix (1101, revised October 2022) data sheets
- Sakrete Fast Setting Concrete data sheet (Rev. 05/18)
- NIST, DOC PS 20-25 American Softwood Lumber Standard (January 2025), Table 3
- Treated Wood Alliance, Building a fence
- American Wood Protection Association, residential use categories
- Chain Link Fence Manufacturers Institute, Product Manual (revised March 2017)
- Lowe's chain link fence installation guide and The Home Depot, How to install a chain link fence
- CertainTeed Bufftech vinyl fence installation manual (01/18)
- 811, Before you dig
- City of Federal Way, residential permit exemptions
- International Swimming Pool and Spa Code (2021), section 305.2.1
Frequently Asked Questions
- How many fence posts do I need for 100 feet?
- For one straight 100 ft run with posts 8 ft apart, you need 14: 100 divided by 8 is 12.5, which rounds up to 13 sections, and a straight run has one more post than sections. Put a 4 ft gate in that run and you need 14 posts if the fence on both sides of it comes out in whole sections and 15 if not. A fence that turns corners can need more, because each side is rounded up on its own.
- How many bags of concrete per fence post?
- For a 4x4 post in a 10.5 in hole, 30 in deep, with 6 in of gravel and the concrete stopping 3 in below grade, the hole takes about 0.90 cu ft of concrete once the post is taken out. That is 3 bags of a 50 lb fast-setting mix (0.38 cu ft each) if you mix hole by hole, or about 2.4 bags per post if you share part bags across holes.
- How deep should a fence post hole be?
- QUIKRETE says one third to one half of the post height above ground, plus 6 in for a gravel base, so 30 to 42 in for a 6 ft fence. Go below the frost line where the ground freezes. For chain link, the CLFMI manual sets 24 in plus 3 in for each foot of fence height above 4 ft.
- How far apart should fence posts be?
- Wood fences are usually built on 8 ft centers because rails come in 8 ft lengths; 6 ft centers make a stiffer fence. Vinyl panels fix the spacing, about 72 in or 96 in on center for Bufftech styles. Chain link line posts may be up to 10 ft apart under the CLFMI manual.
- How many rails does a 6 ft fence need?
- Three. The Treated Wood Alliance suggests three rails for pickets 60 in or longer, which covers a 6 ft privacy fence. For a 4 ft picket fence two rails is the usual choice, though the Alliance gives no figure for shorter pickets.