Fence Installation Cost Calculator

</> Embed this calculator on your site

Use this fence installation cost calculator to estimate the full price of a new fence: panels, posts, concrete, gates, labor, permit and a safety buffer. Enter your length and choose a material to see a line-by-line budget and a side-by-side comparison of seven fence types.

Side view: blue is the fence, grey is the concrete footing. Labels update with your numbers when you calculate.
0%25%

Estimates only. By using this calculator you agree to our Terms.

Planning estimate only, not a quote.

</> Embed this calculator on your site

Free for any website, blog, classroom or intranet. No sign-up, no ads inside the embed. Copy the code and paste it into your page.

Preview the embed

How to Use This Fence Installation Cost Calculator

Enter the total length of fence you plan to build, pick a height and material, then fill in the details that change the price: corners, gates, post hole size, soil, local price level and whether you hire a crew. Press Calculate to get a total installed cost, a cost per linear foot, a typical price range, your post and concrete counts, and a table comparing all seven materials using your exact inputs.

Why This Matters

A fence is one of the few home projects where a small planning mistake costs real money, because every extra foot multiplies across panels, posts, concrete and labor. A homeowner who budgets $2,000 for 100 feet of privacy fence from a hardware-store panel price is often surprised by a $3,500 to $4,500 quote once posts, concrete, gates, tax and labor are included. Knowing the full picture before you call contractors helps you spot quotes that are too high, or suspiciously low.

The calculator helps in several situations. When comparing materials, the table shows that 6 ft vinyl runs roughly 55% to 60% more than pressure-treated pine for the same yard (about $5,800 versus $3,700 at the default settings), though vinyl needs no staining. When choosing between DIY and a pro, the labor line shows what you would save, typically 30% to 50% of the total, against the cost of tools, time and the risk of crooked posts. And if your yard has gates, sloped ground or rocky soil, you can see how each pushes the price up before it happens.

How It's Calculated

The estimate starts from the fence face area and a post count, then adds fixed items. Unit prices are approximate US averages and are adjusted by separate multipliers for materials and labor, listed below. Every step is shown so you can reproduce the result by hand.

  • Fence run = total length − gate widths (4 ft per walk gate, 12 ft per drive gate). Face area = run × height.
  • Panels = area × panel price per sq ft × materials multiplier.
  • Posts: line posts = ROUNDUP(run ÷ spacing) + 1 + corners; gate posts = 2 per gate. Post length = height + embedment. Post cost = price per ft × post length × materials multiplier × (line posts + 1.5 × gate posts), since gate posts are heavier.
  • Embedment is the largest of half the above-ground height (so at least one-third of the post is buried), your frost depth, or a 2 ft minimum, rounded up to the next 0.5 ft.
  • Concrete: assumes a round hole (8, 10 or 12 in, default 10) around a 3.5-inch square post, filled with concrete. Volume per hole = (π × (diameter ÷ 2)² − 3.5²) ÷ 144 × embedment, in cubic feet. Bags per hole = ROUNDUP(volume ÷ 0.375 cu ft per 50 lb bag). Cost = bags per hole × posts × $6.50 × materials multiplier.
  • Gates: material = gate width × gate price per ft × (0.5 + 0.5 × height ÷ 6) × materials multiplier, so a 3 ft gate costs less than a 6 ft one. Hardware adds $60 per walk gate and $180 per drive gate, also times the materials multiplier. Gate posts are counted under posts.
  • Labor (professional only) = (area × labor price per sq ft + $100 per walk gate + $250 per drive gate) × terrain factor × labor multiplier.
  • Old fence removal: professional = $4 per ft of total length × labor multiplier (no terrain factor); DIY = $1 per ft for disposal fees, not scaled.
  • DIY tool rental = flat $90 (post-hole auger and similar). Professional jobs have none.
  • Sales tax = tax rate × materials (panels + posts + concrete + gates). Permit & survey is your flat entry and is not scaled.
  • Subtotal = materials + tax + labor + tool rental + removal + permit. Total = subtotal × (1 + contingency %). The typical range shown is 85% to 120% of the total.
Unit prices used (average-price area, 6 ft reference height for gates)
MaterialPanels $/sq ftLabor $/sq ftPosts $/ftGate $/ft wide
Pressure-treated pine1.752.252.2538
Cedar3.002.504.0060
Vinyl3.502.755.5075
Chain link1.001.601.6035
Aluminum4.003.005.0085
Steel / wrought iron6.003.755.50110
Composite6.003.256.00110
Multipliers
SettingMaterialsLaborTerrain
Lower-cost area0.950.85–
Average1.001.00–
High-cost metro area1.101.30–
Flat, easy digging––1.00
Sloped or some roots––1.15
Rocky or very hard soil––1.35

