Skip to content
Trowelly

Fence Calculator

Enter your fence length, post spacing and height to get a material list of posts, rails, pickets and concrete for setting the posts.

Units
ft
ft

8 ft (2.4 m) is typical for wood privacy fences.

ft
in
in

0 for a privacy fence.

in

About 3× the post width: 10–12 in for a 4×4 post.

ft

Usually 1/3 of the post’s above-ground height and below your frost line.

%
Add prices for a cost estimate (optional)
each
each
each
per bag

Results

Posts
14 posts
Sections
13 sections
Rails
39 rails
Pickets
230 pickets
Concrete bags
42 50 lb bags
Concrete per post
0.92 ft³
Minimum post length
8 ft
  • 3 bags per post, 12.89 ft³ of concrete in total.
  • Add a post for each gate and at every corner or end that does not fall on the spacing. Check local rules on fence height and property lines, and call 811 before digging.

Where to buy

Quantities from your result, with links to search each store.

Your ZIP code stays on this device. We use it to show stores and suppliers in your area.

You may also need

Call 811 before digging post holes.

Links search each store’s website. Check prices and stock before you go.

How to use the fence calculator

  1. Enter the Total fence length, Post spacing and Fence height.
  2. Choose Rails per section and a Fence style (pickets or posts and rails only).
  3. For pickets, enter the Picket width and Gap between pickets (0 for privacy).
  4. Enter the Post hole diameter and Post hole depth, and choose a Concrete bag size.
  5. Optionally add prices for posts, rails, pickets and concrete.

How it works

The calculator assumes a straight run of 4×4 posts (3.5 in square) and subtracts the post from each hole’s concrete volume. Bags per post are rounded up using typical premixed bag yields: 0.30 ft³ for 40 lb, 0.375 ft³ for 50 lb, 0.45 ft³ for 60 lb and 0.60 ft³ for 80 lb.

Minimum post length is the fence height plus the hole depth. Add a post for each gate and at every corner or end that does not fall on the spacing.

Sections = fence length ÷ post spacing, rounded up; posts = sections + 1

Rails = sections × rails per section

Pickets = fence length (in) ÷ (picket width + gap) × (1 + extra %), rounded up

Concrete per post = (π × (hole diameter ÷ 2)² − 3.5 in post²) × hole depth

Worked example

With the default inputs, a 100 ft fence with 8 ft spacing has 13 sections and 14 posts. Three rails per section gives 39 rails.

5.5 in pickets with no gap need 1,200 ÷ 5.5 = 218.2, or 229.1 with 5% extra, so 230 pickets. Each 10 in × 2 ft hole holds 0.92 ft³ of concrete, which is 3 bags of 50 lb, or 42 bags for 14 posts. Posts should be at least 8 ft long.

Tips before you buy

  • Call 811 before digging so buried utilities can be marked.
  • Set post holes below your local frost line; your building department can tell you the depth.
  • Confirm property lines and check local rules and any HOA rules on fence height and setbacks before you build.
  • Use posts rated for ground contact, and slope the concrete top away from the post to shed water.

Frequently asked questions

How many posts do I need for a 100 ft fence?

At 8 ft spacing, a straight 100 ft run has 13 sections and needs 14 posts. Add posts for gates and any extra corners.

How many bags of concrete per fence post?

For a 10 in hole 2 ft deep around a 4×4 post, about 0.92 ft³: three 50 lb bags or two 80 lb bags.

How deep should fence posts be?

A common rule is about one-third of the post’s above-ground height and below the frost line. For a 6 ft fence that means at least 2 ft, so an 8 ft post. Check local code.

How many pickets do I need for a fence?

Divide the fence length in inches by picket width plus gap, then add extra. A 100 ft privacy fence with 5.5 in pickets needs about 230 with 5% extra.

How many rails does a fence need?

Two rails for fences up to about 4 ft, three for 5–6 ft and four for fences over 6 ft.

Results are estimates based on the measurements you enter and typical material properties. Products vary, so check quantities with your supplier and follow product labels and your local building codes. Read the full disclaimer. Last reviewed October 9, 2026.