Fencing a Garden: Posts, Panels and the Perimeter Rule
Every fence starts as one long line. Before posts, panels or prices, you need the length of that line, and the honest way to get it is the perimeter: walk the boundary of the garden and add up the sides. For a rectangular plot that is easy maths, but the details that follow, post spacing and the gate, are where most material lists go wrong.
Start with the perimeter
Our example garden is a simple rectangle, 40 feet wide and 60 feet long. The perimeter is the two long sides plus the two short sides: 60 plus 60 plus 40 plus 40, which is 200 feet of fence line. Measure each side at ground level and write the numbers down; a sloping side needs its length measured along the slope, not read off a flat map, or the fence will come up short. Almost nobody fences the full line, though. A gate has to go somewhere, and this layout puts a 4 foot gate in one of the short sides, wide enough for a mower and a wheelbarrow. Taking the gate out leaves 196 feet that actually need panels and posts.
Spacing turns feet into panels and posts
Posts are the skeleton of the fence, and for wood panel fences they are usually set 6 to 8 feet apart, measured centre to centre, from the middle of one post to the middle of the next. Eight feet matches the most common ready made panels and uses fewer posts, while 6 feet gives a stiffer fence that handles wind and heavy panels better. This layout uses 6 foot spacing. Dividing the 196 feet of fence by 6 gives 32.67, so the run takes 33 panels: 32 full panels covering 192 feet, and one panel cut down to fill the last 4 feet. Posts follow a simple pattern. On a closed loop the post count equals the panel count, but the gate breaks the loop, so this fence needs one extra: 34 posts, including the two stronger gate posts the gate itself hangs from.
Garden size: 40 ft by 60 ft
Full perimeter: 200 ft
Gate gap: 4 ft, leaving 196 ft of fence
Panels at 6 ft spacing: 33 (32 full, 1 cut to 4 ft)
Posts at 6 ft spacing: 34, including 2 gate posts
Panels at 8 ft spacing: 25
What changes at 8 foot spacing
Run the same garden at 8 foot spacing and the shopping list shrinks: 196 divided by 8 is 24.5, so 25 panels and 26 posts. That is 8 fewer posts to dig, set and pay for, which is why 8 feet is the popular default. The trade is strength. Each post carries a wider sheet of fence, so on an exposed or windy plot the 6 foot layout earns its extra digging. Whichever spacing you choose, add a small allowance for a damaged panel or a cutting mistake before you order. Run your own garden through our Fence Calculator to get panels, posts and rails for your exact boundary.
Post spacing guidance verified against Summit Fence and Hammer.io fence guides, November 15, 2026. Panel and post counts computed exactly from the stated garden size, gate width and spacing.