Fence Cost Calculator

Calculates total fencing project cost from length, material type, and gate count.

Home Per ft Itemized
Rate this calculator · 3.5 (2)

Fence Cost

Per linear ft · materials + labor + gates

Instructions — Fence Cost Calculator

1

Measure fence length

Walk the perimeter and measure linear feet of fencing needed. Subtract gate openings only if the gates are included separately. Typical residential fence projects run 150 to 300 linear feet. Property line surveys are critical — building on the wrong line creates legal issues.

2

Pick material and gates

Chain link is cheapest at ~$9/linear foot installed. Wood and vinyl are mid-range. Wrought iron and aluminum are premium. Set number of gates (typically 1 walk gate plus 1 drive gate for properties with backyard access) and per-gate cost.

3

Toggle labor and read itemized cost

DIY mode shows materials, posts, concrete, gates, and permit only. Contractor mode adds labor at the hours required per material type. Output breaks down every category plus a cost-per-linear-foot figure for comparing contractor quotes.

Property survey first. Get a current property survey before fence work. Building over the line creates legal issues that can force expensive removal.
Permit threshold: most jurisdictions require permits for fences over 6 feet tall. Check local code for height limits in front yards (usually 4 feet).

Formulas

Total fence cost combines materials, posts, concrete, gates, labor, and permits. Each scales differently with project size and material choice.

Total Fence Cost
$$ C_{total} = C_{mat} + C_{posts} + C_{conc} + C_{gates} + C_{labor} + C_{permit} $$
Sum all categories. For a 150-foot wood fence with 1 gate and DIY labor: $3,300 materials + $324 posts + $252 concrete + $250 gate + $100 permit = $4,226 total.
Material Cost
$$ C_{mat} = L \times P_{per\,ft} \times 1.10 $$
Length times per-foot material cost times 10% waste. Wood: $20/ft. Vinyl: $30/ft. Chain link: $9/ft. Aluminum: $35/ft. Wrought iron: $50/ft. Premium woods (cedar, redwood) double the cost.
Posts and Concrete
$$ N_{posts} = \lceil \frac{L}{S} \rceil + 1 + 2g $$
Where S is post spacing (typically 8 ft for wood, 6 ft for vinyl) and g is gate count (each gate needs 2 posts). For a 150-ft fence with 8-ft spacing and 1 gate: ceil(150/8) + 1 + 2 = 22 posts. At $18 per post = $396.
Labor Cost
$$ C_{labor} = \frac{L}{100} \times H_{per\,100ft} \times R $$
Wood fence labor: 5 hours per 100 linear feet. Vinyl: 4 hours. Chain link: 3 hours. Multiply by hourly rate. For 150 ft of wood at $50/hr: 7.5 × $50 = $375. Add 2 hours per gate installation.
Cost per Linear Foot
$$ \text{Cost/ft} = \frac{C_{total}}{L} $$
All-in cost divided by total length. US installed averages: chain link $15-$25/ft. Wood $25-$45/ft. Vinyl $35-$55/ft. Aluminum $40-$60/ft. Wrought iron $60-$100/ft.
Waste Factor
$$ W_f = 10\% \text{ standard, } 15\% \text{ for slopes} $$
Standard 10% waste covers cutting losses and replacement of damaged boards. Steep slopes or curved sections need 15% waste. First-time DIY installs benefit from the higher margin.

Reference

Average Installed Fence Cost by Material (2026)
MaterialMaterial $/ftInstalled $/ftLifespan
Chain link (5 ft)$9$15-$2515-20 yr
Wood pressure-treated$20$25-$4515-25 yr
Wood cedar/redwood$30$35-$6025-40 yr
Vinyl/PVC$30$35-$5530+ yr
Aluminum$35$40-$6040+ yr
Wrought iron$50$60-$10040-60 yr
Composite$45$55-$8030+ yr

Fence cost by length

Approximate total cost for typical residential fence projects with one walk gate. DIY column shows material-only; installed column includes contractor labor.

Wood fence
LengthDIY
100 ft$2,800
150 ft$4,200
200 ft$5,600
300 ft$8,400
Vinyl fence
LengthDIY
100 ft$3,800
150 ft$5,700
200 ft$7,600
300 ft$11,400

Contractor labor typically adds 40-80% to DIY material costs. Add $100-$500 for permit fees in most jurisdictions. Fences over 6 feet tall almost always require permits and may need structural review.

Article — Fence Cost Calculator

Fence Cost Calculator: Total Project Cost Per Linear Foot

