Privacy Fence Calculator

Privacy fence calculator for wood fences 6–8 ft tall.

Home Posts/rails/pickets Concrete Cost/ft
Rate this calculator · 3.0 (1)

Privacy Fence

6-8 ft tall · materials + cost · per linear ft

Instructions — Privacy Fence Calculator

1

Enter the run and height

Total fence length in linear feet (default 100 ft) and height (6 ft is the most common privacy height, 8 ft is the max in most US zoning codes). The calculator picks the right number of rails: 2 for ≤5 ft, 3 for 5–7 ft, 4 for above 7 ft.

2

Set spacing and picket width

Standard post spacing is 8 ft (matches 8-ft 2×4 rail lengths). Picket width default is 5.5 in (actual width of nominal 1×6 lumber), gap 0.5 in. Tighter gap = more privacy and more pickets.

3

Read material list and cost

Headline is post count. Grid shows sections, posts, rails, pickets, concrete bags, total material cost, and cost per linear foot. Adjust the cost-per-post and cost-per-picket inputs to match local lumber yard pricing.

Formulas

Posts
$$ N_{posts} = \lceil L / s \rceil + 1 $$
Sections rounded up, plus one for the end post. A 100-ft fence at 8-ft spacing: ceil(100/8) + 1 = 14 posts.
Rails per section
$$ R = \begin{cases} 2 & h \le 5\,ft \\ 3 & 5 \lt h \le 7\,ft \\ 4 & h \gt 7\,ft \end{cases} $$
Code minimum increases with height to prevent picket bow and rail sag. Three rails is the most common pattern for 6-ft fences.
Pickets per section
$$ P = \lceil \frac{s \cdot 12}{w + g} \rceil $$
Section width in inches divided by (picket width + gap). 8-ft sec × 12 = 96 in; with 5.5-in pickets at 0.5-in gap = 96 / 6.0 = 16 pickets per section.
Total pickets
$$ N_{pickets} = P \cdot \text{sections} $$
For a 100-ft × 6-ft fence at 8-ft spacing: 13 sections × 16 pickets = 208 pickets. At $2.50 each that is $520 just for pickets.
Concrete bags
$$ N_{bags} = N_{posts} \cdot 1 $$
Rule of thumb: 1 × 60-lb bag (0.45 ft³) per post for a 4×4 post in a 10-inch hole. Larger or deeper holes need 2–3 bags.
Cost per linear foot
$$ \$/ft = \frac{\text{total material cost}}{L} $$
Typical 2026 wood privacy fence: $8–$15/ft materials, $20–$50/ft installed by contractor. DIY saves the labor portion (about 60% of installed cost).

Reference

Wood privacy fence quick estimate (per 100 linear ft)
HeightPosts (8-ft spacing)Rails1×6 picketsMaterial cost
4 ft1426 (2/sec)~200$650–$900
6 ft1439 (3/sec)~210$900–$1,300
8 ft1452 (4/sec)~210$1,200–$1,700
10 ft (max code)17 (6-ft spacing)68 (4/sec)~265$1,800–$2,400

Wood species and lifespan

Material lifespan
MaterialLifespan
Pressure-treated pine15–20 yr
Western red cedar15–30 yr
Redwood20–30 yr
Cypress20–25 yr
Composite25+ yr
Vinyl20–30 yr
Per-linear-foot cost (2026)
Material$/ft installed
Pressure-treated$25–$40
Cedar$30–$50
Redwood$40–$60
Composite$45–$75
Vinyl$30–$50

Article — Privacy Fence Calculator

Privacy Fence Calculator: Posts, Pickets, and Total Cost

A standard 6-foot wood privacy fence at 8-foot post spacing needs 14 posts, 39 rails, and about 210 pickets per 100 linear feet, plus 14 × 60-lb bags of concrete. Material cost runs $900-$1,300 in 2026 US prices for pressure-treated pine ($9-$13 per linear foot materials, $25-$50 installed). Cedar costs 30-50 percent more in materials but lasts twice as long. The standard formula: posts = ceil(length / spacing) + 1, pickets per 8-ft section = 16-17 at 1×6 lumber with 0.5-inch gap, rails per section = 2 for ≤5 ft height, 3 for 5-7 ft, 4 above 7 ft.

This calculator handles standard wood privacy fence layouts. Enter total length in feet, height (3-12 ft), post spacing (4-10 ft), and picket width and gap. It outputs posts, rails, pickets, concrete bags, plus material cost and cost per linear foot using your input prices.

