Lelifi·tools

Fence Calculator

A 150-foot run of 6-foot privacy fence with a gate needs 22 posts, 345 pickets, 64 rail boards and 33 concrete bags. At example prices that is $2,171 of materials, about $14.47 per linear foot.

Enter the run length, height and picket layout. The calculator counts the posts, pickets, rails and concrete bags, then prices the materials and the cost per linear foot.

By the Lelifi editors ·

Key takeaways

Where the $2,171 of materials goes, 150 ft of 6 ft fencePickets (345)$1,2082x4 rails (64)$3204x4 posts (22)$264Concrete (33 bags)$214Gate hardware$130Fasteners$35
Pickets are more than half the bill on a privacy fence, which is where a supplier quote moves the total most.
The math behind the fence calculator150 / 8 = 18.75, so 19 bays and 20 line posts, plus 2 gate posts = 223 rails x 150 ft = 450 ft, plus 12 ft of gate frame = 462 ft462 / 8 = 57.75 boards, x 1.10 waste = 63.5, so buy 64150 x 12 / 5.75 in pitch = 313 pickets, x 1.10 = 34522 holes x 0.892 cu ft = 19.6 cu ft, / 0.6 = 32.7, so 33 bags= $2,171 of materials, $14.47 per linear foot
From run length to shopping list: bays, rail feet, picket pitch and concrete bags, in order.
On this page
  1. What the fence calculator counts
  2. Worked example: 150 feet of 6-foot privacy fence
  3. Posts: how many, how far apart, how deep
  4. Pickets and rails: the two numbers that move most
  5. Concrete, screws and gates
  6. DIY or hire it out
  7. What the estimate leaves out

What the fence calculator counts

A wood fence is five piles of stuff, and the calculator works through them in the order you would build them: posts, rails, pickets, concrete and fasteners, then the cost of all five. Each count follows from the one before it.

The waste allowance defaults to 10 percent, which covers split boards, a mis-measured bay and the offcut the saw leaves. Sloped ground and diagonal layouts push that closer to 15 percent.

Worked example: 150 feet of 6-foot privacy fence

Take the default job: 150 feet of 6 foot dog-ear privacy fence, 5.5 inch pickets with a 0.25 inch gap, posts every 8 feet, one walk gate, and a 10 percent waste allowance.

ComponentCountExample priceCostShare
4x4 posts22$12.00 each$264.0012.2%
Pickets, 5.5 in x 6 ft, with waste345$3.50 each$1,207.5055.6%
2x4 rails, 8 ft, with waste64$5.00 each$320.0014.7%
Concrete, 80 lb bags33$6.50 each$214.509.9%
Gate hardware1$130.00$130.006.0%
Screws and fasteners-allowance$35.001.6%

That is $2,171 of materials, or $14.47 for every linear foot of fence. The pickets are more than half the bill, which is the line to watch when a supplier quotes you: a $0.50 difference per picket is $172 across this fence.

The same fence without the gate drops to 20 posts, 62 rail boards and 30 bags, about $1,988. Switching to 3.5 inch pickets at the same gap raises the picket count from 313 to 480 before waste, because the pitch drops from 5.75 inches to 3.75, and the material cost climbs to $2,628. The gap matters more than most people expect: closing it entirely saves 15 pickets, about $53, and gives up the drainage that keeps boards from cupping.

Run the calculator once with the prices from your own supplier and the estimate turns from a guide into a shopping list. Prices in the table are examples, not quotes, and lumber in particular moves with the season.

Posts: how many, how far apart, how deep

Post spacing is the decision that moves the post count the most, and 8 feet on center is the standard for a wood privacy fence. University of Georgia Extension guidance puts rail fences at 8 to 10 feet with wooden line posts set at least 2 feet deep. Spacing widens on flat, straight runs and tightens on slopes, curves and corners.

Fence run6 ft spacing8 ft spacing10 ft spacing
100 ft181411
150 ft262016
200 ft352621

The counts above are line posts only, one more than the number of bays. Corner posts, a gate at each end and a break in the run all add posts, and every gate adds 2 of them because a gate hangs between its own pair.

