Fence Calculator: How Many Fence Posts and Pickets Do I Need?

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.

How many fence posts and pickets do you need?

For a straight run of picket fence. Results include posts, rails, pickets, and concrete.

ft
ft
rails
in
in
bags
%

Add a post for every corner, end, and gate opening. Rails are assumed to be at least as long as the post spacing.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Parts of a wood fence: posts, rails and picketsElevation of three fence sections seen from the rail side. Posts are 8 feet apart on center and set in concrete, each section has 2 rails, and 5.5 inch pickets run edge to edge with no gap.FENCE PARTS: POSTS, RAILS, PICKETSPost2 rails per sectionPickets, 5.5 in wideConcrete,2 bags per post8 ft on centerAssumes rails at least as long as the post spacing.
A section is the span between two posts: here posts sit 8 ft on center in 2 bags of concrete each, carrying 2 rails and 5.5 in pickets.

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:

  1. Sections: 100 ÷ 8 = 12.5, rounded up to 13
  2. Posts: 13 + 1 = 14
  3. Rails: 13 × 2 = 26
  4. Pickets: 1,200 in ÷ 5.5 = 218.2, rounded up to 219; plus 5 percent = 229.95, rounded up to 230
  5. 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.

Counting fence posts, rails and pickets for 100 feetA 100 foot fence drawn over a tape measure with posts every 8 feet: 13 sections, the last one only 4 feet long, and 14 posts. With 2 rails per section that is 26 rails, plus 230 pickets and 28 bags of concrete.100 FT OF FENCE: 13 SECTIONS, 14 POSTS12345678910111213081624324048566472808896100feetSection 13 is only 4 ft14 posts = 13 sections + 1Sections: 100 ft ÷ 8 ft = 12.5 → 13 sectionsPosts: 13 + 1 = 14 posts · Rails: 13 × 2 = 26 railsPickets: 1,200 in ÷ 5.5 in = 218.2 → 219, + 5% = 230Concrete: 14 posts × 2 bags = 28 bagsAdd a post for every corner, end, and gate opening.
A straight 100 ft run at 8 ft spacing needs 13 sections and 14 posts, which works out to 26 rails, 230 pickets, and 28 bags of concrete.

Pickets per 8 ft section

Picket widthGapPickets per 8 ft sectionPickets per 100 ft (no extra)
5.5 inNone (privacy)18219
5.5 in1/2 in16200
5.5 in2 in13160
3.5 inNone (privacy)28343
3.5 in1.5 in20240
3.5 in3.5 in14172

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:

FencePicket widthGapEnter asPer 8 ft sectionPer 100 ft, 5 percent extra
Privacy, pickets edge to edge5.5 inNone5.5 in, gap 018230
Spaced pickets (Lowe's example)5.5 in2 in5.5 in, gap 213168
Board-on-board (shadowbox)5.5 in3.5 in, 1 in overlap each side4.5 in, gap 022281
Pool fence, rails 45 in or more apart3.5 inUp to 4 in3.5 in, gap 413168
Pool fence, rails less than 45 in apart3.5 inUp to 1 3/4 in3.5 in, gap 1.7519241

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 lengthPosts, 6 ft spacingPosts, 8 ft spacingPickets
50 ft108116
75 ft1411173
100 ft1814230
150 ft2620345
200 ft3526459
250 ft4333574
300 ft5139688

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:

ShapeFence length (perimeter)ExampleFencePosts, 8 ft apart
Square4 × side50 ft sides200 ft28
Rectangle2 × (length + width)60 x 40 ft200 ft26
Right trianglea + b + √(a² + b²)30 and 40 ft sides120 ft (50 ft long side)16
Regular pentagon5 × side20 ft sides100 ft15
Irregular pentagonSum of the 5 sides60, 40, 30, 25, and 45 ft200 ft27

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

ItemGuidelineSource
Rails, 4 ft tall fence2 per sectionLowe's fence guide
Rails, 6 ft tall fence3 per sectionLowe's fence guide
Post hole diameterAbout 3 times the post width (about 10.5 in for a 4x4, which measures 3.5 in)Quikrete
Post hole depth1/3 to 1/2 of the post height above ground (at least 2 ft for a 6 ft fence)Quikrete
Gravel at hole bottomAbout 6 in, compactedQuikrete

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 heightHole depth, 1/3 of the heightHole depth, 1/2 of the heightPost length
3 ft12 in18 in4 ft to 4 ft 6 in
4 ft16 in24 in5 ft 4 in to 6 ft
5 ft20 in30 in6 ft 8 in to 7 ft 6 in
6 ft24 in36 in8 ft to 9 ft
7 ft28 in42 in9 ft 4 in to 10 ft 6 in
8 ft32 in48 in10 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, 4x410 in hole, 4x412 in hole, 4x416 in hole, 6x6
24 in (18 in of concrete)1.11.82.84.7
30 in (24 in of concrete)1.42.53.76.3
36 in (30 in of concrete)1.83.14.77.9
42 in (36 in of concrete)2.13.75.69.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.

Spot an error? Tell us.