Wood Fence Calculator

Plan your wood fence build with a clear material breakdown: posts, rails, pickets, lumber linear feet, concrete bags, and optional pricing.

Home 6 inputs Concrete & cost
Rate this calculator

Sections · posts · rails · pickets

Concrete bags · linear feet of lumber

Instructions — Wood Fence Calculator

1

Enter fence length and height

Type the total linear length and fence height. The defaults match a 100-ft, 6-ft tall residential perimeter — the most common starting point. The calculator handles any size from 10 to 1,000 ft.

2

Set post spacing and picket gap

Post spacing is typically 6-8 ft. Closer spacing is sturdier but uses more posts. Picket gap of 0 in gives a privacy fence; 1-2 in gives a semi-open look. Choose to match your aesthetic and privacy needs.

3

Read the material list

The headline shows posts, rails, and pickets. Below that are concrete bags, lumber linear feet, and optional picket cost. Fences 6 ft or taller automatically use 3 rails per section instead of 2.

Quick rule: 1 post per 8 ft of fence + 1 extra at the end + 2 per gate.
Pickets: for a 6 ft privacy fence with 5.5 in pickets, expect about 22 pickets per 10 ft of fence.

Formulas

The calculator uses standard residential fencing geometry and IRC-compatible footing volumes.

Number of Posts
$$ N_{posts} = \left\lceil \frac{L_{eff}}{S} \right\rceil + 1 + N_{gate} $$
L_eff = effective fence length (subtracting gate widths). S = post spacing. +1 accounts for the end post. Each gate adds an extra post.
Number of Sections
$$ N_{sections} = \left\lceil \frac{L_{eff}}{S} \right\rceil $$
Each section spans from one post to the next, with one rail set per section.
Rails per Section
$$ R/section = \begin{cases} 2 & \text{if height} < 6\,\text{ft} \\ 3 & \text{if height} \geq 6\,\text{ft} \end{cases} $$
Two rails (top and bottom) are sufficient for fences under 6 ft. A middle rail is added for taller fences to support the pickets and resist wind load.
Number of Pickets
$$ N_{pickets} = N_{sections} \times \left\lceil \frac{S \times 12}{W + G} \right\rceil $$
W = picket width (inches), G = picket gap. Multiply S by 12 to convert section length to inches. Round up so a partial picket fills the end of each section.
Concrete Volume
$$ V_{concrete} = N_{posts} \times 0.5\,\text{ft}^3 $$
Standard residential post hole is 8 × 8 × 24 in deep, giving about 0.5 cu ft per post after accounting for the post itself. Deeper holes for taller fences or frost-line burial use 0.75-1.0 cu ft.
Concrete Bags Needed
$$ N_{bags} = \left\lceil \frac{V_{concrete}}{0.45} \right\rceil $$
A 60-lb pre-mixed concrete bag (Quikrete or equivalent) yields about 0.45 cu ft when mixed. An 80-lb bag yields about 0.6 cu ft.

Reference

Common fence configurations
HeightPost spacingRails/sectionUse case
4 ft6-8 ft2Front yard / pet
5 ft6-8 ft2Property line
6 ft6-8 ft3Standard privacy
8 ft5-6 ft3-4Pool / max privacy (check code)

Wood type comparison

Typical 2024 US prices per board foot of dimension lumber.

Pressure-treated
ItemCost
2×4 picket$0.85-1.20/bf
4×4 post (8 ft)$15-22
4×4 post (10 ft)$22-32
Lifespan15-25 yrs
Cedar
ItemCost
1×6 picket (6 ft)$5-9 each
4×4 post$30-50
Cedar board$2.00-3.50/bf
Lifespan15-25 yrs

Article — Wood Fence Calculator

Wood fence calculator: sections, posts, rails, and pickets

A wood fence calculator estimates how many posts, rails, pickets, and bags of concrete you need for a fence of a given length, height, and post spacing. For a typical 100 ft, 6 ft tall privacy fence with 8 ft post spacing and 5.5 in pickets butted tight, you need 13-14 posts, 36-39 rails, and about 220 pickets, plus 14 bags of 60-lb concrete.

The material list drives the project budget, the truck load to the job site, and the time it takes to build. Sizing a fence correctly before buying lumber saves multiple trips to the supply yard and helps you negotiate a single bulk delivery. The calculator handles every typical residential layout, including gates and varying post spacing.

