Free quotes

Home / Guides / How to Keep Snakes Out of Your Yard

Guide · Updated 2026-11-21

How to Keep Snakes Out of Your Yard

Short answer: Take away what draws them (cover, rodents, water), seal every gap bigger than 1/4 inch, and if venomous snakes live nearby, put a fine-mesh snake fence around the yard.

Why snakes come into yards

Snakes go where they find food and a place to hide. Extension wildlife specialists all start in the same place: make the yard a poor place to hunt and hide, and fewer snakes stay. In dry, hot summers more snakes follow their prey into watered yards with good cover.

Step 1: Remove cover

  • Move wood piles, board piles, rock and brick piles, and leaf or grass piles away from the house, or get rid of them.
  • Keep the lawn mowed and trim shrubs up off the ground so snakes have nowhere to sit unseen.
  • Clear weedy growth and brushy fence lines next to the yard.

Step 2: Remove food

  • Feed pets inside, or pick up leftover food right away. Store pet food and birdseed in metal cans with tight lids.
  • Move bird feeders away from the house or take them down in spring and summer. Spilled seed draws rodents, and rodents draw snakes.
  • Deal with any rodent problem. Fewer mice and rats means fewer reasons for a snake to stay.

Step 3: Seal the gaps

The University of Illinois Extension puts the line at a quarter inch: fencing or screen with holes smaller than 1/4 inch keeps snakes out, and gaps bigger than that in foundations, siding, steps and patios should be caulked or sealed. Snakes can't chew, so any caulk works.

Step 4: Fence the yard if you live near venomous snakes

Cleanup lowers the odds. It doesn't stop a rattlesnake or copperhead passing through. A snake-proof fence does: fine mesh (1/4 inch or smaller), at least 30 to 36 inches tall, buried a few inches, with every gate and drain sealed. It's the only step that works on snakes just passing by.

Check your yard's weak spots with the 2-minute Readiness Check, then see what it costs.

What doesn't work

Store-bought repellents, mothballs, sulfur and "snake-repelling" plants don't reliably keep snakes away. Mothballs used outdoors also break the label, which is illegal. See do snake repellents work? and snake repellent plants.

If a snake is in the yard right now

Keep people and pets back and don't try to catch or kill it. Most bites happen when people handle snakes. See found a snake in your yard?

Sources

  1. Mississippi State University Extension: Reducing Snake Problems Around Homes
  2. University of Illinois Extension: How to discourage snakes from living in your yard (2026)
  3. Utah State University Extension: 12 Ways to Stop Snakes From Slithering Into Your Yard
  4. UF/IFAS Extension: Mothball facts (PI289)

Common questions

What is the best way to keep snakes out of your yard?

Remove cover and food first. If venomous snakes live in your area, a fine-mesh snake fence around the yard is the only thing that keeps passing snakes out.

What size gap can a snake get through?

Treat anything over 1/4 inch as open. Small and young snakes fit through 1/2-inch mesh.

Does mowing keep snakes away?

Short grass helps. Snakes avoid open ground where predators can see them, but mowing alone won't stop one crossing the yard.

Will a regular fence keep snakes out?

No. Block walls have drain holes and gaps under gates, and chain link and wood fences have openings snakes slip through. Snake fencing adds fine mesh to close them.