Calcupine

All calculators / Yard, garden and outdoor calculators / Fence calculator

Fence calculator

Enter the total fence length, post spacing and picket size. Get posts, rails, pickets, screws and the concrete to set the posts.

Units

Your project

Need help measuring? Try your phone’s AR measure app, then type the numbers in.

Fence

Pickets

Post holes

Fence calculator by Calcupine

How the fence calculator works

Posts = fence length ÷ post spacing, rounded up, + 1
Rails = (posts − 1) × rails per section
Pickets = fence length (in) ÷ (picket width + gap), rounded up
Concrete per post = hole volume − the part of the 4x4 post inside it

Worked example

A 100 foot fence with posts every 8 feet needs 14 posts and 13 sections, so 26 rails with 2 rails each. With 5.5 inch pickets and 1/2 inch gaps, 200 pickets. Ten-inch holes 30 inches deep hold about 1.15 cubic feet of concrete each around the post, so 14 posts need 30 bags of 80 lb mix with 10% extra.

Post length

Posts must be the fence height plus the depth in the ground. A 6 foot fence in 30 inch holes needs 8.5 foot posts, so the calculator lists 10 foot posts. Cut the tops level after setting them.

Fence styles

StyleGapRails
Classic picket1.5 to 3 in2
Spaced privacyAbout 0.5 in2 or 3
Full privacy (board to board)0 in3 for 6 ft and taller

Before you dig

Sources

Hole size and the 811 reminder above come from these pages. Frost depth, soil and local rules change the right hole depth, so adjust for your site.

Common questions

How many fence posts do I need?

Divide the fence length by the post spacing, round up, and add 1 for the end post. 100 feet with posts every 8 feet needs 14 posts. Add posts for gates and corners.

How far apart should fence posts be?

6 to 8 feet is typical for wood fences; 8 feet matches standard rail length. Use closer spacing in windy areas or for heavy privacy fences.

How deep should fence posts be?

A common rule is about one third of the post's height above ground, and below your local frost line. Many 6 foot fences use holes 24 to 36 inches deep. Check local requirements.

How many pickets do I need for 100 feet?

With 5.5 inch pickets and a 1/2 inch gap, each picket covers 6 inches, so 100 feet (1,200 in) needs 200 pickets. A privacy fence with no gaps needs about 219.

Do I count gate posts separately?

Measure the fence run minus the gate opening, then add the gate's own posts. If the gate sits between two full-length sections, it can share the posts on either side, which saves posts. Decks.com notes this can reduce the number you buy. Follow your gate hardware maker's post requirements.

Is post spacing the same for vinyl and chain-link?

Not always. Decks.com lists wood and composite at 6 to 8 feet, vinyl at 8 to 10 feet and chain-link at 10 to 12 feet, while Angi gives 6 to 8 feet for vinyl and 4 to 10 feet for chain-link. Because published ranges differ, use your manufacturer's spacing and enter it in the calculator.

How do I figure posts for a sloped yard?

Measure the spacing horizontally, not along the ground, and plan for rails that run longer than the post spacing. Decks.com notes that rails on a 20 degree slope can run close to 8 feet 6 inches. Check that your rail stock is long enough.

Guide by Noah Scott · Updated November 5, 2026 · Formulas tested against worked examples · How we calculate · Report a mistake

Add this calculator to your site

Free for blogs and contractors. Copy the code into any page that accepts HTML.