Fence Calculator

Planning a new fence? Enter the length, height and style to get the posts, rails, pickets and concrete to buy, plus a cost estimate.

Updated Nov 2026 Formula shown below Feet or meters
ft
total of all runsEnter a number (0 or more)
each adds a postEnter a number (0 or more)
Post spacing center to center
Style
in
a 1×6 is 5.5 inEnter a number (0 or more)
in
0 for privacy, 2–3 for picketEnter a number (0 or more)
Your prices (optional)
$each
Enter a number (0 or more)
$each
Enter a number (0 or more)
$each
Enter a number (0 or more)
$each
Enter a number (0 or more)
You'll need
–
good fences, good neighbors ✌

How to calculate fence materials

A wood fence is a row of sections. Each section runs from one post to the next and gets its own rails and pickets. Divide the fence length by the post spacing and round up to get the number of sections. You need one more post than sections, plus one extra post for each gate.

Posts = (Fence length ÷ Post spacing, rounded up) + 1 + Gates

Rails run between the posts: two per section for fences up to 5 feet tall, three for 6-foot fences and four for 8-foot fences. For pickets, convert the fence length to inches and divide by the picket width plus the gap. A privacy fence has no gap, so the boards sit edge to edge. Gates are usually built from the same pickets, so we don't subtract them.

Pro tip!

If your fence turns corners, each straight side usually ends with a short section. Add one post per corner to be safe, or run the calculator once for each side and add the results.

Worked example: a 100 ft privacy fence

Say you're fencing 100 feet of property line with a 6-foot privacy fence. Posts go 8 feet apart, there's one gate, and the pickets are 1×6 boards (5.5 inches wide) set with no gap.

  1. Count the sections100 ÷ 8 = 12.5 → 13 sections
  2. Add one post, plus one per gate13 + 1 + 1 = 15 posts
  3. Three rails per section at 6 ft13 × 3 = 39 rails
  4. Count the pickets1,200 in ÷ 5.5 = 218.2 → 219 pickets
  5. Three 50-lb bags per post (10-in holes, 2 ft deep)15 × 3 = 45 bags

Rails and pickets by fence style

The style changes how many rails each section needs and how far apart the pickets sit. Wider gaps mean fewer pickets but less privacy.

StyleTypical heightRails per sectionPicket gap
Privacy6–8 ft3 (4 at 8 ft)None, edge to edge
Picket3–4 ft2About 2–3 in
Split rail3–4 ft2–3No pickets

Split rails are sold to fit a set post spacing, so match the rail length to your spacing.

How long should fence posts be?

Quikrete's rule is to bury a third to a half of the post's height above ground. For a 6-foot fence that's 2 to 3 feet in the ground, so buy 8-foot posts at the very least, or 10-foot posts in loose soil and windy spots. An 8-foot fence needs 11- to 12-foot posts. In cold climates, holes often go below the frost line, which can mean deeper holes and longer posts.

Make each hole about three times the post's width: roughly 10 inches for a 4×4. For concrete, the calculator assumes a 10-inch hole dug a third of the fence height deep (at least 2 feet). That's three 50-lb bags per post for fences up to 6 feet, and four for an 8-foot fence. Deeper holes take more, so use the fence post concrete calculator for your exact hole size. Before you dig, check local codes, any HOA rules on height and style, and where buried lines run on your property.

Questions people ask

How many fence posts do I need?

Divide the fence length by the post spacing, round up, and add one. Then add one more for each gate. A 100-ft fence with posts 8 ft apart needs 14 posts, or 15 with one gate.

How far apart should fence posts be?

Six to 8 feet center to center is typical for wood fences. Closer spacing makes a stiffer fence, which helps with tall privacy fences and in windy spots.

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

For 5.5-inch pickets set edge to edge, about 219 (1,200 inches ÷ 5.5). With a 2.5-inch gap between pickets you need about 150.

How much concrete do I need per fence post?

About three 50-lb bags for a 4×4 post in a 10-inch hole 2 feet deep (the hole should be about 3 times the post width). Deeper holes take more. The fence post concrete calculator works it out for any hole size.

Sources

The numbers in this calculator come from these manufacturer specs and public guides. Always check the label on the product you buy.

  1. Post holes 3× the post width, ⅓–½ of the above-ground height deep — Quikrete
  2. Three rails for 6-ft fences, four for 8-ft; bury ⅓ of the post — Universal Forest Products
Was this calculator helpful?

Building out the whole backyard?

See all calculators