Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Fence calculator

Enter the fence length, post spacing and picket size to count the posts, rails, pickets and concrete bags, and add prices to get a total.

Concrete for the posts
Prices (optional)

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Setting posts in a lot of concrete? The concrete calculator handles bigger pours. Measuring an odd-shaped yard? The perimeter calculator adds up the sides.

How the materials are counted

A straight fence has one more post than it has sections. Each gate takes the place of a section of pickets but still needs a post on each side, so it adds one post.

Fence (picket) length = total length − gates × gate width
Sections = fence length ÷ post spacing, rounded up
Posts = sections + 1 + gates
Rails = sections × rails per section
Pickets = fence length × 12 ÷ (picket width + gap), rounded up

Concrete for the posts

Quikrete's post-setting guide says to make the hole 3 times the post's width and one-third of the post's length deep, plus 6 inches of gravel at the bottom for drainage. The concrete fills the hole around the post, above the gravel:

Concrete per post (cu ft) = (π × (hole ÷ 2)² − post width²) × post length ÷ 3 ÷ 1,728
Bags = total concrete ÷ bag yield, rounded up

Quikrete lists about 0.375 cubic feet per 50 lb bag of Fast-Setting Concrete Mix. The other bag yields are the figures printed on Quikrete's concrete mix bags. Check your bag, since brands differ.

Worked example

A 100 ft fence with posts every 8 ft and no gates: 100 ÷ 8 = 12.5, so 13 sections and 14 posts. With 2 rails per section, that's 26 rails. Butted 5.5 in pickets: 100 × 12 ÷ 5.5 = 218.2, so 219 pickets.

For concrete, an 8 ft 4×4 (3.5 in wide) needs a 3 × 3.5 = 10.5 in hole, with 8 × 12 ÷ 3 = 32 in of concrete. Per post: (π × 5.25² − 3.5²) × 32 = (86.59 − 12.25) × 32 = 2,379 cubic inches, or 1.377 cu ft. For 14 posts that's 19.27 cu ft, ÷ 0.375 = 51.4, so 52 bags of 50 lb fast-setting mix.

Getting a realistic number

  • Corners and ends: every corner needs its own post. If a side's length isn't a multiple of the spacing, add a post for each corner.
  • Frost line: in cold climates, posts often need to go below the frost depth. Ask your building department.
  • Gates: the picket count doesn't include the gates themselves; gate kits or pre-built gates are counted separately.
  • Slopes: stepped or racked fences on a hill need more pickets and sometimes longer posts.
  • Extras: buy a few spare pickets for splits and bad boards, plus screws or nails, post caps and hardware.
  • Before you dig: call 811 to have underground utility lines marked, and check property lines, permits and HOA rules.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 100 ft, 8 ft spacing, no gates: 14 posts, 13 sections ✓
  • Same fence: 26 rails and 219 pickets (1,200 in ÷ 5.5 in) ✓
  • One 4 ft gate: 96 ft of fence, 14 posts, 210 pickets ✓
  • 8 ft posts, 3.5 in wide, 10.5 in holes 32 in deep: 52 bags of 50 lb fast-setting mix for 14 posts ✓
  • Edge: post spacing of 0 is refused ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How many fence posts do I need for 100 feet?

With 8 ft spacing, 14 posts: 100 ÷ 8 = 12.5, rounded up to 13 sections, plus 1. With 6 ft spacing it's 17 sections and 18 posts.

How far apart should fence posts be?

Usually 6 to 8 feet. 8 ft matches standard rail lengths; 6 ft is stronger for tall privacy fences and windy sites.

How many pickets do I need per 8 foot section?

With butted 5.5 in pickets, 96 ÷ 5.5 = 17.5, so 18 pickets. With a 2.5 in gap between 3.5 in pickets, 96 ÷ 6 = 16.

How many bags of concrete per fence post?

For a 4×4 post 8 ft long in a 10.5 in hole with 32 in of concrete, about 1.38 cu ft: 4 bags of 50 lb fast-setting mix, or 3 bags of 80 lb concrete mix. Quikrete says 2 bags of 50 lb fast-setting mix set a 4 in post in a 10 in hole 2 ft deep.

How deep should fence posts be?

Quikrete's guide says one-third of the post's length, plus 6 inches for gravel. An 8 ft post for a 6 ft fence goes about 32 in deep in concrete, with 6 in of gravel below.

Related calculators