Depth follows two rules and you dig to the deeper one. The first is the one third rule: a 6 foot fence wants 24 inches of post in the ground, since 12 x 6 / 3 = 24. The second is frost: where the ground freezes, the hole goes to the local frost line plus 6 inches, which is 36 inches or more across the northern states. The fence post depth calculator works the pair out for your fence height and frost line, and the post hole concrete calculator sizes the bags for any hole you end up digging.

Digging is where the day goes. Twenty two holes at 30 minutes each is 660 minutes, or 11 hours, and a two man auger cuts that to about 3 hours. And any hole 4 feet deep or more is a confined space: OSHA's trenching guidance requires a safe way in and out of excavations at that depth on job sites, and the same habit protects a homeowner. Never lean into a hole you cannot climb out of, and keep children and pets away from open holes overnight.

Pickets and rails: the two numbers that move most

Pickets are the biggest line on the bill and the easiest to miscount. The pitch is picket width plus gap, and the count is the run in inches divided by the pitch. For the example fence, 150 x 12 / 5.75 = 313 pickets, and 10 percent waste takes it to 344.3, so buy 345.

LayoutPickets for 150 ftWith 10% wasteMaterialsPer linear foot
5.5 in picket, 0.25 in gap313345$1,988$13.25
5.5 in picket, no gap (5.5 in pitch)327.3360$2,040$13.60
3.5 in picket, 0.25 in gap480528$2,628$17.52

The table below leaves the gate out so the three layouts compare directly.

Three things to notice in that table. Narrow pickets nearly double the count, because the pitch drives everything. Closing the gap does not save pickets, it costs 15 more of them, about $53, and it gives up the drainage that keeps boards from cupping, which is why most installers keep at least a 0.25 inch gap on a privacy fence. And the per foot figures assume the same posts, rails and concrete, so the difference between rows is almost all pickets.

Rails are simpler. A 6 foot fence carries 3 rails and a 4 or 5 footer carries 2, with the top rail 2 to 3 inches below the post top. The example fence needs 3 x 150 = 450 feet of rail, plus 12 feet of frame for the gate, which is 462 feet. Rail comes in 8 foot boards, so 462 / 8 = 57.75, and with waste that is 63.5, so buy 64. Stagger the joints so two boards never end on the same post, or the fence develops a hinge at every eighth foot.

Concrete, screws and gates

Concrete is the part people under-order. A 9 inch hole, 36 inches deep with 6 inches of gravel in the bottom, around a 4x4 post, takes 0.892 cubic feet of mix. Twenty two holes take 22 x 0.892 = 19.6 cubic feet, and an 80 lb bag yields 0.6 cubic feet, so 19.6 / 0.6 = 32.7, which rounds up to 33 bags, about 2 per post. Wet, sandy soil or a 6x6 post pushes that up, and the bags are cheap insurance against a half-set post line.

Fasteners are the other small number that adds up. Two screws at every rail crossing on every picket is 345 x 6 = 2,070 screws, which is four or five 5 lb boxes of exterior deck screws. Ring shank nails work too and go in faster, but screws hold better when a board cups. Budget 5 minutes per picket to hang, level and fasten: 345 pickets at 5 minutes each is 1,725 minutes, just under 29 hours, and that is the single biggest labor item on the fence.

A 4 foot walk gate is a frame of 2x4s, three hinges, a latch and a diagonal brace, plus the 2 posts it hangs between. Hardware kits run $100 to $160 in most US stores, and the calculator carries $130. The brace matters: without a diagonal from the bottom hinge corner to the top latch corner, a wooden gate sags within two seasons. Add a drop rod or a cane bolt if the gate is on a slope, and set the gate posts an inch or two deeper than the line posts, because they carry a swinging load.

DIY or hire it out

The material estimate and the installed price live in different worlds. At $14.47 per foot, materials for the 150 foot fence come to $2,171. Installed wood privacy fencing in most US markets runs $25 to $45 per linear foot, so the same fence built by a crew lands between $3,750 and $6,750, and the difference is labor, equipment, disposal and the crew's speed.