A 150-foot wood privacy fence with one walk gate costs about $4,200 in DIY materials or $6,500-$8,000 contractor installed — roughly $28/ft DIY or $43-$53/ft installed. Total = (length × $/ft material × 1.10 waste) + posts + concrete + gates + labor + permit. Wood is the most common at $20/ft material; vinyl runs $30/ft; chain link is cheapest at $9/ft. Always survey property lines before starting work.

Fence cost overview

Fence cost depends on five main variables: length, material, gates, labor inclusion, and local permit requirements. Material runs from $9/ft for chain link up to $50/ft for wrought iron, with wood and vinyl dominating residential applications in the $20-$30/ft range. Installation labor typically doubles material cost for contractor work.

Most residential fence projects fall between 100 and 300 linear feet. A typical backyard perimeter measures 150-200 feet. Property line fences and full property enclosure projects can reach 500-1,000 feet on larger lots. The cost per foot improves slightly with project length as fixed costs (mobilization, permits) spread over more linear feet.

The fence cost formula

Total fence cost equals material cost plus posts plus concrete plus gates plus labor plus permits. Material cost is length times per-foot price times 1.10 waste factor. Posts equal ceiling of length divided by spacing, plus one, plus two per gate. Each post needs about two 80-lb bags of concrete at $7 per bag.

Labor scales with material type: wood takes 5 hours per 100 linear feet, vinyl 4 hours, chain link 3 hours. Multiply by hourly contractor rate ($40-$80 typical). Add 2 hours per gate for installation. Permits run $50-$500 in most US jurisdictions for fences over 50 feet or 6 feet tall.

Did you know

The Treasury of the Marquis de Vauban, written in the late 1600s, documents that hand-built stone walls in rural France cost roughly 3 livres per fathom (about 6 feet) — the equivalent of $200/linear foot in 2026 dollars. Today's $9/ft chain link is one of the cheapest perimeter barriers in human history relative to wages.

Fence cost by material type

Chain link at $9/ft material is the cheapest fence material, installing for $15-$25/ft including labor. Galvanized steel posts and mesh resist rust for 15-20 years. Common heights: 4 feet (residential perimeter), 5 feet (typical backyard), 6 feet (privacy), 8+ feet (commercial security).

Wood pressure-treated pine at $20/ft is the most popular residential choice. Cedar and redwood premium woods at $30/ft cost 50 percent more but last twice as long with proper maintenance. Vinyl/PVC at $30/ft costs the same as premium wood but requires zero maintenance. Aluminum and wrought iron run $35-$50/ft for decorative front yard and pool enclosure applications.

  • Chain link = $9/ft material, $15-25/ft installed
  • PT wood = $20/ft material, $25-45/ft installed
  • Cedar/redwood = $30/ft, $35-60/ft installed
  • Vinyl/PVC = $30/ft, $35-55/ft installed
  • Aluminum = $35/ft, $40-60/ft installed
  • Wrought iron = $50/ft, $60-100/ft installed

Fence cost: posts and concrete

Posts are the structural backbone of any fence. Standard spacing is 8 feet for wood, 6 feet for vinyl, 10 feet for chain link. Each gate needs 2 additional posts (the gate hinges to one and latches to the other). A 150-foot wood fence with one gate needs ceil(150/8) + 1 + 2 = 22 posts.

At $18 per pressure-treated 4×4 post, that is $396 in post materials. Add concrete: each post sets in roughly 2 of 80-lb bags at $7 each, so 22 posts × 2 bags × $7 = $308 in concrete. Combined posts and concrete typically run 12-18 percent of total fence cost.

Fence cost labor breakdown

Contractor labor accounts for 40-50 percent of installed fence cost. Wood fences take longer to install than vinyl due to more cuts and hand-fitting. Chain link installs fastest because the panels stretch between posts in continuous runs. Gate installation runs about 2 hours per gate regardless of material.

Labor rates vary by region: $40-$50/hr in low-cost areas, $60-$80/hr in high-cost coastal markets. The 150-foot wood example at $50/hr: 7.5 hours material labor + 2 hours gate = 9.5 hours × $50 = $475. For chain link same length: 4.5 hours × $50 = $225.

Tip

Get three quotes minimum for any fence project over 100 linear feet. Pricing varies dramatically between contractors — sometimes 50 percent or more for identical scope. Verify each quote includes the same material grade, post depth, gate quality, and warranty terms.

DIY vs contractor fence cost

