Fence Calculator

Calculate all the materials needed for your fence project including posts, rails, and pickets.

How to Calculate Fence Materials

Building a fence requires careful planning to get the right amount of materials. This calculator determines the number of posts, rails, and pickets based on your total fence length, post spacing, and picket dimensions. It also accounts for gates so you can create an accurate materials list.

Fence Calculation Formulas

  • Number of Sections: Fence Length / Post Spacing (rounded up)
  • Posts Needed: Sections + 1 + (Gates x 2)
  • Rails per Section: 2 for fences under 5 ft, 3 for 5-7 ft, 4 for taller
  • Pickets per Foot: 12 / (Picket Width + Gap in inches)
  • Total Pickets: Fence Length x Pickets per Foot

How to Use This Calculator

  1. Enter total fence length: The perimeter you want to fence in feet.
  2. Set fence height: Standard residential heights are 4-6 feet.
  3. Set post spacing: 8 feet is standard for wood fences.
  4. Enter picket dimensions: Width and gap between pickets.
  5. Add gates: Number and width of gate openings.
  6. Click Calculate: Get your complete materials list.

Tips for Your Fence Project

  • Buy 10% extra: Account for defective boards and cutting waste.
  • Check property lines: Ensure your fence is on your property, not the neighbor lot.
  • Call before you dig: Contact 811 to mark underground utilities.
  • Use pressure-treated posts: They resist rot when buried in the ground.
  • Consider cedar or composite: They require less maintenance than pine.

Fence Calculator FAQ

How far apart should fence posts be?

Standard fence post spacing is 6-8 feet for most fence types. Wood privacy fences typically use 8-foot spacing, while chain-link fences use 10-foot spacing. Shorter spacing (6 feet) provides more strength, especially in areas with high winds.

How deep should fence posts be?

A general rule is to bury one-third of the post length underground. For a 6-foot fence, use 8-foot posts with 2 feet buried. In cold climates, posts should extend below the frost line. Setting posts in concrete provides the most stability.

How many pickets do I need per foot of fence?

For standard 3.5-inch pickets with no gap, you need about 3.4 pickets per linear foot. With a 0.5-inch gap between pickets, you need about 3 per foot. For 5.5-inch dog-ear pickets, you need about 2.2 per foot with no gap.

How much does a wood fence cost?

A standard 6-foot wood privacy fence costs $15-30 per linear foot for materials only. Including professional installation, expect $25-50 per linear foot. For a 150-foot fence, total cost ranges from $3,750-$7,500. Cedar costs more than pine but lasts longer.

Do I need a permit to build a fence?

Most municipalities require a permit for fences over 6 feet tall, and some require permits for any fence. Check with your local building department. You should also confirm your property lines with a survey and discuss plans with neighbors before building.