Fence Calculator

GetTallyKit › Fence

Give it the length of the run and the height you want. It works out how many posts, rails and boards that takes, how much concrete the holes need, and what the materials cost.

Units

Post spacing drives everything else: it decides how many sections you build, and a run of fence always needs one more post than it has sections.

Posts
—
—
Boards
—
—
Concrete
— yd³
—
Material cost
—
—
MaterialQtyUnit priceSubtotal

Count the posts before you price anything

A fence is a row of identical sections, and a straight run always needs one more post than it has sections. That extra post is the one people forget. Put posts every 8 ft along a 100 ft run and you build 13 sections, which takes 14 posts, not 13. Add a gate and you are at 16, because the gate hangs off two posts of its own.

Everything else hangs off that number. Rails are bought per section, boards are bought by the linear foot of run, and the concrete is bought by the hole — so the post count drives three separate lines on your order.

panels   = round up ( run length ÷ post spacing )
posts    = panels + 1 + ( gates × 2 )
rails    = panels × rows
rows     = 2 below 4 ft high, 3 from 4 ft to 6 ft, 4 above that
boards   = round up ( run length × 12 ÷ board width )
pickets  = round up ( run length × 12 ÷ ( board width + gap ) )
concrete = posts × π × ( hole diameter ÷ 2 )² × hole depth

The board width that matters is the actual face width, not the nominal size. A board sold as 6 in is 5.5 in across the face, and that half inch compounds down a long run: over 100 ft it is the difference between 200 boards and 219.

How deep the holes go

The usual rule is a third of the fence height plus 6 in, so a 6 ft fence sits in a 30 in hole. Where the ground freezes, the real constraint is different: the bottom of the post needs to be below the frost line, or the first winter will lift the whole run a fraction of an inch at a time until the gate stops latching.

Depth is not the only thing that decides whether a post survives. Timber buried in the ground needs to be treated for ground contact, not for above-ground use. The American Wood Protection Association is explicit about it: "Ground contact applications require an AWPA Use Category 4A (UC4A) or higher." Their Use Category system puts UC4A at ground contact for general use and UC4B at ground contact heavy duty, which is where a structural fence post sits. A post rated only UC3B is treated for weather, not for soil, and it will rot at the ground line years before the rest of the fence looks tired. AWPA's homeowner guidance has the full category table and explains what to look for on the end tag.

Gates cost more than the fence they replace

A gate is the most expensive few feet of any fence. It takes two posts, and those posts are usually a size up — 6×6 rather than 4×4 — because they carry the weight of the leaf every time it swings and they are the only posts being levered sideways rather than pushed straight down. The holes are wider too, which is more concrete per post.

On top of that, the gate leaf itself needs hardware that costs more than the timber it hangs on: hinges, a latch, and a drop rod if it is a double. Budget the gate as its own line item and you will not be short at the end.

What each style actually needs

StyleBoards or picketsRails per sectionNotes
Privacy Full coverage, boards butted or lapped 3 on a 6 ft fence Heaviest wind load. Posts and footings take the whole sail.
Picket Spaced by a gap you choose 2, sometimes 3 Wind passes through. Lighter posts are fine.
Split rail None 2 or 3, rails are the fence Fewest parts. Rail lengths come in fixed sizes, so waste depends on your spacing.

Privacy fence is the one that catches people out on materials: the boards are the whole visible surface, so a 6 ft privacy fence uses roughly three times the timber of a picket fence of the same length and height.

The concrete is a separate job

Sixteen holes at 12 in wide and 30 in deep is about 1.16 cubic yards, which is 53 bags of the 80 lb size. That is a real amount of mixing — enough that most people either hire a mixer for the day or think hard about whether every post needs concrete at all. In firm, free-draining ground, rammed gravel around the post holds surprisingly well and drains better than concrete, which tends to trap water against the base of the post.

If you want to work through a single hole in detail — different diameter, deeper for frost, or a round pier rather than a post — use the post hole calculator. It handles one hole properly, including the part of the post that stays above ground.

Before you order

  • Height and setback are set locally, not nationally. Most US jurisdictions work from model codes published by the International Code Council and then amend them, so the answer for your address is at your building department, not in a calculator.
  • Buy boards by the bundle and expect a couple of rejects. Ends split, and a split end shows.
  • Concrete and gravel are sold by weight or volume depending on the supplier. Check which before you compare prices.
  • If the run is on a slope, either step it in level sections or scribe the boards to the fall. Stepped fences need one more post at every step.

Boards and posts are the shopping list. What the whole run costs installed, including gates, removal and a slope, is in the fence cost calculator.

FAQ

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

At 8 ft spacing that is 13 sections, so 14 posts, plus 2 more if you have one gate. Shortening the spacing to 6 ft takes it to 17 sections and 18 posts. The formula is always sections plus one, then two more per gate.

How deep should a 6 foot fence post be?

Two and a half feet using the third-plus-6-inches rule, which puts the hole at 30 in. In cold climates go to the frost line instead, which is deeper than 30 in across much of the northern US and Canada.

How much concrete per fence post?

A 12 in diameter hole 30 in deep is about 1.96 cubic feet, which is a little over three 80 lb bags. Multiply by your post count: 16 posts comes to roughly 31 cubic feet, or 1.16 cubic yards, or 53 bags.

What post spacing should I use?

Eight feet is the standard for a domestic timber fence and what most pre-cut rails are sized around. Six feet is stiffer and worth it for a tall privacy fence or a windy exposure. Beyond 8 ft the rails start to sag between posts.

Do I need concrete for every post?

No. Posts in firm, well-drained ground hold well on rammed gravel, which also drains better around the base of the post than concrete does. Concrete earns its cost on gate posts, corners, ends, and anywhere the ground is soft or holds water.

Related calculators

Figures are estimates for planning. Local prices, bag yields and mix designs vary by supplier and region, so confirm with your ready-mix plant or builders merchant before ordering. Nothing you type is uploaded — every calculation runs in your browser.