Toolstia / Fence calculator

fence calculator

Enter the fence length and the spacing between posts to find how many sections, posts and rails you need. Add gates and optional picket sizes for a complete shopping list.

Sections are rounded up so that no gap is wider than the distance you set. Each gate adds one extra post, and each corner or end post is counted in the post total. Buy a few spare pickets and rails for cutting and mistakes. Check local height and boundary rules before building.

How it works

  1. Enter the total length and post spacing.
  2. Add gates, rails and picket sizes if you need them.
  3. Read the quantities.

Sections and posts

Sections are rounded up so no gap is wider than your spacing. An open run has one more post than sections, and a closed loop has the same number.

Gates

The gate width is taken out of the fence length. Each gate adds one extra post, because it needs a post on each side.

Rails and pickets

Rails are counted per section. Pickets are the length of fence divided by picket width plus gap.

Buy extra

Allow a few spares for cutting and mistakes, and check local rules for height and boundaries.

Questions

What spacing should I use?

Around 1.8 to 2.4 metres (6 to 8 feet) is common, but follow the rail and panel size you buy.

Does it work for panels?

Yes. Set the post spacing to the panel width and leave the picket boxes empty.

Is my data stored?

Everything happens in your browser, and nothing you enter is sent anywhere.