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.

Standard Fence Runs:100-Foot Fence50-Foot Fence

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.

Popular Standard Sizes & Material Takeoffs

Instant material lists, bag counts, and buying guides pre-calculated for standard project dimensions:

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