9 Tricks To Get Rid Of Rats From Your Garden For Good
Last Updated on May 14, 2026 by Duncan
If you are reading this article, you have rats in your garden and you want them gone.
Rats appear in gardens for two principal reasons: the presence of reliable hiding places and a consistent supply of food. Address those two conditions and you go a long way toward solving the problem at its root.
This guide covers how to eliminate an active rat problem, keep them away for good, and repair any damage they’ve already caused all without putting your family, pets, or garden ecosystem at risk.
Quick Summary — How to Get Rid of Rats in the Garden
- Snap traps: fastest kill method, most cost-effective for active infestations.
- Electrocution traps: highly effective, humane instant kill, higher upfront cost.
- Live capture traps: no-kill option; requires regular checking and responsible release.
- Ultrasound repellents: effective early-stage deterrent; rats can habituate over time.
- Professional exterminator: best for severe or persistent infestations.
- Peppermint oil: natural repellent; reapply every 2–3 days to stay effective.
- Catnip plants: natural rat deterrent; plant strategically around garden edges.
- Soil netting: prevents burrowing in new garden beds; bury under the soil surface.
- Pets (cats/dogs): natural predator presence deters rats from establishing territory.
- Remove food, water, and clutter: eliminates the conditions that attract and sustain rat populations.
What Is the Impact of Rats in the Garden?
Before we look at how to get rid of rats, it helps to understand the full scope of what they’re capable of because rats are far more destructive than most gardeners realize until they’ve experienced a serious infestation.
| Damage Type | What Rats Do | Severity |
|---|---|---|
| Crops & Vegetables | Feed on pumpkins, corn, squash, and fruit; damage what they don’t consume | High |
| Stored Produce | Eat and contaminate fruit and vegetables in storage | High |
| Garden Structures | Gnaw and burrow through gazebos and sheds, undermining structural integrity | Medium–High |
| Irrigation & Wiring | Chew through irrigation pipes and electrical cables, causing leaks and fire risk | High |
| Disease Transmission | Carry Leptospirosis, Hantavirus, Salmonella, and other pathogens transmissible to humans and pets | Very High |
| Rapid Colonization | A pair of rats can produce up to 2,000 offspring per year if left unchecked | Very High |
Key Facts: Rat Biology & Risk
- A female Norway rat reaches sexual maturity at 5 weeks old and can produce 5–10 litters of 6–12 pups per year.
- Rats can gnaw through materials as hard as aluminum sheeting, concrete block, and lead pipes wood and plastic irrigation tubing present no resistance.
- The WHO classifies rats as significant reservoirs for over 35 diseases transmissible to humans, including Leptospirosis, Rat-Bite Fever, and Hantavirus Pulmonary Syndrome.
- Norway rats can jump vertically up to 3 feet, climb rough vertical surfaces, and swim for up to half a mile standard garden fencing offers very limited exclusion.
How to Get Rid of Rats in Your Garden
If you already have an active rat population, you need to act decisively and quickly rats reproduce extremely fast and a small problem becomes a large one within weeks. Here are the most effective elimination methods, from the hands-on to the professional.
Rodent Traps
Trapping is the most reliable and immediately effective approach for active infestations. There are several types of rat traps available choose based on your priorities around kill vs. capture, budget, and how much maintenance you can commit to.
Snap / Spring Traps
⚡ Effectiveness: Very High
✔ Best For: Active infestations
Snap traps are the gold standard for garden rat control. They use a powerful spring-release mechanism triggered when a rat steps on the pressure plate or takes the bait delivering an instant, humane kill. They are inexpensive, reusable, and effective even for trap-wary rats when placed correctly.
When deploying outdoors, position traps along rat runs the worn pathways rats habitually travel, typically along fence lines, walls, and between burrows and food sources.
Place them perpendicular to the run with the trigger end against the wall or fence. Keep them out of reach of children, pets, and non-target wildlife by housing them inside a bait station box or placing them under a leaned board.
⚡ Electrocution Traps
⚡ Effectiveness: Very High
✔ Best For: Low-maintenance, high-frequency use
Electrocution traps deliver a high-voltage shock via metal plates inside a contained box the moment a rat steps inside.
Death is instantaneous, the kill is contained within the box (minimizing contact with the carcass), and many models signal via indicator light when a catch has occurred reducing the frequency of checks needed.
The upfront cost is higher than snap traps, but the reusability, low-maintenance design, and enclosed kill mechanism make them an excellent long-term investment for gardeners dealing with recurring rat pressure.
Live Capture Traps
⚡ Effectiveness: Medium
✔ Best For: No-kill households
Live capture traps use a small wire cage with a trigger mechanism that closes the door when a rat takes the bait inside.
The animal is captured unharmed and can be relocated. This is the preferred option for households that cannot use kill methods due to pets, children, or personal preference.
The key limitation is the demand for very frequent inspection a captured rat in a live trap in a hot garden can die of heat stress within hours, defeating the purpose.
Check live traps at least twice daily: morning and evening. When relocating captured rats, transport them at least 2 miles from your garden to prevent them returning Norway rats have strong homing instincts.
Ultrasound Repellents
⚡ Effectiveness: Low–Medium
✔ Best For: Prevention, early deterrence
Ultrasound repellents emit high-frequency sound waves beyond the range of human hearing that are audible and distressing to rodents. They are safe, chemical-free, and require minimal maintenance beyond periodic battery or power checks.
The important limitation: studies consistently show that rats can habituate to the sounds over time typically within 4–6 weeks of continuous exposure reducing effectiveness.
For this reason, ultrasound repellents work best as a deterrent in early infestation or prevention scenarios, not as a standalone solution for established colonies.
Key Facts
- Ultrasound waves do not penetrate walls, furniture, or dense vegetation outdoor garden units require line-of-sight positioning to cover the target area.
- A 2019 review published in the Journal of Pest Management Science found ultrasonic repellents reduced rat activity by 30–60% in open areas but showed diminishing returns after 4–6 weeks of continuous use.
- For maximum coverage, position units at ground level pointing along fence lines this targets the travel corridors rats actually use.
Professional Rodent Control
⚡ Effectiveness: Very High
✔ Best For: Severe or recurring infestations
For severe, persistent, or rapidly spreading infestations, hiring a professional rat exterminator is the most reliable path to full resolution. Professionals bring specialized equipment, commercial-grade baits, and the expertise to identify and seal entry points that DIY methods miss.
When engaging a professional service, ask for a guaranteed treatment scope a reputable company will offer a follow-up visit at no additional charge if activity persists after treatment.
They should also conduct a site assessment to identify contributing factors (food sources, harborage points, entry routes) and advise on prevention going forward.
Safety Guidelines When Getting Rid of Rats
- Always wear rubber or nitrile gloves, a dust mask or respirator, and sturdy closed-toe work boots when handling traps, dead rats, or nesting material.
- Never handle live or dead rats, traps, or rodenticide bait blocks with bare hands rat urine and droppings can transmit Leptospirosis even through minor skin abrasions.
- Position kill traps inside a bait station box or behind a physical barrier to prevent access by pets, children, and non-target animals.
- Dispose of dead rats by double-bagging in sealed plastic bags and placing in waste disposal, or by burying at least 12 inches deep. Check your local authority’s regulations disposal rules vary by region.
- After any rodent-related activity, wash hands thoroughly with soap and water for at least 20 seconds, even if gloves were worn.
- Never use rodenticide poison in open bait stations in a garden with free-roaming pets or where birds of prey and foxes are present secondary poisoning of non-target animals is a significant risk.
How to Keep Rats Out of Your Garden for Good
Elimination without prevention is a short-term solution if the conditions that attracted rats remain in place, new rats will move in to replace the ones removed.
These nine strategies address the root causes and make your garden permanently inhospitable to rat colonization.
#1: Use Peppermint Oil
Natural & Pet-Safe
Rats have an extraordinarily sensitive olfactory system pproximately 1,000 times more sensitive than a human’s and find the strong menthol compounds in peppermint oil actively repellent.
To deploy it, soak cotton balls in 100% pure peppermint oil and place them at intervals throughout the garden, in the shed or gazebo, and along fence lines where rats typically travel.
#2: Plant Catnip Around Your Garden
Long-Term Natural Deterrent
Catnip (Nepeta cataria) has been shown to deter rats due to its active compound nepetalactone — the same volatile chemical that attracts cats.
Research from Iowa State University found that nepetalactone repels a range of pest insects and rodents at concentrations far lower than synthetic repellents.
Plant catnip around the perimeter of your garden, near compost bins, and beside entry points along fencing.
#3: Install Soil Netting Under Garden Beds
Best for New Beds
For new or recently renovated garden beds, laying a layer of heavy-gauge galvanized wire mesh (hardware cloth with ¼-inch openings) flat underneath the soil at planting time is one of the most effective structural defenses available.
It physically blocks rats from burrowing up from below to access plant roots, bulbs, and tubers their preferred below-ground food sources.
Note that determined rats will attempt to chew through plastic netting over time use galvanized steel mesh for lasting results.
Complement netting with regular garden inspections along the bed perimeter to detect any burrowing attempts at the edges.
#4: Get a Rat-Hunting Pet
Natural Predator Deterrence
The scent of predators alone is a significant behavioral deterrent for rats they will actively avoid establishing territory in areas where cat or dog presence is strongly evident.
A garden-roaming cat is one of the most effective long-term rat control tools available, particularly for preventing re-infestation after a trapping campaign has reduced the active population.
After getting a cat that spends significant time in my garden, I have not had a rat infestation reach the level it used to.
The cat has made two actual catches but more importantly, I see far fewer signs of scouting activity (fresh burrow starts, gnaw marks on fruit) along the fence line closest to the garden.
#5: Keep Food Off the Lawn and Garden
⚡ Impact: Very High
As detailed in our guide to understanding the rat menace in your garden, food availability is the primary driver of rat colonization. Eliminate the food source and you eliminate the primary reason for rats to be there in the first place.
Remove bird feeders or switch to squirrel-proof/rat-proof designs with catch trays that prevent seed from falling to the ground.
If you take meals outdoors, clean up all spills and food scraps before leaving the area. Harvest ripe fruit and vegetables promptly fallen and overripe produce is a primary attractant.
#6: Eliminate Standing Water Sources
⚡ Impact: High
Rats require daily access to fresh water to survive without it, they cannot sustain a colony. Removing standing water sources from your garden significantly reduces its viability as rat habitat, especially in dry climates or summer months when water is scarce.
Remove or regularly empty birdbaths, drainage saucers under pots, and any containers that collect rainwater.
Check that irrigation systems don’t leak or pool in accessible areas. If birdbaths are non-negotiable, elevate them on a smooth post at least 30 inches tall rats are poor climbers on smooth cylindrical surfaces.
#7: Keep Your Garden Clean and Clutter-Free
⚡ Impact: Very High
Rats are instinctively cautious animals that need cover to feel safe moving through open spaces. Clutter old pots, timber offcuts, tires, stacked materials, dense overgrowth provides the cover and nesting material that makes a garden feel safe and habitable to rats. A tidy, open garden is a hostile environment for them.
Keep grass mowed short with your reel mower or rotary mower. Remove any objects that provide shelter old pots, scrap wood, unused equipment. Keep compost bins sealed and raised if possible. Trim overhanging vegetation and dense ground cover along fence lines.
#8: Block All Access to the Garden Shed and Structures
⚡ Impact: High
Garden sheds, gazebos, and outbuildings are prime rat habitat they offer shelter, warmth, and usually some degree of stored food or organic material.
Systematically block every potential entry point: gaps in walls, holes around pipe entries, gaps under doors, and hollow spaces or voids beneath the structure’s floor.
Use galvanized ¼-inch hardware cloth to seal any opening larger than ½ inch rats can compress their bodies through openings as small as ¾ inch (the size of a large coin).
For the space under shed floors, lay hardware cloth flat on the ground extending at least 12 inches outward from the structure’s perimeter to prevent burrowing entry.
#9: Keep Rubbish Bins Tightly Sealed
⚡ Impact: High
Household waste bins are one of the most powerful rat attractants in the domestic environment.
Food odors carry significantly in open air, and even a briefly uncovered or poorly sealed bin signals a nearby food source to any rat within range. Bins that overflow, have cracked lids, or don’t seal at the base are particularly problematic.
Ensure all outdoor bins have tight-fitting, locking lids. If your existing bin lid doesn’t seal adequately, retrofit it with a bungee cord lock or replace it entirely.
Keep bins on a hard surface not directly on soil to prevent burrowing beneath them. Rinse food containers before disposal to reduce scent.
Save This Guide to Your Garden Boards!Pin this article to your pest control or garden tips boards so you have it on hand the moment you spot the first signs of rats.
Getting Rid of Garden Rats: It Starts With You
Getting rid of rats from your garden is not a one-step process it requires an active elimination phase (trapping or professional treatment) followed by consistent prevention practices that take away the food, water, shelter, and access that sustain rat populations.
The good news is that rats are creatures of habit and opportunity. Remove the opportunity clean up the clutter, seal the food sources, block the entry points and your garden stops being appealing to them.
Keep up the prevention habits and a rat infestation becomes a one-time event rather than a recurring problem.
Frequently Asked Questions
What attracts rats to a garden?
Rats are attracted to gardens primarily by two factors: food sources and hiding places. Common food attractants include fallen fruit, bird feeders, unsecured compost bins, vegetable crops, and food scraps left on the lawn.
Common hiding places include garden clutter (stacked timber, old pots, debris piles), dense ground cover, spaces under sheds, and hollow areas along fence lines. Eliminating both conditions is the most effective long-term rat control strategy.
What is the most effective rat trap for outdoor garden use?
Snap traps baited with peanut butter are the most cost-effective and proven option for active outdoor garden infestations.
They are inexpensive, reusable, and effective for trap-wary rats when placed correctly along established rat runs (travel paths along walls and fence lines).
Electrocution traps are more expensive but offer cleaner, contained kills and low maintenance. Both outperform ultrasound repellents and live traps for resolving an established infestation quickly.
Does peppermint oil actually repel rats?
Yes peppermint oil is an effective rat deterrent due to its high menthol concentration, which overwhelms rats’ sensitive olfactory systems. However, it evaporates quickly and must be reapplied every 48–72 hours to maintain effectiveness.
It works best as a supplementary deterrent at known entry points and alongside physical traps, not as a standalone solution for an established infestation.
Use only 100% pure peppermint essential oil fragrance oil dilutions do not produce the same repellent effect.
How do I stop rats from burrowing under my garden shed?
To stop rats from burrowing under a garden shed: lay ¼-inch galvanized hardware cloth flat on the ground extending at least 12 inches outward from the full perimeter of the shed, then cover it with gravel or soil.
Rats attempting to burrow will hit the mesh before reaching the shed’s foundation and typically abandon the attempt.
Also seal any existing gaps in the shed walls and under the door with expanding foam base-filled then covered with hardware cloth secured with screws and washers.
Are ultrasound repellents effective against garden rats?
Ultrasound repellents are moderately effective at deterring rats in the early stages but have a significant limitation: rats habituate to constant ultrasonic stimulation within 4–6 weeks and resume normal activity.
They are best used as a preventive deterrent in areas with low rat pressure, or in combination with trapping during an active infestation.
Rotating the device’s frequency setting every 2–3 weeks delays habituation and extends effectiveness.
What diseases can garden rats transmit to humans?
Garden rats particularly Norway rats can transmit over 35 diseases to humans, including Leptospirosis (through contaminated urine in soil and water), Rat-Bite Fever (through bites or contact with rat saliva), Hantavirus Pulmonary Syndrome (through inhalation of dust from rat droppings), and Salmonellosis (through contaminated food or produce).
Always wear gloves and a dust mask when working in areas with known rat activity, and wash all garden produce thoroughly before consumption.