LayoutWise

Fence Calculator

Add each straight side of your fence and where the gates go. You get every post placed and counted by type, the rails and pickets (or vinyl panels), and the concrete and gravel for the post holes.

Your fence

1. Style & height
2. Fence runs

One run per straight side. A typical backyard is three runs: two sides and the back.

Run 1
Length
ft
in
Run 2
Length
ft
in
Run 3
Length
ft
in
Gate opening width
ft
in
3. Posts & boards
Boards butt tight; they shrink a little as they dry.
4. Post holes

Rule of thumb: a hole 3 times the post's width, at least 24" deep (or a third of the height above ground), and below your frost line where the ground freezes. Call 811 before you dig.

Posts

30

4x4 x 8 ft

Pickets

495

1x6 x 6 ft

Rails

84

2x4 x 8 ft

Concrete

90 bags

50 lb fast-setting

Post layout

220 ft total, 28 sections
Run 1Run 2Run 3
Line posts (24) End, corner & gate posts (6) Gates (1)

One section, side view

Seen from the rail side
8' 0" on center24" deep, 10" holes

Each post needs about 0.77 cu ft of concrete (3 x 50 lb fast-setting bags) after the post and gravel are taken out.

Shopping list

  • ✓Posts: 30 x 4x4 x 8 ft (pressure-treated, rated for ground contact) — use 6x6 for the 2 gate posts
  • ✓Rails: 84 x 2x4 x 8 ft (3 per section)
  • ✓Pickets: 495 x 1x6 x 6 ft (5% extra for split or warped boards)
  • ✓Picket fasteners: 3119 exterior screws or ring-shank nails, 2 per picket at each rail
  • ✓Rail fasteners: 336 #8 x 3" deck screws (or rail brackets)
  • ✓Gate hardware: 1 set — 2 heavy hinges, a latch and an anti-sag kit each
  • ✓Post concrete: 90 x 50 lb fast-setting bags (3 per post) — or 41 x 80 lb regular mix
  • ✓Drainage gravel: 11 x 0.5 cu ft bags (4" in each hole)

Posts are sized as height above ground plus hole depth, rounded up to the next length sold. Check your property line, HOA rules and local height limits before you build.

How many fence posts do I need?

Split each straight run into equal sections no longer than your post spacing, then add one post. A 100-foot run with posts at most 8 feet apart is 13 sections (each 7' 8 5/16"), so it takes 14 posts. Where two runs meet at a corner they share a post, and every gate needs a post on each side.

Example: a backyard with two 60-foot sides and a 100-foot back with one 4-foot gate. Each side is 8 sections and 9 posts; the back is two 48-foot stretches of 6 sections each, either side of the gate. Sharing the two corners, that's 30 posts.

Post spacing

FenceTypical post spacing
Wood privacy or picket6 to 8 ft on center (8 ft suits 8-ft rails)
Board-on-board, tall or windy sites6 ft on center
Vinyl panelsSet by the panel: about 6 ft or 8 ft on center

With vinyl, the panel width fixes the spacing, so the last section of a run is usually cut down. The calculator counts that cut panel separately so you know which section to measure last.

How deep should fence posts be?

A common rule is to bury a third to a half of the post's height above ground, and never less than 24 inches. A 6-foot fence with posts 24 inches deep needs 8-foot posts; go to 30 or 36 inches and you need 10-foot posts. Where the ground freezes, the bottom of the hole must sit below your local frost line, or frost will lift the posts. Your building department can tell you the depth.

Make the hole about three times the post's width — roughly 10 to 12 inches for a 4x4 and 16 to 18 inches for a 6x6 — and put a few inches of gravel in the bottom so water drains away from the end of the post.

How much concrete per fence post?

Work out the volume of the hole above the gravel, then subtract the post. A 10-inch hole with 20 inches of concrete around a 4x4 holds about 0.77 cu ft. Fast-setting concrete yields about 0.375 cu ft per 50-lb bag, so that's just over two bags — plan on three. An 80-lb bag of regular concrete mix yields about 0.60 cu ft. The calculator rounds bags up for each post, because a part bag left over from one hole rarely gets used in the next.

Rails and pickets

Fences up to about 5 feet tall use 2 rails per section, 6-foot fences use 3, and 8-foot fences use 4. Pickets are counted from the fenced length (gates are left out, since a gate is built or bought separately):

Each picket gets two fasteners at every rail, so a 3-rail fence uses 6 per picket.

Before you dig

Call 811 a few days before you dig so buried utility lines get marked — it's free. Confirm your property line, and check your town's height limits and any HOA rules. Many places cap backyard fences at 6 feet and front-yard fences at 3 to 4 feet.

Building a deck next to it? Try the deck board calculator. Pouring a patio slab? Use the concrete calculator.