Fence Calculator

Enter your fence length, post spacing, rail count, and picket width to instantly calculate how many posts, rails, and pickets you need.

Fence Parameters

Common: 6 ft or 8 ft between post centers.

Include gap in this value for spaced pickets. Standard 1×4 = 3.5 in.

Fill in your fence details and click Calculate to see your materials list.

Summary

Enter your fence length, post spacing, rail count, and picket width to instantly calculate how many posts, rails, and pickets you need.

How it works

  1. Enter the total length of the fence run in feet.
  2. Set the on-center post spacing (typically 6 or 8 feet).
  3. Choose how many horizontal rails span each bay (usually 2 or 3).
  4. Enter the width of each picket or board in inches.
  5. Optionally add a waste percentage (5–10% is standard).
  6. The calculator returns post count, rail count, and picket count — ready for your shopping list.

Use cases

  • Planning a wood privacy fence around a backyard.
  • Estimating picket quantities for a decorative front yard fence.
  • Calculating rail lumber for a split-rail or ranch-style fence.
  • Comparing material costs for different post spacing options.
  • Building a temporary construction site barrier.
  • Replacing or repairing a section of an existing fence.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu