Quick answer: No plant reliably keeps rats away on its own. Plants that repel rats, such as peppermint, lavender, marigolds, alliums, and chili peppers, smell or taste unpleasant to rodents, and lab studies show rats avoid some of their oils, but extension experts say these plants won’t stop rats from entering a home. Use them as a small extra next to sealing gaps, removing food, and trapping.
Planting a border of mint or lavender to keep rats away sounds like the perfect natural fix. It’s cheap, it smells great, and it looks good. But does it work?
In this guide, I’ll go through the most popular plants that repel rats, what the research actually says about each one, and how to use them as part of a plan that really keeps rats out. If you prefer oils and sprays, see our guide to scents that rats hate most.
* This post contains affiliate links.
Do Plants Really Repel Rats?
Mostly, no. In an Oregon State University Extension answer, wildlife specialist Dana Sanchez wrote that planting lavender, peppermint, and marigolds will not remove rats or mice in your home, nor will those flowers keep the rodents from entering your home. Washington State University Extension adds that field research hasn’t backed up the pest-repelling reputation of mint or any other aromatic plant.
There’s a grain of truth behind the idea, though. In a 2010 lab study, rats visited spots treated with peppermint oil, wintergreen oil, bergamot oil, geranium oil, and chili less often than untreated spots. The researchers noted that more studies were needed to see whether the extracts work in real environments. A living plant also gives off far less scent than a concentrated oil.
The University of California IPM program sums it up: rats have an initial aversion to some odors and tastes, but no repellents have been found to solve a rat problem for more than a very short time.
9 Plants That Repel Rats (and Their Limits)
1. Peppermint
Peppermint is the most popular rat-repelling plant because of its strong menthol scent. Peppermint oil was one of the extracts rats avoided in the 2010 lab study, but a growing plant releases only a little scent unless the leaves are crushed. Grow it in pots, since mint spreads aggressively. For a stronger dose, use oil instead: see peppermint oil to repel rats.
2. Lavender
Lavender is often listed as a rodent repellent, and it’s a lovely plant for sunny, dry beds. There’s no field evidence that it keeps rats away, and the Oregon State answer specifically names it as a plant that won’t keep rodents out of your home.
3. Marigolds
Marigolds have a sharp, musky smell that some gardeners believe drives off pests. They’re great for color and pollinators, but there’s no proof they repel rats. We cover the same myth for mice in why marigolds don’t repel mice.
4. Daffodils
Daffodil bulbs are toxic, which is why gardeners plant them where rodents dig up tulips and other bulbs. That can protect the bulbs themselves, but it won’t make your yard or house unattractive to rats.
5. Garlic, Onions, and Other Alliums
Alliums have a strong sulfur smell. They’re easy to grow along beds and borders, but like other aromatic plants, there’s no good evidence they keep rats away from a property. Rats that are hungry will dig right past them.
6. Chili Peppers
Chili was another substance rats avoided in the 2010 lab study, and capsaicin is what makes hot pepper sprays work as taste repellents. The plant itself won’t do much, but hot pepper sprays can protect specific plants for a short time. See hot sauce and cayenne pepper for rats.
7. Eucalyptus
Eucalyptus has a powerful medicinal scent and is only practical as a garden tree in mild climates. Most people use eucalyptus oil instead. Read more in eucalyptus as a rat repellent.
8. Rosemary
Rosemary is a tough, fragrant herb that’s easy to grow in sunny spots. It’s often listed with mint and lavender as a rodent deterrent, but there’s no research showing it keeps rats away.
9. Scented Geraniums
Geranium oil was one of the extracts that reduced rat visits in the lab. Scented geraniums are easy to grow in pots on patios and porches, which makes them a pleasant, low-risk experiment near doors.
Plants That Repel Rats: Evidence at a Glance
Plant
Why people use it
What the evidence says
Peppermint
Strong menthol scent
Oil reduced rat visits in a lab; plants don’t keep rats out
Lavender
Floral scent
Extension says it won’t keep rodents out
Marigolds
Pungent smell
Extension says it won’t keep rodents out
Daffodils
Toxic bulbs
Protects the bulbs, not the yard
Alliums
Sulfur smell
No field evidence
Chili peppers
Capsaicin heat
Chili reduced rat visits in a lab; sprays help short-term
Eucalyptus
Medicinal scent
Mostly used as oil; no field evidence for plants
Rosemary
Herbal scent
No field evidence
Scented geraniums
Geranium oil
Oil reduced rat visits in a lab
Plants That Can Attract Rats
Some plants make rat problems worse. UC IPM says both rat species are highly attracted to vegetation that is dense or close to the ground, and that climbing ivy, star jasmine, and honeysuckle on fences or buildings help roof rats move and nest. Fruit and nut trees also feed rats when the crop drops. Learn more in what attracts rats.
What Actually Keeps Rats Away
Seal entry points: UC IPM says to seal all holes larger than 1/4 inch to keep out both rats and mice.
Thin and trim plants: Remove tree limbs within 6 feet of the roof and prune dense shrubs at least 2 feet from the house, as UC IPM recommends.
Remove food:Oregon State University Extension lists pet and chicken feed, bird seed, kitchen scraps in compost, dropped fruit, and unsealed garbage as the main draws.
Once those basics are in place, aromatic plants near doors and patios are a harmless extra. Just don’t count on them to do the heavy lifting.
That’s a Wrap!
So, do plants repel rats? Not in a way you can rely on. Peppermint, chili, and geranium oils made rats keep their distance in a lab, but living plants give off far less scent, and extension experts say lavender, peppermint, and marigolds won’t keep rodents out of your home. Grow them because you like them, and keep rats away by sealing gaps, trimming vegetation, and removing food.
Keep Pest Pointers in mind for all your pest control needs!
Plants That Repel Rats: FAQs
What plants do rats hate the most?
Rats tend to avoid strong scents like peppermint, chili, geranium, and bergamot in lab tests. Living plants give off far less scent than oils, so they rarely keep rats away on their own.
Will peppermint plants keep rats away?
Not reliably. Peppermint oil made rats keep their distance in a lab study, but Oregon State University Extension says planting peppermint won’t keep rodents out of your home.
Is there a plant-based rodent repellent that works?
Plant-based sprays with peppermint oil or capsaicin can discourage rats for a short time. UC IPM says no repellent has solved a rat problem for more than a very short time.
Do marigolds or lavender repel rats?
No. Extension experts say lavender and marigolds won’t remove rats or keep them from entering your home.
What plants attract rats?
Dense ground cover, climbing ivy, star jasmine, honeysuckle, and fruit or nut trees with dropped crops all give rats food or shelter.
What is the best natural way to keep rats away?
Seal gaps larger than 1/4 inch, trim plants away from the house, remove pet food, bird seed, and fallen fruit, and trap any rats already there.
Amos is your go-to editor and pest advice enthusiast, blending years of hands-on experience into clear, practical guidance for everyday pest problems. Growing up on a farm near Grandville, Michigan, he spent his days outdoors, learning to deal with wildlife, pests, and nature in real-world settings rather than just from a textbook. That upbringing turned him into a genuine nature lover, comfortable in fields, woods, and around all the critters that come with them. Today, he channels that background into approachable, science-informed articles that help homeowners protect their spaces without overcomplicating the process. When he’s not polishing guides or answering pest questions, you can imagine him most at home outside—observing animal behavior, walking the land, and turning those observations into practical tips you can actually use. His mission is simple: to give you straightforward, reliable pest pointers so you can spend less time worrying about infestations and more time enjoying your home and yard. Check out my Profile.