Skip to content
Yard Work Math

Fence Calculator

Plan a wood picket or privacy fence: enter the total length, height and post spacing to get posts, rails, pickets and the bags of concrete to set the posts, plus how deep to dig.

Units

Add up every side you are fencing, including gate openings.

6–8 ft is common for wood fences; match your panel width if you use panels.

Each place the fence turns or stops and restarts adds a post.

Gates

Walk gates are usually 3–4 ft; drive gates 10–12 ft.

Rails and pickets

Leave empty for automatic: 2 rails up to 4 ft high, 3 above.

A 1×6 picket is 5.5 in wide; a 1×4 is 3.5 in.

0 for a privacy fence.

Posts and concrete

4×4 = 3.5 in, 6×6 = 5.5 in.

About 3× the post width (Quikrete).

About ⅓ of the post's total length and below your frost line. Check local code.

Extra concrete for irregular holes.

Cost estimate (optional)

Prices vary by region and season. Enter your local prices; nothing is pre-filled.

Enter your local price.

Enter your local price.

Enter your local price.

Enter your local price.

Enter your local price.

Enter your local price.

Posts needed

14

Sections
13
Rails (3 per section)
39
Pickets (incl. 5% waste)
210
80 lb bags of concrete
36
Post length (in ground + above)
9ft
Suggested hole depth
36in

Concrete for the posts

Concrete (all posts, before waste)
0.72yd³
80 lb bags per post
2.5
80 lb bags
36
60 lb bags
48
40 lb bags
71

Without waste

Pickets
200
Panels (if prefab, one per section)
13

Cost estimate

Enter your local prices under Cost estimate to see totals.

  • Check your local code and HOA rules for height limits, setbacks and post depth before you dig. Call 811 to have utilities marked.
8 ft6 ft36 ingrade

How to use the fence calculator

  1. Measure every side you're fencing and add them up, including gate openings. Enter the fence height and post spacing (6–8 ft is common).
  2. Add a post for each corner and each place the fence ends and restarts under Corners and extra ends.
  3. Enter the number and width of gates. Their width is taken out of the picket count and each gate adds a post.
  4. Set the picket width and gap (0 for a privacy fence). Leave rails per section empty for the automatic rule: 2 rails up to 4 ft high, 3 above.
  5. Check the post size, hole diameter and depth, then enter your prices under Cost estimate.

How the fence calculator counts materials

  • Sections = fence length (without gates) ÷ post spacing, rounded up
  • Posts = sections + 1, plus 1 for each corner or extra end, plus 1 for each gate
  • Rails = sections × rails per section (2 for fences up to 4 ft, 3 for taller fences, unless you set your own)
  • Pickets = fence length in inches ÷ (picket width + gap), rounded up, plus a waste allowance
  • Concrete per post = the volume of the hole (π × (diameter ÷ 24)² × depth) minus the part filled by the post

The concrete is then converted to bags: about 0.60 ft³ per 80 lb bag, 0.45 ft³ per 60 lb bag and 0.30 ft³ per 40 lb bag (Quikrete data sheet).

Worked example: 100 ft of 6 ft fence, posts every 8 ft

This is the fence loaded above: one straight run of 1×6 pickets (5.5 in wide) with ½ in gaps on 4×4 posts.

  1. Sections: 100 ÷ 8 = 12.5, rounded up to 13.
  2. Posts: 13 + 1 = 14.
  3. Rails: 13 sections × 3 rails = 39 (3 per section because the fence is over 4 ft).
  4. Pickets: 1,200 in ÷ 6 in = 200, plus 5% = 210.
  5. Concrete: each 10 in hole, 36 in deep, holds π × (10 ÷ 24)² × 3 = 1.64 ft³; the 4×4 takes up 0.26 ft³, leaving 1.38 ft³ per post. For 14 posts plus 10% that is 21.3 ft³, or 36 bags of 80 lb mix (about 2.5 bags per post).
  6. Posts: a 36 in hole under a 6 ft fence needs posts 9 ft long, so you would buy 10 ft posts and trim them.

How deep should fence posts be?

Quikrete's instructions for setting fence posts say to dig the hole about 3 times the post's width and one third of the post's total length deep, and to put about 6 in of dry concrete mix at the bottom before setting the post. For a 6 ft fence, one third of a 9 ft post is 36 in. In cold climates, posts should also go below the frost line so they don't heave. Check your local code: some towns and HOAs set post depth, fence height and how close you can build to the property line.

Posts, rails and pickets by fence length

Fence lengthPosts at 8 ftPosts at 6 ftRails at 8 ft (3/section)Pickets (5.5 in, no gap)
50 ft81021110
75 ft111430164
100 ft141839219
150 ft202657328
200 ft263575437
300 ft3951114655

One straight run with no gates or corners. Add a post for each corner and each gate. Pickets have no waste added.

Fence planning tips

  • Call 811 before you dig. It's the free US call-before-you-dig number; utilities will mark buried lines.
  • Confirm the property line. Use your survey or plat. Many owners set the fence slightly inside the line to avoid disputes.
  • Match the spacing to your panels. If you are using pre-built 8 ft panels, the post spacing must be 8 ft on center; the calculator's section count is then your panel count.
  • Gates need stronger posts. Gate posts carry more load; many builders use a larger post or a deeper hole on each side of a gate.
  • Slopes change the count. On a slope, measure along the ground for rails and stepped panels, and expect a few extra pickets for trimming.

Frequently asked questions

How many fence posts do I need for 100 feet?

With posts every 8 ft, a straight 100 ft fence has 13 sections and 14 posts. With 6 ft spacing it has 17 sections and 18 posts. Add one post for each corner and each gate.

How many bags of concrete do I need per fence post?

For a 4×4 post in a 10 in hole 3 ft deep, about 1.4 ft³ of concrete: 2.3 bags of 80 lb mix, so 3 bags if you mix each hole separately. A 6×6 in a 16 in hole needs considerably more; enter your sizes above.

How deep should a fence post hole be?

Quikrete recommends about one third of the post's total length (36 in for a 6 ft fence on 9 ft posts) and at least below the frost line where the ground freezes. Your local code may set its own minimum.

How many pickets do I need for a fence?

Divide the fence length in inches by the picket width plus the gap. For 100 ft of 5.5 in pickets with ½ in gaps: 1,200 ÷ 6 = 200 pickets, plus about 5% for splits and cuts.

How far apart should fence posts be?

6–8 ft on center is typical for wood fences. Closer spacing makes a stiffer fence and is common for taller privacy fences and windy sites; panel fences must match the panel width.

More fence calculators