Wood privacy fence basics

A privacy fence has three layered systems: posts (4×4 vertical members set in concrete), rails (2×4 horizontal members spanning between posts), and pickets (1×6 or 1×4 vertical boards nailed to rails for the privacy face). Picket gap determines privacy: 0 inches for full privacy, 0.5 inch standard, 1 inch for semi-private, 2 inches for shadow-box (transitions from solid privacy to airflow).

The standard 6-foot height balances privacy (blocks all sightlines of adults) with cost and code compliance. Most US municipalities cap residential privacy fences at 6 feet without a permit. 8-foot fences require permits and engineered wind-load designs. Below 4 feet the fence isn't really "privacy" — it shows everything.

Privacy fence posts and spacing

Standard post spacing is 8 feet on center. This matches the 8-foot length of 2×4 rails and 1×6 pickets sold at home centers, minimizing cutting waste. For windier sites or 8-foot tall fences, drop spacing to 6 feet — about 33 percent more posts but dramatically less rail and picket sag.

Post count = ceil(length / spacing) + 1. The +1 accounts for the closing end post. For a 100-foot fence at 8-foot spacing: ceil(100/8) + 1 = 13 + 1 = 14 posts. Posts are 4×4 pressure-treated pine, 8 feet long for a 6-foot fence (6 feet above grade + 2 feet buried + a few inches for trim). Set in concrete with 1 × 60-lb bag per post.

Did you know

The 8-foot post spacing standard exists because pressure-treated 2×4 rails are 8 feet long. Stretching to 10-foot spacing means buying 10-foot rails (premium price) and accepting more sag. Shrinking to 6-foot spacing means more posts and more concrete but stiffer fence. The post spacing decision compounds: every foot of extra spacing requires roughly 33% more rail bending strength. Modern engineered fence designs use 10-foot spacing with welded steel posts because wood rails would sag too much.

Rails, pickets, and fence height

The rail count per section depends on fence height. Under 5 feet uses 2 rails (one near the top, one near the bottom). 5-7 feet uses 3 rails (top, middle, bottom). Above 7 feet uses 4 rails. The middle rails support the pickets at intermediate points, preventing cupping and bowing. Skip a middle rail and pickets twist over time, particularly in humid climates.

Picket count per section uses the formula: pickets = ceil(section width in inches / (picket width + gap)). For an 8-foot section (96 inches) with 5.5-inch pickets and 0.5-inch gap: 96 / 6 = 16 pickets per section. Across 13 sections of a 100-foot fence: 208 pickets. Most home centers sell pickets in bundles of 50 or 100; round up to the next bundle.

Privacy fence material cost

Per 100 linear feet of 6-foot pressure-treated fence in 2026 US prices: 14 posts at $14 each = $196; 39 rails (2×4×8) at $8 each = $312; 208 pickets (1×6×6) at $2.50 each = $520; 14 × 60-lb concrete bags at $5.50 each = $77; hardware (brackets, screws) about $130. Total materials: roughly $1,235 — about $12 per linear foot.

Cedar bumps the cost by 30-50 percent in materials: posts $20, rails $14, pickets $4. The same 100-foot fence in cedar runs $1,700-$1,900 in materials. Composite (Trex Seclusions, TimberTech, AZEK) runs $3,500-$5,000 in materials and is largely self-installing because the panels snap together — but the cost gets steep for big runs.

100-ft × 6-ft fence material list
Posts (4×4×8 PT) 14 × $14 = $196
Rails (2×4×8 PT) 39 × $8 = $312
Pickets (1×6×6 PT) 208 × $2.50 = $520
Concrete (60-lb) 14 × $5.50 = $77
Hardware + screws ~$130
Total materials ~$1,235 ($12.35/ft)

Wood species and fence lifespan

Pressure-treated pine (the budget standard) lasts 15-20 years. The pressure treatment forces preservative deep into the wood, protecting against rot and insects. Western red cedar lasts 15-30 years naturally without chemical treatment — its heartwood contains natural oils that resist decay. Redwood is similar to cedar but more expensive and harder to find outside the West Coast.

