HowMuchStuff

Fence Calculator

By Taro Schenker | Updated February 11, 2026

Quick Answer: To calculate fence materials, divide your total fence length by post spacing (typically 8 ft) and add 1 to get post count, plus 2 extra posts per gate. Rails = sections x rails per section (2 or 3). Pickets per section = section width in inches / picket width. For privacy fences, use 5.5-inch boards with no gap; for picket fences, 3.5-inch boards with 1.75-inch gaps. Each post needs about 0.33 bags of 80 lb concrete. Add 10% for waste. A 100-foot privacy fence at 8-foot spacing needs 14 posts, 26 rails, and approximately 218 pickets.

Calculate how much fencing material you need for your project. Enter your fence length, height, and post spacing to get the exact number of posts, pickets or boards, rails, and concrete bags. Choose from privacy, picket, chain-link, or vinyl fence types and get an instant cost estimate.

How to Calculate Fence Materials

The basic formulas for calculating fence materials:

Posts = (Fence Length / Post Spacing) + 1 + (Gates x 2)
Rails = (Posts - 1) x Rails per Section
Pickets = (Post Spacing x 12 / Picket Width) x Sections
  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) and add 1 to get the number of posts.
  4. Multiply the number of sections by your rail count (2 or 3) to get the total rails needed.
  5. Calculate pickets per section based on board width and gap, then multiply by the number of sections.
  6. Add 10% for waste from cuts and damaged materials.

Fence Type Comparison

Compare the cost, lifespan, and maintenance requirements of common fence types:

TypeCost / Linear FtLifespanMaintenance
Wood Privacy$15 - $3515 - 20 yearsStain/seal every 2-3 years
Picket$10 - $2515 - 20 yearsPaint/stain every 2-3 years
Chain Link$8 - $1820 - 30 yearsMinimal; check for rust
Vinyl$20 - $4025 - 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.

Formula Summary

Post Count Formula: Calculate the number of fence posts by dividing the fence length by post spacing, adding 1, plus 2 extra posts per gate.

$$\text{Posts} = \lfloor \frac{L_{\text{fence}}}{S_{\text{post}}} \rfloor + 1 + N_{\text{gates}} \times 2$$

Rails Formula: $$\text{Rails} = (\text{Posts} - 1 - N_{\text{gates}}) \times R_{\text{per section}}$$

Pickets Formula: $$\text{Pickets} = \lceil \frac{S_{\text{post}} \times 12}{W_{\text{picket}} + G} \rceil \times \text{Sections} \times (1 + W\%)$$

where $G$ = gap width (0 for privacy fences, typically 1.75" for picket fences) and $W\%$ = waste factor.

ConstantValue
Chain-link roll length50 ft
Concrete per post0.33 bags (80 lb)
Privacy picket width5.5 in (no gap)
Picket fence board width3.5 in + 1.75 in gap
Standard post spacing8 ft

Standard Assumptions: Waste factor of 10% accounts for cuts and damaged materials. Rails per section is 2 or 3 depending on fence height. Chain-link uses 2 rails per section (top rail + bottom tension wire). Chain-link fabric roll cost is approximately $75 per 50 ft roll.

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.

Pricing last verified: February 2026. Material prices vary by region, season, and supplier. Prices shown are national averages for planning purposes.

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?
The general rule is to bury one-third of the total post length. For a 6-foot privacy fence, use 8-foot posts buried 2 feet deep. 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?
Each fence post typically requires about one-third of an 80-pound bag of concrete (approximately 27 pounds). For a standard 4-inch diameter post in a 10-inch diameter hole that is 24 inches deep, you will need roughly 0.33 bags. Larger post holes or deeper settings will require more concrete.
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?
Fence costs vary by material: wood privacy fences cost $15-35 per linear foot installed, picket fences $10-25, chain-link $8-18, and vinyl $20-40. A typical 150-foot residential fence costs $1,500-6,000 depending on material and height. Materials alone are roughly 40-50% of the total installed cost.
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 can significantly extend the life of wood fences.