Carpentry & Framing

Fence Calculator

Calculate fence posts, 2x4 horizontal rails, dog-ear pickets, post-hole concrete bags, and gate hardware for privacy and picket fences.

Enter total fence length, fence height, post spacing, picket width, and gate count. The calculator figures line and corner posts, horizontal rails, vertical pickets, and 50-lb concrete bags.

Calculation and worked example reviewed 2026-11-14. See our calculation methodology.

FREE access0 signup
Carpentry & Framing

Enter your measurements

US UNITS
YOUR ESTIMATE
220 pickets · 15 posts to order39 rails (2×4) · 30 bags concrete

Framing: 15 posts (8' OC, 13 bays) + 39 horizontal 2×4 rails (3 per section).

Infill & foundation: 220 pickets (5.5" wide, 5% waste) · 30 bags (50 lb) fast-setting concrete (2 bags/post).

Formula and example

How this calculation works

This estimator converts your entered jobsite inputs (total fence length, fence height, post spacing on-center, picket face width, picket spacing gap, number of walk gates, picket waste & cut allowance) into consistent US trade units, computes the exact geometric baseline first, and then applies any selected waste or order allowance so you can verify both numbers before purchasing materials.

How does the fence calculator formula work?

Sections = ceil(fence length ÷ post spacing); posts = sections + 1 + (gates × 1); rails per section = (height >= 6 ? 3 : 2); rails = sections × rails per section; pickets = ceil((fence length × 12) ÷ (picket width + gap)) × (1 + waste% ÷ 100); concrete bags (50 lb) = posts × 2.
(Fence Calculator)

where:

  • Total fence length – Entered in ft (default reference: 100 ft);
  • Fence height – Entered in selected option (default reference: 6 );
  • Post spacing on-center – Entered in selected option (default reference: 8 );
  • Picket face width – Entered in selected option (default reference: 5.5 );
  • Picket spacing gap – Entered in selected option (default reference: 0.25 );
  • Number of walk gates – Entered in ea (default reference: 1 ea);
  • Picket waste & cut allowance – Entered in % (default reference: 5 %);
The formula

Inputs to result

Sections = ceil(fence length ÷ post spacing); posts = sections + 1 + (gates × 1); rails per section = (height >= 6 ? 3 : 2); rails = sections × rails per section; pickets = ceil((fence length × 12) ÷ (picket width + gap)) × (1 + waste% ÷ 100); concrete bags (50 lb) = posts × 2.

Worked example

Check the math

A 100 ft privacy fence (6 ft height) with 8 ft post spacing, 3 rails, and 5.5 in dog-ear pickets (with 1/4 in gap) requires 14 posts, 39 horizontal 2×4 rails, 220 pickets (with 5% waste), and 28 bags (50 lb) of concrete for post holes.

Quick lookup chart

Common Residential Fence Material Takeoff (6 ft Privacy Fence, 8 ft Spacing)

Calculations include 4×4 posts, three 2×4 horizontal rails, 5.5 in dog-ear pickets (1/4 in gap), and 2 concrete bags/post.

Fence Run LengthLine & End PostsHorizontal 2×4 RailsPickets (w/ 5% waste)
50 ft backyard run8 posts (16 bags)21 rails (7 bays × 3)110 pickets
100 ft property line14 posts (28 bags)39 rails (13 bays × 3)220 pickets
150 ft perimeter20 posts (40 bags)57 rails (19 bays × 3)330 pickets
200 ft perimeter26 posts (52 bags)75 rails (25 bays × 3)440 pickets
Limits and field checks

Before you use this result

Assumes level or uniformly sloped ground using standard wood post-and-rail construction. Stepped racking on steep grades, masonry retaining walls, custom decorative shadowbox patterns, or high-wind coastal engineering require site-specific structural plans.

  • Call 811 (Dig Safe) at least 48 to 72 hours before excavating to locate underground gas, electrical, and telecommunication lines.
  • Dig post holes 8 to 10 inches in diameter to a depth of 1/3 the fence height (at least 24 to 36 inches deep, below the local frost line).
  • Place 3 inches of crushed gravel at the bottom of each hole to allow water to drain away from the post end grain and prevent ground rot.
  • Brace posts plumb with diagonal 2×4 stakes before pouring dry fast-setting concrete; add water per manufacturer instructions.
  • Fasten horizontal 2×4 rails on edge using 3-inch hot-dipped galvanized or exterior polymer-coated star-drive screws.
Questions answered

Calculator FAQ

How deep should fence post holes be dug?+

As a standard rule of thumb, dig post holes to a depth of 1/3 to 1/2 of the fence's above-ground height. For a 6-foot privacy fence, dig at least 24 to 36 inches deep (below your local regional frost line) to ensure posts do not lean over time.

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

A standard 4×4 wood post in an 8- to 10-inch diameter hole requires two 50-pound bags of fast-setting concrete. Heavier 6×6 corner posts or gate hinge posts in 12-inch holes typically require 3 to 4 bags.

Should I use 2 or 3 horizontal rails on a 6-foot fence?+

Building codes and industry best practices recommend three 2×4 horizontal rails (top, middle, and bottom) for any fence 6 feet or taller. Three rails prevent thin 5/8-inch pickets from twisting, warping, or pulling loose in summer heat.

How much gap should be left between privacy fence pickets?+

Pressure-treated pine pickets are saturated with water preservative from the factory and will shrink roughly 1/8 to 1/4 inch as they dry in the sun, so they can be butted tight. Dry western red cedar pickets should be installed with an intentional 1/8 to 1/4 inch gap to allow for wet-weather moisture expansion.

Method references: AFA: American Fence Association residential guidelines