Skip to content
2x2xKit

Fence Calculator

Calculate how many fence posts and rails you need for a given length.

How this is calculated
Sections = ⌈Fence length ÷ Post spacing⌉; Posts = Sections + 1; Rails = Sections × Rails per section

Assumptions used in this calculation

  • Straight-line fence: Assumes one continuous straight run, corners, gates, and changes in direction need extra posts beyond what this formula accounts for.
  • Even post spacing: Assumes post spacing divides evenly, actual layouts round the last section to fit the site, which can slightly change true spacing.

About this calculator

The fence calculator finds the number of posts and rails needed to build a fence of a given length, based on post spacing and rails per section.

Worked example

100ft fence, 8ft spacing, 3 rails/section

Result: 14 posts, 39 rails

Was this helpful?

Frequently asked questions