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

  • Fence posts

    7 pcs
  • Garden mesh (50ft roll)

    1 rolls
  • Rail boards (8ft)

    80 linear ft of rail

    10 boards
Enter your local prices to see an estimated cost.

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.

Related: Garden fence guides · Raised Bed Lumber Calculator