Skip to content
Calc.

Fence Material Calculator

Estimate fence material cost from length, height, post spacing and gates, using your own prices per post, per square foot of fence and per gate.

Last updated: October 2026

Estimated material cost

$1,750.00

Formula below · 1 source (homeadvisor.com) · Updated Oct 2026

Compare with similar

About this calculator

A fence is a row of sections (panels, or rails with boards or mesh) hung between posts. The calculator counts the posts, works out the face area of the fence, and prices both with numbers you enter:

posts = fence length ÷ post spacing, rounded up, + 1 fence face = fence length × fence height (square feet) cost = posts × post price + face × price per sq ft × (1 + waste allowance) + gates × gate price

A straight run always has one more post than sections; a 100 ft fence on 8 ft spacing has 13 sections and 14 posts. The last section is often shorter than the full spacing. Corners need a post where the fence turns, and some gates need their own heavier posts, so add those to the count if your layout has them.

Prices

Material prices vary widely by material, height, region and season, so the price fields hold example values ($50 a post, $1.50 per square foot, $150 a gate). Replace them with what your supplier charges. For pre-made panels, divide the panel price by its area (a 6 × 8 ft panel is 48 sq ft) to get a price per square foot. If you cut boards or mesh to fit on site, choose a waste allowance so the face material covers offcuts and rejects. Concrete or gravel for setting posts, fasteners and delivery are not included. Check local rules on height, setbacks and permits before you build.

How to use

Measure the total length of fence in feet, choose the height and post spacing, enter the number of gates, then replace the example prices with your own. Example (the defaults): 100 ft of 6 ft fence on 8 ft spacing needs 100 ÷ 8 = 12.5, rounded up to 13 sections, so 14 posts. The face is 100 × 6 = 600 sq ft. At the example prices: 14 × $50 + 600 × $1.50 + 1 × $150 = $700 + $900 + $150 = $1,750. A 120 ft fence with the same settings needs 16 posts and 720 sq ft of face: 16 × 50 + 720 × 1.50 + 150 = $2,030. With a 10% waste allowance the face material costs 720 × 1.50 × 1.1 = $1,188, for $2,138 in total.

Frequently asked questions

How many fence posts do I need?

Divide the fence length by the post spacing, round up, and add one. A 100 ft fence on 8 ft spacing needs 14 posts; on 6 ft spacing it needs 18. Add a post for each corner and for any gate that needs its own post.

What post spacing should I use?

Use the width of the panels you are buying. Pre-made wood and vinyl panels are often 6 or 8 ft wide; chain-link line posts are commonly up to 10 ft apart. Closer spacing makes a stronger fence but needs more posts.

Why are the prices only examples?

Fence material costs depend on material, height, region and season, so no single built-in price would be right. Enter a current quote or store prices and the calculator does the counting and the math.

Related calculators

Sources & references

How we check our calculators

Think a result is wrong? Report a problem with this calculator.