Fence Cost Calculator

In this guide
  1. How this calculator works
  2. How to measure your fence line
  3. Fence cost per foot by material
  4. Price by fence height
  5. How many posts and sections you need
  6. What to type in the gate and removal boxes
  7. Worked example: 150 ft wood fence with one gate
  8. What pushes fence prices up or down
  9. Related cost guides
  10. Where the prices come from
  11. Common questions

Enter your fence length and material to see the installed price, plus how many posts and sections you need. A 150 ft wood fence runs about $2,250 to $5,250 installed at national prices.

1. Measure the fence line

Measure every side you want fenced and add them up.

2. Pick the fence
3. Gates and old fence

Leave blank if gates are in the per-foot price.

Leave blank if there is no old fence.

If quotes near you tend to run high or low, adjust every price at once.

Edit the prices (use your own quote)

These are national installed prices. Type in the numbers from your quote and the estimate updates.

ItemLow $High $
Wood (per linear ft)
Vinyl (per linear ft)
Chain link (per linear ft)
Aluminum (per linear ft)
Composite (per linear ft)
Wrought iron (per linear ft)
Steel (per linear ft)
Split rail (per linear ft)

Estimated cost

– to –

How this calculator works

Fence contractors quote by the linear foot, installed. The calculator multiplies your total length by the price per foot, then adds any gate and removal prices you enter from your quote. Sections are the length divided by the post spacing. Posts are one per section plus one to finish the run, plus one for each corner and gate.

How to measure your fence line

Fence contractors price by the linear foot, so the one number that matters most is the total length. Walk the line with a measuring wheel or a long tape:

  1. Measure each side separately and add them up. Skip any side where the house wall or a neighbor’s fence closes the gap.
  2. Include gate openings in the total. The calculator prices the fence across the full length and adds each gate on top, so it leans slightly high. If your quote subtracts gate widths, do the same.
  3. Count corners: every place the fence turns needs its own corner post.
  4. Count gates: walk gates and drive gates are usually priced on their own line.
  5. Post spacing: 8 ft is the usual baseline (Homewyse prices posts set in concrete every 8 ft). Choose 6 ft if your panels are 6 ft wide or your installer sets posts closer.

Check your property line before you measure. A survey or your plat map shows where the line actually runs. Ask your town or HOA whether the fence has to sit a set distance inside it.

Fence cost per foot by material

The calculator starts with the national installed prices below. HomeGuide’s 2026 figures run higher for most materials, so check your quote against both. The last column is a 150 ft fence at the calculator’s prices:

MaterialCalculator starting price, per ftHomeGuide installed, per ftLifespan (HomeGuide)150 ft at calculator prices
Wood$15 to $35$20 to $5015 to 50 years$2,250 to $5,250
Vinyl$15 to $40$30 to $6020 to 30 years$2,250 to $6,000
Chain link$12.25 to $40$9 to $3015 to 20 years$1,840 to $6,000
Aluminum$15 to $40$25 to $7530 to 50 years$2,250 to $6,000
Composite$22 to $40$20 to $8525 to 30 years$3,300 to $6,000
Wrought iron$22 to $40$50 to $8550 to 100 years$3,300 to $6,000
Steel$15 to $60Not listedNot listed$2,250 to $9,000
Split rail$15.50 to $39Not listedNot listed$2,330 to $5,850
Calculator prices from Fixr and NerdWallet (see Where the prices come from). HomeGuide fence installation cost and lifespans (Feb 2026). Excludes gates, removal and permits.

Same 150 ft fence line, eight materials

Wood: $2,250 to $5,250

Chain link: $1,840 to $6,000

Split rail: $2,330 to $5,850

Vinyl: $2,250 to $6,000

Aluminum: $2,250 to $6,000

Composite: $3,300 to $6,000

Wrought iron: $3,300 to $6,000

Steel: $2,250 to $9,000

Scale: $0 to $9,000. Installed at the calculator’s starting prices, before gates, removal or local price adjustment.

Price by fence height

