LazyTools

🔒 Every tool runs in your browser — the files and values you enter are never uploaded to any server. How it works

🪵 Fence Calculator

Enter your fence length and post spacing, and get the number of posts, panels or sections, and rails you’ll need.

Posts

14

sections + 1 end

Panels / sections

13

Rails

39

3 per section

Sections = length ÷ spacing (rounded up); posts = sections + 1. Add extra posts for corners and gates. 🔒 In your browser.

Rate this tool:
Anonymous — no account, no identifier

How the fence calculator works

The number of sections is the fence length divided by the post spacing (rounded up), and the number of posts is the sections plus one (an extra for the final end). The tool also estimates rails, using two or three per section depending on the fence height.

A common post spacing is 2.4 m (8 ft) for panel fencing. Corners and gates need extra posts, and gate openings interrupt the run — plan those separately.

Frequently asked questions

How many fence posts do I need?

Divide the fence length by the post spacing and round up to get the number of sections, then add one post for the far end. A 30 m fence at 2.4 m spacing needs 13 sections and 14 posts.

What is the standard fence post spacing?

About 2.4 m (8 ft) for panel fencing, or the width of your panels. Closer spacing is stronger and better in windy or exposed spots.

How many rails per section?

Two rails for fences up to about 1.2 m, and three for taller fences, to keep the boards straight and rigid. The tool uses this rule.

Do corners and gates need extra posts?

Yes — each corner and each side of a gate needs its own post, and gate posts should be heavier. Add these to the estimate for your layout.

How deep should fence posts be set?

Usually about a third of the above-ground height, or at least 600 mm (2 ft), set in concrete for stability — deeper for tall or exposed fences.

Related home & DIY tools