DIY fence installation saves 40-50 percent versus contractor pricing. The 150-foot wood example: $4,226 DIY versus $6,500-$8,000 contractor. The savings come entirely from labor — material costs are essentially identical whether DIY or contractor.

DIY requires a post hole digger or auger, level, circular saw, drill, and 20-40 hours of work. Most homeowners can complete a 150-foot wood fence in 2-3 weekends with one helper. Premium materials (vinyl, aluminum) take less time. Chain link is fastest but requires a stretcher tool to tension the mesh.

DIY 150 ft wood
$4,200
20-30 hours labor
Contractor 150 ft wood
$6,500-$8,000
Includes labor + warranty

Fence cost permits and HOA

Most US jurisdictions require building permits for fences over 6 feet tall. Some require permits at any height. Front yard fences are typically limited to 4 feet maximum. Side and rear yard fences can go to 6 feet, with permit requirements for 8 feet or taller.

Permit fees run $50-$500 depending on city and fence size. Add $50-$200 for property survey if you don't have a current one. HOA approval is separate from city permit and required even for permit-exempt fence work in covenanted communities. Always check HOA covenants before starting — some prohibit certain materials or colors.

Property line trap

Building a fence over the property line is the most expensive fence mistake. A wrong-side-of-line fence often requires demolition and removal at owner cost, sometimes with damages to the neighboring property. Always have a current survey and confirm property pins before installing posts. Old fences are not reliable indicators of the legal line.

Fence cost estimating mistakes

The first mistake is forgetting waste factor. Material breaks during cutting and shipping. Always add 10 percent (15 percent for slopes or curves). The second mistake is underestimating post count. The gate posts and corner posts often get missed in initial counts, leaving the project short of structural materials.

The third mistake is skipping permit costs in the budget. Even $200 permit fees affect project economics on smaller fences. The fourth mistake is buying low-grade pressure-treated lumber. Ground-contact rated PT lumber lasts 20+ years; above-ground rated PT lumber rated for fence boards fails at the post-soil interface within 10 years.

FAQ

$15-$100 per linear foot installed depending on material. Chain link: $15-$25/ft. Wood: $25-$45/ft. Vinyl: $35-$55/ft. Aluminum: $40-$60/ft. Wrought iron: $60-$100/ft. DIY savings typically 40-50% on labor, but material and post costs stay the same.
Chain link is the cheapest at $9/linear foot in materials (5-foot height, galvanized). Installed cost runs $15-$25/ft. Wood pressure-treated is the next most affordable at $20/ft materials, $25-$45/ft installed. Premium materials like wrought iron run 3-5 times more.
For wood, expect $5,600 DIY or $7,000-$9,000 contractor installed. For vinyl: $7,600 DIY or $9,000-$11,000 installed. Chain link: $3,000 DIY or $4,000-$5,000 installed. Add $100-$500 for permits and $250-$500 per walk gate.
Divide length by post spacing and add 1, plus 2 per gate. Standard spacing: 8 feet for wood, 6 feet for vinyl. For 150 feet of wood fence with 1 gate: ceil(150/8) + 1 + 2 = 22 posts. Post spacing matters for stability — too far apart sags.
Cost = (length × $/ft material × 1.10) + posts + concrete + gates + labor + permit. The 1.10 multiplier adds 10% waste factor. For DIY, labor is zero. For contractor, labor is hours-per-100-ft × hourly rate × length/100.
Usually yes for fences over 6 feet tall, sometimes for any height. Front yard fences typically limited to 4 feet. Permit fees range $50-$500 depending on jurisdiction. HOA approval is separate from city permit and required even for permit-exempt fences in HOAs.
15-25 years for pressure-treated pine, 25-40 years for cedar or redwood. Lifespan depends on climate, soil moisture, and maintenance. Annual staining doubles lifespan. Skipping maintenance halves it. Posts typically fail first at the ground line where moisture concentrates.
About 2 of 80-lb bags per post for typical 4×4 wood posts in 10-inch holes 30 inches deep. For 22 posts: 44 bags, costing $310 in concrete at $7 per 80-lb bag. Quick-set concrete works for residential fences; use standard mix for commercial.
Labor is the main difference — 40-80% of installed cost. DIY saves $1,500-$3,000 on a 150-ft fence in labor charges. Material and post costs stay roughly the same. DIY requires post hole digger, level, saw, and 20-40 hours of work depending on material.
Wood and vinyl dominate residential privacy fencing. Wood is cheaper and easier to repair but needs maintenance. Vinyl is more expensive but maintenance-free. Composite (Trex Seclusions, others) splits the difference at higher price. All three give 6-foot privacy.