
Price Your Fence Before You Dig the First Hole
A wood fence looks simple until you stand in the lumber aisle trying to remember whether a 100-foot run needs 13 posts or 17 — and whether that changes how many pickets, rails, and bags of concrete to load into the cart. Guess wrong and you’re either making a second trip or storing warped boards all winter.
Need a price estimate? Try our Fence Cost Calculator.
This free fence calculator turns one measurement — your total fence length — into a complete material list: posts, pickets sized to your exact picket width and gap, horizontal rails, the post length to buy, and concrete bags per post based on your actual hole size. It assumes a straight picket-fence run, the most common DIY fence project.
How this was calculated
Estimates assume a straight run with one end post and no gates — add 1 extra post and gate hardware per gate. Round pickets and rails up and keep 5% spares for warped boards. Check local codes for required post depth and utility locates before digging.

How to Use This Calculator
- Measure the fence line. Measure the total run in linear feet with a tape or measuring wheel. Subtract the width of any gates — each gate gets its own extra post and hardware.
- Enter the fence height. Six feet is the standard privacy height. The calculator uses it to recommend the post length to buy.
- Choose post spacing. Eight feet is the standard for wood fences; six feet gives a sturdier fence in windy or heavy-snow areas.
- Set picket width and gap. A standard 1×6 picket is 5.5 inches wide. Use a 0 gap for a full-privacy fence, or up to an inch or two for a spaced picket look.
- Pick rails per section. Two rails suit fences up to 5 feet; choose three rails for 6-foot and taller fences so pickets can’t bow.
- Size your concrete. Enter your planned hole diameter and depth, then pick your bag size (50, 60, or 80 lb). The calculator works out bags per post from the real hole volume.
- Calculate and shop the list. The results show posts, sections, pickets, rails, and total concrete bags — plus how the numbers were derived so you can sanity-check them.
What Is a Fence Calculator?
A fence calculator is a material takeoff for fencing: it converts the length of your fence line into quantities of posts, pickets, rails, and concrete. Where a generic “how much fence” guess stops at linear feet, a real takeoff accounts for the geometry of the build — posts come one-per-section plus one end post, pickets fill each section edge to edge, and every post sits in a concrete-filled hole with its own volume.
The tricky part is that these quantities interact. Wider post spacing means fewer posts and less concrete, but more pickets per section and longer rails. A wider picket with a bigger gap means fewer pickets overall. This calculator keeps all of those relationships consistent, so the picket count always matches the section count, and the concrete math always uses your hole size — not a one-size-fits-all guess of “two bags per post.”
The Formula (With a Worked Example)
Posts = sections + 1 (one end post finishes the run)
Pickets per section = ⌈section width in inches ÷ (picket width + gap)⌉
Rails = rails per section × sections
Bags per post = ⌈(hole volume − post volume) ÷ bag yield⌉
Worked example: a 100 ft run, 8 ft spacing, 6 ft tall, 5.5 in pickets with a 0.5 in gap, 2 rails per section, 10 in × 24 in post holes, 50-lb concrete bags.
- Sections = ⌊100 ÷ 8⌋ = 12 (covers 96 ft; 4 ft left for a short final section or gate)
- Posts = 12 + 1 = 13
- Pickets per section = ⌈96 ÷ (5.5 + 0.5)⌉ = 16 → 192 pickets total
- Rails = 2 × 12 = 24 (8-ft rails)
- Hole = π × 5² × 24 ≈ 1,885 in³; minus the 4×4 post ≈ 294 in³ → ≈ 0.92 ft³ per post → ⌈0.92 ÷ 0.375⌉ = 3 bags → 39 bags total
- Post length = 6 ft + 2 ft buried = 8-ft posts
Enter these numbers in the calculator above and you will get exactly 13 posts, 192 pickets, 24 rails, and 39 bags of concrete.
Tips for an Accurate Fence Estimate
- Call 811 before you dig. In the US, dial 811 a few days ahead to have underground utilities marked — it’s free and legally required in most states. Striking a line is far more expensive than any material miscalculation.
- Bury one-third of the post. A 6-foot fence wants 2 feet of post underground. In cold climates, dig below the frost line or frost heave will push posts up over winter.
- Use 3 rails on tall fences. Two rails are fine up to about 5 feet, but 6-foot pickets fastened to only two rails can bow and warp within a season. The third rail is cheap insurance.
- Keep 5% spare pickets and rails. Lumber arrives with the occasional warped or split board. Spares from the same batch match better than a later purchase.
- Crown the concrete above grade. Slope the concrete slightly away from the post so water drains off instead of pooling against the wood — this alone can add years to a post’s life.
- Plan gates separately. Each gate needs its own posts (usually beefier, 6×6), hinges, and a latch. Subtract the gate width from your run length, then add the gate materials on top of the calculator’s list.
How Deep Should Fence Posts Be? The One-Third Rule and the Frost Line
Every post-depth rule in fencing comes back to one ratio: bury one-third of the post’s total length. A 6-foot fence therefore needs an 8-foot post — 6 feet above ground, 2 feet below. Shallow posts are the number one cause of fences that lean within a few winters.
Two adjustments matter. First, in cold climates the bottom of the hole must sit below the local frost line; a post whose base freezes in saturated soil gets jacked upward a little more each winter. Second, pour a 4 to 6 inch gravel base in the bottom of each hole before the post goes in — it drains the water that would otherwise pool around the buried end and rot it. Dig the hole about 6 inches deeper than the post’s buried length to make room for it.
More Construction Tools
Frequently Asked Questions
How many posts do I need for a 100-foot fence?
Thirteen posts at the standard 8-foot spacing: 100 ÷ 8 gives 12 full sections, plus one end post to finish the run. The 12 sections cover 96 feet, so plan the remaining 4 feet as a shorter final section or a gate opening.
How far apart should fence posts be?
Eight feet is the standard spacing for wood fences — it matches the 8-foot rails and keeps lumber waste near zero. Use 6-foot spacing in high-wind areas or for heavy board-on-board styles, where the extra posts add real stiffness.
How do you calculate pickets for a fence?
Divide the section width in inches by the picket width plus the gap, and round up: a 96-inch section with 5.5-inch pickets and a 0.5-inch gap needs ⌈96 ÷ 6⌉ = 16 pickets. Multiply by the number of sections for the total, then add about 5% spares.
How many rails do I need per fence section?
Two rails per section for fences up to 5 feet tall, three rails for 6 feet and taller. Rails run the full section length — 8-foot rails for 8-foot spacing — so a 12-section fence with 3 rails needs 36 rails.
How many bags of concrete do I need per fence post?
It depends on your hole size. A typical 10-inch-diameter, 24-inch-deep hole around a 4×4 post needs about 0.92 cubic feet of concrete after subtracting the post — that’s 3 bags of 50-lb mix, 3 bags of 60-lb mix, or 2 bags of 80-lb mix per post. The calculator above does this math from your exact hole dimensions.
How long should fence posts be for a 6-foot fence?
Eight feet: 6 feet above ground plus 2 feet buried (one-third of the post length). If your frost line is deeper than 24 inches, buy 10-foot posts and bury them deeper instead.
How do I account for a gate in the calculation?
Subtract the gate width from your total fence length before calculating, then add back two gate posts (often 6×6 for strength) plus hinges and a latch per gate. Gates need sturdier posts because they carry swinging weight the calculator’s standard posts aren’t sized for.
Should post spacing divide the fence length evenly?
It rarely does, and that’s fine. The calculator uses full sections at your chosen spacing and tells you how much run is left over — end with one slightly shorter section, adjust all spacings a few inches, or absorb the remainder into a gate opening.
Should I put gravel at the bottom of fence post holes?
Yes — 4 to 6 inches of gravel or crushed stone in the bottom of each hole. It gives water somewhere to go instead of pooling around the buried end of the post. Dig the hole about 6 inches deeper than the post’s buried length to leave room for that gravel layer.
How do I build a fence on a slope?
Two methods work. Racking tilts each panel to follow the slope and suits picket and chain-link fences with adjustable rails. Stepping keeps each section level and drops it by a fixed step at each post — the better choice for solid privacy fences, where racking would open wedge-shaped gaps.