YardageKit

Fence Calculator

Enter the fence length. You get posts, rails and pickets.

Fence
More options
Pickets
Adds a post each. Pickets still cover the gate width.
Prices
More prices
Pickets to buy230 pickets
4×4 posts14 posts
Post length8 ft, set 2 ft deep
2×4 rails, one per row in each section39 rails
80 lb bags of concrete for the posts22 bags
Total cost of the prices you entered
6 ft8 ftlast 4 ft100 ft run, 13 sections

How to calculate fence materials

Measure each straight run along the property line and add them up: that is the fence length. Divide it by the post spacing to get the sections, rounded up. Posts are the sections plus one. A fence 100 ft long with posts every 8 ft has 100 ÷ 8 = 12.5, so 13 sections and 14 posts.

Each section takes one 2×4 rail per row. A 6 ft fence has 3 rows, so 13 × 3 = 39 rails of 8 ft. Pickets cover the whole length: 100 ft is 1,200 in, and 1,200 ÷ 5.5 = 218.2, so 219 pickets side by side, or 230 with 5% extra.

Posts and concrete

Bury about a third of the fence height, and never less than 2 ft. A 6 ft fence uses 8 ft posts set 2 ft deep; an 8 ft fence uses 12 ft posts set 2 ft 8 in deep. Gate posts and windy sites go deeper. Post spacing by fence type: how far apart fence posts should be.

Dig a 10 in hole for a 4×4. At 2 ft deep, the hole minus the post holds 0.92 cu ft: about 1.5 bags of 80 lb, so 22 bags for 14 posts. The guide on concrete per fence post gives other holes, and the post hole concrete calculator works out any size and fast-setting bags.

Rails, pickets and privacy

Use 2 rails up to 4 ft, 3 rails for 5 and 6 ft, and 4 rails for 8 ft: about one rail per 2 ft of height. Rails of 8 ft fit an 8 ft spacing. For 6 ft spacing, cut 12 ft rails in half.

A privacy fence has no gap. A picket fence leaves a gap: with 5 1/2 in pickets and a 2 in gap, each picket takes 7 1/2 in, so 161 pickets for 100 ft, or 170 with 5% extra.

Gates and corners

Each gate adds one post, since the gate needs a post on both sides. Each corner needs its own post: type the corners, and the calculator adds one post per corner. An L-shaped fence of 50 + 50 ft takes 15 posts against 14 in a straight line. When a corner falls right on the post spacing (48 + 48 ft at 8 ft), that post was already counted and one is spare. Pickets follow the whole length. Each side ends in a short section, and short pieces share a rail only when they fit, so the calculator adds one rail per row for every two corners: a U of 13 + 13 + 13 ft takes 18 rails, not 15.

What a wood fence costs

A 6 ft wood privacy fence costs about $25 to $50 per linear foot installed, materials and labor, in 2026 price guides: pressure-treated pine at the low end, cedar at the high end. 100 ft comes to about $2,500 to $5,000, and 200 ft to about $5,000 to $10,000.

Building it yourself, you pay for the materials only: type your prices under Prices to get the total. Premade panels are often cheaper and quicker than building picket by picket on flat ground; on a slope, posts, rails and pickets follow the ground better.

US measurements

Fence length goes in feet and picket width in inches. Lumber names are nominal: a 4×4 post is 3 1/2 × 3 1/2 in and a 2×4 rail 1 1/2 × 3 1/2 in. A 1×6 picket is about 5 1/2 in wide. For 100 ft 6 in, type 100.5 or pick ft + in beside the box.

Common mistakes

Counting posts as sections: there is always one more post than sections.

Using the nominal picket width: a 6 in picket is really 5 1/2 in, which adds about 19 pickets per 100 ft.

Posts too short: the length above ground plus the part in the ground. A 6 ft fence on 6 ft posts sits too low.

Forgetting a few spare pickets: some split or warp. Add 5 to 10%.

FAQ

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

About 219 pickets 5 1/2 in wide set side by side, or 230 with 5% extra. With a 2 in gap, 161.

How far apart should fence posts be?

6 to 8 ft. 8 ft is standard for wood fences; 6 ft is stiffer for windy sites or heavy boards.

How many fence posts do I need?

The sections plus one, plus one per gate and up to one per corner. A straight 100 ft fence with posts every 8 ft takes 14 posts.

How many bags of concrete per fence post?

About 1.5 bags of 80 lb for a 4×4 in a 10 in hole 2 ft deep, and about 2.3 bags at 3 ft deep.

How much would 200 feet of privacy fence cost?

About $5,000 to $10,000 installed for 6 ft wood, at $25 to $50 per linear foot. Built yourself, it takes 459 pickets, 26 posts, 75 rails and 40 bags of concrete.

How many rails does a 6 ft fence need?

Three 2×4 rails per section: one near the bottom, one in the middle and one near the top.

Guides

Related tools

Add this calculator to your site

Free for any website. Paste this code into an HTML block where the calculator should appear.

Preview