Fencing Calculator

Enter total fence length and post spacing to get posts, pickets, rails, and concrete bags.

👆 Swipe to choose your material
1
Layout
2
Results
🚧 Fence layout
Enter total fence length, height, and post spacing to get your complete materials list.
Total fence length
'
"
= 100.00 ft
Fence height
'
"
= 6.00 ft
Post spacing
📏
6 ft
Privacy fence
📏
8 ft
Standard
⚠️
Posts go 1/3 of their length in the ground — a 9 ft post makes a 6 ft fence. Always call 811 before digging! Check local bylaws for max fence height.
Posts needed
fence posts
Pickets
Material cost
🛒 Complete shopping list
🪵
Fence posts (4×4 treated)
Set 1/3 of length in ground
🪵
Pickets (1×6)
Cedar or pressure treated
🪵
Rails (2×4)
2 rails per bay
~$8 each
📦
Concrete (60 lb bags)
2 bags per post hole
~$7/bag
🔩
Galvanized deck screws
1-5/8", 2 lbs for whole job
2 lbs
~$12/lb
Estimated total
materials only
📋 Breakdown
Total length
Post spacing
Number of bays
🚧
Posts go 1/3 of their length in the ground. Use 2 bags of concrete per post hole. Always call 811 before digging. Check local bylaws for maximum fence height.

Fence Calculator: Posts, Pickets, Rails & Concrete

A 100-linear-foot privacy fence with 6-foot post spacing requires 18 posts, 209 pickets (1×6 boards), 3 rails per bay, and approximately 18 bags of concrete. Our calculator uses the correct 2.09 pickets-per-linear-foot formula for 1×6 boards with standard 1/2-inch spacing — one of the most common sources of significant estimation errors in fencing projects.

Fencing is one of the most frequently underestimated projects in home construction. The most common mistake: calculating picket quantity based on the nominal board width (6 inches) instead of the actual board width (5.5 inches) plus the spacing gap. Using the wrong formula consistently results in 10–15% too few pickets, requiring a second supply run mid-project.

Post Spacing and Structural Considerations

Standard fence post spacing is 6–8 feet on-center. Eight-foot spacing is the maximum recommended for a standard 6-foot privacy fence with 2×4 rails — beyond 8 feet, rails flex noticeably and the fence lacks rigidity. Six-foot spacing is stronger and preferable in high-wind areas or for fences over 6 feet tall. To calculate post count: divide total fence length by post spacing and add 1 for the end post. A 100-foot fence at 8-foot spacing = 100 ÷ 8 = 12.5, round up to 13 bays + 1 post = 14 posts. For corners, gates, and line ends, add additional posts as needed.

Correct Picket Count for 1×6 Boards

A nominal 1×6 fence board is actually 5.5 inches wide. With a standard 1/2-inch gap between boards for drainage and thermal expansion, each board occupies 6 inches of fence width. The industry-standard formula accounts for post widths (typically 3.5 inches for a 4×4 post) and other variables, resulting in approximately 2.09 pickets per linear foot of fence. Our calculator uses this formula precisely. The simpler (and incorrect) 2.0 pickets/foot formula for a 100-foot fence understates quantity by approximately 9 pickets — a meaningful shortage on a large project.

Post Depth and Concrete Requirements

Posts must be set below the frost line to prevent heaving in cold climates. The minimum post depth is the local frost depth plus 6 inches of gravel drainage at the bottom of the hole. In North America, where the frost line is 48–60 inches, posts for a 6-foot fence should be set 5–6 feet deep, leaving 6 feet above grade (post total length: 11–12 feet). A practical rule of thumb: bury 1/3 of the total post length for fences under 6 feet; bury up to 40% for taller or high-wind applications. Each post hole requires approximately 1 bag of fast-setting concrete (50 lb), yielding about 0.375 cubic feet — sufficient for a 10-inch diameter hole 2.5 feet deep.

Rail Layout and Sizing

A standard 6-foot privacy fence uses 3 horizontal rails: one at 6 inches from the top, one at 6 inches from the bottom (code in many areas requires the bottom rail to be at least 2 inches above grade), and one in the middle at 3 feet. Rails are typically 2×4 lumber. Total rail length = number of bays × bay width × number of rails. For a 100-foot fence at 8-foot spacing (12.5 bays) with 3 rails: 12.5 × 8 × 3 = 300 linear feet of 2×4. Purchase 2×4×8 boards for standard 8-foot bays with no cutting waste.

