Fence Calculator

Turn the length of a wood fence into a shopping list: posts, rails, pickets, gate posts and the bags of concrete to set every post, based on the height and post spacing you choose.

✓ Imperial and metric✓ Package size results✓ Private by design
01
Enter your projectWood picket or privacy fence
Waste allowance5%
0%Recommended 5%20%
02
Your resultUpdates as you type
Pickets needed 0

Rails0

2x4 rails, 8 ft

Post concrete0

50 lb bags

Buy this0

Rounded up to whole packages.

Sections0
Post length0
Hole depth and width0
Pickets to order0
How this was calculated
Advertisement

How a wood fence is counted

A standard wood privacy or picket fence is built in sections. Each section runs between two posts, carries two to four horizontal rails, and has pickets nailed to the rails. Once you know the total length and the post spacing, everything else follows from the number of sections.

Posts and sectionsSections = fence length / post spacing, rounded up. Posts = sections + 1 + one extra per gate

Pickets = fence length in inches / (picket width + gap), plus a few spares. Rails = sections x rails per section.

A worked example

Take 100 ft of 6 ft privacy fence with posts 8 ft on center and one gate. 100 divided by 8 is 12.5, so there are 13 sections. That needs 13 + 1 = 14 posts for the run, plus one more for the gate, which is 15 posts. A 6 ft fence needs three rails per section, so 39 rails. With 5 1/2 inch wide pickets butted tight, 1,200 inches of fence takes 218.2 pickets, and a 5 percent spare allowance takes that to 230.

Post spacing

Eight feet on center is the common maximum for a wood fence because rails are sold in 8 ft lengths and an 8 ft span of 2x4 is about as far as a rail can go before it sags under the weight of the pickets and the push of the wind. Closer spacing at 6 ft makes a stiffer fence, which is worth it on windy sites, for an 8 ft tall fence, or where the fence has to hold a heavy gate. It also uses more posts and more concrete, so the calculator lets you compare both.

How many rails

Rails keep the pickets straight and stop them cupping. A fence up to 4 ft tall gets two rails, top and bottom. Fences of 5 and 6 ft get a third rail in the middle, and an 8 ft fence gets four. The calculator applies that rule automatically from the height you choose.

Fence heightRails per sectionHole depthPost length to buy
4 ft224 in6 ft or 8 ft
5 ft324 in8 ft
6 ft324 in8 ft
8 ft432 in12 ft

Setting the posts

A post needs roughly one third of its above ground height buried, with a minimum of 2 ft. That puts a 6 ft fence post about 24 inches into the ground, which is why 8 ft posts are the standard buy for a 6 ft fence. In cold climates the bottom of the hole should go below the local frost line, or frost heave will lift the posts a little every winter. Your building department can tell you the frost depth for your area, and some require a permit for fences over a certain height.

The hole should be about three times the width of the post. A 4x4 post is actually 3 1/2 inches square, so a 10 inch hole leaves a solid ring of concrete around it. Put about 6 inches of gravel in the bottom of the hole first so water drains away from the end of the post instead of pooling against it. That gravel is extra depth: dig 6 inches deeper than the depth the post needs to sit in concrete.

How much concrete per post

The concrete fills the hole minus the space taken by the post. For a 10 inch hole 24 inches deep, the hole holds 1.09 cubic feet, the post takes 0.17, and about 0.92 cubic feet of concrete is left to fill. A 50 lb bag of fast setting post mix yields about 0.375 cubic feet, so each post takes about two and a half bags. For 15 posts that is 37 bags. Buying whole bags per post and keeping a couple spare saves a trip when one hole comes out wider than planned.

Call 811 before diggingEvery post hole is a chance to hit a buried gas, power, cable or water line. In the US, call 811 or file an online request a few working days before you dig, and utility companies will mark their lines for free.

Pickets and gaps

A privacy fence butts the pickets tight so there are no gaps, although wood shrinks as it dries and small gaps appear on their own. A picket fence leaves a deliberate gap, often 2 to 3 inches, which cuts the picket count noticeably. Enter the gap and the calculator divides the length by picket width plus gap. A 1x6 dog ear picket is the most common privacy picket and measures about 5 1/2 inches wide.

A shadowbox or board on board fence alternates pickets on either side of the rails so it looks finished from both sides. That uses roughly 1.5 to 2 times as many pickets as a single sided fence of the same length, depending on the overlap. The simplest way to estimate one here is to run the calculator twice, once for each side, entering a gap equal to the picket width minus the overlap, and add the two picket counts together.

Gates

Each gate adds a post, because the gate needs its own hinge post and latch post rather than sharing the spacing of the run. Gate posts carry far more load than line posts, so many builders use a 6x6 or set the gate posts deeper with extra concrete. Gates wider than about 4 ft should be double gates or have a diagonal brace running from the bottom hinge corner up to the top latch corner, so the gate does not sag.

Before you order

  • Confirm the property line. A survey stake or plat is worth checking before a post goes in on the wrong side.
  • Check local height limits and any homeowner association rules. Many areas cap front yard fences lower than back yard fences.
  • Use ground contact rated pressure treated posts. Above ground lumber rots quickly where it meets soil and concrete.
  • Use corrosion resistant hot dipped galvanised or stainless fasteners. Treated lumber corrodes plain steel nails.
  • Add posts for corners and changes in direction. Each corner is the end of one run and the start of another.
Advertisement
Common questions

Fence Calculator FAQ

Straight answers to the questions people ask most about this calculation.

How many fence posts do I need for 100 feet?

At 8 ft spacing, 100 ft of fence is 13 sections, which needs 14 posts, plus one for each gate. At 6 ft spacing it is 17 sections and 18 posts plus gates.

How far apart should fence posts be?

8 ft on center is the usual maximum for a wood fence because rails are sold in 8 ft lengths. Use 6 ft spacing for tall fences, windy sites or where a heavy gate hangs.

How deep should fence posts be?

About one third of the above ground height, with a minimum of 2 ft, and below the frost line in cold climates. A 6 ft fence post usually goes about 24 inches deep, plus 6 inches of gravel underneath for drainage.

How many bags of concrete per fence post?

For a 4x4 post in a 10 inch hole 24 inches deep, about 2.5 bags of 50 lb post mix. A narrower 8 inch hole takes about 1.4 bags.

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

8 ft is 96 inches. With 5 1/2 inch pickets butted tight that is 17.5, so 18 pickets per section. With a 2 inch gap it is 96 divided by 7.5, so 13 pickets.

How many rails does a 6 foot fence need?

Three per section: top, middle and bottom. Fences up to 4 ft tall need two, and an 8 ft fence needs four.

What length posts do I need for a 6 foot fence?

8 ft posts. About 2 ft goes in the ground and 6 ft stands above it.

Do gates need extra posts?

Yes. Each gate needs its own hinge and latch posts, which adds at least one post to the count. Many builders use 6x6 posts or deeper concrete for gate posts because they carry more load.

Should fence posts sit in gravel or concrete?

Most are set in concrete with about 6 inches of gravel below the post end so water drains away. In very wet soil some builders set posts in compacted gravel only, which drains better but is less rigid.

Advertisement
Result 0