Skip to content
Saved
Menu

Fence Calculator

Get posts, rails, pickets or boards, and concrete bags for a wood privacy, picket, or board-on-board fence, plus an optional materials cost.

15 posts · 231 boards

1 to 1,000 feet along the line.

2 to 12 feet.

1 to 20 feet. Often 6 or 8.

Fence style

Actual width. A 1x6 is about 5.5 inches.

2 to 20 feet.

Layout and material

Fence layout

Material

Build

Stepped grade (optional)

Extras
Advanced — posts and concrete

Post size

0 to 1 foot.

Concrete bag

Board count

Waste and prices
Posts
15
Boards
231
Rails
38
Concrete bags
45
Usable length
96' 0"
Sections / bay
12 · 8' 0" bay
Posts detail
13 line · 2 gate
Rails to buy
38 · 8 ft 2×4
Board stock
6 ft
Post stock
8 ft
Hole
10" × 2.50 ft deep
Concrete
45 bags · 3 per post · 60 lb mix
Gravel
4.09 cu ft
…
One bay. Not the full run.
96 ft boards

12 sections · 1 gate

Schematic. Gates are grouped at one end and are not located along the yard.

Code checks

0 passed · 0 warnings · 0 failed · 5 notes

  • Info · Check the local height limit, setback, permit, and any HOA rule before you buy.

  • Info · Use the deeper of this bury depth and your local frost line. This page does not look up frost depth.

  • Info · Call 811 before you dig.

  • Info · Bag yields are typical packaged-mix values. The hole is filled for the full bury depth and each hole rounds up, which can be one bag above a short example printed on a bag.

  • Info · Gate posts are added on top of the straight-line posts. If a gate post is also an end post, you may have one spare.

Based on the IRC model code. Your local jurisdiction may adopt a different edition or amendments — confirm with your building department.

Methodology — frost depth · Ask your building department

Shopping list

Posts

Posts
ItemSpecQty
Fence post4x48' 0"15 pc

Rails

Rails
ItemSpecQty
Fence rail2x48' 0"Includes 5% waste. One piece per bay per rail line. A longer board can span two bays.38 pc

Boards

Boards
ItemSpecQty
Fence board1x6, 5.5 in actual, privacy6' 0"Includes 10% waste. Run length.231 pc

Concrete

Concrete
ItemSpecQty
Concrete mix60 lb bags, 0.45 cu ft eachGravel base about 4.09 cu ft, not included.45 ea

Gates and hardware

Gates and hardware
ItemSpecQty
Gate kit4 ft opening, buy or buildHinges and a latch are not included.1 ea

How to measure

Measure the fence along the ground, following the line where the boards will stand. Break a long run into pieces you can tape, then add those pieces to get the total length. Include the ground in front of each gate in that total. The page subtracts the gates from the board and rail run, so leaving them in the tape measure and also typing them as gates is correct. Leaving them out and typing them again would drop the opening twice.

Write down each gate width. For one gate, type its width once. For several gates, use the width field for each gate when they differ. When every gate is the same width, one shared width is enough. A single straight run already includes both end posts. Add an extra corner post only when a turn needs a post beyond that straight count, not once for every corner you can see.

Set the maximum post spacing to 8 feet for a typical wood fence, or 6 feet when the fence is tall or the boards are heavy. The page splits the remaining length into equal bays that do not exceed that spacing. Measure the actual board width with a tape. A board sold as a 1x6 is usually 5.5 inches, and the nominal name will over-count or under-count the pickets.

Confirm the property line, the height limit, and any homeowners association rule before you buy. The bury depth starts at one third of the height above grade, and at least 2 feet, then you add gravel. Compare that hole with the local frost line and use the deeper one. Call 811 before you dig so buried utilities can be marked.

Formula

Usable length is the taped run minus each gate. Sections are that length divided by the maximum spacing, rounded up. Line posts are the section count plus one. Each gate adds two posts, and any extra corner or end posts you type are added after that. Rails are the sections times the rail lines, plus waste. Board step depends on the style: the board width, the width plus the gap, or the width minus the overlap. Waste uses a whole-number percent and rounds up once. Concrete is the round hole minus the post, rounded up per hole.