The calculator has no height setting, so its starting prices fit a typical backyard fence. For a taller or shorter fence, type a per-foot price from this table into Edit the prices:

MaterialAbout 4 ft (picket)6 ft8 ft
Wood$20 to $40$25 to $50$50 to $75
Vinyl$30 to $45$40 to $60$60 to $85
Chain link$10 to $20$13 to $30$20 to $40
Installed cost per linear foot. HomeGuide wood and vinyl fence guides (Dec 2025) and chain-link guide (Aug 2025). More detail in our 6-foot privacy fence cost guide.

How many posts and sections you need

Sections are the fence length divided by the post spacing, rounded up. Posts are one per section plus one to finish the run. Add one more post for every corner and gate. For a straight run:

Fence lengthSections at 8 ftPosts at 8 ftSections at 6 ftPosts at 6 ft
100 ft13141718
150 ft19202526
200 ft25263435
250 ft32334243
300 ft38395051
Calculator math for a straight run with no corners or gates.

What to type in the gate and removal boxes

Gates and tear-out are the two lines most often missing from a per-foot price. If you don’t have a quote yet, these 2025 to 2026 figures are a fair starting point:

ExtraTypical costSource
Walk gateFrom $150; a manual wood gate averages $400HomeAdvisor, Angi
Vinyl gate, 4 to 6 ft wide$150 to $780 installedHomeGuide
Old fence removal$3 to $5 per ft, or $10 to $20 per ft with haulingAngi, HomeGuide
Property survey$200 to $545 (up to $1,200)HomeAdvisor, HomeGuide
Permit$20 to $60 (up to $150)Angi, HomeGuide
Angi fence installation cost (Aug 2026); HomeGuide fence installation and vinyl fence guides (2025 to 2026); HomeAdvisor fence installation cost (Jun 2026).

Worked example: 150 ft wood fence with one gate

Worked example: 150 ft of wood fence with 2 corners and 1 gate, replacing an old fence. Sections: 150 ÷ 8 = 18.75, rounded up to 19. Posts: 19 + 1 + 2 corners + 1 gate = 23. Fence: 150 x $15 to $35 = $2,250 to $5,250. Gate: $400 (Angi’s average manual wood gate). Removal: 150 x $4 per ft (middle of Angi’s $3 to $5) = $600. Total: $3,250 to $6,250.

For a full breakdown with permits, surveys and slope work, see our fence installation cost guide.

What pushes fence prices up or down

  • Height and style. A 6 ft privacy fence uses far more material than a 4 ft picket fence.
  • Material. Wood and chain link cost the least. Composite, wrought iron and steel cost the most.
  • Ground. Rocky soil, slopes and tree roots slow down post digging.
  • Gates. Each gate adds hardware and labor and is often priced on its own line.
  • Permits and HOA rules. Many towns cap fence height and require a permit or a property survey.

Before anyone digs post holes, call 811 a few business days ahead so underground utility lines get marked for free.

Where the prices come from

The starting prices are U.S. national installed ranges from 2025 and 2026 cost guides. Open Edit the prices in the calculator to replace any of them with the numbers from your own quote.

Other sources used on this page:

Common questions

How many fence posts do I need?

Divide the fence length by the post spacing (usually 8 ft) and round up, add one post to finish the run, then add one for every corner and gate. A straight 96 ft run with 8 ft spacing needs 13 posts.

Why is my quote different from the calculator?

Local labor rates, fence height, style and site conditions all move the price. Put your quote’s price per foot into Edit the prices to compare materials on the same terms.

Do I need a permit for a fence?

Often, yes, especially for tall fences or fences in a front yard. Check with your city or county, and your HOA if you have one, before you build.

How much does 100 feet of fence cost?

At the calculator’s starting prices, 100 ft runs $1,500 to $3,500 in wood, $1,500 to $4,000 in vinyl and $1,230 to $4,000 in chain link, before gates and removal. A 6 ft privacy fence usually costs more; see the height table above.

Does the calculator include gates and removal?

Only if you type in a price. Enter your gate price and removal price per foot from your quote, or use the typical figures in the table above, and the calculator adds them to the total.