Skip to main content
Advertisement
Ad space leaderboard
Construction

Fence Calculator

Free fence calculator with cost estimation. Calculate posts, rails, pickets, concrete bags, and material costs for privacy, picket, and rail fences.

Updates as you type โ–ฆImperial & metric

Fence Dimensions

ft
ft
ft
in
in

Cost Estimation (Optional)

$/ft

Average: $10โ€“$25/ft for wood, $5โ€“$15/ft for chain link

Terrain & Layout

Extra post per corner

Where fence terminates

in

inches of rise per 8ft fence section

10%
0%30%

Enter fence dimensions to see results.

Advertisement
Ad space anchor

About this calculator

How to Calculate Fence Materials Needed

Building a fence requires careful material planning to avoid mid-project runs to the lumber yard and to keep your budget on track. Our fence calculator handles privacy fences, picket fences, rail fences, and board-on-board styles โ€” computing posts, rails, pickets, concrete bags, and cost in one step. Whether you are enclosing a backyard, building a pool fence, or installing a garden border, this tool gives you a complete materials list.

How to Use This Calculator (Step by Step)

  1. Enter total fence length โ€” Measure the full linear feet of your fence line, including all sides. If you have multiple runs, add them together.
  2. Set fence height โ€” Standard heights are 4 feet (picket, pool), 6 feet (privacy), and 8 feet (tall privacy). Height determines rail count and post size recommendations.
  3. Choose post spacing โ€” 8 feet on center is standard. Use 6 feet for high-wind areas or heavy fences. The calculator defaults to 8 feet.
  4. Select fence type โ€” Privacy (no gap), picket (with gap), rail (no pickets), or board-on-board (overlapping pickets for full coverage on both sides).
  5. Set picket width and gap โ€” Standard 1x6 pickets are 5.5 inches actual width. The gap defaults to 0 for privacy fences and 2.5 inches for picket fences.
  6. Add gates โ€” Enter the number of gates and width per gate. Each gate uses two extra posts and reduces the picketed length.
  7. Enter corners and end posts โ€” Specify the number of corners and end posts for accurate post counts. Corners may need extra bracing.
  8. Review results โ€” The calculator shows posts, rails, pickets, concrete bags, rail linear feet, and recommended post size. Enter material prices to see total cost.

How the Calculations Work

The fence calculator follows standard construction formulas used by fencing contractors. Here is the math behind each component:

  • Sections: Total fence length รท post spacing, rounded up. For a 100 ft fence at 8 ft spacing: 100 รท 8 = 12.5, rounded up to 13 sections.
  • Line posts: Sections + 1 = 14 line posts for the example above. Additional posts are added for gates (2 per gate), corners, and extra end posts.
  • Rails per section: Fences 5 feet and taller get 3 rails (top, middle, bottom). Fences under 5 feet get 2 rails (top and bottom).
  • Total rails: Sections ร— rails per section. Rail linear feet = Sections ร— post spacing ร— rails per section.
  • Pickets (privacy/picket): (Fence length โˆ’ gate widths) ร— 12 รท (picket width + gap) = raw picket count. Multiply by (1 + waste%) for the final count. For a 100 ft privacy fence with 5.5" pickets, no gap, and one 4 ft gate: (100 โˆ’ 4) ร— 12 รท 5.5 = 209.5 pickets, plus 10% waste = 231 pickets.
  • Pickets (board-on-board): Same formula but uses effective coverage (picket width โˆ’ overlap). With 1.5 inch overlap on 5.5 inch pickets: effective coverage = 4 inches. Pickets = (Fence length โˆ’ gates) ร— 12 รท 4 ร— (1 + waste%).
  • Concrete bags: 2 bags per post is the default. This accounts for a 12-inch diameter hole, 24โ€“30 inches deep, which is consistent with typical values found in ACI concrete guidance for residential fence post footings.
  • Post size recommendation: Fences 8 feet and taller use 6ร—6 posts. Everything under 8 feet uses 4ร—4 posts. Gate posts always use 6ร—6 for added strength.

Example: A 150 ft privacy fence at 6 ft height, 8 ft post spacing, one 4 ft gate, 5 corners, with 10% waste: Sections = 19. Line posts = 20. Gate posts = 2. Corner posts = 5. Total posts = 27. Rails per section = 3. Total rails = 54. Rail linear feet = 456. Pickets = (150 โˆ’ 4) ร— 12 รท 5.5 ร— 1.10 = 350. Concrete bags = 54.

