HowMuchStuff

Fence Calculator

By Taro Schenker | Updated November 16, 2026

Quick Answer: A 100-foot privacy fence with posts 8 feet apart and no gate needs 14 posts, 26 rails (2 per section), and 240 boards 5.5 inches wide including 10% waste, plus 38 bags of 80 lb concrete. Adding one 4-foot gate brings it to 15 posts and 231 boards. A picket fence uses 3.5-inch pickets with 1.75-inch gaps instead of edge-to-edge boards.

How to Calculate Fence Materials

The basic formulas for calculating fence materials:

Posts = ⌈Fence Length / Post Spacing⌉ + 1 + (Gates x 2)
Sections = Posts - 1 - Gates
Rails = Sections x Rails per Section
Pickets = ⌈Fence Length x 12 / (Picket Width + Gap) x (1 + Waste%)⌉
  1. Measure the total linear length of your fence line in feet.
  2. Subtract the width of any gates from the total length.
  3. Divide the fence length by your post spacing (typically 8 feet), round up, and add 1 to get the number of posts. Add 2 posts for each gate.
  4. Multiply the number of sections by your rail count (2 or 3) to get the total rails needed.
  5. Divide the fence length in inches by the board width plus gap to get the number of pickets.
  6. Add 10% for waste from cuts and damaged materials.

Fence Length is the total length minus gate widths. The gap is 0 for privacy and vinyl fences. For chain-link, the calculator counts 2 rails per section (top rail and bottom tension wire) and 50 ft fabric rolls at about $75 each, with no fabric over gate openings. Each gate splits the line into another run with its own end post, so it adds 2 posts and can add a short section that still needs full rails. Concrete follows Quikrete's post-setting instructions: a hole 3 times the post width and half the fence height deep, 6 inches of mix under the post, and 0.60 cubic feet per 80 lb bag, rounded up to whole bags. The hole is 10.5 inches wide for a 4x4 wood post. For a 5x5 vinyl post the calculator uses the 12-inch hole in Weatherables' installation guide instead. Chain-link uses the post sizes in Merchants Metals' residential guide: 2-3/8-inch round end and gate posts (7.1-inch hole) and 1-5/8-inch line posts (4.9-inch hole).

Fence Type Comparison

Compare the lifespan and maintenance requirements of common fence types:

TypeLifespanMaintenance
Wood Privacy15 - 20 yearsStain/seal every 2-3 years
Picket15 - 20 yearsPaint/stain every 2-3 years
Chain Link20 - 30 yearsMinimal; check for rust
Vinyl25 - 30+ yearsOccasional wash; virtually none

Post Spacing Guide

  • 6-foot spacing: Best for areas with high winds, heavy snow loads, or when using heavier boards. Provides maximum strength and rigidity.
  • 8-foot spacing: The most common spacing for residential wood fences. Standard lumber and rails come in 8-foot lengths, minimizing waste and cuts.
  • 10-foot spacing: Typical for chain-link fences and some ranch-style fences. Not recommended for privacy fences as it can cause sagging.
  • Corner and gate posts: Always place posts at corners, direction changes, and on both sides of gates. These posts should be set deeper and with extra concrete.

Have Your Materials List?

Fence Installation Cost Per Linear Foot →

Get fence installation cost per linear foot in your area — materials, labor, gate, and permits — with BLS-sourced carpenter rates.

Related Calculators

Estimates are for planning purposes only. Consult a qualified contractor for critical projects. Actual material requirements may vary based on site conditions, waste, and installation methods.

Material prices are national averages set in February 2026 (the most-used re-checked against retail and supplier listings in November 2026). Labor rates come from BLS OEWS May 2024 wage data. Prices vary by region, season, and supplier.

Frequently Asked Questions

How far apart should fence posts be?▾
Standard fence post spacing is 6 to 8 feet apart, measured center to center. Most residential fences use 8-foot spacing because standard rails come in 8-foot lengths. For chain-link fences, 10-foot spacing is common. Shorter spacing (6 feet) provides extra strength in areas with high winds or heavy loads.
How deep should fence posts be set?▾
Quikrete's post-setting instructions put one-third of the post's overall length in the ground, which is half its height above ground. For a 6-foot privacy fence, that means posts set 3 feet deep, 9 feet long overall. In areas with frost, posts should extend below the frost line (typically 36-42 inches deep) to prevent heaving. Always set posts in concrete for maximum stability.
How much concrete do I need per fence post?▾
Quikrete's instructions call for a hole about 3 times the post width and one-third of the post's overall length deep, with 6 inches of concrete under the post. For a 4x4 post (3.5 inches actual) on a 6-foot fence, that is a 10.5-inch hole 36 inches deep holding about 1.6 cubic feet of concrete, or 2.65 bags of 80-pound mix at 0.60 cubic feet per bag. The calculator rounds the total up to whole bags, so 14 posts take 38 bags. A 4-foot fence needs about 1.8 bags per post. A 5x5 vinyl post on a 6-foot fence takes the 12-inch hole that Weatherables' installation guide specifies, about 3.2 bags. On a 100-foot, 4-foot chain-link fence with 1-5/8-inch line posts and 2-3/8-inch end posts, all 14 posts take 7 bags.
What is the difference between a privacy fence and a picket fence?▾
A privacy fence uses wider boards (typically 5.5 inches) placed with no gap between them, creating a solid barrier usually 6 feet tall. A picket fence uses narrower boards (3.5 inches) spaced apart with gaps (typically 1.75 inches), usually at 3-4 feet tall. Privacy fences block visibility and wind; picket fences are decorative and define boundaries.
How much does it cost to build a fence?▾
At national average labor rates, our fence installation cost calculator puts a 150-foot fence with one gate at $2,100-3,390 for chain-link ($14-23 per linear foot), $3,190-5,860 for wood privacy ($21-39), and $3,970-7,110 for vinyl ($26-47), from basic to premium materials. Materials alone from this calculator, at its default prices, come to $1,136 for a 100-foot privacy fence with no gate.
How long does a fence last?▾
Fence lifespan depends on material and maintenance. Pressure-treated wood privacy fences last 15-20 years, cedar fences 15-25 years, chain-link fences 20-30 years, and vinyl fences 25-30+ years. Regular maintenance such as staining, sealing, and replacing damaged boards extend the life of wood fences.