Route150 ft of 6 ft fenceWhat you are buying
DIY materialsabout $2,171Two or three weekends, tool rental, your own waste disposal
DIY with an auger rentalabout $2,300The same fence with 11 hours of hole digging replaced by 3
Hired crew$3,750 to $6,750Speed, straight lines, warranty on the work, disposal included

The middle row is the one worth testing: an auger rental is $75 to $150 a day and removes the hardest third of the job. If the run is longer than 300 feet or the ground is rock or heavy clay, the hired number starts to look different, because that is exactly the ground that breaks DIY schedules.

If you take quotes, take them properly. The FTC's advice on home improvement scams is to get several written estimates that list materials and completion dates, check license and insurance, avoid choosing on price alone, and never pay the full amount up front. A deposit of a third is standard, with the balance due when the fence is done and you have walked it.

What the estimate leaves out

The calculator prices lumber, concrete and hardware. A real fence project has a second list, and it is worth writing down before the first hole:

One last habit: buy the lumber in one trip and stack it flat for a day or two before building. Wet or bowed pickets are the reason the waste allowance exists, and a day of rest in the shade straightens most of them out. Then build the gate last, once the fence has settled, and the whole job holds its line for years.

Frequently asked questions

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

313 pickets of 5.5 inches with a 0.25 inch gap, since 150 x 12 / 5.75 = 313. With a 10 percent waste allowance, buy 345. Narrow 3.5 inch pickets raise the count to 528.

How many fence posts for 150 feet?

20 line posts at 8 foot spacing, because 150 / 8 = 18.75 bays and a fence needs one more post than it has bays. One gate adds 2 posts, so the example fence uses 22 in total.

How much concrete do I need per fence post?

About 0.892 cubic feet for a 9 inch hole, 36 inches deep with a 6 inch gravel base, around a 4x4 post. That is 2 bags of 80 lb mix per post, and 22 posts take 33 bags.

How many bags of concrete for 20 fence posts?

20 holes at 0.892 cubic feet is 17.8 cubic feet, and at 0.6 cubic feet per 80 lb bag that is 29.7, so buy 30 bags. The 60 lb size would take 40 bags for the same holes.

How far apart should fence posts be?

8 feet on center is the standard for a wood privacy fence, and 6 feet on slopes, in high wind, or where the fence turns a corner. A 150 foot run at 6 foot spacing needs 26 posts against 20 at 8 feet.

How much does a 150 foot privacy fence cost?

Materials come to about $2,171 at example prices, or $14.47 per linear foot. Installed by a crew, most US markets run $25 to $45 per linear foot, which is $3,750 to $6,750 for the same fence.

How deep should a 6-foot fence post go?

24 inches by the one third rule, since 12 x 6 / 3 = 24. Where the ground freezes, dig to the local frost line plus 6 inches instead, which is 36 inches or more across the northern states.

How many rails does a 6-foot fence need?

Three rails per bay, with the top rail 2 to 3 inches below the post top. A 150 foot fence with one gate carries 462 feet of rail, which is 64 boards of 8 foot rail after a 10 percent waste allowance.

Do I need a permit to build a fence?

It depends on the city. Many require a permit above 6 feet or for any front yard fence, and an HOA can add rules on height, color and style. One call to the building department answers it before you buy lumber.

How long does it take to build 150 feet of fence?

Plan on two or three weekends for two people. The 22 post holes are about 11 hours with hand tools, hanging 345 pickets at 5 minutes each is just under 29 hours, and rails and layout fill the rest.

Should I leave a gap between fence pickets?

Yes, a 0.25 inch gap is the usual minimum on a privacy fence. It lets rain drain and boards move without cupping or splitting, and it costs only 15 pickets across a 150 foot run compared with no gap at all.

How much waste should I add for fence boards?

10 percent covers split pickets, offcuts and one mis-measured bay. Stepped slopes, diagonal layouts and uneven ground push that to 15 percent, which on 313 pickets means 47 extra boards.

Screws or nails for fence pickets?

Exterior deck screws hold better when boards cup, and the example fence uses about 2,070 of them, two at every rail crossing. Ring shank nails go in faster and cost less, but budget a nail gun for the speed.

Spotted a wrong number or a broken result?

More Home Improvement tools

See all Home Improvement tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.