Safety rounding: posts, concrete bags and embedment depth are always rounded up, never down. The one-third-buried and frost-depth rules are common rules of thumb, not a specific code section, and local codes vary. The concrete figure assumes every hole is filled with concrete and bags are bought whole for each hole, which is the cautious side. If you tamp gravel into the lower hole, use a narrower auger or buy exact bag counts, you may use fewer bags, so try the 8 in setting. This is a budgeting estimate, not engineering advice, permit approval or inspection approval.

Worked Example

Take 100 ft of 6 ft pressure-treated pine privacy fence, 8 ft post spacing, 2 corners, a 3 ft frost line, 10 in holes, no gates, flat ground, average prices, professional install, a $75 permit, 7% sales tax and a 10% buffer (the calculator's default settings).

  1. Run = 100 ft, so face area = 100 × 6 = 600 sq ft.
  2. Line posts = ROUNDUP(100 ÷ 8) + 1 + 2 = 13 + 1 + 2 = 16 posts.
  3. Embedment = largest of 6 ÷ 2 = 3 ft, 3 ft frost and 2 ft minimum = 3 ft, so each post is 6 + 3 = 9 ft long.
  4. Each hole holds (π × 5² − 3.5²) ÷ 144 × 3 ≈ 1.38 cu ft of concrete, which is 3.68 bags, rounded up to 4 bags. 16 posts need 64 bags.
ItemCalculationCost
Panels600 sq ft × $1.75$1,050.00
Posts16 × 9 ft × $2.25$324.00
Concrete64 bags × $6.50$416.00
Sales tax7% × $1,790.00$125.30
Labor600 sq ft × $2.25$1,350.00
PermitFlat fee$75.00
Subtotal$3,340.30
Contingency10% × $3,340.30$334.03
Total$3,674.33

The calculator shows this as $3,674, or $36.74 per linear foot, with a typical range of $3,123 to $4,409. Switching to DIY drops the total to about $2,288, a saving of roughly 38%.

Tips & Common Mistakes

  • Locate your property line first. Paying for a survey (or finding your pins) costs far less than moving a fence that sits on a neighbor's land.
  • Call 811 before any digging. Post holes can hit buried gas, electric and water lines. The free locate service is required in most of the US.
  • Do not skimp on post depth. Posts fail at the ground line. Go deeper than the minimum in frost, wind or soft soil, and use 6 ft spacing if in doubt.
  • Count gates early. A gate costs several times more per foot than fence and needs bigger posts and better hardware, so decide where you need them before you get quotes.
  • Get three written quotes and compare them to this estimate line by line, checking that each includes post depth, concrete, haul-away and permit handling.

Frequently Asked Questions

How much does it cost to install a fence per linear foot?

In this calculator, a 100 ft run of 6 ft fence at average prices with a professional install comes to about $26 per foot for chain link, $37 for pressure-treated pine, $50 for cedar, $58 for vinyl, $62 for aluminum, $80 for composite and $82 for steel. Shorter fences cost less and taller fences more, and gates, terrain and local prices all move the number.

Is it cheaper to install a fence yourself?

Usually yes, often by 30% to 50% of the total, and by about 38% at the calculator's default settings, because labor is the biggest single line. You still pay for materials, tax, concrete and tool rental, and you take on the risk of leaning posts or code violations. Choose DIY in the calculator to see your savings.

How deep should fence posts be set?

A common rule of thumb is to bury at least one-third of the post length and set it below your local frost line, whichever is deeper. This calculator also uses a 2 ft minimum, so a 6 ft fence typically gets a 9 ft post with 3 ft in the ground. Your building department can confirm the required depth where you live.

How many fence posts do I need?

Divide the run by your post spacing, round up, then add one for the end and one for each corner. Each gate needs two sturdier posts of its own. The calculator rounds up so you do not come up short.

Do I need a permit to build a fence?

Many cities and counties require one, especially for fences over 6 ft, front-yard fences, or pool enclosures. HOAs often have separate rules on style and height. Check with your local building or planning department and your HOA before you buy materials.

Why is my contractor's quote higher than this estimate?

Quotes often include removal of an old fence, difficult soil, slopes, custom gates, minimum job charges or higher local labor rates. Try setting terrain to rocky, the price level to high, and adding removal to see whether the gap closes. Ask the contractor to itemize anything that still does not match.

Related Tools