Short answer: Not reliably. Sprays, granules and gadgets haven't been shown to keep snakes out. Barriers and habitat cleanup do.
Sprays and granules
Most store-bought repellents use strong smells like sulfur, cinnamon or clove oil. Tests and field experience show snakes often ignore them, and any effect fades fast after rain or watering.
Mothballs
Mothballs aren't labeled for snakes, and using a pesticide in a way its label doesn't allow can break the law. They're also toxic to kids, pets and wildlife.
Ultrasonic and vibrating stakes
There's little evidence these devices change where snakes go.
What works instead
- A continuous physical barrier of fine mesh.
- Removing cover: wood piles, rock piles, dense ground cover.
- Removing food: rodents, spilled seed, pet food left outside.
Common questions
What about snake-repelling plants?
There's no good evidence any plant keeps snakes away, and dense plantings can actually give them cover.
Do cats or chickens keep snakes away?
Not reliably, and pets and chickens can be bitten.