Fence installation is priced by the linear foot, with materials and labor rolled together, so the length of the fence line and the material you pick drive almost all of the cost. This fence cost calculator multiplies your length by a 2026 installed price range for the material, then adds gates, old-fence removal and a permit to give a low-to-high budget and a post count.
A 150-foot wood privacy fence with one gate comes to $3,920 – $6,660, about $5,290 in the middle of the range. Angi's 2026 national data puts the average fence job at $3,278, with most homeowners paying $1,861 to $4,845, and labor making up about half of the bill.
How to use the fence cost calculator
- Measure the fence line and enter the total length; leave out house walls or existing fences you will tie into.
- Pick a fence type, or choose "My own price per foot" and enter the low and high figures from local quotes.
- Set the post spacing (8 ft is standard for wood; vinyl panels are often 6 or 8 ft).
- Enter the number of gates and a price range per gate.
- Add removal of an old fence and a permit if they apply, then read the cost range, breakdown and post count.
Formula
Installed prices per foot already include posts, concrete footings, rails, panels or pickets, hardware and labor. The ranges are wide because height, terrain, soil, style and local labor rates all shift the price; a 6-foot privacy fence on rocky, sloped ground lands near the top of its range.
Worked example
150 ft of 6-ft wood privacy fence, one gate, permit, no removal.
- Fence: 150 ft × $25 = $3,750 (low) to 150 ft × $40 = $6,000 (high).
- Gate: $150 to $600.
- Permit: $20 to $60.
- Total: $3,920 – $6,660, or about $26.13 to $44.40 per foot all in.
- Posts: 150 ÷ 8 = 18.75, so 19 sections and 19 + 1 + 1 = 21 posts.
Taking out an old fence first would add $450 to $750 (150 ft × $3–$5).
Fence cost by material (150 ft, no gates)
| Material | Price per foot installed | 150-ft fence |
|---|---|---|
| Wood privacy (6 ft) | $25–$40 | $3,750 – $6,000 |
| Wood picket (3–4 ft) | $5–$30 | $750 – $4,500 |
| Vinyl (PVC) | $15–$40 | $2,250 – $6,000 |
| Chain-link | $8–$40 | $1,200 – $6,000 |
| Aluminum | $17–$90 | $2,550 – $13,500 |
| Composite | $11–$45 | $1,650 – $6,750 |
| Wrought iron | $25–$55 | $3,750 – $8,250 |
Price ranges are Angi's 2026 national figures. Chain-link is the cheapest per foot; aluminum and wrought iron are the most expensive but last decades with little upkeep. Wood is cheapest up front among privacy options, but it needs staining every few years.
What raises or lowers the price
- Height: a 6-ft privacy fence uses roughly half again as much material as a 4-ft picket fence, and tall fences need deeper posts.
- Terrain and soil: slopes need stepped or racked panels; rock, roots and utilities slow post digging. Angi notes that working around utilities can add 10% to 30%.
- Gates: $150 to $2,000 each, depending on width, material and hardware.
- Labor: about 50% of the total. Doing it yourself saves about $1,700 on an average job, but you need a post-hole digger or auger, a level line and a weekend or two.
- Extras: post caps ($30 to $150 each), staining ($3.50 to $13 per foot), land leveling ($1,000 to $3,200) and tree removal.
Planning a DIY fence
If you build it yourself, you pay for materials only. Use the fence calculator to count posts, rails, pickets and bags of post-hole concrete, and the fence post concrete calculator for exact concrete per hole. Call 811 before you dig, check property lines and setback rules, and confirm height limits with your city or HOA; many towns cap backyard fences at 6 ft and front-yard fences at 3 to 4 ft.
Caveats and assumptions
- Installed prices are national ranges for 2026; local labor rates, permit fees and material prices can move your total well outside them.
- Assumes a standard straight-run residential fence. Steep slopes, retaining walls, pool-code fences and custom designs cost more.
- Post count assumes evenly spaced posts plus one extra post per gate; corners may need additional posts.
- Get at least three written quotes that list height, post depth, material grade, gates and warranty.
Frequently asked questions
How much does a 150-foot fence cost?
About $3,920 – $6,660 for wood privacy with one gate and a permit. Chain-link runs $1,200 – $6,000 and vinyl $2,250 – $6,000 before gates.
What is the cheapest type of fence?
Chain-link and wood picket fences are the cheapest per foot, starting around $5 to $8 installed. Electric fencing for livestock is even cheaper at $2 to $4 per foot, but it is not a privacy or yard fence.
How much is a privacy fence per foot?
A 6-ft wood privacy fence typically costs $25 to $40 per linear foot installed in 2026. Vinyl privacy fences run $15 to $40, and composite $11 to $45.
Is it cheaper to build a fence yourself?
Yes. Labor is about half the cost, so DIY can save roughly $1,700 on an average job. You will need to rent an auger, set posts in concrete, keep lines straight and get any permit yourself.
Do I need a permit for a fence?
Many cities require one, especially for fences over 6 ft, front-yard fences or pool barriers. Fence permits typically cost $20 to $60. HOAs may have their own approval process.
Sources
- Angi — How Much Does Fence Installation Cost? (2026 data) — installed price per linear foot by material and type, gates, removal, permit, labor share
- HomeAdvisor — Fencing prices and cost estimator (2026) — second national price range per linear foot for cross-checking
- 811 — Call Before You Dig (Common Ground Alliance) — free utility locating before digging post holes
- International Code Council — International Residential Code (fences over 7 ft need a permit) — IRC R105.2 exempts fences not over 7 ft from building permits; local zoning may still require one
This calculator gives estimates for planning and education. Check measurements, local codes, supplier specs and your school's official policy before relying on a result. See our disclaimer and how we build and check calculators.