What a wood fence calculator estimates

Inputs are fence length (ft), height (ft), post spacing (ft), picket width (in), picket gap (in), number of gates, and optional price per picket. The calculator returns the section count, post count (including extra posts for gates), rail count (2 or 3 per section based on height), picket count, lumber linear feet for posts/rails/pickets, concrete volume and bag count, and an optional total picket cost.

The standard assumptions: 4-ft wide gates, 0.5 cu ft of concrete per post hole, an extra post per gate, 6-in extra picket length above ground for clearance, and 2.5 ft of post buried below grade. Tweak these in your local code zone if your frost depth, gate width, or fence style differs.

Did you know

The "split-rail" fence — the classic American zigzag of overlapping wood rails without posts — predates nailed fencing by over a century. Settlers used it because it required no metal hardware and could be assembled with an axe alone. A modern picket fence has more parts (posts, rails, pickets, hardware, concrete) but is far stronger.

Anatomy of a wood fence

A standard residential wood fence has four major components: posts (the vertical supports buried in concrete), rails (the horizontal members spanning between posts), pickets (the vertical face boards attached to the rails), and hardware (fasteners, hinges, latches). Concrete anchors the posts. Gates are panels with hinges and a latch, sharing posts with adjacent fence sections.

Heights run 3 to 8 feet. The 6-ft height is the residential privacy standard. Pool codes often mandate 4-5 ft with no climbing footholds. Front yard fences are often 3-4 ft for visibility. Beyond 8 ft, most jurisdictions require permits and engineering review for wind-load resistance.

Standard fence components per 100 ft
Posts: 13-14 (8-ft spacing, 1 gate)
Rails: 24-36 (height-dependent)
Pickets: ~220 (5.5 in, tight)
Concrete: ~14 × 60-lb bags
Hardware: ~$50-100

Wood fence post spacing and depth

Post spacing of 6-8 feet is standard. Closer spacing (4-6 ft) gives a sturdier fence but uses more posts and concrete. Wider spacing (8 ft) saves cost but requires heavier rails (2×6 instead of 2×4) and often a middle rail. Beyond 8 ft is impractical for residential framing without bracing.

Post depth follows a simple rule: one-third of the fence height plus 6 inches, with a 24-in minimum. For a 6-ft fence, that is 30 in below grade. In cold climates, set posts at or below the frost line — Minnesota or Maine frost depths can reach 48 in. Frost heave is the most common cause of fence post failure in northern US states.

Picket width, gap, and layout

Common picket widths: 3.5 in (1×4 actual), 5.5 in (1×6 actual), 7.25 in (1×8 actual). For privacy, set the gap to 0 in and butt the pickets tight. For a semi-open look, 1-2 in gaps work well. For a picket-style decorative fence, 2-4 in gaps maintain transparency while keeping pets contained.

Picket count per section = ceiling((spacing × 12) / (picket_width + gap)). For 8 ft spacing, 5.5 in pickets, 0 in gap: (96 / 5.5) = 17.5, rounded up to 18 pickets per section. Plan to order 5-10% extra for cutoffs, knot-hiding, and rejects.

  • Standard fence height = 6 ft (privacy)
  • Post spacing = 6-8 ft (8 ft most common)
  • Post depth = 1/3 height + 6 in, min 24 in
  • Rails: 2 sections under 6 ft, 3 for ≥6 ft
  • 1×6 picket actual width = 5.5 in
  • 1×4 picket actual width = 3.5 in
  • Concrete per post = ~0.5 cu ft (1 × 60-lb bag)

Wood fence material types and lifespan

Three common wood choices dominate residential fencing. Pressure-treated southern pine ($0.85-1.20 per board foot, lifespan 15-25 years with maintenance) is the budget standard. Western Red Cedar ($2-3.50 per board foot, lifespan 15-25 years without treatment) costs more but resists rot and insects naturally. Redwood ($2.50-4 per board foot, lifespan 20-25+ years) is the premium option but is regionally limited to the western US.

Pressure-treated
$0.85-1.20/bf
Budget, 15-25 yr life
Cedar
$2-3.50/bf
Natural, 15-25 yr life

