CH
CalcHub

Fence Calculator

Building a fence? This calculator estimates the posts, rails, and pickets you need based on your total fence length and desired height. It uses standard 8-foot post spacing.

Enter Your Measurements

Results

Enter your measurements to see results

How to Use This Calculator

  1. Measure the total length of fence needed in feet.
  2. Choose fence height (4, 6, or 8 feet are standard).
  3. Enter picket width — 3.5 inches is standard for a 1×4 or dog-ear picket.
  4. Enter gap between pickets (0 for a privacy fence).
  5. Review the material estimates.

How Fence Calculation Works

Fence posts are typically set 8 feet apart (6 feet for vinyl or windy areas). Each section between posts gets 2 horizontal rails (3 rails for fences over 6 feet). Pickets span the full length. Posts should be buried at least 1/3 of the total height (a 6-foot fence needs posts set 2 feet deep, so buy 8-foot posts). Each post hole typically needs one 50-lb bag of fast-setting concrete.

Formula

Posts = (Total Length ÷ 8) + 1. Rails = (Posts - 1) × 2 (for 2 horizontal rails). Use 3 rails for fences over 6 feet. Pickets = Total Length ÷ (Picket Width + Gap) in feet.

Frequently Asked Questions

How deep should fence posts be?
Bury fence posts at least 1/3 of the above-ground height, plus 6 inches. For a 6-foot fence, dig holes 30 inches deep. In areas with frost, posts should extend below the frost line — check your local code.
How much does a wood fence cost per foot?
A basic 6-foot privacy fence costs $15–$30 per linear foot for materials, or $25–$50 per foot installed. Cedar costs more than pressure-treated pine but lasts longer without treatment.
How far apart should fence posts be?
8 feet is standard for wood fences. Vinyl fences typically use 6-foot spacing. In areas with high winds, reduce spacing to 6 feet for wood as well. Always set corner and gate posts first.