ScienceEngineering

Fence
calculator.

Count the posts, rails, boards and bags of concrete for your new fence line.

How it's worked out

A straight fence is a row of sections, each one post spacing long. Take the gates off the length first, because a gate replaces a section. Divide what is left by the spacing and round up, so the last section may be short.

sections\displaystyle \text{sections}=⌈L−g×ws⌉\displaystyle {}= \left\lceil \frac{L - g \times w}{s} \right\rceil
posts\displaystyle \text{posts}=sections+1+g\displaystyle {}=\;\text{sections} + 1 + g

L is the fence length, g the number of gates, w the gate width and s the post spacing. The brackets mean round up. A run of sections needs one post more than it has sections, and each gate needs a post for its second side.

Boards are the length less the gates, divided by one board plus its gap, rounded up. Shadowbox has boards on both faces, so the count is doubled, and the gap you enter is the space between boards on one face. Rails are the sections times the rails per section.

Concrete fills the hole around the post. Each hole is a cylinder, π times the radius squared times the depth, less the square post inside it. A 10 in hole 30 in deep around a 4×4 holds 1.15 ft³. Quikrete's data sheet gives about 0.45 ft³ for a 60 lb bag of Concrete Mix, so each hole takes 2.56 bags.

per hole\displaystyle \text{per hole}=π(d2)2h−p2h\displaystyle {}= \pi \left(\frac{d}{2}\right)^2 h - p^2 h

Worked examples

Jordan fences 150 ft of backyard in privacy boards

The 4 ft gate leaves 146 ft of fence. At 8 ft spacing that is 19 sections, so Jordan needs 21 posts, including the extra one for the gate.

Three rails a section make 57 rails, and 5.5 in boards laid tight make 319 boards. The holes take 24.2 ft³ of concrete in all, which is 54 bags of 60 lb.

Moving the posts to 6 ft apart would take 27 posts and 70 bags. Quikrete's rule sets a third of the post below ground, so a 30 in hole suits a 7.5 ft post with 5 ft above ground.

Open this example in the tool

Ana prices a 60 ft picket fence for the front yard

With a 3 ft gate, 57 ft of fence needs 8 sections and 10 posts. Pickets 3.5 in wide with 2.5 in gaps give 114 pickets and 16 rails.

Her 8 in holes, 24 in deep, take 12 bags of 60 lb. At her store's prices of $15 a post, $6 a rail, $3 a picket and $7 a bag, the materials come to $672.00, of which the pickets are $342.00.

Open this example in the tool

Tom runs 60 m of chain-link in metric

A 1.2 m gate leaves 58.8 m of mesh. With posts every 3 m that is 20 sections and 22 posts, and 58.8 m each of fabric and top rail.

Holes 20 cm wide and 75 cm deep around a 2.375 in round post take 40 bags of 25 kg between them. The lengths convert in place, so he can switch any field to feet and the fence stays the same.

Open this example in the tool

Reading your result

Posts include the gate posts. For one straight run with no gates, posts are always one more than sections: 100 ft at 8 ft takes 13 sections and 14 posts. Each corner is shared by two runs, so add up the sides and take off one post per shared corner.

Bags are rounded once, for the whole fence. Concrete per hole is rarely a whole number of bags, so the tool adds the holes first and then rounds. A bigger hole adds up fast: going to 12 in by 36 in on Jordan's fence raises the total to 99 bags.

Shadowbox needs more boards than privacy. With a 3.5 in gap on each face, Jordan's run would take 390 boards against 319 laid tight on one face. A smaller gap means more overlap and more boards.

Common mistakes

  • Using nominal lumber sizes. A 1×6 board is 5 1/2 in wide and a 4×4 post is 3 1/2 in square, as the Southern Pine Inspection Bureau explains. Enter the actual size or the board count comes out short.
  • Forgetting the gate posts. A gate needs a post on both sides. They are often set deeper or larger than line posts, so check them separately.
  • Skipping the layer under the post. Quikrete's method puts 6 in of dry mix in the bottom of each hole before the post goes in. The count here fills around the post for the full depth, so allow a little extra for that layer.
  • Digging before the utilities are marked. 811 is the free national call-before-you-dig line, and fences are one of the projects it lists. Call a few business days ahead.

Questions people ask

Work out the hole as a cylinder and take off the post. A 10 in hole 30 in deep around a 4×4 holds 1.15 ft³, about 2.6 bags of 60 lb. A narrower 8 in hole 24 in deep takes 1.2 bags.

Sources