Keeping rats away comes down to three things: removing what attracts them, sealing the gaps they use to get in, and managing your yard so it doesn’t offer shelter. Most people jump straight to repellents or traps, but without addressing food, water, and entry points first, those tools won’t solve the problem long-term.
Remove Food, Water, and Shelter First
Rats don’t move into your property randomly. They’re following reliable sources of food, water, and cover. Eliminating these attractants is the single most effective thing you can do, and it costs nothing.
Start with food. Pet food left outdoors overnight is one of the most common attractants. Feed pets only what they’ll eat in one sitting, or bring bowls inside before dark. Store pet food, birdseed, and livestock feed in containers with tight-fitting lids, not bags. In the garden, pick up fallen fruit and harvest ripe vegetables promptly. Compost bins should be enclosed rather than open piles, since rats will burrow underneath them. Garbage cans need secure lids too.
Water is easy to overlook. Leaky outdoor faucets, birdbaths, pet water bowls, and even standing water in plant saucers can sustain a rat colony. Fix drips and empty standing water where you can.
Shelter is the third piece. Rats nest in firewood stacks, dense vegetation, cluttered garages, storage boxes, and anywhere they find undisturbed cover. Keep storage areas organized and off the ground. Norway rats prefer ground-level burrows, while roof rats favor elevated spots like attic spaces, wall voids, dense shrubs, and tree canopies.
Seal Entry Points With the Right Materials
Rats can squeeze through an opening the size of a quarter. A thorough inspection of your home’s exterior is essential. Check where utility lines enter the wall, gaps around pipes, foundation cracks, vents without screens, and spaces under doors. Roof rats also exploit gaps along the roofline and where branches overhang the house.
Two materials work well for plugging holes: steel wool and copper mesh. Steel wool is cheap and effective because rats can’t easily chew through it. To install it properly, push a wad of steel wool into the gap, add a layer of expanding foam around it, then finish with a sealant that matches the surface. Steel wool’s main drawback is rust. In areas exposed to moisture, inspect it every one to two months and replace it at the first sign of deterioration. Under good conditions, a properly installed plug can last up to 12 months.
Copper mesh is the more durable option. It resists corrosion, won’t rust, and once installed correctly, lasts indefinitely. It’s especially worth the higher cost in areas that get wet, like crawlspace vents or exterior pipe penetrations. For either material, the goal is the same: fill every gap larger than half an inch.
Manage Your Landscaping
Your yard’s layout can either invite rats or discourage them. Plants installed less than two feet from your house provide cover that lets rats move along your foundation unseen. Keep shrubs pruned so there’s a clear gap between the vegetation and the wall. One effective technique is “V” cutting, where you prune shrubs wider at the top and narrower at the bottom, exposing the base where rats would otherwise hide.
Roof rats can jump three feet vertically and more than four feet horizontally. Trim tree branches so they don’t come within four feet of your roof, power lines, or fences that connect to the house. Don’t stack firewood, lumber, or pallets near the building. These create perfect harborage right next to your walls.
Use Traps Strategically
Snap traps remain one of the most reliable tools for reducing a rat population. But rat behavior makes trapping less straightforward than it sounds. Rats are neophobic, meaning they’re suspicious of new objects in their environment. If you set a loaded trap on day one, you’ll likely catch only juveniles while the breeding adults avoid it entirely.
The solution is prebaiting. Place unset traps with bait in areas where you’ve found rat evidence (droppings, gnaw marks, grease smears along walls) and leave them for a couple of days. Let the rats take the bait freely until they’re comfortable approaching the traps. Then set them. This dramatically increases your chances of catching the adults that are actually driving reproduction.
For bait, use whatever the rats are already eating on your property. If you’re not sure, a pea-sized amount of a high-value food works well. Place traps along walls, fence lines, or the edges of planters, since rats travel along linear surfaces. Position the trigger facing the wall, or set two traps side by side with triggers facing outward. Use multiple traps. A single trap is rarely enough.
Why Ultrasonic Devices Don’t Work
Ultrasonic repellent devices are widely sold and heavily marketed, but the evidence against them is clear. Controlled testing of six commercial ultrasonic devices found only a 30 to 50 percent reduction in rat activity at best, with rats fully habituating to the sound within three to seven days. After that, the devices had no measurable effect.
The U.S. Environmental Protection Agency pursued legal action against manufacturers of these devices for false advertising and misbranding. Fines were levied and court orders issued. Research on ultrasonic rodent repellents is now considered a low-priority field because the technology has consistently failed to demonstrate practical usefulness, whether used alone or combined with traps and bait.
Essential Oils: Limited and Temporary
Peppermint oil is the most commonly suggested natural repellent, and there is some lab evidence that it affects rat behavior. In controlled testing, combinations of wintergreen oil, peppermint oil, bergamot oil, and chili significantly reduced the number of times rats approached treated areas compared to untreated controls. Some formulas even prevented rats from chewing through treated materials.
The catch is durability and real-world conditions. The repellent effect weakened noticeably within seven days in a controlled setting. Individual rats also varied in their tolerance, with some unbothered by odors that deterred others. Researchers noted that these extracts still need testing for stability and duration of protection in actual homes, not just lab enclosures. If you want to try peppermint oil, think of it as a mild supplemental deterrent for small enclosed spaces like a shed or cabinet, not a standalone solution for a rat problem.
Chemical Rodenticides and Their Risks
Poison baits are effective at killing rats, but they carry serious risks worth understanding before you use them. Rodenticides are designed to attract animals. They often contain fish oil, molasses, or peanut butter flavoring, which means they’re also attractive to dogs, cats, and children. Tamper-resistant bait stations reduce this risk significantly, and you should never use loose bait in any area accessible to pets or kids.
Secondary poisoning is the other major concern. When a rat eats poison and then a dog, cat, hawk, or owl eats that rat, the predator ingests the toxin too. Rodenticides affect all mammals in essentially the same way, and they can harm birds as well. This is especially important if you have outdoor pets or live near wildlife.
If you do use rodenticides, place them only inside locked, tamper-resistant bait stations. But for most residential situations, combining exclusion, sanitation, and trapping will handle a rat problem without the risks that come with poison.