Measuring Tips

  • Measure the total linear feet of your fence line along the property boundary
  • Account for corners, gates, and changes in elevation
  • Mark post locations with stakes before purchasing materials
  • Check for underground utilities before digging post holes โ€” call 811 at least 48 hours before digging
  • Add 10% extra for waste, cuts, and mistakes
  • Measure along the actual ground contour, not on a map โ€” slopes add length
  • For sloped terrain, decide between stepping the fence (level sections) or racking (following the slope) before calculating pickets

Fence Type Guide

Choosing the right fence type depends on your goals โ€” privacy, decoration, pet containment, or pool safety. Each type has different material requirements and aesthetic characteristics.

Fence Type Height Rails per Section
Picket Fence3โ€“4 feet2
Rail Fence3โ€“4 feet2โ€“3
Privacy Fence6โ€“8 feet3
Board-on-Board6โ€“8 feet3
Pool Fence4โ€“5 feet2โ€“3

Privacy fence: Pickets installed edge-to-edge with no gap. Provides complete visual screening. Best for backyards and property boundaries. Use 5.5" wide (1ร—6) or 3.5" wide (1ร—4) pickets.

Picket fence: Decorative pickets with consistent gaps between them. The classic front-yard fence. Gap width is typically equal to picket width for a balanced look, but can be customized.

Board-on-board: Overlapping pickets that provide full privacy from both sides. Uses more pickets than a standard privacy fence (roughly 50% more) but looks finished on both sides โ€” ideal for shared property lines with neighbors.

Rail fence: Horizontal rails between posts with no pickets. Common on rural properties and for decorative boundaries. Uses the fewest materials of any fence type.

Common Mistakes to Avoid

  • Not calling 811 before digging: Hitting an underground utility line is dangerous and expensive. Call at least 48 hours before you plan to dig. It is free and required by law in most states.
  • Shallow post holes: Posts that are not buried deep enough will lean and eventually fail. In frost zones, holes must extend below the frost line (36โ€“48 inches in most of the US). The general rule is bury at least one-third of the total post length.
  • Using non-treated lumber for posts: Posts in contact with soil must be pressure-treated or naturally rot-resistant species like cedar or black locust. Standard SPF lumber will rot within 3โ€“5 years in ground contact.
  • Skipping concrete footings: While some fence styles can use tamped gravel or dirt backfill, concrete provides the most secure and long-lasting anchoring. It is worth the extra $2โ€“$3 per post in concrete bags.
  • Forgetting to slope concrete away from posts: Concrete should crown slightly above ground level and slope away from the post to shed water. Flat or recessed concrete traps water against the post, accelerating rot.
  • Not planning for gates: Gates need wider posts (6ร—6), extra concrete, and heavy-duty hinges. Account for gate posts and hardware in your material order, and allow at least 3โ€“4 feet for a walk gate or 8โ€“10 feet for a vehicle gate.
  • Ignoring wind load: A 6-foot solid privacy fence acts like a sail in high winds. In exposed areas, consider alternating picket-and-gap designs, shorter heights, or 6-foot post spacing instead of 8 feet.

Tips for Best Results

  • Use pressure-treated lumber or cedar for ground contact posts
  • Set posts in concrete for maximum stability and longevity
  • Use galvanized or stainless steel fasteners to prevent rust and staining
  • Install a gravel base in post holes for drainage before pouring concrete
  • Check local building codes for height and setback requirements
  • Stain or seal wood fences within 2โ€“4 weeks of installation for best protection
  • Space pickets using a custom spacer block for consistent gaps โ€” a simple scrap of wood cut to your gap width saves hours of measuring
  • Pre-cut all pickets and rails before starting installation for faster assembly
  • Use a post level (the kind that straps to the post) to ensure posts are plumb in both directions while the concrete sets

Pro Tips for Contractors

  • When quoting fence jobs, always include a site visit to verify property lines, slopes, and access. Slopes of more than 12 inches over 8 feet may require stepped sections, which change the picket and rail calculations.
  • Use the board-on-board option when clients want privacy on both sides of the fence. It avoids the "good side / bad side" dispute with neighbors and typically commands a 40โ€“50% price premium over standard privacy fence.
  • For gate posts, always use 6ร—6 lumber set in extra-deep concrete (minimum 36 inches). A 4-foot walk gate with hardware weighs 80โ€“120 lbs and a vehicle gate can weigh over 200 lbs โ€” the posts need to handle that moment load without leaning.
  • Order 15% extra pickets for privacy fences and 10% for rail fences. The waste factor covers end cuts, defects, and the inevitable pickets that split during nailing.
  • Pre-build gate frames in the shop using diagonal bracing for squareness. Field-built gates tend to sag within the first year. Use metal gate hardware with adjustable tension rods for long-term serviceability.
  • Include post caps in every quote. They cost $2โ€“$5 per post but extend post life by years by preventing water from entering end grain โ€” the most common point of rot failure in fence posts.

