UtilFlow

Fence Calculator

Plan a wood privacy fence from total length and height: post count at your spacing, picket count with gap and waste, rails per section, concrete bags per post, and a full materials cost estimate with adjustable unit prices.

1. Enter fence length, height, and spacing

Add the total run in feet, the fence height, and post spacing (8 ft is standard). Adjust picket width and gap to match your lumber.

2. Review the materials list

See post count, picket count with waste, rails per section, and concrete bags per post — all calculated instantly.

3. Check the cost and copy the list

Adjust unit prices to your local store and copy the full materials list for shopping or contractor quotes.

Fence layout

Unit prices ($)

Materials list
14
posts
220
pickets
26
rails
14
concrete bags
$1295
est. cost

13 sections · pickets include 5% waste · concrete in 50-lb bags, 1–2 bags per post is typical

Pro tip — space posts evenly

Posts every 8 ft leave a short 4 ft bay at the end. Instead, mark holes at 7 ft 8 in apart — same materials, but the fence looks planned instead of fitted.

What's next?

Keep the project moving — your numbers carry over automatically.

Related tools

Useful next steps

How fence materials are counted

Post count is the fence length divided by post spacing, rounded down, plus one for the final end post. Picket count is the total length in inches divided by picket width plus gap, plus 5–10% waste for cuts and defects. Rails run horizontally between posts: use 2 rails per section for fences up to 6 feet and 3 rails for taller fences or heavy pickets.

Post setting: depth and concrete

Set posts one-third of their length underground with at least 2 feet of embedment, deeper than the local frost line in cold climates. A 4×4 post in a 12-inch hole 30 inches deep needs about 1.5 fifty-pound bags of concrete. Bell out the bottom of the hole slightly so frost cannot push the footing upward.

What drives wood fence cost

Cedar costs roughly 30–50% more than pressure-treated pine but resists rot and insects longer without chemical treatment. In 2026, professionally installed wood privacy fences run about $25–$45 per linear foot; DIY material costs are roughly half that. Gates, slopes, and old-fence removal add the most to a quote.

Fence Calculator FAQ

How far apart should fence posts be?

Eight feet on-center is standard for wood privacy fences. Use 6-foot spacing in high-wind areas, for fences over 6 feet tall, or around heavy gates that stress the posts.

How many bags of concrete does a fence post need?

Most 4×4 posts set in a 10–12 inch diameter hole need 1 to 2 fifty-pound bags of fast-setting concrete. Bury one-third of the post length, with a minimum of 2 feet in the ground.

What gap should I leave between fence pickets?

For privacy fences, leave 0 to 1/4 inch so boards can expand without buckling. In windy areas a 1/2-inch shadowbox gap reduces wind load while keeping privacy from most angles.

How long does a wood fence last?

Cedar lasts 15–20 years and pressure-treated pine 10–15 years with basic maintenance: keep boards off the soil, seal or stain every 2–3 years, and replace damaged pickets promptly.

Should I space my fence posts evenly?

Yes. Marking posts every 8 ft often leaves a short bay at the end that looks like an afterthought. Divide the run by the number of sections instead — the calculator above shows this even spacing and warns you when the last bay would come up short.

Can I save my fence materials list?

Yes. Click “Add to list” on your result to collect it in a project list (bottom-right button on every DIY page). Name the project, add a note per item, and download the whole list as a PDF to take to the store.