Fence Cost Calculator

Estimate fence installation cost by material, linear footage, and height. Compare wood, vinyl, chain link, aluminum, and more — with gate and permit costs included.

Auto-calculated from lot dimensions (subtract any house-side you don't need to fence)

Quick Facts

Post depth rule
1/3 of post length underground, min 2 ft
Always dig below the local frost line to prevent heaving.
Materials vs. labor
~40% materials, ~60% labor (typical)
DIY installation can reduce total cost by 30–50%.

Your Estimate

Calculated
Estimated total cost range
-
Low to high installed estimate
Cost per linear foot (all-in)
-
Including gates, permit, removal
Total linear feet
-
Fencing perimeter
Materials vs. labor split
-
Approx. 40% materials / 60% labor

Ready

Enter your fence details and press Calculate to see your estimate.

Fence Types: Pros, Cons, and What They Really Cost

Choosing a fence involves balancing upfront cost, long-term maintenance, privacy, aesthetics, and neighborhood fit. This guide covers every major fence material in detail, explains how to estimate your own project, and answers the practical questions homeowners encounter before, during, and after installation.

Wood Fences

Wood is the most popular residential fence material in North America, and for good reason: it is versatile, workable, blends into almost any landscape, and gives homeowners a classic look that complements most home styles. The two most common choices are cedar and pressure-treated pine.

Cedar is naturally resistant to rot and insects and contains oils that repel moisture without chemical treatment. A well-maintained cedar fence can last 15–20 years; in dry climates, closer to 20–25 years. The trade-off is cost — cedar costs 20–30% more than pressure-treated pine. Pine is the budget option, typically requiring staining or sealing within the first two years or the wood will gray and check (crack). Properly treated pressure-treated pine can match cedar's lifespan — the same consistent maintenance that protects your roof from premature deterioration.

Both species need staining or sealing every 2–4 years to prevent moisture infiltration. Before applying a new coat, pressure-wash the fence to remove mildew, dirt, and oxidized wood fibers, then let it dry for 24–48 hours. Semi-transparent stains that penetrate the grain outperform opaque paints for long-term protection because they allow moisture vapor to escape rather than trapping it under a film that peels.

Picket fences use thinner boards with decorative tops — typically 1×4 or 1×6 dog-ear or gothic-cut pickets. They run $10–$20 per linear foot installed and are used primarily for decorative boundaries and pet containment rather than privacy. Privacy fences use 6-inch or wider boards butted tightly together (or with minimal gaps) and typically stand 6 feet tall. Expect $15–$30 per linear foot installed for wood privacy in most suburban markets.

Vinyl and PVC Fences

Vinyl (PVC) fencing has grown sharply in popularity because it requires virtually no maintenance: no painting, staining, or sealing. Rinse it with a garden hose and mild detergent once a year and it looks new. Quality vinyl fences are rated for 20–30 years, with some manufacturer warranties extending to lifetime coverage against cracking, fading, and peeling.

The weakness of vinyl is its behavior in extreme temperatures. In very cold climates (below -20°F), PVC can become brittle and crack from impact, such as a tree branch or snow plow discharge. In high heat, some vinyl sections can expand and warp if improperly installed. These issues are less common with premium grades that include aluminum inserts for rigidity.

Installed cost runs $15–$30 per linear foot for vinyl picket and $20–$40 per linear foot for vinyl privacy. The upfront premium over wood is offset by near-zero maintenance costs over 20 years — no staining, no sealing, no rotted board replacements.

Chain Link Fences

Chain link is the most economical fence option and the most durable relative to its cost. A galvanized chain link fence resists rust, tolerates impact, and can last 20–30 years with almost no maintenance. It is the standard choice for security enclosures, dog runs, pool areas requiring a fence under local code, and large perimeter applications where cost is the primary driver.

The obvious limitation is privacy: chain link provides none. Vinyl-coated chain link adds color options (green, black, or brown blend better into landscapes than galvanized silver), but still does not provide privacy. Privacy slats can be woven through chain link but add cost and reduce airflow. Installed cost runs $8–$18 per linear foot for 4-foot galvanized, $10–$22 for 6-foot.

Chain link is one of the most DIY-friendly fence types. The terminal posts (corners, ends, and gate posts) must be set in concrete and the top rail must be level, but the mesh itself installs with basic tools and no carpentry skills. Renting a post hole digger and spending a weekend can cut total project cost by 40–50%.

Aluminum Ornamental Fences

Aluminum ornamental fencing offers the look of traditional wrought iron without the weight or the maintenance. It is powder-coated at the factory and will not rust even in coastal or wet climates. Most manufacturers offer a lifetime structural warranty. Installed cost runs $20–$45 per linear foot.

Aluminum cannot be welded or bent at the job site the way wrought iron can, which limits custom shapes, but prefabricated panels cover the vast majority of residential applications. It is an excellent choice for sloped lots because aluminum panels can be racked (adjusted to follow a slope without cutting the pickets) more easily than wood or vinyl.

Wrought Iron Fences

Wrought iron is the most durable residential fence material — properly maintained iron fences have lasted 50–100 years. It has unmatched impact resistance and a visual weight and elegance that no other material replicates. The downsides are cost ($25–$60 per linear foot installed), weight, and maintenance: wrought iron must be cleaned and repainted periodically to prevent rust. Any chip in the paint must be touched up promptly or rust will spread beneath the surface.

Split Rail Fences

Split rail (also called post-and-rail or ranch rail) fencing uses round logs split lengthwise and notched into upright posts. It has a rustic, rural look that suits properties with acreage, horses, or a country aesthetic. It provides no privacy and minimal security, but it is inexpensive ($10–$18 per linear foot installed for a two-rail fence) and DIY-friendly. Cedar and locust are the most rot-resistant species for split rail.

Composite and Trex Fences

Composite fencing (often branded as Trex or similar) is made from a blend of wood fiber and recycled plastic. It looks like wood but resists rot, insects, and moisture far better. Unlike pure vinyl, composite has a natural wood grain texture that many homeowners prefer aesthetically. The trade-off is cost: composite fence boards run $20–$45 per linear foot installed — roughly double the cost of wood. The near-zero maintenance and 25-year warranties make it attractive for homeowners who want wood looks without wood upkeep.

Bamboo Fences

Bamboo is an eco-friendly option with a distinctive natural look, popular in tropical and modern landscaping. It grows rapidly and is technically a grass, making it one of the most renewable fence materials. However, treated bamboo fencing in residential settings typically lasts 10–15 years — shorter than wood or vinyl. Expect $12–$24 per linear foot installed. It does not hold up as well in freeze-thaw climates and may require more frequent replacement in cold-winter regions.

Electric and Invisible Fences

Electric or invisible pet fences use a buried wire that transmits a mild correction through a receiver collar when a dog approaches the boundary. They are inexpensive ($1–$3 per linear foot for the buried wire) but are not a physical barrier: they do not keep other animals or people out, and some dogs learn to run through the correction. They require a training period of several weeks. They are not a legal substitute for a required physical fence (pool barrier, property line fence in most codes).

Permit Requirements and HOA Rules

Most municipalities require a building permit for fences that exceed a certain height — typically 6 feet in backyards and 4 feet in front yards. Some jurisdictions require permits for any fence on a property line regardless of height. Permit costs typically range from $50 to $300 depending on the municipality and the project scope.

Beyond city permits, HOA covenants often impose stricter rules than local codes: specific materials allowed (no chain link in view of the street), colors, maximum heights, and setback requirements. Always check your HOA documents before designing your fence — a violation can require removal at your expense.

Most permits also require a survey or site plan showing the proposed fence location relative to your property lines. If you do not have a recent survey, a property line survey typically costs $300–$800. Installing a fence on the wrong side of the property line creates legal liability and may require relocation at your cost.

How to Calculate Fence Materials

The starting point is linear footage: the total length of fence you need. For a full lot perimeter you're enclosing: linear feet = 2 × (lot width + lot depth). Subtract the width of any house side or driveway opening you don't need to fence. Add the widths of any gate openings (the fence still needs posts on either side of a gate).

From linear footage, you can calculate: Posts — typically one post every 6–8 feet plus one at each corner and gate. For 330 linear feet on 8-foot spacing: (330 ÷ 8) + corners + gates ≈ 45–50 posts. Rails — a standard 6-foot privacy fence uses two or three horizontal rails. At two rails per bay, 330 feet needs about 660 linear feet of rail material. Boards or panels — 6-inch privacy boards give about 2 boards per foot of fence. At 6 feet tall, you need about 330 × 2 = 660 boards, plus 5–10% waste for cuts and rejects.

Always order 10% more material than your calculations suggest to account for waste, damaged pieces, and future repairs.

The Post Depth Rule

The standard rule is that one-third of total post length should be underground, with a minimum of 2 feet below the local frost line. For a 6-foot fence: post total length = 6 + (post height above grade × 1/3 ÷ 2/3) = 6 × 1.5 = 9 feet, so the post goes 3 feet underground. In frost-prone areas (most of the US north of the Mason-Dixon line), dig below the frost depth — typically 36–48 inches in the northern tier — or the posts will heave upward over time as the ground freezes and thaws.

Corner posts and gate posts, which bear the most stress, should always be set in concrete. Line posts (the intermediate posts between corners) can be set in compacted gravel in low-wind, well-drained soil, but concrete is more reliable for wood and vinyl fences.

DIY vs. Contractor

The decision to DIY depends on the fence type, your skill level, and how much you value your time. Good DIY fence types: chain link (mechanical, no carpentry required), split rail (simple post-and-notch assembly), and short picket fences on flat lots. Harder to DIY well: tall wood privacy fences (posts must be plumb, fence must be level, gate frames must be square to prevent sagging), vinyl (panels are rigid and must be installed at precise heights), and any fence on a sloped lot (requires either racking or stepped-panel planning).

A contractor typically charges $15–$30 per linear foot for labor alone on wood fences, or provides a turnkey price. Get at least three bids, and verify that each includes post-hole depth, concrete footer quantity, number of gates, and cleanup.

Fence Regulations and Setbacks

Common fence height restrictions: front yard — typically 3–4 feet maximum. Backyard — typically 6 feet maximum without a variance. Side yard along a street corner — may be restricted to 3–4 feet for sight-line safety. Setback from the property line — many codes require fences to be set back 2–6 inches from the legal property line to allow access for maintenance and to leave no ambiguity about ownership.

Neighbor Disputes and Shared Fences

The "good neighbor" fence convention places the flat (finished) side facing the neighbor and the structural side (posts and rails) facing your property. Some states have fence-sharing statutes that require neighbors to split the cost of a fence on a property line if both benefit from it. Always communicate with neighbors before installing a boundary fence, even if not legally required — disputes over fence location are among the most common causes of neighbor litigation.

Gates

Gate quality matters disproportionately to cost. A cheap gate that sags within two years is a chronic frustration. Key considerations: heavy-duty hinges (use at least three hinges on a gate over 4 feet tall, or a heavy wood gate), a diagonal brace from bottom-hinge corner to top-latch corner to prevent racking, and a concrete footer under both gate posts regardless of what the line posts use. A double drive gate (for vehicle access) should span no more than 16 feet total without a center post or drop rod to prevent excessive flex.

Removing an Old Fence

Fence removal runs $3–$7 per linear foot for labor. Wood fence material may have scrap value (salvage yards, Craigslist, or Facebook Marketplace for usable boards), but most will go to a dumpster or green waste facility. Metal chain link and wrought iron often have scrap metal value worth calling a scrap dealer about. Old pressure-treated wood should not be burned — it contains preservative chemicals — and some municipalities have specific disposal requirements for it.

Fence and Home Value

A well-installed, attractive privacy fence in a suburban neighborhood generally adds value — particularly in markets where backyard privacy and outdoor living spaces are desirable. A wood or vinyl privacy fence in good condition can add $1,000–$5,000 to appraised value depending on market and condition. Chain link in a front yard or visible from the street may detract from perceived value in some neighborhoods. The best return comes from a fence that matches the neighborhood standard — neither the cheapest nor the most elaborate option.

How Long Fences Last

Expected lifespan by material: Wood — 15–20 years with proper maintenance (staining every 2–4 years). Vinyl/PVC — 20–30 years with minimal maintenance. Chain link — 20–30 years (galvanized); longer with vinyl coating. Aluminum — 30+ years; powder coating may need touchup after 15–20 years. Wrought iron — 50+ years with periodic repainting to prevent rust spread. Split rail — 10–15 years for pine; 20+ for cedar or locust. Composite — 25+ years per manufacturer warranty. Bamboo — 10–15 years depending on climate.

Frequently Asked Questions

How much does it cost to fence a yard?
Fencing a typical suburban yard costs between $3,000 and $12,000 installed, depending on material, linear footage, height, and location. A 330-linear-foot wood privacy fence in a suburban area typically runs $5,000–$10,000 installed including gates and permit. Chain link is the lowest-cost option at $8–$22 per linear foot installed, while wrought iron and aluminum ornamental fences run $25–$60 per linear foot.
What is the cheapest fence option?
Chain link fencing is the least expensive option at $8–$18 per linear foot installed for 4-foot height, or $10–$22 for 6-foot. Split rail fencing ($10–$18/lf) is similarly affordable and has a rustic look. Both are also DIY-friendly, which can reduce labor costs by 30–50%. Electric or invisible fencing for pets is technically cheaper at $1–$3 per linear foot plus equipment, but provides no physical barrier.
How long does a wood fence last?
A properly maintained wood fence typically lasts 15–20 years. Pressure-treated pine can reach 20 years or more, while untreated cedar lasts about 15 years. The key is staining or sealing every 2–4 years to prevent moisture penetration and rot, especially at the base of posts. Posts set in concrete in well-drained soil last longer than those set directly in soil. Regular inspection and prompt replacement of damaged boards significantly extends lifespan.
Do I need a permit to install a fence?
Most municipalities require a permit for fences over 6 feet tall, and many require permits for any fence on a property line. Common rules include height limits of 4 feet in front yards and 6 feet in backyards, setback requirements of 2–6 inches from the property line, and HOA restrictions that may be stricter than local codes. Permit costs typically run $50–$300. Always check with your local building department and review your HOA covenants before starting any fence project.

Reference Tables

Fence Material Cost and Characteristics

MaterialInstalled cost/lfLifespanMaintenancePrivacy level
Wood privacy (cedar/pine)$15–$3015–20 yrsHigh (stain every 2–4 yrs)Full
Wood picket$10–$2015–20 yrsHighNone
Vinyl privacy$20–$4020–30 yrsVery low (rinse annually)Full
Vinyl picket$15–$3020–30 yrsVery lowNone
Chain link 4 ft$8–$1820–30 yrsVery lowNone
Chain link 6 ft$10–$2220–30 yrsVery lowNone
Aluminum ornamental$20–$4530+ yrsLow (touch up coating)Low
Wrought iron$25–$6050+ yrsMedium (repaint to prevent rust)Low
Split rail (2-rail)$10–$1810–20 yrsLowNone
Composite/recycled$20–$4525+ yrsVery lowFull
Bamboo$12–$2410–15 yrsMediumPartial–Full
Electric/invisible$1–$3 (DIY)5–10 yrsLow (battery/wire check)None

Fence Project Size and Estimated Cost

Project sizeLinear feetEst. cost — woodEst. cost — vinylEst. cost — chain link
Small yard / single side100 lf$1,500–$3,000$2,000–$4,000$800–$1,800
Typical suburban lot200 lf$3,000–$6,000$4,000–$8,000$1,600–$3,600
Average suburban perimeter330 lf$5,000–$10,000$6,600–$13,200$2,640–$5,940
Large lot perimeter500 lf$7,500–$15,000$10,000–$20,000$4,000–$9,000
Acreage / rural perimeter1,000+ lf$15,000+$20,000+$8,000+

Fence Height Guide

HeightTypical usePermit usually required?Cost multiplier vs. 6 ft
3 ftGarden borders, decorativeRarely0.75×
4 ftFront yards, pet containmentSometimes0.85×
6 ftPrivacy, backyard standardOften (check local code)1.0× (baseline)
8 ftSecurity, commercial, screeningAlmost always1.20×