Fence calculator with posts, rails and gates

Draw your fence line on the map, then open Materials → Fence to get posts, rails, panels and gate openings.

Live tool. Open the full app to save projects, export PDF and KML, and use it offline.

How the fence math works

Example

A 150 ft back-yard fence with one 4 ft gate and 8 ft spacing: run 146 ft → 19 sections → 21 posts before waste (23 with 5% waste) and 57 rails for a 3-rail privacy fence (60 with waste).

Tips for an accurate fence line

FAQ

How far apart should fence posts be?

Usually 6 to 8 ft for wood privacy fences and up to 10 ft for chain link. Check your local code and panel size.

Does the calculator include gates?

Yes. Enter the number and width of gates; the opening is removed from the run and gate posts are added.