Garden Fence Calculator
Plan rodent and deer garden protection with welded wire rolls, posts, and subterranean L-shaped anti-burrow aprons.
Garden fence & pest barrier
Enter your measurements and the result updates as you type.
Overview
Gardens face pests from above and below: deer jump over low perimeters while rabbits, groundhogs, and voles burrow underneath. A true pest-proof garden fence combines vertical height with a buried underground apron.
This calculator sizes perimeter welded wire rolls, posts, and underground L-skirt aprons to protect vegetable beds and fruit trees completely.
Assumptions
- Calculations use standard 100-foot rolls of galvanized welded wire or hardware cloth.
- Post spacing is set to 8 feet on center for rigid mesh support.
- The subterranean apron extends horizontally outward (or vertically) 6 to 12 inches.
- Ground anchor stakes are placed every 3 feet along the apron perimeter.
Common mistakes
- Stopping wire mesh at ground level without an underground apron, allowing rabbits and groundhogs to burrow under in minutes.
- Using plastic netting that rodents easily chew through within days of planting.
- Building garden fences 5 to 6 feet high for deer, which is high enough to attract deer but low enough for them to clear easily (aim for 4ft for small pests or 8ft for deer).
- Using wide 2x4 mesh near the ground where baby rabbits squeeze straight through.
Next step
- Fence perimeter calculator Get the total perimeter feet and the post sections that length implies for a rectangular yard, with the spacing math shown.
- Fence post calculator Calculate line posts, corner posts and end posts from run length and spacing, with concrete for each post included in the take-off.
Related calculators
- Deer fence calculator Size a deer barrier at the 8 foot height deer respect, with a full post, panel and concrete take-off for the run.
- Dog fence calculator Size the containment height, gate and full material take-off for a dog fence, from small breeds to escape artists.
- Goat Fence Calculator Calculate non-climb woven wire mesh rolls, T-posts, corner brace assemblies, and clip fasteners for secure goat paddocks.
- Chain link fence calculator Calculate line posts, terminal posts, top rail and concrete for a chain link fence run, with 10 foot post spacing as the default.
Related reading
In-depth guides
Buying guide
A garden fence calculator has to solve two separate problems that a normal perimeter fence never has to consider at the same time: keeping animals from jumping in over the top, and keeping a different set of animals from digging in underneath. Deer clear a low perimeter without effort, while rabbits, groundhogs and voles go under rather than over, so a fence that only addresses height leaves half the garden exposed. The actual fix is a vertical wire mesh perimeter paired with a buried L-shaped apron that bends outward at ground level, which is exactly what this calculator sizes: perimeter rolls of welded wire or hardware cloth, posts at the spacing the mesh needs, and the underground apron length and anchor stakes that stop a burrowing animal before it clears the line.
The apron is the part of this take-off that a general fence calculator has no equivalent for. Mesh that bends 90 degrees at ground level and extends 6 to 12 inches outward underground stops a digging animal because it hits a wire barrier below the surface rather than open soil, and the apron can either be buried a few inches under turf or mulch, or laid flat on the surface and pinned with stakes every few feet, since grass grows through the mesh within weeks either way and the visual difference disappears. Skipping the apron and stopping the wire at grade is the most common reason a new garden fence fails within the first season: it looks complete above ground while leaving an open route underneath it for rabbits and groundhogs that a taller fence alone will never address.
Mesh size and fence height both depend on which animal the garden actually needs to exclude, and they are not the same decision. Half-inch or 1-inch galvanized hardware cloth on the bottom two feet of the fence stops small rodents and young rabbits that would pass straight through wider welded wire, while deer exclusion needs real height, at least 8 feet for a vertical fence, since a 6 foot fence is well within an adult deer's jumping range. A fence built to a middle height of 5 or 6 feet for deer accomplishes very little: it is tall enough to look like a deterrent and still low enough for a deer to clear, which is the most common design mistake on garden perimeters built to look right rather than to test right against the taller deer fence calculator standard. If deer are not the target, posts can run on wider spacing and the fence can stay at a height matched to rabbits, voles and groundhogs instead.
Garden fencing borrows directly from the other livestock and animal calculators on this site even though the scale is usually smaller. The underground apron technique mirrors what keeps goats from pushing under a paddock fence on the goat fence calculator, and gardens that also need to keep a family dog out of raised beds can run the dog fence calculator alongside this one for the containment side rather than the exclusion side of the same perimeter. Where chain link is the preferred material for a larger garden or orchard enclosure, the chain link fence calculator handles that take-off with the same perimeter logic. The guide on deer fence height, what actually works is worth reading before committing to a height, and the piece on the best fence for a dog covers containment choices if pets share the same yard.
Once mesh type, height and apron depth are decided, run the perimeter through the fence perimeter calculator for an irregular garden footprint, and check post spacing against the fence post calculator if you are moving away from the lighter T-post or U-channel posts this calculator assumes toward a heavier wood or metal post. The fence materials guide compares wire coatings and mesh durability in garden soil specifically, and the property line and setback guide is worth a look if the garden perimeter runs anywhere near a shared boundary line. The rest of the animal exclusion and containment calculators on this site, including deer, goat and dog, sit together under the animals category page.
Gate design on a garden fence deserves more thought than it usually gets, since it is the one spot in an otherwise continuous wire perimeter where both the height and the apron protection can fail at once if the gate is not built carefully. A garden gate needs the same anti-dig treatment as the rest of the fence line, either a buried apron section under the gate swing or a sill board the gate closes against, and the latch should be one that stays closed on its own rather than relying on someone remembering to secure it every time they carry out a harvest basket. Seasonal maintenance matters too: mulch, compost and fallen leaves pile up against the base of a garden fence over a season, and if that buildup bridges over the buried apron it can give a digging animal a shortcut that defeats the underground barrier entirely, so clearing debris away from the fence line once or twice a year keeps the original apron depth doing its job.
Frequently asked questions
What is a garden fence apron and why is it needed?
An apron is wire mesh that bends 90 degrees at ground level and extends 6 to 12 inches outward underground. Animals attempting to burrow hit the wire barrier and stop.
What mesh size keeps rabbits and rodents out of gardens?
Use 1/2-inch or 1-inch galvanized hardware cloth on the bottom 2 feet of the fence to stop small bunnies, groundhogs, and voles.
How tall must a garden fence be to stop deer?
To reliably exclude white-tailed deer, a vertical garden fence must be at least 8 feet (96 inches) tall. A 6-foot fence can be jumped by adult deer.
How many rolls of wire are needed for a 120-foot garden perimeter?
A 120-foot perimeter requires two 100-foot rolls of wire mesh, leaving 80 feet of excess for patching, gates, or compost bin enclosures.
Can you use steel T-posts for garden fencing?
Yes. Green powder-coated steel T-posts or U-channel metal posts blend into garden landscapes and install quickly without digging concrete holes.
How deep should a garden fence apron be buried?
Bury the L-apron 2 to 6 inches beneath turf, mulch, or gravel. You can also lay it flat on the surface and pin it with stakes; grass grows through within weeks.
How wide should a garden entrance gate be?
Make garden walk gates at least 36 to 48 inches wide so you can comfortably push a loaded wheelbarrow or garden cart through.
What wire coating lasts longest in garden soil?
Galvanized-after-welding (GAW) or black PVC-coated welded wire lasts 15 to 20 years in wet garden soil without rusting.