DIY Project Calculators

Fence Calculator

Plan a wood picket or privacy fence: how many posts, backer rails, and pickets to buy, and how much concrete and gravel the post holes take. Everything runs in your browser.

Enter each straight side separated by commas, like 50, 100, 50 for a back yard with a house at the fourth side. Sides are assumed to meet at shared corner posts. Changing the height resets the rails and post depth to the suggested values. A 1×6 picket is 5.5 in wide, a 1×4 is 3.5 in.

What to buy

Materials for a straight 6 ft fence

Fence lengthPostsRailsPickets (+10%)80 lb concrete bags50 lb gravel bags
25 ft51260144
50 ft821120215
100 ft1439240379
150 ft20573605313
200 ft26754806816
300 ft3911472010224

One straight side, no gates, posts 8 feet apart, 3 backer rails per section, 5.5 inch pickets with no gap plus 10%, and 4×4 posts set 36 inches deep. Add one post for each gate, and count each side separately for an L-shaped or U-shaped fence (the calculator does this for you).

Concrete per fence post

Post and fence heightHole (across × deep)Post lengthConcrete, cu ft80 lb bags60 lb bags
4 × 4, 4 ft fence10.5 in × 30 in6 ft0.9023
4 × 4, 5 ft fence10.5 in × 36 in7.5 ft1.1633
4 × 4, 6 ft fence10.5 in × 42 in9 ft1.4234
4 × 4, 8 ft fence10.5 in × 54 in12 ft1.9445
6 × 6, 4 ft fence16.5 in × 30 in6 ft2.2356
6 × 6, 5 ft fence16.5 in × 36 in7.5 ft2.8768
6 × 6, 6 ft fence16.5 in × 42 in9 ft3.5179
6 × 6, 8 ft fence16.5 in × 54 in12 ft4.78912

Holes are sized by QUIKRETE's rule (see below), with 10% extra concrete. Bags are rounded up per post; if you pour several posts from a pallet, the total in the calculator above is usually a few bags less, because partial bags carry over to the next hole. QUIKRETE Fast-Setting Concrete Mix yields the same 0.45 cubic feet per 60 lb bag as its standard Concrete Mix, so the 60 lb column works for either.

How the calculator counts

The counts follow the fence worksheet that Outdoor Essentials (a Universal Forest Products brand) publishes for its picket fences:

  • Sections: each side's length divided by the post spacing, rounded up. A 50 ft side at 8 ft spacing is 6.25, so 7 sections; the last one is shorter.
  • Posts: one per section, plus one to end the run, plus one for each gate. A closed loop doesn't need the extra end post. Corner posts are shared by the two sides that meet there.
  • Backer rails: 2 per section for a 4 ft fence, 3 per section for a 6 ft fence. Rails are usually 2×4 lumber, and spacing posts 6, 8, or 10 feet apart lets you use precut rail lengths with little waste (QUIKRETE's fence guide).
  • Pickets: the fence length in inches divided by the picket width plus any gap. The worksheet recommends adding 10%.
  • Post caps: one per post.

With the defaults, sides of 50, 100, and 50 ft make 200 ft of fence. That's 7 + 13 + 7 = 27 sections, so 27 posts + 1 to end the run + 1 for the gate = 29 posts, and 27 × 3 = 81 rails. 200 ft is 2,400 inches; 2,400 ÷ 5.5 = 436.4 pickets, plus 10% = 480.

Gates: the worksheet adds one post per gate and doesn't subtract the gate opening, so the pickets and rails cover gates built from the same lumber. If you buy a ready-made gate, you'll have some pickets left over. A gate in the middle of a side can need one more post than a gate next to a corner, depending on where the posts fall.

How deep to set fence posts

QUIKRETE's "Setting Posts" guide says the hole should be 3 times the post's width across and one third of the post's overall length deep, plus 6 inches for a gravel base that helps drainage. Burying one third of the post's length is the same as burying half its height above ground, so:

  • A 6 ft fence: 3 ft (36 in) in the ground, a 9 ft post, and a hole 42 inches deep. For a 4×4 post (3.5 in actual), the hole is 10.5 inches across.
  • A 4 ft fence: 2 ft in the ground, a 6 ft post, and a hole 30 inches deep.

Fill with concrete to 3 to 4 inches below the ground, then top off with soil. The calculator uses 3 inches, which errs on the high side, and subtracts the space the post takes up. Posts that hold up a structure, like a deck, must go at least 6 inches below the frost line, and local codes or your HOA may have their own rules for fence posts, height, and location, so check them before you dig. Call 811 before digging to have buried utility lines marked.

You can set a shallower depth in the calculator if that's your plan; it will recompute the post length, hole depth, and concrete.

FAQ

How many pickets do I need for 100 feet of fence?

With 5.5 inch pickets (1×6) and no gap, 1,200 inches ÷ 5.5 = 218.2, so 240 with 10% extra. With 3.5 inch pickets and a 2 inch gap, 1,200 ÷ (3.5 + 2) is the same 218.2, so the same 240.

How many posts for a 100 ft fence?

At 8 ft spacing, 100 ÷ 8 = 12.5, so 13 sections and 14 posts for a straight run with no gates. Add one per gate.

How many bags of concrete per fence post?

For a 4×4 post on a 6 ft fence set QUIKRETE's way (a 10.5 inch hole, 36 inches of post in the ground, 6 inches of gravel at the bottom), the concrete fills about 1.42 cubic feet, or 1.56 with 10% extra: 3 bags of 80 lb mix or 4 bags of 60 lb. For other hole sizes, the concrete calculator handles any diameter and depth.

How far apart should fence posts be?

QUIKRETE's fence guide suggests 6, 8, or 10 feet so precut rails fit with little waste; the Outdoor Essentials worksheet uses 6 or 8 feet, and 8 feet is the calculator's default. Closer posts make a stiffer fence. Follow your panel or picket maker's spacing if it gives one.

How much gravel goes in the post holes?

QUIKRETE recommends 6 inches of all-purpose gravel or crushed stone at the bottom of each hole. For a 10.5 inch hole that's about 0.3 cubic feet per post, so a 50 lb bag (about 0.5 cubic feet) covers one or two holes. For gravel paths and driveways, use the gravel calculator.

Estimates for planning. Sources: Outdoor Essentials / Universal Forest Products, Fence Calculator: Building with Pickets worksheet (posts, rails, pickets); QUIKRETE, Setting Posts (hole width and depth, gravel base, frost line) and Fence and Trellis Designs (post spacing, rail lumber); QUIKRETE Fast-Setting Concrete Mix data sheet and Concrete Mix No. 1101 data sheet (bag yields). Gravel bag volume: see the gravel calculator.