Rat Deterrent for Garden — 5 Fixes, Only 1 Permanent
A rat deterrent for garden use fails unless food and shelter go first. 5 measures compared, and why poison is the wrong call. See which fits yours.
We may earn a commission when you buy through links on this page, at no extra cost to you.
On this page
Almost everything sold as a rat deterrent is sold on the hope that rats can be persuaded to leave. They cannot. They are in the garden because it offers food and shelter, and the only measures with a lasting effect remove one or the other.
That makes this an unusual buying guide, because the two best things on it are hardware cloth and a metal bin.
What works, and what the evidence says
| Measure | Works | Notes |
|---|---|---|
| Hardware cloth + steel wool | Yes, permanently | Nothing to habituate to |
| Metal feed bins | Yes | Removes the reason they came |
| Closed composter | Yes | Removes the commonest harbourage |
| Enclosed snap traps | Yes, for animals present | Fast, selective, reusable |
| Treadle poultry feeder | Yes | Cuts the overnight food supply |
| Clearing ground cover, woodpiles | Yes | Removes shelter and runs |
| Cats | Partly | Good on mice; adult rats often too much |
| Ultrasonic repellers | No | Failed trials; rapid habituation |
| Peppermint oil, mothballs | No | Tolerated where food is available |
| Predator urine granules | No | Ignored, and washes away |
| Anticoagulant poison | Do not use | Kills owls, foxes, cats; kills dogs |
| Glue boards | Do not use | Prolonged suffering; restricted in places |
The secondary poisoning problem, in plain terms
This is the part worth understanding before reaching for the cheapest option on a shelf.
Anticoagulant rodenticides do not kill quickly. A rat that has taken a lethal dose keeps moving for several days, becoming progressively weaker and slower — which makes it markedly easier to catch than a healthy rat.
So the animals that specialise in catching rats catch the poisoned ones preferentially. Barn owls, tawny owls, red-tailed hawks, foxes and domestic cats all accumulate the dose, and anticoagulant residues are found in a large proportion of tested raptor carcasses in surveyed areas.
Those are the animals already controlling rats in your garden for free. Poison removes them and leaves the rats, which breed back faster than the predators do.
Watch out
Rodenticide bait is also palatable to dogs and is a common cause of poisoning in pets. If you have a dog, this alone should settle it.
Gap sizes, and the materials that hold
A brown rat gets through about 20 mm — roughly a quarter. A mouse needs about 6 mm — roughly a pencil. Both will enlarge a smaller hole by gnawing.
What they chew through: expanding foam, plastic, wood, thin aluminium, insulation, rubber.
What holds: hardware cloth, sheet metal, tightly packed steel wool, cement.
The practical method for a shed is to go inside at night with a torch and have someone look from outside, or the reverse. Any point where light shows is a route. Pay particular attention to ground level, where the structure meets its base, around pipe and cable entries, and the gap under a door.
Pack steel wool hard into irregular gaps, then cover or seal over it. Foam alone is a waste of an afternoon.
Follow the food supply
Where a garden has rats, there is nearly always an obvious food source once you look for it.
- Bird seed. Spilled seed under a feeder is the classic. Use a tray, sweep it, and store the bag in metal
- Chicken feed. Open feeders and spill in the run. A treadle feeder plus a metal bin fixes it
- Pet food left out overnight
- Open compost, especially with cooked food or meat in it
- Windfall fruit left on the ground
- Dog waste, which rats will eat
Remove the supply and the population does not need deterring. It leaves, because a garden that feeds nothing supports nothing.
Shelter is the other half
Rats want to move under cover and nest somewhere dry. A garden offers plenty:
Dense ivy and ground cover against a wall. Woodpiles. The space under decking or a shed. Old sacks and sheet material stacked behind a garage. An open compost heap, which is warm, dry, sheltered and full of food all at once — which is why it tops the list.
Thinning cover along fence lines and lifting stored material off the ground removes the runs. Rats are strongly reluctant to cross open ground, and taking away the covered route between shelter and food does real work.
When it is beyond products
Rats in daylight, burrows under a building, or noise inside a wall or roof space all point to an established colony rather than visitors.
At that stage the useful question is structural: a cracked drain, a void under a floor, a neighbour’s food source. That is what a professional finds, and buying a third pack of traps will not.
How we picked
Methods assessed against documented rat behaviour and gnawing ability, published trials of repellent devices, and guidance from wildlife and public health sources on rodenticide risk. · Picks last checked October 2026.
- Does it address food or shelter
- Rats are in a garden because something feeds them and something hides them. Anything that does not change one of those two is a temporary measure at best.
- Evidence it works at all
- Ultrasonic repellers are the best-selling category and have repeatedly failed controlled trials. Habituation is rapid even where an initial effect exists.
- Risk to pets and wildlife
- Anticriminal rodenticides kill the owls, hawks and foxes that eat poisoned rats, and they kill dogs and cats directly. This rules out the cheapest option.
- Will it hold
- Rats gnaw through expanding foam, plastic, wood and thin aluminium. Only steel wool, hardware cloth and cement hold a gap closed.
- Humaneness and legality
- Glue boards and open poison are prohibited or restricted in a number of places, and both cause prolonged suffering. Snap traps kill quickly.
Our picks
| # | Pick | Best for | Where to buy |
|---|---|---|---|
| 1 | Hardware cloth, 1/4 in, with steel wool | Best overall — the only permanent fix | Check price for Hardware cloth, 1/4 in, with steel wool → |
| 2 | Galvanised metal feed bins | Best value | Check price for Galvanised metal feed bins → |
| 3 | Enclosed snap traps | Best for removing rats already present | Check price for Enclosed snap traps → |
| 4 | Rodent-proof closed composter | Best for the commonest harbourage | Check price for Rodent-proof closed composter → |
| 5 | Treadle chicken feeder | Best where poultry feed is the draw | Check price for Treadle chicken feeder → |
Best overall — the only permanent fix
Hardware cloth, 1/4 in, with steel wool
Where to start and where to finish. Check at ground level, around pipes, under doors and where the shed meets its base.
- Mesh
- 1/4 in for rats and mice both
- Gauge
- 19 gauge or heavier
- Gaps
- Rats pass 20 mm; mice pass 6 mm
- Use with
- Steel wool packed into irregular gaps, then sealed
- Fix with
- Screws and washers
What we liked
- The one measure rats cannot habituate to or work around
- Steel wool is the only soft filler they will not gnaw through
- Cheap relative to repeated trapping or a professional visit
- Works equally on mice, which need a finer gap check
Worth knowing
- Finding every gap is tedious and needs a torch at night
- Gnawing continues at any gap you miss
- Expanding foam alone is useless; they chew straight through it
Best value
Galvanised metal feed bins
If you keep chickens or feed birds, this is probably the whole problem. Plastic bins are a bag with a lid as far as a rat is concerned.
- Holds
- Bird seed, chicken feed, pet food
- Material
- Galvanised steel with a tight lid
- Why
- Rats gnaw through plastic tubs and bags
- Sizes
- 20–50 gallon typical
What we liked
- Removes the food supply that brought them
- Rats cannot gnaw galvanised steel
- Keeps feed dry and unspoiled as a bonus
- Cheaper than one professional visit
Worth knowing
- Heavy and bulky
- Lids must actually be closed every time
- Does nothing about shelter
Best for removing rats already present
Enclosed snap traps
The right tool for animals already in the garden. Pre-bait unset for three or four nights, or the smart ones never go near it.
- Type
- Covered snap trap or trap in a lockable bait box
- Kill
- Fast and mechanical
- Selective
- Enclosure excludes birds, pets, children
- Bait
- Peanut butter, nuts, chocolate
What we liked
- Kills quickly, unlike anticoagulant poison
- No risk of secondary poisoning to owls, foxes or cats
- Reusable for years
- You know the outcome, which you never do with bait
Worth knowing
- Needs checking daily
- Rats are trap-shy; leave traps unset and baited for a few days first
- Unpleasant to empty
Best for the commonest harbourage
Rodent-proof closed composter
If you have an open heap and a rat problem, these are the same fact. Close the heap before buying traps.
- Type
- Closed tumbler or sealed bin with a solid base
- Why
- An open heap is warm, dry, sheltered and full of food
- Base
- Solid, or hardware cloth beneath
- Also
- Keeps cooked food out of reach
What we liked
- Removes the single most common rat habitat in a garden
- Faster composting in a sealed tumbler as a side effect
- No digging in from below with a solid base
- Stops the heap feeding them as well as housing them
Worth knowing
- Smaller capacity than an open heap
- Tumblers need turning, and are heavy when full
Best where poultry feed is the draw
Treadle chicken feeder
Buy it with the metal bin. Feed in a sealed bin and a treadle feeder together cut the food supply to nothing.
- Mechanism
- Bird's weight opens the lid
- Excludes
- Rats, mice, wild birds, squirrels
- Capacity
- 20–40 lb
- Training
- A week with the lid propped
What we liked
- Open poultry feed is a reliable way to acquire rats
- Closed lid at night removes the whole night-time supply
- Saves the feed that wildlife was eating
- Removes the usual cause of neighbour complaints
Worth knowing
- Birds need training, and bantams may be too light
- Dearer than a hanging feeder
Which should you buy?
Our verdict
- Best overall:
- Hardware cloth and steel wool for exclusion
- Best value:
- Galvanised metal feed bins
Nothing on this page beats exclusion. Rats are in the garden because food and shelter are available, and a few dollars of hardware cloth and steel wool closing the gaps in a shed is the only measure that works permanently and the only one that cannot habituate. Metal feed bins are the value pick because open bird seed and chicken feed is the usual reason a garden has rats in the first place. Enclosed snap traps deal with the animals that are already there. Skip the ultrasonic devices entirely — they are the best-selling category and the one with the weakest evidence.
| If you… | Buy | Because |
|---|---|---|
| Rats in a shed or outbuilding | Seal every gap with hardware cloth and steel wool | A rat passes through a 20 mm hole and a mouse through 6 mm. Exclusion is the only permanent answer, and the materials are cheap. |
| They are after bird seed or chicken feed | Metal bins and a treadle feeder | Spilled and open feed is the usual reason a garden has rats at all. Remove the food supply and the population leaves on its own. |
| Active rats you need to remove now | Enclosed snap traps in bait boxes | Fast, selective and reusable. The enclosure keeps pets, children and birds out of the mechanism. |
| Compost heap is the harbourage | A closed rodent-proof composter | An open heap is warm, dry, sheltered and full of food. It is the single most common rat habitat in a garden. |
| Infestation beyond a few animals | A professional, not another product | Established colonies with burrows under a building need the cause found. Buying more traps rarely resolves it. |
When not to buy at all
Do not use rodenticide in a garden. Anticoagulant poisons do not kill quickly, so a poisoned rat goes on moving for days and is eaten by owls, hawks, foxes and cats, which then die of the same dose — secondary poisoning is well documented and widespread, and the bait kills dogs directly. Skip glue boards too: they cause prolonged suffering and are banned or restricted in a growing number of places. And skip ultrasonic repellers, mothballs, peppermint oil sachets and predator-urine granules: none has survived a controlled trial, and rats habituate to sound and smell within days.
Common questions
What is the best rat deterrent for a garden?
Do ultrasonic rat repellers work?
Why should I not use rat poison in the garden?
How small a gap can a rat get through?
How do I keep mice out of a shed?
Does a cat keep rats out of a garden?
When should I call a professional?
Backyard Weekly
Know what to plant, week by week
Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.
Not ready to subscribe? The planting calendar is free and needs no email.
By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.
Keep reading
Mourning Dove Bird Feeder — 5 Trays and Platforms
A mourning dove bird feeder needs a flat surface, not a perch. 5 trays and platforms compared, plus the seed. See which fits your yard.
Can Rats Climb Walls? Brick and Pipes, Yes. Glass, No.
Rats climb rough vertical surfaces easily, jump three feet up and squeeze through a 20mm gap. What that means for sealing a house, and what actually stops them.
How High Can a Rat Jump? And How Far, and How Small a Gap
A brown rat clears about three feet vertically and four horizontally, and fits through a gap the size of a quarter. What that means for rat-proofing.
Can Mice Climb Trees? Yes — Some Species Live in Them
House mice and deer mice climb well, and deer mice nest in trees by preference. What that means for bird boxes, sheds and fruit trees.