Fence Calculator

Work out how many fence posts and sections you need, based on total fence length and desired post spacing.

Number of posts
10
20 m fence, 2.4 m post spacing
Number of sections
9
Embed on your website →

How to use the fence calculator

  1. Enter the total length of the fence you're building, in meters.
  2. Enter the desired spacing between each post, in meters — check the recommended maximum spacing for your fence material.
  3. The calculator shows the number of posts and the number of sections (fence panels) you need.

How the post count is calculated

The calculator divides the fence length by the post spacing, rounds up to the nearest whole section, and adds one extra post on top of the sections (since each section needs a post at each end, shared with the neighboring section):

Number of sections = Fence length ÷ Post spacing (rounded up)
Number of posts = Number of sections + 1

Standard post spacing varies by fence type: wood fences often have 2–2.5 m between posts, while heavier materials like wrought iron or masonry may require tighter spacing for adequate strength.

Note: The calculation doesn't account for corner posts, gate posts, or extra reinforcement at direction changes — these must be added manually based on your fence's layout.
Ad space — reserved for future partners

Frequently asked questions

Why is the number of posts one more than the number of sections?

Because each section (panel) needs a post at each end, and neighboring sections share the post between them. For a straight fence with n sections, you therefore need n+1 posts — one extra at each outer edge.

What's a common post spacing for a wood fence?

2–2.5 meters is common for most wood fences, but always check the manufacturer's recommendation for your specific fence system, since spacing affects both stability and material use.

Do I need extra posts at corners?

Yes, corners and direction changes usually require a dedicated post right at the bend point, in addition to the evenly spaced posts along each straight run of fence. This needs to be added on top of this calculator's base calculation.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.