What Deters Mice and Rats—and What Doesn’t Work at All

Mice and rats are deterred by a combination of physical barriers, scent-based repellents, and removing the food and shelter they need to survive. No single method works reliably on its own. The most effective approach layers multiple deterrents together, starting with sealing entry points and eliminating food sources, then adding repellents as a secondary line of defense.

Seal Entry Points First

The single most effective thing you can do is block the gaps rodents use to get inside. Mice can squeeze through openings as small as 6 millimeters, roughly the diameter of a pencil. Rats need slightly larger gaps but are equally persistent once they find one. Any crack around pipes, vents, doors, or foundation joints is a potential doorway.

Stainless steel mesh with holes of 2 millimeters or less is the gold standard for sealing these gaps, because rodents cannot chew through it. Light-gauge mesh may not hold up against aggressive rats, so opt for heavier wire (around 0.56 millimeters thick) for areas where rats are the primary concern. Steel wool stuffed into gaps works as a quick fix, but it rusts over time and should be backed with caulk or mesh for a permanent seal. Standard materials like plastic sheeting, cardboard, or expanding foam won’t stop a determined rodent for long.

Remove Food and Water Sources

Rodents stay where they can eat. Mice and rats will chew through paper, cardboard, and thin plastic food containers with little effort. Metal containers with tight-fitting lids are the most effective option for storing pantry goods, pet food, and birdseed. If you use plastic bins, choose thick, hard-sided ones and inspect them regularly for gnaw marks.

Beyond the kitchen, think about less obvious food sources: grease buildup around grills, fallen fruit under trees, uncovered compost bins, pet food left out overnight, and even residue inside recycling bins. Dripping faucets and standing water in trays under houseplants can also sustain rodents in otherwise dry environments. Cutting off these resources makes your space far less attractive, even before you add any repellent.

Scent-Based Repellents

Peppermint oil is the most popular natural rodent deterrent, and there’s a reason it keeps showing up in recommendations. The high menthol content irritates the sensitive nasal passages of mice and rats, making treated areas unpleasant for them. Commercial peppermint rodent repellents use concentrated formulas applied along entry points, baseboards, and known activity areas. The main limitation is that the scent fades. You’ll need to reapply every few days, and in well-ventilated spaces the effect diminishes quickly.

Balsam fir oil is the active ingredient in one of the few botanical rodent repellents registered with the EPA (sold as Fresh Cab). It works on a similar principle, creating a scent barrier that rodents find unpleasant, typically at a 2% concentration in a pouch you place in enclosed spaces like sheds, RVs, garages, and closets.

The biological reason scent repellents work at all traces back to how rodents process danger signals. Mice and rats rely heavily on sulfur- and nitrogen-based chemical compounds in their environment to detect predators. Secretions from predator urine, feces, and anal glands contain these compounds, and they trigger innate avoidance behavior. Some commercial repellents try to mimic this by using fox or bobcat urine, though results in real-world settings tend to be inconsistent once rodents realize no actual predator is present.

Capsaicin: A Chewing Deterrent

If your rodent problem involves gnawed wires, insulation, or structural materials, capsaicin (the compound that makes hot peppers burn) is one of the more effective taste-based deterrents. USDA research on wild Norway rats found that a 2% capsaicin concentration applied to cables reduced gnawing volume by roughly 75 to 80% compared to untreated cables. Commercial capsaicin sprays and tapes are available for coating wires, engine compartments, and garden beds. The compound doesn’t harm the materials it’s applied to and is non-toxic to mammals in these concentrations, though it needs reapplication after rain or heavy moisture.

Light and Sound Deterrents

Rodents are nocturnal and prefer dark, undisturbed spaces. High-intensity strobe lights can make attics, crawlspaces, and garages inhospitable by disrupting the darkness rodents depend on. Strobe products designed for this purpose use xenon bulbs at very high brightness levels, and manufacturers report that rats and squirrels typically vacate within one to two days of installation. These work best in enclosed spaces where the light fills the entire area. In open or large spaces, rodents simply relocate to the darker corners.

Ultrasonic repellent devices are widely sold but have a weaker track record. The sound they emit is above human hearing range and is supposed to cause discomfort in rodents. However, the effect diminishes rapidly with distance, and furniture and walls create dead zones where the sound doesn’t reach. Rodents also habituate to consistent ultrasonic noise over time, reducing long-term effectiveness.

Why Rats Are Harder to Deter Than Mice

Rats display a behavior called neophobia: an intense suspicion of anything new in their environment. When wild Norway rats encounter an unfamiliar object, food, or smell, they avoid it initially and only approach gradually over days, sniffing repeatedly before making contact. In field studies, the first day a novel item appeared was marked by a sharp increase in cautious approaches without actual contact, along with much longer delays before the rats engaged with it at all.

This makes rats paradoxically both easier and harder to deter. A new repellent or barrier may seem effective for the first few days simply because the rat is being cautious. But once the rat determines the new stimulus isn’t actually dangerous, it often ignores it entirely. This is why rotating deterrent methods, or better yet relying on physical exclusion, works better against rats than any single repellent placed once and forgotten.

Mice, by contrast, are more curious and less neophobic. They explore new objects quickly, which means they’ll encounter deterrents faster but may also test and overcome weak ones sooner.

What Doesn’t Work (and What’s Dangerous)

Mothballs are one of the most common home remedies people try for rodents, and one of the worst ideas. The active ingredient in most mothballs, naphthalene, is classified by the EPA as a possible human carcinogen. Short-term inhalation exposure causes headaches, nausea, confusion, and a type of anemia where red blood cells break down. Chronic exposure has been linked to cataracts and retinal damage in both humans and animals. Infants born to mothers who inhaled or ingested naphthalene during pregnancy have developed hemolytic anemia. Using mothballs as a rodent repellent is an off-label use that puts your household at far greater risk than the rodents themselves.

Dryer sheets, Irish Spring soap, and ammonia-soaked rags are other popular suggestions that have no meaningful evidence behind them. Any initial avoidance is likely neophobia rather than a genuine repellent effect, and it fades within days.

Layering Deterrents for Best Results

The most reliable rodent deterrent strategy combines three layers. First, physical exclusion: seal every gap larger than 6 millimeters with steel mesh or hardware cloth, and install door sweeps on exterior doors. Second, sanitation: store all food in metal or heavy plastic containers, clean up pet food nightly, and eliminate standing water. Third, active repellents: apply peppermint oil or capsaicin sprays in problem areas, use strobe lights in enclosed spaces like attics, and rotate products periodically so rodents don’t habituate to a single stimulus.

No repellent compensates for an open entry point or an accessible food source. Deterrents work best as the final layer in a system that already makes your space structurally and environmentally hostile to rodents.