Gate Installation

Gates are the most vulnerable part of any fence and the most common point of failure. Key rules: use 4×4 minimum gate posts, preferably 4×6 for double gates. Set gate posts at least 6 inches deeper than line posts to resist the leverage of a swinging gate. Use heavy-duty strap hinges rated for the gate weight. Every gate needs a latch, a stop (to prevent swinging past 90°), and a diagonal brace (running from the latch bottom corner to the hinge top corner) to prevent sag.

5 Pro Tips for Fence Installation

  • Call before you dig. In Canada, call 811 before digging any post holes. Hitting an underground utility line is dangerous and expensive. The service is free.
  • Set corner and end posts first. Stretch a string line between them at the correct height. All intermediate posts align to the string — this keeps the fence top straight even over uneven terrain.
  • Let concrete cure before attaching rails — 24–48 hours. Attaching rails immediately puts lateral stress on uncured concrete and can compromise post alignment.
  • Use pressure-treated wood for all below-grade components. All fence posts should be rated for ground contact (UC4B). Untreated wood in contact with soil rots in 3–5 years.
  • Pre-drill pickets near the ends to prevent splitting when nails are driven close to the edge — especially important in dry conditions or with harder wood species.

Fencing FAQ

How many fence posts for 100 feet of fencing?

At 8-foot post spacing: 100 ÷ 8 = 12.5, rounded up to 13 spaces + 1 end post = 14 posts. For corners and gates, add additional posts. Our calculator accounts for your specific fence layout including corners and gate openings.

How far down should fence posts be buried?

The standard rule is 1/3 of the total post length below grade. For a 6-foot fence using 9-foot posts: bury 3 feet. In cold climates, add the frost depth: if the frost line is 4 feet, bury at least 4.5 feet. In North America, a 6-foot fence typically requires 10.5–11-foot posts.

What type of wood is best for a privacy fence?

Cedar and redwood are the premium choices — both have natural rot and insect resistance and stay attractive for decades. Pressure-treated pine is the economical standard: UC4B for posts (ground contact), UC3B for rails and pickets. Untreated spruce or pine is not recommended for outdoor fencing — they deteriorate quickly in contact with moisture.

Can I install a fence without digging post holes?

Ground anchor systems (post spikes or drive anchors) are available for above-ground installation. They're faster but not appropriate for frost climates — the post will heave and the fence will misalign over a few seasons. In non-frost climates, high-quality post anchors driven to the correct depth are a practical option for lighter fences.

How long does a wood fence last?

A properly built cedar or redwood fence lasts 20–30+ years with periodic sealing. A pressure-treated pine fence lasts 15–25 years. Key longevity factors: post quality (UC4B treatment), proper post depth below frost line, and a quality exterior stain or sealer applied every 3–5 years. The post is almost always the first component to fail.

© 2025 BuildCalc · Free construction material calculators for DIYers & contractors

About Privacy Policy

Construction FAQ

Common questions answered — straight from the job site.

