Skip to content

Fence Calculator

Written by Orion Tate Orion Tate
Reviewed by Prof. Omar Farooq Prof. Omar Farooq, PhD in Mechanical Engineering

Last updated 2026-07-10

Enter the total length of a straight wood fence run in feet, pick 6 or 8 foot post spacing, choose 2 or 3 rails per section, and give the picket width in inches with the gap you want between boards. The calculator divides the run into sections, rounds up, and returns posts as sections plus one, rails as sections times rails per section, pickets as the run in inches divided by one picket-plus-gap unit, and concrete at two 50-pound bags per post. It is a takeoff for a straight baseline run, so gates, corners, and slopes will add posts you have to count yourself. Homeowners pricing a yard fence and builders writing a materials list both use it before the lumber order. Have the boundary length measured first.

Fence Calculator

Enter your values below.

Materials List

Enter your details and press “Calculate” to see your results.

Posts are the section count plus one (a 100′ run at 6′ spacing is 17 sections, so 18 posts); rails are sections × rails-per-section; pickets divide the total length by one picket-plus-gap unit. Concrete uses the common rule of two 50-lb bags per post — enough for a 10–12″ hole at 2′ depth in most soils; deeper frost-line footings need more. Gates, corners, and slopes add posts, so treat this as the straight-run baseline.

What Goes Into a Fence Materials List?

A wood fence is a repeating unit — post, rails, pickets — so the whole materials list falls out of the length and three choices: how far apart the posts go, how many horizontal rails carry each section, and how the pickets are spaced. Getting the picket count right matters most; they're the largest line item and the easiest to under-buy when gaps enter the math.

Enter the run length, pick 6′ or 8′ post spacing (6′ resists wind and sag better; 8′ uses fewer posts), 2 or 3 rails (3 for 6′ privacy fences), and your picket width and gap. Standard dog-ear pickets are 5½″ wide; board-on-board privacy uses zero gap. The result is the full list: posts, rails, pickets, and concrete bags.

Setting posts in concrete and want the volume math instead of the bag rule? Use the Concrete Calculator.

How to Calculate Fence Posts, Rails and Pickets

Four lines cover the whole bill of materials:

Sections = ceil( length ÷ post spacing ) Posts = sections + 1 Rails = sections × rails per section Pickets = ceil( length in inches ÷ (picket width + gap) )

Worked example: 100′ of 6′-tall privacy fence at 6′ spacing = 17 sections → 18 posts and 34 rails (2 per section); with 5½″ pickets at ½″ gaps, 1,200″ ÷ 6″ = 200 pickets, plus about 36 bags of concrete at two per post.

Fence Materials by Run Length

Straight runs with 5½″ pickets, ½″ gaps, 2 rails per section — all rows computed by this calculator:

LengthPosts (6′ / 8′ spacing)RailsPickets
50 ft10 / 818 / 14100
100 ft18 / 1434 / 26200
150 ft26 / 2050 / 38300
200 ft35 / 2668 / 50400
300 ft51 / 39100 / 76600

Picket counts don't change with post spacing — only the structure (posts and rails) does. That's why 8′ spacing saves meaningful money on long runs.

Gates, Corners and the Extras to Add

Small planning decisions with outsized material impact:

  • Add a post at every corner, gate side, and grade change — the table above covers straight runs only.
  • A 4′-wide gate consumes about 7 pickets plus hinge/latch hardware and its own 2×4 frame; price gates separately.
  • On slopes, racked (parallel-to-grade) fencing wastes less lumber than stepped panels, but check that your rail stock is long enough for the true diagonal.
  • Set posts with a third of their length in the ground as ballpark (2′ minimum for a 6′ fence) and always below your local frost line.
  • Buy 5–10% extra pickets — culls, splits, and future repairs. Treated lumber shrinks; a snug ½″ gap today widens by itself.

Enter your supplier's per-piece prices against these counts and the whole fence budgets itself line by line.

Frequently Asked Questions

How many fence posts do I need for 100 feet?

At 6′ spacing: 18 posts (17 sections + 1). At 8′ spacing: 14. Add one more for each corner, gate, and significant grade change — those don't follow the straight-run math.

Should fence posts be 6 or 8 feet apart?

8′ is the economic standard and works for most panelized and picket fences. Choose 6′ for tall privacy fences in windy areas, heavy board-on-board designs, or where rails tend to sag — more posts means stiffer runs and shorter rail spans.

How many pickets per foot of fence?

Divide 12″ by picket-plus-gap: standard 5½″ pickets at ½″ gaps come to exactly 2 per foot (200 for 100′). Board-on-board (no gap) needs about 2.2 per foot, and 3½″ pickets at 1″ gaps about 2.7.

How much concrete per fence post?

The common rule is two 50-lb bags per post, which fills a 10–12″ diameter hole around a 4×4 at ~2′ depth. Bigger holes, deeper frost lines, or 6×6 posts push it to 3+ bags — the concrete calculator does the exact volume if you know your hole size.

How deep should fence posts go?

Rule of thumb: a third of the post's total length in the ground, with 2′ as the floor for a 6′ fence — and always below the local frost line so heave doesn't lift the posts. That's why 6′ fences use 8′ or 9′ posts.

How many rails does a fence need?

Two rails handle fences up to about 5′ tall; use three for 6′ privacy fences so pickets don't cup and the mid-span doesn't wave. Three rails on a 100′ run at 6′ spacing means 51 rails instead of 34 — the table shows both.

Methodology. This calculator uses standard construction and material-estimation formulas. It is reviewed and maintained by the Vast Calculators editorial team.

Last updated ·

Results are estimates for general use; verify critical figures independently.

What to Work Out Next

See all Construction Calculators