Fence Calculator

Enter the fence length and layout. You get the posts, pickets and rails, and the bags of concrete for the post holes.

Units
Layout

Each corner or break in the line usually adds one post.

Pickets and rails

0 for a privacy fence.

Posts and concrete

A 4×4 post measures 3 1/2 in.

Starting value only. Use the depth your local code and frost line require.

Your estimate

Fence posts
14 posts
Pickets
219 pickets
Rails
39 rails
Rail length
8 ft
Picket length
6 ft
Fence sections
13 sections
Post hole diameter
10.5 in
Concrete volume
14.46 cu ft
Concrete bags
39 bags

Marked lines go on the copied shopping list.

Quick answer

A 100 ft privacy fence with posts every 8 ft has 13 sections and needs 14 posts, 39 rails and 219 pickets 5 1/2 in. wide. Setting 4×4 posts in 10 1/2 in. holes 24 in. deep takes about 14.46 cu ft of concrete, or 39 bags of 50 lb Fast-Setting mix.

Worked out with this calculator using its default inputs. Change any input above to get your own numbers.

How it is calculated

Posts = ⌈Length ÷ Spacing⌉ + 1 + Corners · Pickets = ⌈Length × 12 ÷ (Picket width + Gap)⌉

  1. Sections: fence length ÷ post spacing, rounded up.
  2. Posts: sections + 1, plus one for each corner or break in the line.
  3. Pickets: fence length in inches ÷ (picket width + gap), rounded up. Rails: sections × rails per section.
  4. Hole diameter: 3 × the post width, the QUIKRETE method for setting posts.
  5. Concrete per hole: π × (hole diameter ÷ 2)² × depth, minus the post itself. Total ÷ bag yield, rounded up.
Post spacing Hole about 3 × post width, filled with concrete
Measurements used by the fence calculator.

Assumptions and defaults

  • Bag yields come from QUIKRETE data sheets: about 0.375 cu ft for a 50 lb bag of Fast-Setting Concrete Mix and 0.60 cu ft for an 80 lb bag of Concrete Mix.
  • The hole is 3 times the post width, following QUIKRETE’s post-setting method. Concrete is counted to the full hole depth, slightly more than the method uses, since it stops 3 to 4 in. below the top.
  • The 24 in. hole depth is a starting value. Frost depth and local code decide the real depth.
  • Gates are not counted separately. Treat a gate opening as a section and add hardware and any heavier gate posts yourself.

Worked examples

Each row is computed with this calculator, using the default values for anything not listed (waste, weights and bag sizes shown in the inputs above).

ProjectFence postsPicketsRailsConcrete bags
Backyard privacy fence, 150 ft, 2 corners22 posts328 pickets57 rails61 bags
Picket fence, 60 ft, 4 ft high, 3 1/2 in. pickets with 2 1/2 in. gaps, 2 rails, 6 ft spacing11 posts120 pickets20 rails31 bags
Short run, 40 ft, 80 lb Concrete Mix6 posts88 pickets15 rails11 bags

Before you order

Call 811 before you dig

In the US, 811 is the free call-before-you-dig number. Utility lines get marked before you set a single post.

Mark posts from the corners

Set the corner and end posts first, run a string line, then space the line posts evenly between them so no section is a sliver.

Check permits and HOA rules

Many towns and homeowner associations limit fence height and style, and some need a permit. Check before you buy materials.

Gates need stout posts

A swinging gate puts a lot of load on its hinge post. Plan a deeper hole or a larger post there.

Frequently asked questions

How many fence posts do I need?

Divide the length by the post spacing and round up to get sections, then add one post, plus one for every corner. A 100 ft straight fence at 8 ft spacing has 13 sections and 14 posts.

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

Divide 1,200 in. by the picket width plus the gap. With 5 1/2 in. pickets and no gap, that is 219 pickets, before any spares.

How many bags of concrete per fence post?

For a 4×4 post in a 10 1/2 in. hole 24 in. deep, about 1.03 cu ft per hole: 3 bags of 50 lb Fast-Setting mix (0.375 cu ft each) or 2 bags of 80 lb Concrete Mix (0.60 cu ft each).

How deep should fence posts be?

Local code and the frost line set the depth. The calculator starts at 24 in. so you can see the concrete math; change it to your required depth.

How far apart should fence posts be?

The calculator offers 6 and 8 ft, matching common rail and panel lengths. Use the spacing your fence materials are made for.

Sources and method

Sources checked November 29, 2026. The calculation code is tested against hand-worked examples. See our editorial policy.

  1. QUIKRETE QUIKRETE Fast-Setting Concrete Mix (No. 1004-50) product data sheet (opens in a new tab) Yield of a 50 lb bag (about 0.375 cu ft) and the post-setting method: hole about 3 times the post width.
  2. QUIKRETE QUIKRETE Concrete Mix (No. 1101) product data sheet (opens in a new tab) Yield of an 80 lb bag: about 0.60 cu ft.
  3. National Institute of Standards and Technology NIST Special Publication 811: Guide for the Use of the International System of Units (2008) (opens in a new tab) Exact conversion factors behind the metric switch (1 ft = 0.3048 m, 1 lb = 0.45359237 kg).