Fence Cost Calculator
Estimate what a new fence will cost — materials and labor — for wood, vinyl, chain-link, or aluminum, including gates and posts.
Fence Cost Calculator
Costs are typical installed averages (materials + labor) in US dollars, before permits. Enter amounts in your selected currency — no conversion is applied. Rates are quoted for a 6 ft fence: 4 ft fences cost about 15% less per foot, 8 ft fences about 20% more. Actual quotes vary by region, terrain, and gate style.
Formulas:
Fence cost = Length (ft) × Rate per ft × Height factor (4 ft: 0.85, 6 ft: 1.0, 8 ft: 1.2)
Gates cost = Number of gates × $250
Posts = Length ÷ 8, rounded up, plus 1
Total cost = Fence cost + Gates cost
What This Fence Cost Calculator Does
Fences are priced by the linear foot, and the price per foot depends on the material and the height. This calculator gives you a realistic installed cost — materials plus labor — for the four most common fence materials: chain-link, wood, vinyl, and aluminum. Enter the fence length, pick the height and material, add the gates, and you get an itemized estimate: the fence itself, the gates, the number of posts, the total, and the all-in cost per linear foot.
The rates are typical installed averages for a 6-foot fence on flat ground, built by a contractor. A 4-foot fence costs about 15% less per foot because it uses less material and shorter posts; an 8-foot fence costs about 20% more because it needs deeper footings and heavier posts. The calculator applies those adjustments automatically. Gates are priced at $250 each, which covers a standard walk gate with hardware; a wide double gate for vehicle access costs more.
How to Use the Calculator
Measure the fence line in feet. The easiest way is to walk the boundary with a measuring wheel or a long tape, or to measure it on a plot plan if you have one. Do not forget to subtract any existing fence, walls, or buildings that already close off part of the boundary — you only pay for the new fence. Then pick the height: 4 feet for a front yard or garden fence, 6 feet for a backyard privacy fence, 8 feet for maximum privacy or security.
Choose the material, then count the gates. Most properties need at least one walk gate; a backyard usually needs two, so you can get in from both sides. A gate for a ride-on mower or a vehicle needs to be at least 4 feet wide, and a double gate for a truck needs 10 to 12 feet. The results update as you type, so you can compare materials quickly — try chain-link versus vinyl on the same length and see the difference.
Fence Material Costs Compared
Chain-link costs $15 per linear foot installed and is the cheapest option by a wide margin. It lasts 20 years or more with almost no maintenance, and it is the best choice for a large area on a budget or for keeping pets in. Its weakness is privacy: it is see-through, and adding privacy slats costs extra and never looks as good as a solid fence.
Wood costs $25 per linear foot installed and is the most popular residential fence material. A cedar or pressure-treated pine privacy fence looks good, provides full privacy, and can be stained to match the house. It lasts 15 to 20 years with regular staining and sealing, but it needs maintenance every few years, and individual boards warp and crack over time.
Vinyl costs $35 per linear foot installed and lasts 25 to 30 years. It looks like painted wood, never needs staining, and will not rot, warp, or attract insects. The downsides are the higher upfront cost and the fact that a damaged panel usually has to be replaced whole rather than repaired board by board. Vinyl is also more brittle in cold weather, so it can crack on impact in freezing temperatures.
Aluminum costs $40 per linear foot installed and lasts 30 years or more. It is the premium choice for a decorative fence: slim, elegant, rust-proof, and almost maintenance-free. It provides security and a clear view, which is why it is popular around pools and front yards. It does not provide privacy, and it is the most expensive option per foot.
Worked Example: A 100-Foot Wood Privacy Fence
Take a backyard fence 100 feet long, 6 feet high, built with wood at $25 per foot, with one walk gate. The fence itself costs 100 × $25 = $2,500. The gate costs $250. The total is $2,500 + $250 = $2,750, which works out to $2,750 ÷ 100 = $27.50 per linear foot all in. The fence needs posts every 8 feet, so 100 ÷ 8 = 12.5 sections, rounded up to 13 sections, plus one end post — 14 posts in total.
For comparison, the same length in chain-link at 4 feet high would cost 200 feet at $15 per foot with the 0.85 height factor — that is a different job, so take a 200-foot chain-link fence at 4 feet with two gates: 200 × $15 × 0.85 = $2,550 for the fence, plus 2 × $250 = $500 for the gates, a total of $3,050. And a 50-foot vinyl fence at 8 feet high with no gates: 50 × $35 × 1.2 = $2,100. The height factor matters: the same 50 feet of vinyl at 6 feet would cost $1,750, so the extra 2 feet of height adds $350.
How Many Posts Does a Fence Need?
Posts are spaced 8 feet apart on most residential fences — that is the standard panel length for pre-built sections, and it is the spacing that keeps the rails from sagging. The number of posts is the length divided by 8, rounded up, plus one for the end post. A 100-foot fence needs 14 posts; a 200-foot fence needs 26 posts; a 50-foot fence needs 8 posts.
Corner posts and gate posts are different from line posts: they take more load, so they are usually larger — gate posts are often 6 by 6 inches instead of the 4 by 4 used for line posts — and set in deeper concrete footings. A gate post that is not deep enough will lean within a year, and a leaning gate post means a gate that drags and will not latch. The rule is to bury a third of the post: a 6-foot fence needs a 9-foot post with 3 feet in the ground, set in concrete.
What Else Affects Fence Cost?
Terrain is the biggest variable after material. A fence on flat, clear ground is the cheapest to build. Sloped ground needs stepped panels or racked panels that follow the slope, both of which add labor. Rocky ground makes digging post holes slow and expensive — a post hole in rock can take an hour instead of 15 minutes. Trees, roots, and existing structures in the fence line all add time.
Removing an old fence adds $3 to $5 per linear foot for demolition and disposal. If the old fence has concrete footings, removing them adds more. Gates add cost beyond the $250 in this calculator if they are wide, heavy, or automated: a double swing gate for a driveway can cost $500 to $1,000, and an automatic gate opener adds $1,000 to $3,000.
Permits and surveys are easy to forget. Many areas require a permit for a fence over 6 feet, and some require one for any fence. A permit typically costs $50 to $200. A boundary survey costs $300 to $700 and is worth it if you are not sure exactly where the property line is — building a fence on a neighbour's land is an expensive mistake to fix.
Tips for Getting a Good Price
Get three quotes. Fence prices vary between contractors, and the cheapest quote may use thinner posts, fewer rails, or lower-grade timber. Compare the specifications: post size and spacing, rail count (two rails for a 4-foot fence, three for a 6-foot fence), and the type of concrete used for the footings.
Share the cost with neighbours. A boundary fence benefits both sides, and in many areas the cost is traditionally split. It is worth asking — the worst they can say is no. Get any agreement in writing before the work starts.
Build in the off-season. Fence contractors are busiest in spring and summer. Booking in autumn can mean a lower price and a faster start.
Keep the design simple. Straight runs are cheaper than fences with many corners, angles, and short sections. Every corner needs a braced post, and short sections waste material.
Common Mistakes to Avoid
The most common mistake is building on the wrong line. A fence that encroaches on a neighbour's land can lead to a legal dispute, and a fence built inside your own line gives away land you own. Check the plot plan, and if there is any doubt, get a survey. The $300 to $700 it costs is cheap compared with moving a finished fence.
The second mistake is setting posts too shallow. A post buried only 18 inches will lean within a year or two, especially on a 6-foot fence that catches the wind. Bury a third of the post and set it in concrete that extends below the frost line, or the freeze-thaw cycle will push it up.
The third mistake is forgetting the gates in the budget. Gates are the most expensive part of a fence per foot, and they are also the part that gets used every day. A cheap gate with flimsy hardware will sag and stick; spend the money on solid hinges and a proper latch, and the gate will work properly for the life of the fence.
Frequently Asked Questions
How much does a 100-foot wood fence cost?
About $2,750 installed for a 6-foot wood privacy fence with one gate: 100 x $25 = $2,500 for the fence plus $250 for the gate. Without a gate it is $2,500.
How many posts do I need for a 100-foot fence?
14 posts at 8-foot spacing. Divide the length by 8 (100 / 8 = 12.5, rounded up to 13 sections) and add one end post, giving 14 posts in total.
What is the cheapest fence material?
Chain-link at about $15 per linear foot installed, roughly 40% cheaper than wood at $25 per foot. It lasts 20 years or more with almost no maintenance, but it provides no privacy.
How deep should fence posts be?
Bury one-third of the post: a 6-foot fence needs a 9-foot post with 3 feet in the ground, set in concrete. The footing should extend below the frost line so freeze-thaw cycles do not push the post up.
How much does a fence gate cost?
About $250 installed for a standard walk gate with hardware. A wide double gate for a vehicle costs $500 to $1,000, and an automatic gate opener adds $1,000 to $3,000.