Fence Cost Guide

Material costs per linear foot vary by fence type. Add 30โ€“50% for professional installation labor. These prices reflect typical US averages for wood fencing.

Fence Type Materials/ft Installed/ft
Wood Privacy (6 ft)$10โ€“$18$15โ€“$30
Wood Picket (4 ft)$8โ€“$15$12โ€“$25
Board-on-Board (6 ft)$14โ€“$22$22โ€“$38
Chain Link (4 ft)$5โ€“$10$8โ€“$15
Vinyl Privacy (6 ft)$15โ€“$25$20โ€“$40
Aluminum (4 ft)$12โ€“$20$18โ€“$35

Prices are approximate US averages (2024โ€“2025). Gates add $150โ€“$500 each. Lumber prices can fluctuate significantly.

Post Depth & Concrete Guide

Proper post depth and concrete footing are the most critical factors in fence longevity. The rule of thumb: bury one-third of the total post length, and make the hole diameter three times the post width. These guidelines are consistent with general residential construction practices and are informed by typical values found in ACI concrete guidance for residential footings.

Fence Height Post Size Hole Depth Concrete/Post
4 ft4ร—424 in1โ€“2 bags
6 ft4ร—424โ€“36 in2 bags
8 ft6ร—636โ€“48 in3โ€“4 bags
Gate post6ร—636โ€“48 in3โ€“4 bags

In frost zones, holes must extend below the frost line (36โ€“48 inches in most of the US).

Advertisement
Ad space rectangle
FAQ

Questions

How do I calculate fence materials needed?+
Measure the total linear feet of your fence line. Divide by post spacing (typically 8 feet) to get the number of posts. Add one extra post for the end. Multiply linear feet by the number of rails per section (usually 2-3) to get total rail length. For pickets, divide linear feet by picket width plus spacing to get the count.
How far apart should fence posts be?+
Standard post spacing is 8 feet on center for most fence types. For privacy fences or areas with high wind loads, 6-foot spacing provides extra strength. For lightweight rail fences, posts can be spaced up to 10 feet apart. Always check local building codes for requirements.
How many concrete bags do I need per post?+
For a standard 4x4 post, you need approximately one 80 lb bag of concrete for a 2-foot deep hole. For 6x6 posts or deeper holes (3+ feet), use 2 bags per post. The hole should be 3 times the post width and 1/3 the post length below ground.
What is the standard picket spacing for a fence?+
Standard picket spacing is equal to the width of one picket, typically 3-1/2 inches for a standard 1x4 picket. For a privacy fence with no gaps, pickets are installed tight together. For decorative spacing, use a spacer block equal to the picket width for consistent gaps.
How many rails do I need for a 6-foot fence?+
A standard 6-foot fence typically uses 3 rails per section: one at the top, one at the bottom, and one in the middle. For fences under 4 feet, 2 rails are usually sufficient. The rails are typically 2x4 lumber spanning between posts.
How much does a 100 ft fence cost?+
A 100 ft wood privacy fence costs $1,500-$2,500 in materials (posts, rails, pickets, concrete, hardware). Professional installation adds $1,000-$2,000 in labor for a total of $2,500-$4,500. Chain link is cheaper at $500-$1,500 total. Vinyl costs $2,000-$4,000 installed.
How deep should fence posts be?+
Fence posts should be buried at least 1/3 of the total post length below ground. For a 6-foot fence, use 9-foot posts with 3 feet buried. In areas with frost, posts must extend below the frost line (typically 36-48 inches). Always check local building codes for minimum depth requirements.
Should I use 4x4 or 6x6 fence posts?+
Use 4x4 pressure-treated posts for fences up to 6 feet tall. Use 6x6 posts for fences 8 feet or taller, or for gates and corner posts that bear extra load. 6x6 posts also last longer because they have more heartwood to resist rot.
How many bags of concrete do I need per fence post?+
A standard 4x4 fence post in a 12-inch diameter hole, 2 feet deep, needs about 2 bags of 50 lb concrete. For 6x6 posts or deeper holes, use 3-4 bags per post. The hole diameter should be 3 times the post width.

This calculator provides rough estimates for planning purposes only. Default values are based on general industry reference data. Actual quantities may vary. Always verify with a licensed professional before purchasing materials or beginning construction. Full disclaimer.