Fence calculator
Fence Cost Calculator
A fence cost calculator that shows the installed cost per linear foot and the total, split into materials and labour, with gates, old-fence removal and a permit as separate line items. Enter the fence length, height and material, then compare all five fence materials side by side. A fence priced on a guess can run short on posts and panels, so price the whole job first.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
Size
Materials
Who builds it
Extras
Typical cost, wood (pressure-treated pine) fence
$5,029
Likely range $3,890 to $6,169 · about $34 per linear ft
Fence length
150 linear ft
Cost per linear ft (all-in)
$26 to $41
Fence only per linear ft
$20 to $32
Fence (materials + labour)
$3,900
Materials
$2,460
Labour
$1,790
Gates, 1
$350
Permit
$150
Sales tax on materials
$172
Contingency
$457
- Planning ranges for the United States. A written quote from two or three local fence contractors is the real price.
Cost of every fence material for this length
Same length, height, gates and install, so you can compare like for like. The last column spreads the cost over the years the fence lasts.
| Material | Typical total | Range | Per linear ft | Lasts about | Per year of life |
|---|---|---|---|---|---|
| Wood (pressure-treated pine) | $5,029 | $3,890 to $6,169 | $34 | 15 years | $335 |
| Vinyl (PVC) | $6,915 | $5,394 to $8,436 | $46 | 30 years | $231 |
| Chain-link (galvanized) | $2,990 | $2,221 to $3,759 | $20 | 25 years | $120 |
| Aluminum (ornamental) | $7,354 | $5,804 to $8,904 | $49 | 40 years | $184 |
| Composite | $8,300 | $6,545 to $10,055 | $55 | 30 years | $277 |
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Cost = Length × [height factor × (materials + labour) per linear foot] + gates + old-fence removal + permit + tax on materials + contingency
Worked example. A 150 ft wood privacy fence, 6 ft high, with one gate, built by a contractor, with a $150 permit, 7% tax on materials and 10% contingency: about $5,029 typical, in a range of $3,890 to $6,169, which is $26 per linear foot for the fence itself and about $34 per linear foot all in.
A fence costs about $11 to $52 per linear foot installed, depending mainly on the material. A 150 ft wood privacy fence, 6 ft high, with one gate costs about $5,029 with a permit, tax and contingency, or about $26 per linear foot for the fence itself. Chain-link costs about $2,990 for the same length, and composite about $8,300. Compare the materials on the same fence before you choose.
Key takeaways
- •Material sets the price. Chain-link is cheapest at $11 to $19 per linear foot installed; composite is dearest at $34 to $52.
- •Height matters. A 4 ft fence costs about 20% less per foot than a 6 ft fence, and an 8 ft fence costs about 25% more.
- •Labour is about 35 to 45% of the total, so building it yourself saves roughly a third, but setting posts straight is the hard part.
- •Gates, removal and permits are the line items people forget. One gate adds $150 to $800, removal adds $2 to $4 per foot, and a permit is usually $50 to $300.
- •Compare cost per year of life, not only the price. Chain-link and aluminum often win over 25 to 40 years because they need almost no upkeep.
How to use the fence cost calculator
- Enter the total length of fence in feet, measured along the line where it will stand.
- Choose the fence height. Most back-yard fences are 6 ft; front-yard fences are usually capped at 4 ft.
- Pick the fence material. Wood and chain-link are cheapest, vinyl and composite cost more but need less upkeep.
- Add the number of gates. A walk gate and a wide driveway gate are both counted here; a double gate counts as two.
- Choose whether a contractor builds it or you do, and your local price level.
- Tick old-fence removal if one comes out, then add your permit cost, sales tax and a contingency.
- Read the typical total and the range, then compare all five materials below for your exact fence.
Fence cost per linear foot by material
These are installed ranges at 6 ft high: posts, rails or panels, boards or fabric, concrete for the posts, and labour, before gates, removal, permit and tax. This is the table most fence calculators skip, and it is the one that decides your budget.
| Material | Installed per linear foot | Materials only | Labour only | Lasts about |
|---|---|---|---|---|
| Wood (pressure-treated pine) | $20 to $32 | $12 to $18 | $8 to $14 | 15 years |
| Vinyl (PVC) | $28 to $44 | $18 to $28 | $10 to $16 | 30 years |
| Chain-link (galvanized) | $11 to $19 | $6 to $10 | $5 to $9 | 25 years |
| Aluminum (ornamental) | $30 to $46 | $20 to $30 | $10 to $16 | 40 years |
| Composite | $34 to $52 | $22 to $34 | $12 to $18 | 30 years |
Typical ranges for the United States at 6 ft high. A 4 ft fence costs about 20% less per foot and an 8 ft fence about 25% more.
Notice how much of the price is labour. For wood, labour is about 40% of the installed cost, which is why a DIY fence saves real money if you have the time and the tools. For vinyl and composite, the material dominates, so DIY saves a smaller share.
Before you price the fence, work out how many posts, pickets and panels it needs with the fence calculator, the fence picket calculator and the fence panel calculator. The concrete for the post holes comes from the fence post calculator, and the stain for a wood fence from the fence stain calculator.
Materials vs labour: where the money goes
For a 150 ft wood privacy fence, 6 ft high, with one gate, built by a contractor, the typical cost works out like this. This split is what most fence calculators never show, and it is the number that tells you whether DIY is worth it.
| Part of the job | Typical cost |
|---|---|
| Fence materials: posts, rails, pickets, concrete | $2,250 |
| Fence labour: digging, setting, building | $1,650 |
| Gate, installed (materials $210, labour $140) | $350 |
| Permit | $150 |
| Sales tax on materials (7%) | $172 |
| Contingency (10%) | $457 |
| Total | $5,029 |
Range: $3,890 to $6,169. Materials are $2,460 of the typical total and labour is $1,790, so labour is about 36% of the job.
The gate deserves a line of its own. A gate is not just a panel: it needs heavier posts, hinges, a latch and careful alignment, or it sags within a year. In this example the gate is $350 of a $5,029 job, about 7%, and a wide double gate would be roughly twice that.
Tax is charged on materials only in most states, which is why the calculator applies it to the materials subtotal and not to labour. If your state taxes labour too, raise the tax rate a little to cover it.
Gates, removal and permits: the line items people forget
Three extras catch people out on fence quotes. A 100 ft vinyl fence, 6 ft high, with one gate and an old fence to remove shows how they add up.
| Line item | Typical cost |
|---|---|
| Vinyl fence, 100 ft, materials and labour | $3,600 |
| One vinyl gate, installed | $475 |
| Old fence removal, 100 ft at $2 to $4 per foot | $300 |
| Permit | $200 |
| Sales tax on materials (7%) | $181 |
| Contingency (10%) | $476 |
| Total | $5,232 |
Range: $4,060 to $6,403. The gate, removal and permit together are about $975, almost a fifth of the job.
Removal is the one most often left off a quote. An old fence does not disappear by itself, and a contractor who has to dig out concrete footings will charge for it. If the old posts are set in concrete, ask whether the quote includes breaking the footings out or cutting the posts off at grade and leaving the concrete buried.
- •Gates: count every gate, including the small side gate you use every day. A gate costs $150 to $800 installed depending on the material, and a double driveway gate roughly twice a single.
- •Removal: $2 to $4 per linear foot for tear-out and hauling. Add more if the posts are concreted in and the footings must come out.
- •Permit: usually $50 to $300. Some towns also want a site plan or a survey showing the property line.
- •Survey: if the property line is in doubt, a survey costs $300 to $700 and is far cheaper than moving a fence your neighbour disputes.
Fence cost by height
Height changes the price twice: taller posts, rails and boards cost more, and taller fences need deeper post holes and more concrete. These are installed ranges per linear foot for a pressure-treated wood fence.
| Fence height | Wood, installed per linear foot | Best for |
|---|---|---|
| 4 ft | $16 to $26 | Front yards, gardens, keeping small dogs in, marking a boundary |
| 5 ft | $18 to $29 | Side yards where 6 ft is not allowed, a step up from 4 ft |
| 6 ft | $20 to $32 | Back-yard privacy, the most common fence height |
| 8 ft | $25 to $40 | Maximum privacy, noise and wind screening, where code allows it |
Based on the 6 ft range of $20 to $32 per linear foot, scaled by the height factors in the calculator: 0.8 at 4 ft, 0.9 at 5 ft and 1.25 at 8 ft.
Check your local height limit before you price an 8 ft fence. Many towns cap a back-yard fence at 6 ft and a front-yard fence at 4 ft, and a fence on a corner lot often has a lower limit near the street so drivers can see round it. A variance is possible but slow and not guaranteed.
Fence cost by size: worked examples
The table below uses the installed per-linear-foot ranges from the material table, so it covers the fence itself only: posts, rails, boards or fabric, concrete and labour. Gates, removal, permit, tax and contingency go on top, and the calculator above adds them for your exact fence.
| Fence length, 6 ft high | Wood | Vinyl | Chain-link |
|---|---|---|---|
| 50 ft | $1,000 to $1,600 | $1,400 to $2,200 | $550 to $950 |
| 100 ft | $2,000 to $3,200 | $2,800 to $4,400 | $1,100 to $1,900 |
| 150 ft | $3,000 to $4,800 | $4,200 to $6,600 | $1,650 to $2,850 |
| 200 ft | $4,000 to $6,400 | $5,600 to $8,800 | $2,200 to $3,800 |
| 300 ft | $6,000 to $9,600 | $8,400 to $13,200 | $3,300 to $5,700 |
Fence only, at 6 ft high, installed by a contractor. Add about $150 to $800 per gate, $2 to $4 per foot for removal, a $50 to $300 permit, tax and a 10% contingency.
Example 1: 100 ft wood fence, 6 ft high, no gate
- Fence: 100 × $20 to $32 = $2,000 to $3,200.
- Add a gate ($250 to $450), a permit ($50 to $300), tax on materials and a 10% contingency. With one gate and a $150 permit the total is about $2,744 to $4,339, typically about $3,542.
Example 2: 200 ft chain-link fence, 6 ft high, one gate
- Fence: 200 × $11 to $19 = $2,200 to $3,800.
- Gate: $150 to $300. With a $150 permit, tax and contingency the total is about $2,849 to $4,843, typically about $3,846. Chain-link is the cheapest way to fence a large lot, and the saving over wood on 200 ft is roughly $1,800 to $2,600.
Example 3: 150 ft composite fence, 6 ft high, two gates
- Fence: 150 × $34 to $52 = $5,100 to $7,800.
- Gates: 2 × $450 to $800 = $900 to $1,600. With a $200 permit, tax and contingency the total is about $7,116 to $11,027, typically about $9,071. Composite costs the most up front but needs no staining and lasts about 30 years.
Material comparison: cost over the life of the fence
The cheapest fence to build is not always the cheapest to own. This comparison uses the 150 ft, 6 ft high fence with one gate from the worked example, and divides the typical cost by the years each material lasts.
| Material | Typical cost, 150 ft | Per linear foot, all in | Lasts about | Cost per year of life |
|---|---|---|---|---|
| Wood (pressure-treated pine) | $5,029 | $34 | 15 years | $335 |
| Vinyl (PVC) | $6,915 | $46 | 30 years | $231 |
| Chain-link (galvanized) | $2,990 | $20 | 25 years | $120 |
| Aluminum (ornamental) | $7,354 | $49 | 40 years | $184 |
| Composite | $8,300 | $55 | 30 years | $277 |
Includes one gate, a $150 permit, tax and contingency. Wood also needs staining or sealing about every 2 to 3 years, roughly $1 to $2 per linear foot each time, which is not in these figures.
Chain-link wins on cost per year by a wide margin, because it is cheap and lasts 25 years with almost no upkeep. Vinyl and aluminum cost more up front but last 30 to 40 years and need no painting or staining, so they beat wood over their life even though wood is cheaper to buy. Wood is still the right choice when you want privacy at the lowest up-front price and are willing to maintain it.
DIY or hire a contractor?
Labour is about 35 to 45% of a typical fence's installed cost, so building it yourself can save roughly a third. The calculator removes labour and adds the disposal cost when you choose DIY, because you still have to get rid of the old fence.
| Build it yourself | Hire a contractor | |
|---|---|---|
| Materials | You pay the same, plus tool rental for an auger and a mixer | Included, often at a trade discount |
| Labour | $0, but about 2 to 4 weekends for a 150 ft fence | About 35 to 45% of the total project cost |
| Post holes | You dig them, by hand or with a rented auger | Crew with a powered auger, usually 1 to 2 days |
| Permit and survey | You apply and prove the property line | Usually handled for you |
| Time to finish | 2 to 4 weekends for a typical fence | About 1 to 3 days for a typical fence |
| Warranty | None, except the material warranty | Workmanship warranty, often 1 to 5 years |
| Risk | You carry the risk of leaning posts and a crooked line | Licensed and insured, and the contractor carries the risk |
- •Call 811 before you dig. It is free, it is the law in most states, and hitting a gas or electric line is the most expensive mistake in fencing.
- •Set posts in concrete and keep the concrete a little above grade, sloping away from the post so water runs off instead of pooling against the wood.
- •Keep the bottom of wood boards an inch or two off the soil, or they rot from the ground up.
- •Run a string line between the end posts and check every post against it. A fence that wanders by an inch at each post looks crooked from the street.
- •Get a permit either way. An unpermitted fence can cause trouble when you sell, and a fence on the wrong side of the property line can have to move.
Permits, property lines and building code
Fences are regulated locally, and the rules are the part of a fence project that most often causes a costly surprise. Three things to settle before you order materials.
- •Height limits. Many towns cap a front-yard fence at 4 ft and a back-yard fence at 6 ft, with lower limits on corner lots near the street. An 8 ft fence usually needs a variance.
- •Setbacks and property lines. Some towns want the fence a few inches inside your line, some allow it on the line, and some want it on the line only with a neighbour agreement. If the line is in doubt, pay for a survey: $300 to $700 is far cheaper than moving a fence.
- •Permits and HOAs. A permit is usually $50 to $300 and may need a site plan. A homeowners association can be stricter than the town on material, colour and height, and its approval can take weeks.
- •Underground utilities. Call 811 at least a few days before digging so the utilities are marked. Post holes are exactly deep enough to hit a buried line.
- •Pool fences. A fence around a pool has its own rules in most places: usually at least 4 ft high, with a self-closing, self-latching gate and no gaps a small child can climb through.
Work out the post holes and the concrete they need with the fence post calculator, and the panels or pickets with the fence panel calculator and the fence picket calculator. For a chain-link fence, use the chain-link fence calculator to get the fabric, posts and rails.
How to compare fence quotes line by line
Three quotes for the same fence can differ by thousands of dollars and still all be honest, because they rarely cover the same scope. The cheapest quote is often the one that left something out. Compare them line by line before you sign.
- Same length, height and material. Make every quote name the material and grade, such as pressure-treated pine or cedar, and the board thickness, not just wood fence.
- Posts and concrete. Ask for the post size, spacing and whether the posts are set in concrete, and how deep. Posts set in dirt instead of concrete are the most common shortcut.
- Gates. Check the number, width and material of each gate, and whether hinges and latches are included. A gate is the part that fails first.
- Removal and disposal. If an old fence comes out, the quote should say who removes it, whether the concrete footings come out, and where it goes.
- Permit and survey. Ask who applies and whether the fee is included. Permits usually run $50 to $300.
- Cleanup and warranty. Ask what is left tidy, what the workmanship warranty covers and for how long.
- Payment schedule. Never pay the full price up front. A common pattern is a deposit, a payment when the posts are set and the balance at final inspection.
Put the three totals in the calculator and see how each one changes your cost per linear foot. If one quote is far below the others, ask what it leaves out before you celebrate.
Ways to save money on a fence
- •Choose chain-link if privacy is not the priority. It costs about half as much per foot as wood.
- •Build a 4 ft fence where you can. It costs about 20% less per foot than a 6 ft fence and often needs no permit.
- •Share the cost with a neighbour on a shared boundary. A good-neighbour fence, with the finished side alternating, splits the bill.
- •Use pressure-treated pine instead of cedar. It costs roughly 20 to 40% less per foot and lasts about as long if you stain it.
- •Keep the line straight and the ground level. Slopes, corners and stepped panels add labour and waste.
- •Buy standard panel widths, usually 6 or 8 ft, so you cut less and waste less.
- •Do the removal yourself. Tearing out an old fence is unskilled work and saves $2 to $4 per foot.
- •Get at least three quotes with the same scope, and build in the off-season when crews have more time.
Assumptions
- •Prices are planning ranges for the United States in 2026 and include materials and installation by a contractor unless you choose DIY.
- •Fence prices are per linear foot at 6 ft high. A 4 ft fence costs about 20% less per foot and an 8 ft fence about 25% more, because the posts, rails and boards all grow.
- •The fence length is the total run of fence. Corners and slopes do not change the per-foot price much, but a steep slope may need stepped panels and extra labour.
- •Each gate is priced as a complete installed gate with posts, hinges and a latch, matched to the fence material.
- •Old-fence removal covers tearing out the old fence and hauling it away. Concrete footings left in the ground may cost extra.
- •Your own quote always beats an estimate. Get two or three written quotes with the same scope before you sign.
Sources✓ Verified
- ASTM F567, Standard Practice for Installation of Chain-Link Fence. Post spacing, post setting depths and fabric attachment that set the labour and concrete in a chain-link fence.
- ASTM F964, Standard Specification for Rigid Poly(Vinyl Chloride) (PVC) Exterior Profiles Used for Fencing. Material standard for vinyl fence profiles, used to distinguish vinyl fencing from cheaper plastic fencing.
- Local building and zoning codes. Fence height limits, setback rules and permit requirements vary by town. Many areas cap a front-yard fence at 4 ft and a back-yard fence at 6 ft, and some require a permit or a survey.
- Contractor and supplier price surveys, 2025 and 2026. Installed price ranges per linear foot by fence material, used to build the ranges above.
Formula reviewed November 2026.
Installed, a wood privacy fence costs about $20 to $32 per linear foot at 6 ft high, vinyl about $28 to $44, chain-link about $11 to $19, aluminum about $30 to $46 and composite about $34 to $52. Gates, removal of an old fence, a permit, tax and contingency go on top.
A 150 ft wood fence, 6 ft high, with one gate, a $150 permit, tax and a 10% contingency costs about $5,029, in a range of $3,890 to $6,169. The same length in chain-link is about $2,990 and in vinyl about $6,915.
A pressure-treated pine privacy fence, 6 ft high, installed by a contractor, costs about $20 to $32 per linear foot. A 150 ft run with one gate, a permit, tax and contingency is about $5,029. Cedar costs more than pressure-treated pine, roughly 20 to 40% more per foot.
A vinyl (PVC) fence, 6 ft high, installed, costs about $28 to $44 per linear foot. A 100 ft run with one gate, old-fence removal and a $200 permit is about $5,232, in a range of $4,060 to $6,403. Vinyl costs more up front than wood but needs almost no upkeep and lasts about 30 years.
A galvanized chain-link fence, 6 ft high, installed, costs about $11 to $19 per linear foot, which makes it the cheapest fence by far. A 150 ft run with one gate, a permit, tax and contingency is about $2,990. Black vinyl-coated chain-link costs a little more.
A single walk gate, installed, costs about $250 to $450 in wood, $350 to $600 in vinyl, $150 to $300 in chain-link, $400 to $700 in aluminum and $450 to $800 in composite. A wide double gate for a driveway costs roughly twice as much, and an automatic opener adds $1,000 to $3,000 or more.
Removing and hauling away an old fence costs about $2 to $4 per linear foot, so a 150 ft fence adds about $300 to $600. Concrete footings that have to be dug out can add more, and some contractors charge by the hour for stubborn posts.
Often, yes, and the rules are local. Many towns require a permit for a fence over 6 ft, a fence in the front yard, or any fence on a corner lot, and most cap front-yard fences at about 4 ft. Permits usually cost $50 to $300. Check with your building department and get a survey if the property line is in doubt.
Labour is about 35 to 45% of a typical fence's installed cost, so building it yourself can save roughly a third. A 150 ft wood fence that costs about $5,029 installed costs about $3,200 to $3,800 in materials, tools and a permit. The hard parts are setting posts straight and level, and digging post holes through rock or roots.
Chain-link is the cheapest installed fence at about $11 to $19 per linear foot. Wood is the cheapest privacy fence at about $20 to $32 per linear foot. The cheapest fence of all is a simple wire or split-rail fence, but neither gives privacy.
Pressure-treated wood lasts about 15 years, chain-link about 25 years, vinyl and composite about 30 years, and aluminum about 40 years. Wood lasts longest when the posts are set in concrete above grade, the boards are kept off the soil, and the fence is stained or sealed every 2 to 3 years.
Get two or three written quotes with the same scope: total length, height, material and grade, number and width of gates, who removes the old fence, and whether the permit is included. Then compare them line by line, because the cheapest quote is often the one that left the permit or the removal out.
Converters to use with the Fence Cost Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
Volume, Area & UnitsMarla Kanal Area ConverterMarla, Kanal, sq ft, sq yd and sq m, with both marla standards.
Slope & MeasurementFeet & Inches to Decimal Feet Converter5 ft 6 in = 5.5 ft, both directions.
Lumber, Deck & FenceLinear Feet to Square Feet ConverterLength to area (or back) for any width.
Lumber, Deck & FenceNominal vs Actual Lumber Size ConverterA 2×4 is really 1½ × 3½ in, every size.More fence calculators
FenceChain Link Fence CalculatorA chain link fence calculator that turns your fence length and post spacing into the post count, the mesh length and the top rail length you need, then helps you plan the terminal posts, concrete, gates and ties. Mesh and rail run the full length, so a short measure leaves a gap in the run. Enter the length and spacing and get the full materials list.
FenceFence Stain CalculatorA fence stain calculator that turns your fence length, height and number of coats into the gallons of stain or sealer you need for one face of the fence, then helps you adjust for both sides and your product's coverage. Rough wood drinks stain, so a guess leaves the last section bare. Enter the fence size and coats and get the gallon count.
FenceGate PlannerA gate planner calculator that turns the number of gates and the width of each into the gate posts, hinges and latch sets you need, then helps you plan the opening, the posts and the sag prevention. A gate with the wrong hardware sags on its hinges within months. Enter the gate count and widths and get the hardware list before you build.
FenceWood Fence CalculatorThis wood fence calculator turns your fence length and height into an exact shopping list: pickets, rails, posts, concrete bags and the materials cost. It counts by the real picket width, so a 1x6 counts as 5.5 in, not 6 in, and it compares cedar, pine and redwood before you commit to a species. Order what the job needs, nothing you will return.
FencePicket Fence CalculatorThis picket fence calculator counts exactly how many pickets your fence needs. Enter the fence length, the picket width and the gap between pickets, and get the picket count with waste, plus posts, rails, concrete bags and the materials cost, with pointed, flat-top and dog-ear picket options and a gap comparison built in. The gap is what most people forget, and it changes the count.
FencePrivacy Fence CalculatorThis privacy fence calculator works out exactly what a 6 ft solid privacy fence needs. Enter the fence length and height, choose wood or vinyl, and get the picket or panel count, posts, rails, concrete bags and materials cost, with a wood-vs-vinyl comparison and height options from 4 ft to 8 ft built in. Solid means no gaps, so every board counts and the wind load is real.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.