How many gallons of paint do I need for a 12×12 room?
A 12×12 room with 8-ft ceilings has about 320 sq ft of wall area. At 350 sq ft per gallon, you need roughly 2 gallons for two coats (plus primer if painting bare drywall). Use BuildCalc's Paint Calculator to get the exact number including door and window deductions.
How many sheets of drywall for a 12×12 room?
A 12×12 room with 9-ft ceilings has 4 walls × 12 ft × 9 ft = 432 sq ft of wall area. With 4×8 sheets (32 sq ft) and 10% waste, you need about 15 sheets. Add ceiling sheets separately if needed. BuildCalc calculates this automatically.
How do I calculate flooring for an L-shaped room?
Split the L-shape into two rectangles, calculate each area separately, then add them together. Add your waste factor on top (10% for straight lay, 15% for diagonal). Enter the total combined area into BuildCalc's Flooring Calculator.
How many 80 lb bags of concrete for a 10×10 slab at 4 inches?
A 10×10 slab at 4 inches thick is 33.3 cubic feet = 1.23 cubic yards. One 80 lb bag covers 0.60 cu ft, so you need about 56 bags. For pours over 1 cubic yard, ready-mix concrete is usually more economical. BuildCalc shows both bag count and cubic yards.
What is a "square" in roofing and how do I calculate shingles?
One roofing square = 100 sq ft of roof surface. Standard shingles come 3 bundles per square (about 33 sq ft per bundle). To calculate, measure the footprint of your house at ground level, then apply a pitch multiplier: a 6/12 pitch roof is 11.8% larger than the footprint (factor 1.118). BuildCalc applies the correct multiplier automatically.
What R-value insulation do I need in North America?
North America building code minimums: attic R-41 (recommended R-50+), exterior walls R-22, crawlspace R-20. For new construction or major renovation, always verify with your local municipality — codes vary and are updated regularly. BuildCalc's Insulation Calculator uses these North America values as defaults.
How many 2×4 studs do I need for a 20-foot wall?
At 16" on-center spacing, a 20-ft wall needs about 16 studs (20 ÷ 1.333 + 1 = 16, rounded up). Add 15% for waste, corners, and headers. You also need 3 plates (top plate ×2, bottom plate ×1) × 20 ft = 60 linear feet of plate. BuildCalc's Lumber Calculator handles all of this.
How much gravel do I need for a 10×20 pathway at 3 inches deep?
10 ft × 20 ft × (3/12) ft = 50 cu ft = 1.85 cubic yards. Most gravel weighs about 1.4 tons per cubic yard, so that's roughly 2.6 tons. Order 10% extra for settling. BuildCalc's Gravel Calculator calculates cubic yards and estimated tons for any material type.
How many fence posts and pickets for 100 linear feet?
At 8-ft post spacing: 100 ÷ 8 + 1 = 14 posts. For 1×6 pickets with 1/2" spacing: 2.09 pickets per linear foot × 100 ft = 209 pickets. Add 2 rails per bay = 13 bays × 2 = 26 rails. BuildCalc uses the industry-standard 2.09 pickets/ft formula for accurate counts.
How many bags of stucco for 500 sq ft of exterior wall?
One 80 lb bag covers approximately 27 sq ft per coat. For 3 coats (scratch, brown, finish) over 500 sq ft: 500 ÷ 27 × 3 = 56 bags. If applying over wood framing, add metal lath: 500 ÷ 27 = 19 sheets of lath. BuildCalc's Stucco Calculator handles multi-coat calculations automatically.
How do I calculate thinset (tile adhesive) and grout?
Thinset coverage with a 1/4"×3/8" notched trowel: one 50 lb bag covers about 75 sq ft. Grout coverage: one 25 lb bag covers about 60–80 sq ft (we use 70 sq ft as a conservative average). These values match Schluter and LATICRETE guidelines. BuildCalc calculates both automatically when you select tile flooring.
Should I add a waste factor for tile, and how much?
Yes — always add waste for cuts and breakage. Standard straight lay: 10%. Diagonal (45°) lay: 15–20% because of the larger cuts at edges. Complex patterns or small tiles: up to 15%. Always buy extra from the same dye lot — colours vary between batches. BuildCalc adds the diagonal waste automatically when you select 45° layout.
What is board feet and how do I calculate lumber quantities?
A board foot = 1 ft × 1 ft × 1 inch thick (144 cubic inches). For framing, most contractors count by piece (studs, plates) rather than board feet. At 16" o.c., a standard 8-ft stud wall needs 1 stud per 1.33 linear feet of wall. BuildCalc's Lumber Calculator gives you piece counts for 2×4 framing, not board feet.
How do I measure an odd-shaped room for flooring?
Break the room into rectangles. Measure each rectangle (length × width) and add the areas together. Round up to the nearest square foot. For alcoves or closets, add those areas too — you'll cut from the same flooring. Enter the total combined area into BuildCalc and select your waste factor based on material type.
Do I need a permit for a fence, deck, or concrete slab?
It depends on your municipality. In most North America cities: fences over 2 m (6.5 ft) require a permit; decks over 24 inches above grade require a permit; concrete slabs in the front yard may require a permit. Always check with your local building department before starting. Also call 811 (Canada) or 811 (USA) before digging any post holes.
0
Recent calculations
💡 Use this for quick math on the job site — multiply area × price, divide by tile size, or check quantities.

Quick Construction Calculator

Use Standard mode for everyday math: multiply area × price, add material quantities, or divide total cost by unit count. Tap any history result to reuse it as your next input.

Switch to Ft / In / Fractions mode to add, subtract, multiply, or divide measurements exactly like reading a tape measure — feet, inches, and 1/16th fractions. Ideal for converting room dimensions, calculating cut lengths, or adding up multiple measurements on the fly.