Contractors & trades / Fence Calculator

Fence Calculator

Count the posts, rails and pickets for a wood fence, add up the materials, and get the price to quote with labor and markup.

Enter a number from 0 to 100000

Total run, including gate openings.

Enter a number from 0 to 20

Match your rail or panel length, e.g. 8 ft rails give 8 ft spacing.

Whole number, 0–1000

A straight run is counted with one post at each end. Add one per gate side or separate run.

Whole number, 0–6

Taller fences usually need more rails. Follow your fence plan or panel guide.

Pickets

Enter a number from 0 to 24

Enter a number from 0 to 12

%

Enter a number from 0 to 100%

Prices
$

Enter a number from 0 to 1000

$

Enter a number from 0 to 1000

$

Enter a number from 0 to 1000

$

Enter a number from 0 to 100000

On: the answer is the price to quote. Off: the material list only.

Enter a number from 0 to 10000

$

Enter a number from 0 to 1000

$

Enter a number from 0 to 1000

Use instead of hours or on top of them. 0 to skip.

%

Enter a number from 0 to 500%

Covers overhead and profit. A 25% markup is a 20% margin.

Price to quote
$4,060.80
20 · 38 · 360Posts · rails · pickets
19sections
150 ftfence length
$0job price $4,060.80
  • Materials
  • Labor
  • Profit
Sections · 150 ft ÷ 8 ft19
Posts · × $15.00 = $300.0020
Rails · × $8.00 = $304.0038
Pickets · × $3.00 = $1,080.00360
Concrete, fasteners & hardware$200.00
Materials$1,884.00
Labor · 150 fts × $10.00$1,500.00
Markup · 20.0% on cost = 16.7% margin$676.80
Price to quote$4,060.80

Call 811 before digging post holes so buried utility lines are marked, and check local rules on fence height and setbacks.

Turn this into a quote

A one-page PDF for your customer, filled in from the numbers above. Your markup isn't shown.

Quote total
Job done? Make an invoice from this →
See breakdown

How the fence calculation works

  1. Divide the length by the post spacing

    150 ft at 8 ft spacing is 18.75, so 19 sections. A straight run needs one more post than sections: 20 posts.

  2. Add posts for corners and gates

    Each gate needs a post on both sides, and a separate run needs its own end post.

  3. Rails are sections × rails per section

    19 sections with 2 rails each is 38 rails. Taller fences usually need more rails per section.

  4. Pickets are length ÷ picket width plus gap

    150 ft is 1,800 in; at 5.5 in per picket with no gap that is 327.3, or 360 pickets with 10% waste.

  5. Add labor and markup for the quote

    Fence crews often price per linear foot. Enter that, or hours × rate, plus your markup.

Worked example. A 150 ft wood privacy fence with posts every 8 ft has 19 sections, 20 posts ($300), 38 rails ($304) and 360 pickets with 10% waste ($1,080). With $200 of concrete and hardware, materials are $1,884. Labor at $10 per foot adds $1,500 and a 20% markup adds $676.80, so the price to quote is $4,060.80.

Fence FAQ

How many fence posts do I need?

Divide the fence length by the post spacing, round up, and add one for a straight run. Add a post for each gate side and each extra run.

How many pickets do I need for a fence?

Convert the length to inches and divide by the picket width plus gap. 150 ft of 5.5 in pickets with no gap needs about 328, or 360 with 10% waste.

How many rails does a fence need?

Multiply the rails per section by the number of sections. Taller fences usually need more rails, so follow your fence plan or the panel maker's guide. 19 sections with 2 rails each is 38 rails.

How far apart should fence posts be?

Set the spacing to your rail or panel length so each rail spans one section. With 8 ft rails, 150 ft of fence is 19 sections and 20 posts; at 6 ft it is 25 sections and 26 posts. Check your panel maker's guide for its maximum span.

How deep should fence posts be?

QUIKRETE says the hole should be 1/3 to 1/2 of the post height above ground, so a 6 ft fence needs a hole at least 2 ft deep. Make the hole about 3 times the post width (about 12 in for a 4 in post) and put about 6 in of gravel in the bottom.

How much should I charge per foot to install a fence?

Add materials, labor and a markup, then divide by the length to check your price per foot. In this example $4,060.80 for 150 ft is about $27 per foot.

How much concrete do I need for fence posts?

It depends on hole size and depth. QUIKRETE's post calculator gives 4 bags of 50 lb Fast-Setting Concrete for a 4 in post in a 12 in hole 24 in deep, so 20 posts need 80 bags. Add the bag cost to the concrete and hardware line here.

Sources: QUIKRETE: How to set posts (hole size, depth, gravel) · QUIKRETE: Quantity calculator, Set Posts · 811: Call before you dig

Related calculators