A 100 ft straight fence with posts 8 ft apart needs 14 posts, 26 rails (two per section), and 230 pickets 5.5 inches wide with 5 percent extra.
To estimate a wood fence the way our fence calculator does, divide the fence length by the post spacing and round up to get sections; a straight run needs one more post than it has sections, and each section needs its own set of rails. For pickets, divide the fence length in inches by the picket width plus any gap.
Enter your run above. Add posts for every corner, end, and gate, as explained in the steps.
How to measure for a fence
- Call 811 first. 811 is the free national call-before-you-dig service. Contact it a few business days before you dig so buried utility lines can be marked with paint or flags.
- Confirm the line and the rules. Know where your property line is, and check local zoning or HOA rules for fence height, setbacks, and permits before you buy materials. Fencing a pool? The CDC recommends four-sided fencing with self-closing and self-latching gates; see the pool volume calculator guide.
- Measure each straight run separately. Stake the corners and run a string line. Measure each straight side in feet. The calculator handles one straight run at a time.
- Mark corners, ends, and gates. Each corner, each end, and each side of a gate opening needs a post. When two runs meet at a corner, they share that post, so subtract one post per shared corner when you add runs together.
- Choose post spacing. Lowe's fence estimating guide uses posts every 8 ft on center, and also lists 6 ft sections. Your rails must be at least as long as the spacing.
- Measure the actual picket width. Lumber is sold by nominal size. A 1x6 board actually measures 3/4 × 5-1/2 inches, according to the Southern Pine Inspection Bureau, which is why the calculator defaults to 5.5 inches.
The fence formula
The calculator uses:
- Sections = fence length ÷ post spacing, rounded up
- Posts = sections + 1
- Rails = sections × rails per section
- Pickets = (fence length × 12 ÷ (picket width + gap), rounded up) × (1 + extra % ÷ 100), rounded up again
- Concrete bags = posts × bags per post, rounded up
This matches the method in Lowe's fence estimating guide, which divides the fence length in inches by the actual picket width plus spacing.
Worked example (the calculator's default values)
A straight 100 ft fence with posts every 8 ft, 2 rails per section, 5.5 in pickets with no gap, 2 bags of concrete per post, and 5 percent extra pickets:
- Sections: 100 ÷ 8 = 12.5, rounded up to 13
- Posts: 13 + 1 = 14
- Rails: 13 × 2 = 26
- Pickets: 1,200 in ÷ 5.5 = 218.2, rounded up to 219; plus 5 percent = 229.95, rounded up to 230
- Concrete: 14 × 2 = 28 bags
The calculator shows: "You need 14 posts, 26 rails, and 230 pickets. 13 sections of up to 8 ft for a 100 ft straight run, and about 28 bags of concrete to set the posts."
Because 100 isn't evenly divisible by 8, one section ends up shorter, or you can space all 13 sections evenly at about 7.7 ft.
Example: a fence on three sides of a yard
Say you fence a backyard with runs of 50, 100, and 50 ft, and the two side runs meet the long run at corners. Running each side through the calculator gives 8 + 14 + 8 = 30 posts. The two corners are shared, so the real total is 28 posts. Pickets for the three runs are 116 + 230 + 116 = 462.
Pickets per 8 ft section
| Picket width | Gap | Pickets per 8 ft section | Pickets per 100 ft (no extra) |
|---|---|---|---|
| 5.5 in | None (privacy) | 18 | 219 |
| 5.5 in | 1/2 in | 16 | 200 |
| 5.5 in | 2 in | 13 | 160 |
| 3.5 in | None (privacy) | 28 | 343 |
| 3.5 in | 1.5 in | 20 | 240 |
| 3.5 in | 3.5 in | 14 | 172 |
Counts are rounded up per section. The 5.5 in pickets with a 2 in gap match the spacing example in Lowe's guide (7.5 inches per picket plus space).
Picket spacing, board-on-board, and pool fences
281 pickets for 100 ft of board-on-board fence with 5.5 in boards, against 230 with the same boards edge to edge. Lowe's shadowbox layout spaces the pickets 3 1/2 in apart on each side of the rails and overlaps them 1 in on each side, so every 9 in of fence takes 2 pickets. The calculator has no overlap field: enter the picket width minus the overlap (4.5 in) and a 0 gap. Pool fences have a limit instead, set by the CPSC's barrier guidelines:
| Fence | Picket width | Gap | Enter as | Per 8 ft section | Per 100 ft, 5 percent extra |
|---|---|---|---|---|---|
| Privacy, pickets edge to edge | 5.5 in | None | 5.5 in, gap 0 | 18 | 230 |
| Spaced pickets (Lowe's example) | 5.5 in | 2 in | 5.5 in, gap 2 | 13 | 168 |
| Board-on-board (shadowbox) | 5.5 in | 3.5 in, 1 in overlap each side | 4.5 in, gap 0 | 22 | 281 |
| Pool fence, rails 45 in or more apart | 3.5 in | Up to 4 in | 3.5 in, gap 4 | 13 | 168 |
| Pool fence, rails less than 45 in apart | 3.5 in | Up to 1 3/4 in | 3.5 in, gap 1.75 | 19 | 241 |
To make the gaps come out even in an 8 ft section, divide 96 in by the picket width plus the gap you want, round up to whole pickets, then divide 96 by that count and subtract the picket width: 5.5 in pickets with a 2 in gap fit 13 per section at 1.88 in, and 3.5 in pickets fit 13 at 3.88 in, under the 4 in pool limit. The CPSC also calls for a pool barrier at least 48 in high with no more than 4 in of clearance under it, or 2 in over grass or pebbles.
Posts and pickets by fence length
Straight runs from the calculator, with 5.5 in pickets, no gap, and 5 percent extra. Lowe's fence guide adds 1 post for each gate; subtract 1 post for each corner that two runs share.
| Fence length | Posts, 6 ft spacing | Posts, 8 ft spacing | Pickets |
|---|---|---|---|
| 50 ft | 10 | 8 | 116 |
| 75 ft | 14 | 11 | 173 |
| 100 ft | 18 | 14 | 230 |
| 150 ft | 26 | 20 | 345 |
| 200 ft | 35 | 26 | 459 |
| 250 ft | 43 | 33 | 574 |
| 300 ft | 51 | 39 | 688 |
Fencing a pentagon or other odd-shaped yard
100 ft of fence for a pentagon with 20 ft sides: the perimeter of a regular pentagon is 5 times one side, and for an irregular one you add up its 5 sides. A closed fence needs a post at every corner, so its posts equal the sections on all the sides added together. With posts 8 ft apart:
| Shape | Fence length (perimeter) | Example | Fence | Posts, 8 ft apart |
|---|---|---|---|---|
| Square | 4 × side | 50 ft sides | 200 ft | 28 |
| Rectangle | 2 × (length + width) | 60 x 40 ft | 200 ft | 26 |
| Right triangle | a + b + √(a² + b²) | 30 and 40 ft sides | 120 ft (50 ft long side) | 16 |
| Regular pentagon | 5 × side | 20 ft sides | 100 ft | 15 |
| Irregular pentagon | Sum of the 5 sides | 60, 40, 30, 25, and 45 ft | 200 ft | 27 |
With the calculator, run each side separately and subtract 1 post per corner: each 20 ft side of the pentagon gives 3 sections and 4 posts, so 5 × 4 = 20 posts, less 5 shared corners, is 15, and the rails are 5 × 6 = 30. That's one post more than a straight 100 ft run, because each 20 ft side needs its own short section. For pickets, enter the whole perimeter once: 100 ft takes 230. Lowe's adds 1 post for each gate.
If you know only the area of a regular pentagon, each side is the square root of the area divided by 1.7205, from MathWorld's area formula (about 1.7205 × side²): 1,000 sq ft gives sides of 24.1 ft and 120.5 ft of fence. For a slanted side, measure it on the string line, or square the two legs, add them, and take the square root: a corner cut 30 ft by 40 ft is 50 ft long.
Rails, post depth, and holes
| Item | Guideline | Source |
|---|---|---|
| Rails, 4 ft tall fence | 2 per section | Lowe's fence guide |
| Rails, 6 ft tall fence | 3 per section | Lowe's fence guide |
| Post hole diameter | About 3 times the post width (about 10.5 in for a 4x4, which measures 3.5 in) | Quikrete |
| Post hole depth | 1/3 to 1/2 of the post height above ground (at least 2 ft for a 6 ft fence) | Quikrete |
| Gravel at hole bottom | About 6 in, compacted | Quikrete |
Frost depth and local code can require deeper holes, so check with your building department. For tall fences or windy, exposed sites, a fence contractor can confirm post size and depth.
Fence post depth by fence height
24 to 36 in for a 6 ft fence and 16 to 24 in for a 4 ft fence: Quikrete's post-setting guide puts the hole at 1/3 to 1/2 of the post's height above ground. Quikrete's data sheet and Sakrete's give the deep end as 1/3 of the post's overall length, the same as the 1/2 column, so a 9 ft post goes 3 ft into the ground under a 6 ft fence:
| Fence height | Hole depth, 1/3 of the height | Hole depth, 1/2 of the height | Post length |
|---|---|---|---|
| 3 ft | 12 in | 18 in | 4 ft to 4 ft 6 in |
| 4 ft | 16 in | 24 in | 5 ft 4 in to 6 ft |
| 5 ft | 20 in | 30 in | 6 ft 8 in to 7 ft 6 in |
| 6 ft | 24 in | 36 in | 8 ft to 9 ft |
| 7 ft | 28 in | 42 in | 9 ft 4 in to 10 ft 6 in |
| 8 ft | 32 in | 48 in | 10 ft 8 in to 12 ft |
The post lengths are the fence height plus the hole depth. Quikrete puts about 6 in of gravel in the bottom of the hole, so a post that stands on it needs a hole 6 in deeper to keep the same depth in the ground. Height isn't the only limit: Lowe's notes that some codes require post holes below the frost line, and University of Wisconsin-Extension's fencing guide says a post about 4 ft deep usually gets below it in most northern climates, where freezing and thawing in silt and clay soils can push posts out of the ground. The calculator doesn't size the hole; for a deeper one, raise the bags per post, using the chart in the next section.
How much concrete per fence post?
The calculator defaults to 2 bags per post, but the right number depends on your hole. Quikrete's data sheet for 50 lb Fast-Setting Concrete Mix gives a yield of about 0.375 cu ft per bag and says two bags will set a 3 in square post in a 9 in diameter hole 30 inches deep.
Hole width matters more than most people expect, because the volume grows with the square of the diameter. A 4x4 post actually measures 3.5 × 3.5 in, so Quikrete's "3 times the post width" rule gives a hole about 10.5 in across. Scaling from Quikrete's two-bag figure, that hole takes roughly 3 bags at 30 inches deep. A 12 in hole holds nearly twice as much concrete as the 9 in hole, or about 4 bags. Set the bags-per-post field to 3 and the example fence needs 42 bags instead of 28; at 4 bags it needs 56. With regular 60 or 80 lb bags instead, the concrete calculator guide lists their yields.
Quikrete's post-setting guide, which pours the dry mix into the hole and then adds water, calls for about a gallon of water per 50 lb bag, filling the hole to 3 to 4 inches below ground, and waiting about 4 hours before putting heavy loads on the posts. The mix sets in 20 to 40 minutes. For the gravel layer, Quikrete's shopping list for the job includes 50 lb bags of All-Purpose Gravel.
Bags of concrete per post by hole size
2.5 bags of 50 lb fast-setting mix for a 4x4 post in a 10 in hole 30 in deep, and 3.7 bags in a 12 in hole, with 6 in of gravel in the bottom and concrete to the top. Each cell is the hole's volume less the post's, divided by Quikrete's yield of 0.375 cu ft per bag:
| Hole depth (concrete over 6 in of gravel) | 8 in hole, 4x4 | 10 in hole, 4x4 | 12 in hole, 4x4 | 16 in hole, 6x6 |
|---|---|---|---|---|
| 24 in (18 in of concrete) | 1.1 | 1.8 | 2.8 | 4.7 |
| 30 in (24 in of concrete) | 1.4 | 2.5 | 3.7 | 6.3 |
| 36 in (30 in of concrete) | 1.8 | 3.1 | 4.7 | 7.9 |
| 42 in (36 in of concrete) | 2.1 | 3.7 | 5.6 | 9.5 |
A 4x4 measures 3 1/2 in square and a 6x6 5 1/2 in, according to the Southern Forest Products Association, and the 16 in hole is about 3 times the 6x6's width. The method agrees with the makers' figures: it gives 2.02 bags for Quikrete's example of a 3 in post in a 9 in hole 30 in deep (the data sheet says two), and Sakrete's chart for an average 10 in hole, at 0.38 cu ft per 50 lb bag, lists 2, 2.5, and 3 bags at 18, 24, and 30 in deep. Stopping 3 to 4 in below ground, as Quikrete's guide does, takes a little off. In the calculator, round up to the half bag: at 2.5 bags per post, the 100 ft example fence needs 35 bags.
Tips for buying fence materials
- Order extra pickets. Lowe's recommends increasing the picket count by 10 percent. The calculator defaults to 5 percent; raise it if you expect to cull warped or split boards.
- Buy rails at least as long as your spacing. With 8 ft on center, 8 ft rails span post to post.
- Plan the gates first. If you buy a prebuilt gate, subtract the opening from the length you enter for pickets. If you build the gate from the same pickets, leave it in.
- Count hardware. Lowe's guide lists one post cap per post. Gates need their own hardware, and fasteners depend on your rail and picket count.
- Use the actual picket width. Measure a board at the store. A small difference adds up over 100 feet.
Common mistakes to avoid
- Forgetting extra posts. Each corner, end, and gate side needs one.
- Double-counting shared corners when you add up several runs.
- Using nominal picket width. A "1x6" is 5.5 inches wide, not 6.
- Undersizing concrete. Wider holes take far more concrete than the 2 bag rule of thumb.
- Digging before utilities are marked. Call 811 a few business days ahead.
Frequently asked questions
How many fence posts do I need for 100 feet?
For a straight run, 14 posts at 8 ft spacing or 18 posts at 6 ft spacing. Add posts for gates, and remember that corners are shared between runs.
How many fence posts do I need?
Divide each straight run by the post spacing, round up to whole sections, and add 1 post to end the run. Lowe's fence guide also adds 1 post for each gate. At 8 ft spacing, a 100 ft run is 13 sections and 14 posts, or 15 with one gate; at 6 ft spacing it is 17 sections and 18 posts. Where two runs meet at a corner, they share a post, so count it only once.
How to calculate fencing for a pentagon?
5 times one side for a regular pentagon, or the sum of the 5 sides for an irregular one: 5 sides of 20 ft take 100 ft of fence. With posts 8 ft apart each side is 3 sections, and the 5 corner posts are shared, so the pentagon needs 15 posts and 30 rails at 2 per section; enter the 100 ft perimeter once to get its 230 pickets. If you know only the area of a regular pentagon, each side is the square root of the area divided by 1.7205: 1,000 sq ft gives 24.1 ft sides and 120.5 ft of fence.
How far apart should fence posts be?
6 to 8 ft on center, the typical range in Lowe's wood fence guide. Lowe's fence estimating guide uses 8 ft on center, and 6 ft sections are also common. Closer spacing means more posts and concrete but shorter spans for the rails.
How many pickets are in an 8 ft fence section?
With 5.5 in pickets and no gap, about 18. With a 1/2 in gap, 16. With 3.5 in pickets and no gap, 28.
How far apart should fence pickets be?
0 in for a privacy fence, 2 in in Lowe's spaced-picket example, and no more than 4 in for a pool fence whose rails are 45 in or more apart (1 3/4 in if they're closer), according to the CPSC's pool barrier guidelines. Lowe's shadowbox layout leaves 3 1/2 in between 5 1/2 in pickets on each side of the rails. For even gaps in an 8 ft section, divide 96 in by the picket width plus the gap, round up, then divide 96 by that count and subtract the width: 5.5 in pickets with a 2 in gap fit 13 per section at 1.88 in.
How many pickets do I need for a board on board fence?
281 for 100 ft of 5.5 in boards with 5 percent extra, or 22 per 8 ft section, in Lowe's shadowbox layout: 3 1/2 in gaps on each side and a 1 in overlap, so every 9 in of fence takes 2 pickets. In the calculator, enter 4.5 in as the picket width (5.5 minus the 1 in overlap) and a 0 gap. The same boards edge to edge take 230.
How many bags of concrete do I need per fence post?
About 2.5 bags of 50 lb fast-setting mix for a 4x4 in a 10 in hole 30 in deep, with 6 in of gravel in the bottom. Quikrete says two 50 lb bags of Fast-Setting Concrete Mix set a 3 in post in a 9 in hole 30 inches deep. For a 4x4 in a hole three times its actual width (about 10.5 in), plan on roughly 3 bags at that depth, and about 4 bags in a 12 in hole.
How deep should fence posts be?
2 to 3 ft for a 6 ft fence and 16 to 24 in for a 4 ft fence. Quikrete's post-setting guide says 1/3 to 1/2 of the post's height above ground, which is at least 2 ft for a 6 ft fence. Check local frost depth and code requirements too: in most northern climates, about 4 ft usually gets a post below the frost line, according to University of Wisconsin-Extension.
How long should fence posts be for a 6 ft fence?
8 to 9 ft: 6 ft above ground plus 2 to 3 ft in the hole, using Quikrete's rule of 1/3 to 1/2 of the post's height above ground. Quikrete's and Sakrete's data sheets set the hole at 1/3 of the post's overall length, which is the 9 ft post with 3 ft buried. If the post stands on 6 in of gravel, dig the hole 6 in deeper, and go deeper still where local code requires holes below the frost line.
How many rails does a fence need?
2 per section for a 4 ft fence and 3 per section for a 6 ft fence, in Lowe's guide. Enter the number in the rails-per-section field: at 3 rails, the 100 ft example fence takes 39 rails instead of 26.
How wide should a fence gate be?
3 ft for a push mower and 4 to 5 ft for a riding mower, according to Hoover Fence, which notes that a wheelbarrow can need 4 ft, most house doors are 36 in wide, and most driveway gates are 10 or 12 ft. Each gate adds 1 post in Lowe's estimate. Lowe's says to measure between the gate posts, subtract the hinges and latch, and size the gate to use full pickets. For a pool fence, the CPSC calls for gates that open outward, away from the pool, and are self-closing and self-latching.
How big should a fence post hole be?
About 10.5 in across for a 4x4 and 16.5 in for a 6x6. Quikrete suggests a hole about 3 times the post width, which is about 10.5 in across for a 4x4 (it actually measures 3.5 in); its post-setting guide rounds that to about 12 in for a 4 in post. Dig 1/3 to 1/2 of the post height above ground, at least 2 ft for a 6 ft fence, and put about 6 in of compacted gravel in the bottom. Frost depth and local code can require deeper holes.
How long does concrete for fence posts take to set?
Quikrete's post-setting guide for its Fast-Setting Concrete Mix calls for about a gallon of water per 50 lb bag. The mix sets in 20 to 40 minutes, and Quikrete says to wait about 4 hours before putting heavy loads on the posts.
Do I need to call 811 before digging fence post holes?
Yes. 811 is the free national call-before-you-dig service. Contact it a few business days before you dig so buried utility lines can be marked with paint or flags.
Sources
- Lowe's: Fence Calculator, Building with Pickets (PDF)
- Quikrete: Setting Posts without Mixing
- Quikrete: Fast-Setting Concrete Mix No. 1004-50 Data Sheet (PDF)
- Southern Pine Inspection Bureau: Nominal vs. Actual Lumber Sizes
- Common Ground Alliance: 811 Before You Dig
- Lowe's: How to Build a Wood Fence
- U.S. Consumer Product Safety Commission: Safety Barrier Guidelines for Residential Pools, Publication 362 (PDF)
- Wolfram MathWorld: Regular Pentagon
- University of Wisconsin-Extension: Setting Posts (PDF)
- Sakrete: Fast Setting Concrete Mix Data Sheet (PDF)
- Southern Forest Products Association: Standard Sizing
- Hoover Fence: How to Choose Gate Sizes
Spot an error? Tell us.