How to Repel Rats: What Works and What Doesn’t

The most reliable way to repel rats is to remove what attracts them in the first place: food, water, and shelter. Repellents alone rarely solve a rat problem. The CDC recommends a three-step approach of sealing entry points, removing food and water sources, and trapping any rodents already inside. Repellents work best as a supplement to those fundamentals, not a replacement.

Start With Exclusion, Not Repellents

Rats can squeeze through gaps smaller than you’d expect, so physically blocking entry points is the single most effective thing you can do. Use hardware cloth (wire mesh) with half-inch by half-inch openings and at least 19-gauge thickness to cover gaps around pipes, vents, and foundations. If you also have mice, you’ll need quarter-inch mesh instead. Steel wool stuffed into smaller cracks works as a temporary fix since rats dislike chewing through it, but pair it with caulk or cement for a lasting seal.

Walk around the outside of your home and look for openings near the roofline, around utility lines, under doors, and where pipes enter walls. Rats only need a gap about the size of a quarter. Garage doors with worn weather stripping, dryer vents without covers, and gaps where the foundation meets siding are common entry points people miss.

Remove Food and Water Sources

A clean yard and kitchen do more to repel rats than any spray or device. Store pet food and birdseed in sealed metal or thick plastic containers. Pick up fallen fruit from trees. Keep outdoor garbage cans tightly lidded. Inside, don’t leave dishes in the sink overnight, and store pantry items like grains and cereals in hard containers rather than their original bags or boxes.

Water matters too. Fix leaky outdoor faucets, don’t leave pet water bowls outside at night, and make sure gutters drain away from your foundation rather than pooling near it. Rats need water daily, so eliminating easy sources makes your property far less appealing.

Clutter provides shelter. Woodpiles, dense ground cover, and stacks of stored items against your house walls create hiding spots. Keep firewood at least 20 feet from the house and elevated off the ground. Trim vegetation so it doesn’t touch your exterior walls or roof.

Essential Oils and Natural Repellents

Peppermint oil is the most commonly recommended natural rat repellent, and there is some lab evidence behind it. A study published in the Thai Journal of Veterinary Medicine tested peppermint oil, wintergreen oil, chili, bergamot oil, and geranium oil on rats in a controlled setting. Each substance showed a significant repellent effect compared to a control, and the effect held over a seven-day period.

That said, there’s an important gap between lab results and real-world performance. In a controlled enclosure, rats have limited motivation to push past an unpleasant smell. In your attic or garden, a hungry rat with few alternatives will often tolerate the scent. Peppermint oil also evaporates quickly, so you’d need to reapply it every few days at minimum. Soaking cotton balls and placing them near suspected entry points is a reasonable low-cost addition to your strategy, but don’t rely on it as your only defense.

Why Ultrasonic Devices Don’t Work

Ultrasonic rodent repellers are widely sold, but the scientific evidence is discouraging. A review from the University of Nebraska tested six commercial ultrasonic devices and found only a 30 to 50 percent reduction in rat activity during the first three days. After that, rats habituated to the sound, and by one week there were no significant repellent effects at all. The researchers concluded the devices had “insufficient repellency to merit any usefulness in rodent pest control applications.” Save your money.

Chemical Repellents That Actually Irritate Rats

Several active ingredients are registered for use as animal repellents, though most were developed for deer or birds rather than rats specifically. The ones most relevant to rodents work by irritating the mouth, nose, or gut:

  • Capsaicin creates a burning sensation in the mouth and throat, discouraging rats from gnawing on treated surfaces or cables. It’s one of the more practical options for protecting specific items like wiring or garden beds.
  • Black pepper oil and piperine irritate on contact, repelling animals that touch or taste treated areas.
  • Sulfur compounds produce a strong odor that repels rodents and other herbivorous mammals. Predator urines from coyotes and foxes contain high concentrations of sulfur volatiles, which is why some people place them around garden perimeters.
  • Garlic oil is a strongly scented volatile oil that deters feeding in some mammals, though its effectiveness against rats specifically is limited.

These products need regular reapplication, especially outdoors where rain and sun break them down. They’re best used to protect a specific area or object rather than to guard an entire property.

Why Mothballs Are Dangerous and Ineffective

Mothballs are a common home remedy for rats, but using them this way is both illegal (they’re only registered for killing moths in enclosed containers) and hazardous. Mothballs containing naphthalene are particularly toxic. As little as one mothball can be poisonous if swallowed by a child or pet. Symptoms include nausea, vomiting, abdominal pain, and fever, with damage to blood cells and the liver possible in serious cases. Effects may not appear for up to five days after ingestion. Severe poisoning can cause seizures, coma, and death. Even mothballs made with the slightly safer paradichlorobenzene pose risks in open spaces where children and pets can reach them.

Beyond the safety issue, rats tolerate the smell of naphthalene better than people assume. You’ll make your crawl space unpleasant for yourself long before you drive out a determined rat.

Baking Soda, Plants, and Other Home Remedies

Baking soda is sometimes recommended as a rat killer rather than a repellent. The idea is that it reacts with stomach acid to produce carbon dioxide gas, which rats supposedly cannot expel. While the chemistry is sound in theory, there’s no published research confirming it works reliably. Rats would need to eat a substantial amount mixed into bait, and they’re cautious eaters by nature. It’s not a repellent in any meaningful sense.

As for planting mint, alliums, lavender, or marigolds to keep rats away, the evidence simply isn’t there. University extension services have looked into this claim extensively and found no credible, research-backed sources supporting the idea that any plant repels rats. Rats may briefly avoid an unfamiliar strong smell, but they adapt quickly and will dig or forage in the area anyway. Plant these herbs because you enjoy them, not because you expect them to keep rodents out.

Putting It All Together

The most effective rat repellent strategy layers multiple approaches. Start by eliminating food, water, and shelter around your property. Seal every gap larger than a quarter using metal mesh, steel wool, or cement. Once those basics are in place, targeted chemical repellents like capsaicin can protect vulnerable spots such as wiring or garden rows. Essential oils like peppermint may add a small deterrent effect near entry points if reapplied frequently.

If rats are already inside your home, repellents alone won’t solve the problem. Snap traps placed along walls and in areas where you see droppings are the standard next step. Repellents are about prevention and deterrence. For an active infestation, you need removal first and then exclusion to keep new rats from replacing the ones you’ve caught.