Avoid untreated spruce-pine-fir (SPF) for any fence component touching the ground or atmospheric moisture. SPF in ground contact lasts 3-5 years before failure. Even untreated cedar can fail prematurely if the heartwood-to-sapwood ratio is wrong (sapwood has none of the natural preservative oils). For maximum lifespan, choose pressure-treated for posts and ground-contact rails, then any rot-resistant species for pickets above grade.

Fence permits and property lines

Most US municipalities require permits for any fence above 6 feet. Some cities require permits for any fence over 4 feet, particularly in front-yard locations. Always check before starting; a contractor can pull the permit on your behalf for $50-$150, a small fraction of project cost. Building without a permit risks tear-down orders, which are expensive and embarrassing.

Property line surveys are worth the $300-$600 cost before building a privacy fence. Stake the corners and run string lines along the legal property edge, then build inside that line by 3-6 inches. Building "on" the line creates ambiguity that becomes a problem when the property sells; building 1 foot inside the line creates a maintenance strip you can mow without trespassing.

Common privacy fence mistakes

The first mistake is undersizing posts. A 4×4 post is the minimum for a 6-foot fence; 6×6 posts are stronger but rarely needed. Cheaping out with 3×3 or 2×4 posts produces a fence that leans within 5 years. The second mistake is shallow post holes. Code minimum is 30 inches depth or below frost line, whichever is greater. Shallower posts heave in winter and lean in spring.

Don't build on the property line — pull back 3-6 inches

Fences built directly on the surveyed property line create maintenance access problems and shared-ownership ambiguity. Always offset 3-6 inches inside your line. This gives you mowing access without trespassing on the neighbor and avoids the "is it my fence or hers" disputes that surface when one or both properties change hands.

The third mistake is skipping the kickboard (rot board) at the bottom of pickets. Pickets touching dirt wick moisture into the wood and rot within 5 years. The fix: install a 2×6 horizontal board at the bottom, with pickets nailed to it sitting 1-2 inches off the ground. The kickboard rots first, then can be replaced cheaply.

  • Posts formula = ceil(length / spacing) + 1
  • Standard spacing = 8 ft on center
  • Rails per section = 2 (≤5 ft), 3 (5-7 ft), 4 (>7 ft)
  • Pickets per 8-ft section = 16-17 (1×6 with 0.5-in gap)
  • Concrete = 1 × 60-lb bag per post
  • PT pine material cost = $9-$13 per linear foot
  • Permit threshold = typically 6 ft tall
  • Post hole depth = 30 in or below frost line

FAQ

At standard 8-ft post spacing: 14 posts (13 sections + 1 end post). At 6-ft spacing for extra wind resistance: 18 posts. Larger spacing means fewer posts but more rail and picket sag — 8 ft is the conventional compromise.
Backyard typically 6 ft, front yard 4 ft, side yard 6 ft. Most US municipalities cap residential privacy fences at 6 ft without a permit and 8 ft with a permit. Always check local zoning before buying materials; corner lots and historic districts often have stricter rules.
8 feet on center. This matches the standard length of 2×4 rails and 8-ft 1×6 pickets, minimizes cutting waste, and gives strong wind resistance for 6-ft fences. For tall (8+ ft) fences or windy sites, drop to 6-ft spacing.
17 pickets at 5.5 in width with 0.5 in gap (96 in ÷ 6 in = 16, plus 1 to cover the seam). At zero gap (tongue-and-groove style): 18 pickets. At 1-inch gap (semi-private): 15 pickets. The calculator handles the rounding.
In 2026 US prices: $8–$15/ft for materials, $20–$50/ft installed. A 100-ft × 6-ft pressure-treated fence costs about $1,000 in materials. With professional installation: $2,500–$4,000 total. Cedar bumps materials to $1,500. Composite/vinyl: $2,000–$3,500 materials.
30 inches minimum or below frost line, whichever is greater. For a 6-ft fence: 30-in deep, 10-in diameter, with 4-6 in of gravel at the bottom. Posts buried less than 24 inches in clay soil will start leaning within 5 years from wind load and freeze-thaw.
Western red cedar if budget allows — naturally rot-resistant, 15–30 year lifespan, dimensionally stable. Pressure-treated pine is the budget option (15–20 years) and is what most home centers stock. Avoid untreated SPF (spruce-pine-fir) for any ground contact.
In most US jurisdictions, permits are required for fences above 6 feet. Some cities require permits for any fence over 4 feet. Always check before starting; a contractor pull the permit on your behalf for ~$100, which is a small fraction of the project cost and avoids tear-down orders.