Fence Installation Cost and Buyer's Guide (2026)

    How much does a fence cost? Most homeowners pay $15 to $75 per linear foot installed, depending on the material. This guide compares fence installation cost, lifespan and upkeep for cedar, privacy, iron, chain link, vinyl and ranch rail fences, plus gates, HOA rules, permits and post depth. Whether you need a backyard privacy fence, a pool fence, or commercial fencing, start here.

    How Much Does a Fence Cost? 2026 Prices by Material

    Most fence installation cost falls between $15 and $75 per linear foot, depending on the material, height and site. The prices below are installed costs, including materials, labor, concrete footings and standard gates. Terrain, access and fence tear-out / removal of an existing fence change the total. They are estimates, confirmed on site.

    Fence TypeCost Per FootLifespan
    Cedar Privacy Fence$30–$4515–20 years
    Board on Board Fence$35–$5515–20 years
    Horizontal Modern Fence$35–$5015–20 years
    Wrought Iron Fence$45–$7530–50 years
    Aluminum Fence$30–$5020–30 years
    Chain Link Fence$15–$2515–25 years
    Vinyl / PVC Fence$25–$4520–30 years
    Ranch Rail Fence$15–$3015–20 years
    Composite / Trex Fence$35–$6025+ years
    Steel Panel / Metal Fence$40–$6530+ years

    Additional costs to consider: fence removal and disposal ($3–$8/ft), steel post upgrade ($5–$8/ft), fence staining ($1.50–$3/ft), and automatic gate openers ($800–$3,000 per gate). Use our instant satellite estimator for a price on your own property.

    Privacy Fence Cost

    A 6-foot wood privacy fence costs $30–$45 per foot in cedar, or $35–$55 per foot for board-on-board, which is finished on both sides. For a typical 150-foot backyard, that is roughly $4,500–$8,250 before gates, removal or stain.

    Wood Fence Types

    Cedar Privacy Fence

    A cedar privacy fence is the most popular residential fence. Built with Western Red Cedar pickets, it delivers natural rot resistance, insect deterrence and a warm look that suits almost any home. Standard 6-foot cedar privacy fence installation runs $30–$45 per linear foot, making it the best value for full-yard enclosures. Cedar weathers to a beautiful silver-gray if left unstained, or can be preserved with UV-resistant fence stain.

    Board on Board Fence

    The board on board fence (also called shadow box fence or good neighbor fence) features overlapping pickets on both sides so neither neighbor sees the "ugly" back. It is the most common HOA-approved fence style, and many HOAs require it for backyard fences. Board on board fence cost ranges from $35–$55/ft.

    Horizontal Fence (Modern Slat Fence)

    Horizontal fencing — sometimes called a modern slat fence or contemporary fence — uses horizontal boards instead of vertical pickets. Horizontal fences pair well with mid-century and modern home designs. Expect to pay $35–$50/ft for horizontal cedar fence installation.

    Stockade Fence

    A stockade fence uses tightly placed pointed pickets for a solid, uniform look. It's an economical wood privacy fence option at $25–$35/ft. While less common than board-on-board, stockade fences remain a budget-friendly choice for large lots and rural properties.

    Picket Fence

    The classic picket fence — typically 3–4 feet tall — defines front yards without blocking sightlines. Wood picket fence installation costs $20–$35/ft. Picket fences add curb appeal while meeting setback requirements for front-yard fencing.

    Cedar vs Pine vs Pressure-Treated Wood

    Western Red Cedar remains the gold standard for wood fencing in hot, humid climates. Pressure-treated pine costs 20–30% less but requires chemical treatment and lasts only 8–12 years in heat and humidity. Untreated pine fencing fails within 5 years. For longevity in heat and clay soil, cedar is the clear winner. EleFence exclusively uses premium grade cedar for all wood fence projects.

    Metal & Iron Fence Types

    Wrought Iron Fence

    Wrought iron fencing provides timeless elegance and maximum security. True wrought iron fence is hand-forged and extremely durable, lasting 50+ years. Ornamental iron fence installation costs $45–$75/ft depending on design complexity. Iron fences are ideal for front yard fencing, pool enclosures, and estate perimeters.

    Aluminum Fence

    Aluminum fencing mimics the look of wrought iron at a lower price point — $30–$50/ft installed. It won't rust (critical in humid summers), requires virtually zero maintenance, and comes in black, bronze, and white powder-coated finishes. It is a popular choice for aluminum pool fence installations.

    Chain Link Fence

    Chain link fencing is the most affordable option at $15–$25/ft. Common for dog runs, backyard enclosures, and commercial properties. Options include galvanized, vinyl-coated (black or green), and privacy-slat inserts. Chain link fence with privacy slats provides an economical semi-private solution.

    Steel Fence & Metal Panel Fence

    Steel panel fencing and corrugated metal fence designs have gained popularity on industrial-modern homes. Metal fence panels paired with wood or steel frames create a striking aesthetic at $40–$65/ft. EleFence builds custom steel and wood combination fences.

    Specialty & Modern Fencing

    Ranch Rail Fence (Post and Rail)

    Ranch rail fencing — also called split rail, post and rail, or horse fence — defines property boundaries on large lots, acreage and ranches. Available in 2-rail, 3-rail, and 4-rail configurations. Ranch rail fence cost: $15–$30/ft.

    Vinyl Fence (PVC Fence)

    Vinyl fencing (PVC) offers zero-maintenance appeal with a lifetime warranty against rot and insects. Vinyl privacy fence cost: $25–$45/ft. While less common than cedar, vinyl fences are growing in popularity among homeowners who prefer a maintenance-free fence. Available in white, tan, gray, and wood-grain textures.

    Composite Fence (Trex Fencing)

    Composite fencing — such as Trex fencing — combines recycled wood fibers and plastic for a durable, eco-friendly option. Composite fence installation costs $35–$60/ft. It won't warp, crack, or fade, making it ideal for homeowners who want the look of wood without the maintenance.

    Bamboo & Living Fence

    Bamboo fencing and living fences (hedgerow, jasmine, yaupon holly) are gaining traction with eco-conscious homeowners. While not a traditional fence, a living privacy screen can supplement a short decorative fence for a layered, natural boundary.

    Temporary & Construction Fencing

    Temporary fencing for construction sites, events, and property staging is also available. Construction fence rental typically costs $5–$10/ft per month. EleFence provides temporary chain link panels for commercial job sites.

    Soil Conditions and Fence Post Depth

    Expansive clay soil is one of the top reasons fences fail. It swells when wet and shrinks during drought, putting heavy sideways pressure on fence posts. Fence post depth should be a minimum of 24 inches, and ideally 36 inches, with concrete footings.

    Steel post reinforcement (galvanized steel set inside concrete) resists clay movement 2–3x better than wood posts alone. Rocky limestone needs different techniques, often rock-anchoring instead of traditional post-hole digging. EleFence evaluates soil type during every free on-site estimate and recommends the right post depth and reinforcement for your property.

    Common HOA Fence Rules

    Most HOA communities have strict fencing guidelines covering height, material, stain color, and construction style. Common HOA fence requirements include:

    • Maximum height: 6 feet for backyard fences, 4 feet for front/side yard
    • Required style: Board-on-board or "good neighbor" (finished both sides)
    • Approved materials: Cedar wood, wrought iron — no chain link or vinyl in many HOAs
    • Stain color: Natural cedar, honey, or "cedar tone" — no red, green, or bright stains
    • Cap rail required: Many HOAs mandate a horizontal cap rail along the top
    • Metal post caps: Decorative caps required on iron and some wood fences

    Rules differ by community, so check your HOA's guidelines before you build. EleFence researches your HOA requirements and handles the approval submission.

    Do You Need a Fence Permit?

    Permit rules are set by your city or county. Many cities don't require a permit for a residential fence under a set height, but common exceptions include corner-lot sight triangles, historic districts, fences near creeks and waterways, and commercial fencing. EleFence checks your property's requirements and handles fence permit applications as part of our installation service.

    Fence Maintenance & Staining

    Intense UV, hot summers and the occasional ice storm demand proactive fence maintenance. Here's what to know about fence staining, fence repair, and fence replacement:

    Fence Staining

    Apply a UV-resistant, semi-transparent fence stain with mildewcide every 2–3 years. Popular fence stain brands include Ready Seal, TWP, and Cabot Australian Timber Oil. Fence staining cost: $1.50–$3.00 per linear foot. Always stain within 30–60 days of installation for best absorption.

    Fence Repair

    Common fence repairs include replacing leaning posts (usually caused by clay soil movement), re-setting loose pickets after storms, and patching sections damaged by falling tree limbs. Fence repair cost: $150–$500 per section depending on damage.

    When to Replace vs Repair

    If more than 30% of your fence is damaged, full fence replacement is usually more cost-effective than piecemeal repairs. Signs you need a new fence: multiple leaning posts, widespread rot at the base, broken or missing rails, and severe warping.

    Fence Gates & Hardware

    Every fence needs at least one gate, and gate quality matters. Common fence gate options include:

    • Single walk gate (3–4 ft wide): $200–$400 installed
    • Double drive gate (8–12 ft wide): $500–$1,200 installed
    • Sliding gate (cantilever): $1,500–$4,000 installed
    • Automatic gate opener: $800–$3,000 depending on gate size
    • Iron driveway gate: $2,000–$8,000+ for custom designs

    Gate hardware matters in heat and humidity: use stainless steel or galvanized hinges to prevent rust. Self-closing gate latches are required on pool fence gates under most pool codes.

    Pool Fence Requirements

    Most cities require pool fencing around residential swimming pools, usually based on the International Swimming Pool and Spa Code. Typical pool fence code requirements:

    • Minimum 48 inches (4 feet) tall
    • No openings larger than 4 inches (no climbable horizontal rails)
    • Self-closing, self-latching gates that open outward
    • Gate latches must be at least 54 inches from ground (or have key/combination lock)
    • No direct access from house to pool without passing through a gated fence

    Wrought iron and aluminum pool fences are the most popular choices. Mesh pool fencing (removable) is a temporary alternative for families with young children. EleFence installs code-compliant pool fences; confirm your local code before you build.

    Commercial Fencing

    Commercial fence installation covers a wide range of applications: warehouse perimeter fencing, construction site barriers, dumpster enclosures, parking lot fencing, school and daycare fences, and apartment complex fencing. Materials include commercial chain link (6–12 ft tall), steel security fencing, anti-climb panels, and decorative iron for retail storefronts.

    Commercial fence cost: $20–$80/ft depending on material, height, and security requirements. Commercial fencing almost always requires a building permit. EleFence handles permitting, engineering, and installation for commercial projects.

    Ready for Your Free Fence Estimate?

    Get an instant satellite estimate or schedule a free on-site consultation.

    Fence Buyer's FAQ

    Quick answers about fence value, post depth, strength and cost.

    A well-built fence can add to a home's value and appeal, especially a privacy fence in a family neighborhood or a durable iron or aluminum fence out front. How much it adds depends on the local market, so think of a fence mainly as an investment in privacy, security and curb appeal. A fence in poor repair can lower appeal, so maintenance matters.

    The 1/3 rule says about one third of a fence post's total length should be set below ground. For a 6-foot fence that means a post of roughly 8 to 9 feet with 24 to 36 inches in the ground, set in concrete. In expansive clay soil, go deeper or upgrade to steel posts to stop leaning.

    Wrought iron and steel are the strongest residential fences. Wrought iron lasts 30 to 50 years and is the top choice where security matters, and steel panel fencing lasts 30+ years. For wood fences, steel post reinforcement resists soil movement 2 to 3 times better than wood posts alone.

    Chain link is the least expensive fence at about $15 to $25 per linear foot installed, followed by ranch rail at $15 to $30 per foot for large lots and acreage. For a solid privacy fence on a budget, cedar at $30 to $45 per foot is usually the best value. Prices are estimates, confirmed on site.