Fence Materials Calculator

Enter the length and height of the fence, the post spacing and any gates. You get the posts, rails, pickets or panels, concrete, fasteners and stain.

Building in the UK? Use the UK (metric) version of this calculator.

Jump to your result ↓

Your project

gates

Results

Example job shown. Change the numbers to match yours.

Posts
14 posts
8 ft long, set about one third into the ground. Count a corner post once
What to buy
  • Rails (2×4 × 8 ft)One 2×4 per rail per section, no allowance for cuts. Buy a few spares36 boards
  • PicketsSet tight across the run. Buy a few spares210 pickets
  • FastenersTwo per picket at each of the three rails, counted exactly with no extra. Buy a box with a few spares, since some will strip or snap. Screws hold better than nails1,260 screws
  • 80 lb bagsFooting concrete: a 10 in hole per post with the post embedded at least 24 in (a third of the fence height on a tall fence), less the volume of the 4×4 post itself, with 10% extra. The gravel layer below is extra depth: dig each hole 6 in deeper than the embed depth24 bags
  • Gate hardware kitsHinges, a latch and a brace1 kit
Sections between posts
12 sections

Setting the posts

Drainage gravelA 6 in layer at the bottom of each hole, which is dug 6 in deeper than the post embed depth (the concrete above is not reduced), rounded up to the next whole cubic foot
4 ft³

Finish and hardware

Stain or sealer, both facesAt about 200 ft² a gallon for one coat
6 gallons
  • Check your property line and local rules on fence height, setbacks and permits, and call 811 before you dig. On a slope the fence either steps in level sections or follows the ground, which changes the post heights.

Before you buy: round up to whole packs, check the size printed on the label, and add a little spare. Your supplier has the final say.

Blueprint

100 ft6 ft8 of 12 sections shown

100 ft · 14 posts · 12 sections

How this calculator works

This runs our fence calculator on your measurements. Take away the gates, divide the run by the post spacing for the sections, add an end post and a post for each side of a gate. A 6 ft fence has three rails a section; pickets fill the run at their width. Concrete comes from the post holes, and the other lines follow from the counts.

sections = ⌈(length − gates × gate width) ÷ post spacing⌉posts = sections + 1 + gates

Worked example: 100 ft of 6 ft fence with one 4 ft gate and 8 ft spacing: 12 sections, 14 posts, 36 rails and 210 pickets of 1×6, and 24 bags of concrete for the posts. With prefab panels instead of pickets it is 12 panels.

Assumptions and sources

The assumptions behind your numbers (waste, sizes, rates) are listed in the notes directly under your results, and they update when you change an input.

The formula and a worked example are shown above, so you can check any result by hand. Read how we calculate and check our numbers. Results are estimates for planning: supplier products vary, so check the size printed on the label.

Materials by fence length (6 ft picket fence, one 4 ft gate, 8 ft spacing)

1×6 pickets set tight.

Fence lengthPostsRailsPickets80 lb bags
50 ft81810114
100 ft143621024
150 ft215731936
200 ft277542846

Tips before you buy

  • Find the property line and check local rules before you buy anything. Many places limit a fence to 6 feet in back and less at the front.
  • Walk the line with a string, and mark every gate and corner. A corner post is shared by the two sides.
  • Set posts about one third of their length into the ground, at least 2 feet, and deeper where the ground freezes.
  • Put a few inches of gravel in each hole so that the post bottom is not sitting in water.
  • Brace the gate with a diagonal or a gate frame kit, or it will sag.

Tools & materials for this project

Affiliate links As an Amazon Associate we earn from qualifying purchases. These links do not change what you pay.

Frequently asked questions

How many posts do I need for a 100 ft fence?

14 posts for a 100 ft fence with one 4 ft gate and 8 ft post spacing: 12 sections, an end post, and an extra post for the gate. A corner post is shared by the two sides, so count it once.

How many pickets do I need for 100 ft of fence?

210 pickets of 1×6 (5½ inches actual) set tight across the run. Panels or a different picket width change the count, and a few spares are wise.

How many bags of concrete per fence post?

About 1.7 bags of 80 lb for a 4×4 post in a 10 inch hole with 24 inches of the post embedded in concrete (dig 6 inches deeper for the gravel layer). For 14 posts that is 24 bags. The fence post concrete calculator gives the same count when you enter a 30 inch hole depth with 6 inches of gravel.

How deep should fence posts be set?

About one third of the fence height, and at least 2 feet. A 6 ft fence uses 8 ft posts set about 2 ft deep, and deeper where the ground freezes.

Add this calculator to your website

Running a blog, a contractor site or a class page? You can put this calculator on it for free. Copy the code below, and please leave the link underneath the calculator in place. The small script just resizes the frame to fit the results; if your site strips scripts, the calculator still works inside a scrolling frame.

Get the embed code

Related calculators & guides

Estimates only. Results assume standard materials and simple shapes. Supplier products vary, and the final call on quantity, structure and safety is yours. Check your local code and your supplier's guidance before ordering.