Corn Snakes and Other Colubrids

What keeps black rat snakes away?

To keep black rat snakes away, remove rodents and cover, seal gaps and secure coops. Learn what actually works and why repellents are unreliable.

On this page
  1. Short answer
  2. Why a black rat snake shows up
  3. Cut off the food source
  4. Remove shelter and tidy the yard
  5. Seal entry points and protect chickens
  6. Do repellents and plants work?
  7. If one is already inside
  8. Check local rules
  9. Related guides

Short answer

Black rat snakes visit where there is food (mostly rodents, and sometimes eggs and chicks) and shelter. The most dependable way to keep them away is to reduce both and to close entry points. Repellents and “snake-repelling” plants have weak evidence behind them.

Why a black rat snake shows up

Black rat snakes are non-venomous constrictors that climb well and hunt rodents and birds’ eggs. They are drawn to barns, sheds, wood piles, attics and chicken coops, where prey is plentiful and there is somewhere to hide. For the group they belong to, see corn snakes vs rat snakes.

Cut off the food source

  • Control rodents: store pet food, birdseed and livestock feed in sealed containers.
  • Clean up spilled feed and fallen fruit.
  • Collect eggs regularly if you keep poultry.

Fewer rodents means fewer reasons for a snake to linger.

Remove shelter and tidy the yard

  • Keep grass short and trim vegetation away from the house. Knowing when snakes are most active also helps.
  • Move wood piles, debris and stacked materials away from buildings, or lift them off the ground.
  • Clear clutter in sheds and garages.

Seal entry points and protect chickens

  • Seal gaps in foundations, around pipes and under doors with appropriate materials.
  • Use small-mesh hardware cloth (not chicken wire, which can have gaps large enough for young snakes) on coop openings and run bases, and make sure doors close tightly.
  • Check for gaps in roofs, eaves and attic vents.

Do repellents and plants work?

Most commercial repellents, sulfur, mothballs and plant-based “snake deterrents” have little reliable evidence behind them. Some products are also harmful to pets, children or the environment, and using a pesticide in a way not on its label can be unlawful. Habitat changes and exclusion work better than sprays.

If one is already inside

  • Stay calm, keep pets and children away, and do not try to kill it.
  • Open an exit if you can, or confine it to one room.
  • Call a wildlife removal service or animal control. If you aren’t sure that it is a rat snake, treat it as unidentified; see what black snake chases you.

Check local rules

Rules on killing or relocating snakes vary by area, and some species are protected. Black rat snakes also help control rodents, so tolerating one outdoors is often reasonable. Contact your wildlife agency before removing one.

The complete guide to corn snakes and other colubrids

Corn Snakes vs Rat Snakes: Are They the Same?
Read the guide

Keep exploring

Guides from other topics

All topics →