If you want to keep snakes out of a garden, a physical barrier beats every spray and granule on the shelf. The workhorse is a fence made of 1/4 inch galvanized hardware cloth, a few feet tall and buried at the bottom. Here are the seven barriers I trust, in order of how much they matter.
The Short Version
- Snake-proof fencing is the most reliable barrier. 1/4 inch hardware cloth, several feet tall, buried at the base.
- Seal gaps in foundations and around pipes so snakes can’t slip in.
- Remove hiding spots like wood piles, rock piles, and tall grass.
- No single barrier is perfect, but stacking several gives you solid protection.
1. Snake-Proof Fencing
The best barrier is a fence of 1/4 inch galvanized hardware cloth, at least a few feet tall and buried several inches deep, with the bottom bent outward at a right angle. That bend stops snakes from digging under. Use galvanized or stainless steel so it doesn’t rust out.
2. Hardware Cloth Over Vents and Openings
Cover foundation vents, crawl space openings, and weep holes with 1/4 inch galvanized hardware cloth, screwed down with washers, not staples, which snakes can push loose. Check them monthly.
3. Seal Foundation Gaps
Seal cracks in the foundation, gaps around pipes, and spaces under doors with hydraulic cement, expanding foam, or weatherstripping. A gap of 1/4 inch is enough for a young snake, so don’t leave it.
4. Remove Hiding Spots
Snakes are ambush predators that need cover. Remove wood piles, rock piles, and dense vegetation near the house, keep the grass short, and trim bushes so there is no ground-level hiding place.
5. Control Rodent Populations
Snakes follow their food. Cut back mice, rats, and voles by using rodent-proof garbage cans, sealing pet food, and cleaning up spilled birdseed. Fewer rodents, fewer snakes.
6. Reduce Moisture
Snakes need moisture. Fix leaky faucets, improve drainage, and get rid of standing water. A dry yard is less inviting.
7. Professional Inspection
If snakes keep coming back, hire a wildlife control operator to walk the property. They spot entry points you missed and can recommend the right barriers for your situation.
Why I Skip the Chemical Repellents
You will see granular repellents like Snake B Gon and Snake Shield sold for this, and they are tempting because they are cheap and easy. They wash away with rain and have to be reapplied, so any effect they have does not last. A barrier works every day with no upkeep. Spend your money on hardware cloth, not granules.
| Barrier | Effectiveness | Cost |
|---|---|---|
| Snake-proof fencing | Excellent | Higher, materials plus labor |
| Hardware cloth on vents | Excellent | Low |
| Seal foundation gaps | High | Low to moderate |
| Remove hiding spots | Moderate | Free |
| Rodent control | Moderate | Low |
| Moisture reduction | Moderate | Low |
Frequently Asked Questions
A fence of 1/4 inch galvanized hardware cloth, at least a few feet tall, buried several inches deep, with the bottom bent outward at a right angle. That stops snakes from climbing over or digging under.
Some can. Rat snakes are good climbers and can get up brick, wood, and chain link. A smooth metal fence is harder to climb, and a few feet of height deters most species.
Several inches, with the bottom bent outward at a right angle. In loose or sandy soil, go deeper. The bend matters more than the exact depth, because that is what stops them tunneling under.
No. Mothballs are not effective, they are illegal to use outdoors, and they are toxic to pets and kids. Physical barriers like fencing and hardware cloth are the only thing that reliably works.
Bottom Line
A snake-proof fence of 1/4 inch galvanized hardware cloth is the single best barrier for a garden. Pair it with sealing foundation gaps, clearing hiding spots, and controlling rodents. No single method is perfect, but those seven stacked together give you strong, low-maintenance protection.




