Garden Fence Calculator
A 40 ft fence line at 8 ft post spacing needs 6 posts and 1 roll of 50 ft mesh — enter your fence length, post spacing, corners, and gates to get posts, mesh rolls, and rail boards.
Posts
7
Mesh rolls
1
Rail boards
10
- 7 pcs
Fence posts
- 1 rolls
Garden mesh (50ft roll)
- 10 boards
Rail boards (8ft)
80 linear ft of rail
How we calculate this
Posts = fence length ÷ post spacing, rounded up. An open run adds one post to close the last span; an enclosure doesn't, because it ends where it started. Each corner can add one post (sides rarely divide evenly by the spacing), and each gate adds one for the second side of the opening. For an enclosure, enter the full perimeter as the length. Mesh rolls = fence length ÷ roll length, rounded up. Rail boards use two rails running the full length of the fence, split into your rail stock length and rounded up — you can always trim a board, never stretch one.
Estimates only. Check local codes and product labels. Read our full disclaimer.
Popular Standard Sizes & Material Takeoffs
Instant material lists, bag counts, and buying guides pre-calculated for standard project dimensions:
100-Foot Fence
100 linear feet of fence requires 14 posts at 8-foot spacing (or 18 posts at 6-foot spacing), 2 fifty-foot wire mesh rolls, and 26 eight-foot rails.
50-Foot Fence
A 50-foot fence line requires 8 posts at 8-foot spacing (or 10 posts at 6-foot spacing), 1 fifty-foot roll of wire mesh, and 14 eight-foot rails.
FAQ
How many posts do I need for a garden fence?
With posts every 8 ft, a 100 ft fence enclosing a 4-corner garden with one gate needs 17 posts and 2 rolls of 50 ft mesh.
How far apart should fence posts be?
6–8 ft is typical for a wire-mesh garden fence. Closer spacing keeps mesh tighter and stands up better to wind and animals pushing on it.
How tall should a garden fence be?
About 2 ft keeps out rabbits, but deer can clear much higher fences; a fence meant to stop deer needs to be about 8 ft tall.
Embed this calculator
Run a gardening blog or a landscaping business? Add this calculator to your own site for free. Paste the code below into any page; it stays up to date automatically.
Related guides
Plants to grow
Related: Garden fence guides · Raised Bed Lumber Calculator · Concrete Footing Calculator · Arbor & Trellis Calculator