A 100 foot privacy fence, 6 feet high, posts at most 8 feet apart, and one 4 foot gate, leaves 96 feet of boards. That is 12 sections, 15 posts, 38 rails after 5 percent waste, and 231 boards after 10 percent waste. Each post is an 8 foot 4x4. Fifteen holes take 3 bags of 60 pound mix each, 45 bags in total.

Common mistakes

  • Using the nominal 6 inch name when the board is actually 5.5 inches.
  • Subtracting the gates twice, or leaving the gate width in the board run.
  • Stopping at one third of the height and skipping the local frost line.
  • Treating board-on-board and a two-sided shadowbox as the same count.
  • Dividing the combined concrete volume by the bag yield instead of rounding each hole up.
  • Adding one post per corner you can see on top of a straight line that already has both ends.

FAQ

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

A straight 100 foot run at 8 foot spacing is 13 sections and 14 posts, one more than the sections, so both ends are included. With one 4 foot gate the page first keeps 96 feet of fence: 12 sections and 13 line posts, then adds 2 gate posts, for 15. A gate that shares an end post in the yard may leave you one spare. Extra corner posts are added only if you type them.

How deep should a fence post be?

The default bury depth is one third of the height above the ground, and at least 2 feet. A 6 foot fence uses 2 feet in the ground. The hole is deeper by the gravel base, 6 inches unless you change it. This is a planning rule, not a frost-line map. Cold climates often need the bottom of the hole below the local frost line. Use whichever is deeper, and call 811 before you dig.

How many bags of concrete does one post need?

Concrete fills a round hole for the bury depth only. The gravel base is not concrete. The square post is subtracted unless you turn that off. Bags round up at each hole, then multiply by the post count, so you never split one bag across a hole. A 10 inch hole, 2 feet deep, around a 4x4 takes 3 bags of 50 pound mix. A label that says two bags is a short example. Read your bag.

What is the difference between privacy, board-on-board, and shadowbox?

Privacy boards touch, so the step is the actual board width and the gap stays at zero. Spaced pickets add the gap you type. Board-on-board overlaps on one face, so the step is the width minus the overlap. Shadowbox alternates boards on two faces with a gap you set, and the list counts both faces separately. It is not privacy times two. One hundred feet of 5.5 inch boards with 1 inch overlap is 267 boards before waste.

Does this include labor or the full install price?

No. Prices you type apply only to posts, rails, boards, concrete bags, and gate kits. Empty prices are skipped, and the total stays blank until at least one price is filled in. Labor, delivery, tax, permits, and contractor markup are not added. The page is a materials list for a site-built wood fence, not an install bid. Each gate is one kit. Hinges and a latch are not lines on the list.

Should I order extra boards?

The default adds 10 percent to the boards and 5 percent to the rails, then rounds up. You can change either percentage. Use the actual width, such as 5.5 inches for a 1x6, not the 6 inch name on the rack. The main count runs along the whole fence. Per-bay count in Advanced uses the clear gap between posts and is usually a little lower. Buy the stock length shown on the list.

What length of post, rail, and board do I buy?

Post length is the height plus the bury depth, rounded up to 6, 8, 10, 12, or 16 feet. A 6 foot fence buried 2 feet takes an 8 foot post. Each rail line needs one 2x4 per bay, in the shortest 8, 10, 12, or 16-foot piece that covers the spacing. A 12 foot rail can cover two 6 foot bays. Boards use the shortest of 3, 4, 5, 6, or 8 feet that reaches the fence height.

Why does each gate add two posts?

The fence is counted as one straight run. Gate width comes out of the boards and rails, the run still has a post at each end, and every gate adds two more posts. That matches a gate in the middle of the line. A gate at the very end may share a post, so the list can be one post high on purpose. The drawing is only a schematic and does not place the gate in the yard.

Browse lumber calculators

By Lumber Calc Editorial Team · Checked against the 2021 IRC & AWC DCA 6 · 2024 sections not yet verified · Last updated Nov 3, 2026