Skip to content

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.

The most common species you will encounter is the Norway rat (brown rat)  a burrowing species that is highly adaptable, surprisingly intelligent, and capable of inflicting serious damage on plants, structures, and stored produce in a very short time.
Rats first appeared in my garden when I started growing guavas and peaches. Within two weeks of the fruit coming in, I was dealing with a full infestation burrow tunnels along the fence line, chewed drip irrigation tubing, and entire guava clusters stripped overnight.
I’ve since tested nearly every method on this list personally. What follows is what actually works, in order of effectiveness.

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
The chewed irrigation tubing was the most costly damage I suffered. I had a slow drip leak I couldn’t trace for two weeks  the rats had gnawed through a section buried under mulch.
By the time I found it, one raised bed had been waterlogged and killed. Rat damage is often invisible until it’s expensive.

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

$5–$20 each
⚡ 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.

Snap traps placed along my fence line  baited with a small amount of peanut butter mixed with oats  cleared a significant active infestation within 10 days. The key was placing them correctly along established rat runs, not in open spaces where rats rarely venture.
Peanut butter is the single most effective snap trap bait for garden rats  it is scent-rich, sticky (rats can’t flick it off without triggering the mechanism), and irresistible to Norway rats. A pea-sized amount is sufficient.
Check and reset snap traps every 24 hours. A sprung trap that remains with a dead rat stops working and can attract other scavengers. Wear rubber gloves when handling both traps and dead animals.

⚡ Electrocution Traps

$30–$100 each
⚡ 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.

I upgraded to an electrocution trap after my second rat season. The biggest advantage for me is the indicator light I check it once in the morning rather than checking every trap position individually. Disposal is clean and the reset takes under a minute.
Position electrocution traps with the entrance hole flush against a fence, wall, or raised bed edge. Rats feel exposed in open spaces and will naturally investigate covered tunnels the enclosed trap design takes advantage of this instinct.

Live Capture Traps

$15–$50 each
⚡ 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.

I tried live trapping for one season. It works, but the daily commitment is real I missed one afternoon check in summer heat and the rat didn’t survive the trap. After that I switched to kill traps. Live trapping is most practical in cooler months or for gardeners who are home all day.
Always check live traps at minimum twice daily morning and evening. In summer temperatures above 85°F (30°C), check every 3–4 hours. A distressed animal in an unchecked live trap suffers unnecessarily and defeats the purpose of humane capture.

Ultrasound Repellents

$20–$60 each
⚡ 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.

Rotate the frequency setting on ultrasound repellents every 2–3 weeks if your model allows it. Varying the sound pattern significantly delays habituation and extends the effectiveness of the device.

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

$150–$500+
⚡ 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.

After a persistent infestation that survived two rounds of trapping  the rats were avoiding my trap positions despite correct placement I called a professional.
The exterminator identified a burrow network I hadn’t found behind the shed, and entry points under the fence line I hadn’t sealed.
Three visits and the problem was resolved completely.
Get at least two quotes before hiring. Ask each company whether they use anticoagulant rodenticides (warfarin-based baits) and if so, how they prevent secondary poisoning of garden predators like owls, foxes, and neighbourhood cats that may consume poisoned rats.

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

$5–$15
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.

Peppermint oil works as a deterrent but requires diligent reapplication I found that after 48 hours in open air the scent fades enough that rats ignore the cotton balls entirely.
I now apply every two days at active entry points. It’s best used as a supplementary deterrent alongside physical traps, not as a standalone solution.
Use only 100% pure peppermint essential oil, not peppermint fragrance oil or flavored extract. The menthol concentration in pure essential oil is what rats find repellent diluted fragrance versions don’t produce the same effect. Reapply every 48–72 hours.

#2: Plant Catnip Around Your Garden

$3–$10 per plant
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.

I planted a catnip border along my fence line two seasons ago as a complement to other measures.
Whether it’s the catnip itself or the neighbourhood cats it attracts, rat activity along that fence section dropped noticeably. As a bonus, it’s drought-tolerant and almost impossible to kill.
Crush a few catnip leaves between your fingers near suspected entry points every week or two — bruising the leaves releases more nepetalactone into the air and amplifies the deterrent effect.

#3: Install Soil Netting Under Garden Beds

$10–$50
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.

Use ¼-inch (6mm) galvanized hardware cloth not chicken wire. Chicken wire openings are too large to exclude rats and the wire gauge is too light to resist gnawing. Hardware cloth is the only mesh that provides reliable rat exclusion.

#4: Get a Rat-Hunting Pet

⚡ Effectiveness: High (ongoing)
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.

Even if your cat isn’t an active hunter, its scent markings particularly urine serve as a territorial signal that deters rats from establishing nests in the area. A cat that uses the garden regularly is valuable as a deterrent even without direct hunting.

#5: Keep Food Off the Lawn and Garden

Free
⚡ 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.

Bird feeders are one of the single biggest rat attractants in residential gardens. Spilled seed on the ground provides a year-round food source directly beneath them. If you won’t remove the feeder, install a seed catcher tray and clean it daily.

#6: Eliminate Standing Water Sources

Free
⚡ 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.

Inspect your garden in the early morning for wet patches or puddling that could indicate a slow irrigation leak rats scout water sources actively at night and wet soil indicates available water to them.

#7: Keep Your Garden Clean and Clutter-Free

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.

The single most transformative prevention step I took was clearing a pile of old timber and broken pots that had accumulated behind my shed.
Within days of removing it I found an active nesting site underneath roughly a dozen rats had been living within 10 feet of the shed door without my knowledge. Clutter is a rat apartment building.

#8: Block All Access to the Garden Shed and Structures

$10–$80
⚡ 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.

Use an expanding foam sealant as a base filler for gaps and holes, then cover with hardware cloth secured with screws and washers. Foam alone is not rat-proof they will chew through it within hours but foam plus metal mesh is highly resistant.

#9: Keep Rubbish Bins Tightly Sealed

$0–$30
⚡ 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.

Store food waste bins as far from the garden boundary and compost area as possible. Concentrated food odors at the perimeter create a scent trail that draws rats in from neighbouring properties and public spaces.

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.

Seventeen years of gardening have taught me that the gardens least affected by rat problems share one trait they’re actively managed. Tidy, harvested regularly, without persistent clutter or standing water.
The gardeners who struggle most are those who react only when the damage is already severe. Set up one or two snap traps along your fence line now, even if you haven’t seen a rat yet early detection changes everything.

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.

Related Posts You May Find Helpful

On my 15th birthday, I became the designated gardener in my home.

Now at 32, I have a small garden and every day I'm out trying different plants and seeing how they grow. I grow guavas, peaches, onions, and many others. Want to know more about me? Read it here.

Back To Top