HowMuchWorks

Fence Calculator

Enter the length of your fence, how far apart the posts go and any gates. The calculator counts posts, rails and pickets (or panels) and, if you set posts in concrete, how many bags to buy.

How it works

Gates split a fence line into stretches, and each stretch needs its own whole number of sections: its length divided by the maximum post spacing, rounded up. A stretch needs one more post than sections. A gate between two stretches hangs on their end posts; a gate at the end of the line adds one post on its far side. That is why gate position matters: 16 ft of fence as 5 ft and 11 ft on either side of a gate needs 1 + 2 = 3 sections and 5 posts at 8 ft spacing, while one 16 ft stretch with the gate at its end needs 2 sections and 4 posts. Rails are sections times rails per section. Pickets are each stretch divided by picket width plus gap, rounded up.

For concrete, each hole is a cylinder: π x (diameter / 2)² x depth, minus the post itself. The concrete depth is the hole depth less the gravel base and less the top few inches, which QUIKRETE's method leaves for soil (concrete stops 3-4 in below ground). Divide by the bag yield: 0.60 cu ft for an 80 lb bag, 0.45 cu ft for 60 lb, 0.375 cu ft for 50 lb fast-setting mix. The post has to fit: a 4x4 measures 3.5 x √2 = 4.95 in corner to corner, so it needs a hole wider than that.

Worked example: 100 ft of fence with one 4 ft gate at the end leaves 96 ft. At 8 ft spacing that is 12 sections, so 12 + 1 + 1 = 14 posts, 24 rails and 96 x 12 / 5.5 = 209.5, so 210 pickets of 5.5 in. A 12 in hole, 30 in deep with 6 in of gravel and the top 3 in left for soil, holds 21 in of concrete: π x 6² x 21 - 3.5² x 21 = 2,118 cu in = 1.23 cu ft around a 4x4. 14 posts x 1.23 = 17.2 cu ft, / 0.60 = 28.6, so 29 bags of 80 lb concrete.

Sources: QUIKRETE post-setting method (hole 3x post width, depth 1/3 to 1/2 of above-ground height plus 6 in of gravel, concrete to 3-4 in below grade), QUIKRETE 80 lb concrete mix (0.60 cu ft yield), Bob Vila on concrete per fence post.

Questions

How far apart should fence posts be?

Most wood fences use 8 ft between post centres, which matches 8 ft rails. Use 6 ft for heavy privacy fences, windy sites or to match 6 ft panels.

How deep should fence post holes be?

A common guide is one third to one half of the post height above ground, plus 6 in of gravel at the bottom. In cold climates go below the frost line; local codes may set a minimum.

How many bags of concrete per fence post?

For a 4x4 in a 12 in hole with 21 in of concrete (30 in deep, 6 in of gravel, top 3 in left for soil), about 1.23 cu ft, which is about two 80 lb bags. Wider or deeper holes need more, and the calculator works it out for your sizes.

Do gates need special posts?

Gate posts carry more load, so many builders use a larger post or a deeper hole on each side of a gate. The calculator counts them as ordinary posts; upsize them if your gate is wide or heavy.

How do I count posts for a fence with corners?

Run each straight side on its own. Corners are shared, so subtract one post for each corner when you add the sides together. For a gate in the middle of a side, list the fence length on each side of the gate.