Fence Calculator — Posts, Rails and Pickets

Enter the run length and post spacing. You get posts, rails, pickets and the hole depth each post needs.

Fill in the measurements above and the answer appears here.

About the Fence Calculator

Fencing is mostly a counting problem with one trap in it: posts are always one more than sections, because both ends need one. Get that wrong on a long run and you are back at the store. This also gives the hole depth, which is the part that decides whether the fence is still standing in ten years.

How to use it

  1. Measure the total run in feet.
  2. Enter post spacing — 8 ft is standard, 6 ft for high wind or heavy panels.
  3. Enter fence height. Six feet and over needs three rails, not two.
  4. Check the hole depth: one third of the post's above-ground height, 24 inches minimum.

The formula

Sections = length ÷ spacing (rounded up)
Posts = sections + 1
Pickets = (length × 12) ÷ picket width

The plus one is the whole trick. A 100 ft fence at 8 ft spacing is 13 sections and 14 posts. Pickets assume 5.5 inch nominal boards butted tight; add a gap if you want spacing.

Worked examples

LengthSpacingSectionsPostsRails (6 ft)Pickets
100 ft8 ft131439219
50 ft8 ft7821110
200 ft6 ft3435102437
24 ft8 ft34953

Note the third row: tightening spacing from 8 ft to 6 ft on a long run adds 21 posts and 63 rails. Closer spacing is stronger, but it is not a free upgrade.

Common mistakes

Terms explained

Section / bay
The span between two posts. Eight feet is standard because rails come in 8 ft lengths.
Rail
The horizontal member spanning between posts. Two for fences under 6 ft, three at 6 ft and above.
Picket
The vertical board. Nominal 5.5 inches wide for a 1×6, which is what most privacy fences use.
Frost line
The depth to which ground freezes locally. Post holes must go below it or the fence lifts each winter.

Common questions

How many posts do I need for a 100 foot fence?
Fourteen at 8 ft spacing — 13 sections plus one. The extra post is for the far end.
How far apart should fence posts be?
Eight feet is standard and matches rail lengths. Six feet for tall fences, heavy panels or high wind exposure.
How deep should fence post holes be?
One third of the above-ground height, with 24 inches as the minimum. A 6 ft fence wants a 24 to 30 inch hole.
How much concrete per fence post?
One to two 50 lb bags for a standard 4×4 in a 10-inch hole. Corner and gate posts deserve more.
How many pickets for a 100 foot fence?
About 219 using 5.5-inch boards butted tight. Spaced pickets need proportionally fewer.
Do I need three rails?
At 6 feet and above, yes. Two rails on a tall fence lets the pickets bow and the whole run looks wavy within a year.
Should fence posts be set in concrete?
In most soils yes, especially for gates and corners. In very well-drained ground, compacted gravel can drain better and rot the post more slowly.

Related calculators