Composite fencing ($3.50-6 per board foot) and vinyl-clad alternatives last 25-30+ years but cost 2-3x more upfront. For a 100-ft fence, the lifecycle cost (material + replacement) often favours cedar over pressure-treated, even though the initial spend is higher.

Wood fence cost per linear foot

For a 6-ft tall, 8-ft post spaced privacy fence, expect $15-25 per linear foot in pressure-treated materials only, or $30-40 in cedar. Add roughly $30-50 per linear foot for professional installation labour. Total installed costs land at $45-90 per linear foot.

A 100-ft pressure-treated privacy fence costs about $1,500-2,500 in materials, or $4,000-7,500 installed. The same fence in cedar runs $3,000-4,000 materials, $7,500-12,000 installed. Gates, hardware, and post caps typically add $50-150 per gate.

Tip

For a DIY build, save by buying lumber from a builder's supply (not a big-box store) and renting a one-man post hole auger for the day. The auger digs in 30-60 seconds per hole versus 5-15 minutes by hand, turning a 14-post project from a full weekend into an afternoon.

Common wood-fence mistakes

Three errors recur. First, undersized post holes. A 6-ft fence needs at least 30-in deep posts in concrete, not 18 or 24. Shallow posts heave with frost and lean within a couple of years. Second, forgetting gate posts. Gates need double posts (one each side) and heavier hinges than fence sections. Add 2 extra posts and an extra rail for each gate. Third, picket spacing miscounts. The 5.5-in figure is the actual planed width of a "1×6" picket, not the nominal 6 inches. Using 6 in in the calculator underestimates picket count by about 9%.

Check local code before building

Most US jurisdictions limit fence height to 6 ft in side and rear yards, 4 ft in front yards, and require permits above those heights. Pool codes often mandate 5 ft minimum, climbing-resistant. Property-line setbacks vary. Always check with your local building department before construction to avoid mandatory removal or fines.

FAQ

For a 100 ft fence with 8 ft post spacing and one 4-ft gate, you need about 13 posts: (100 - 4) / 8 = 12 sections, so 13 line posts. Add one more for the gate's second post = 14 total. Tighter spacing (6 ft) needs more posts: 17-18 total.
6 to 8 feet is standard. Tighter spacing (6 ft) is stronger but uses more posts. Wider spacing (8 ft) saves money but needs heavier rails (2×6 instead of 2×4) and may require a third middle rail for fences over 5 ft tall. 8 ft is the practical maximum for residential.
For 5.5 in wide pickets butted tight (0 in gap) on a 100 ft fence: about 220 pickets (100 ft × 12 in/ft ÷ 5.5 in). For 5.5 in pickets with 2 in gaps (semi-open style): about 160 pickets. Always order 5-10% extra for cutoffs and damaged boards.
At minimum, one-third of the fence height plus 6 inches, but never less than 24 inches. For a 6 ft fence: 6 × 12 ÷ 3 + 6 = 30 in below grade. In areas with frost line below 30 in, set posts to or below the frost line to prevent heaving. Cold zones may need 36-48 in deep.
About 0.5 cubic feet per post, which equals approximately 1 × 60-lb bag of Quikrete or similar pre-mix. For an 8 × 8 × 24 in deep hole that displaces about 0.89 cu ft total, the 4×4 post itself takes up the rest. Larger holes or 6×6 posts in heavy clay may need 0.75 cu ft (about 1.7 bags) each.
15-25 years for ground-contact rated pressure-treated lumber, with proper maintenance (staining or sealing every 3-5 years). Untreated softwoods rot in 5-10 years when in ground contact. Cedar lasts 15-25 years without treatment due to natural oils. Composite alternatives last 25-30+ years but cost 2-3x more.
For a 6 ft tall fence: 3 horizontal rails per section (top, middle, bottom). Below 6 ft, 2 rails are usually sufficient. The middle rail prevents the pickets from warping and gives wind-load support. Each section's rails span between adjacent posts, so total rails = sections × rails-per-section.
Material cost runs $15-25 per linear foot for pressure-treated, $30-40/ft for cedar, $40-60/ft for composite. Add $30-50 per linear foot for professional labor (so DIY saves about half the project cost). A standard 100 ft pressure-treated privacy fence runs roughly $1,500-2,500 materials only, or $4,000-7,000 with installation.