Fence Calculator (Posts, Rails & Pickets)

Count the posts, rails and pickets for your fence run. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Enter the total fence length, including any gates.
  2. Enter the post spacing, picket width and gap, and rails per section.
  3. Enter the number of gates and their width.
  4. Read the posts, rails and pickets to buy.

How it works

Fence run = length − gate widths. Sections = run ÷ post spacing, rounded up. Posts = sections + 1 + one extra post per gate. Rails = sections × rails per section. Pickets = run ÷ (picket width + gap), rounded up.

Examples

  • 100 ft with one 4 ft gate, 8 ft spacing, 5.5 in pickets and a 0.5 in gap: 12 sections, 14 posts, 24 rails and 192 pickets.

Limitations

  • A straight run only: corners, slopes and end posts can need extra posts.
  • Add 5 to 10% extra pickets. Check local rules on height, boundaries and permits.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].