Skip to content
Grow In Backyard
Squirrels & Wildlife

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.

A brown rat standing in short grass, tail extended behind it
Photo: Dluogs, CC BY-SA 2.0, via Flickr
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

Rat measures, rated on evidence
MeasureWorksNotes
Hardware cloth + steel woolYes, permanentlyNothing to habituate to
Metal feed binsYesRemoves the reason they came
Closed composterYesRemoves the commonest harbourage
Enclosed snap trapsYes, for animals presentFast, selective, reusable
Treadle poultry feederYesCuts the overnight food supply
Clearing ground cover, woodpilesYesRemoves shelter and runs
CatsPartlyGood on mice; adult rats often too much
Ultrasonic repellersNoFailed trials; rapid habituation
Peppermint oil, mothballsNoTolerated where food is available
Predator urine granulesNoIgnored, and washes away
Anticoagulant poisonDo not useKills owls, foxes, cats; kills dogs
Glue boardsDo not useProlonged 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

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
Check current price (affiliate link, opens in a new tab)

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
Check current price (affiliate link, opens in a new tab)

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
Check current price (affiliate link, opens in a new tab)

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
Check current price (affiliate link, opens in a new tab)

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
Check current price (affiliate link, opens in a new tab)

Which should you buy?

Our verdict

Best overall:
Hardware cloth and steel wool for exclusion

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…BuyBecause
Rats in a shed or outbuildingSeal every gap with hardware cloth and steel woolA 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 feedMetal bins and a treadle feederSpilled 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 nowEnclosed snap traps in bait boxesFast, selective and reusable. The enclosure keeps pets, children and birds out of the mechanism.
Compost heap is the harbourageA closed rodent-proof composterAn 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 animalsA professional, not another productEstablished 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?

Exclusion and food removal, not a deterrent product. Rats are present because something feeds them and something shelters them, so the measures that work are closing gaps with hardware cloth and steel wool, storing feed in galvanised metal bins, and replacing an open compost heap with a closed composter. No repellent — ultrasonic, scent-based or otherwise — has a reliable effect, because rats habituate within days to anything that does not actually harm or exclude them.

Do ultrasonic rat repellers work?

The evidence says no. It is among the best-selling pest-control categories and has repeatedly failed controlled trials: where any initial effect appears, rodents habituate within days, and the sound does not pass through walls, furniture or stored items, so it leaves most of a shed unaffected anyway. The same applies to mothballs, peppermint oil sachets and predator-urine granules — a rat with a reliable food supply tolerates an unpleasant smell.

Why should I not use rat poison in the garden?

Because of what eats the rat. Anticoagulant rodenticides take days to kill, so a poisoned rat keeps moving and is caught by owls, hawks, foxes, and cats, which then absorb the same dose — secondary poisoning is well documented and is a significant cause of death in some raptor populations. The bait also kills dogs directly and is attractive to them. In a garden, where those animals are present and are mostly on your side, snap traps in enclosed boxes do the same job without the collateral.

How small a gap can a rat get through?

A brown rat passes through a gap of about 20 mm, roughly the diameter of a quarter, and a mouse through about 6 mm, roughly a pencil. Both will also gnaw a smaller hole larger, and they chew through expanding foam, plastic, wood and thin aluminium without difficulty. The materials that hold are hardware cloth, sheet metal, steel wool packed tight, and cement — so when sealing a shed, check at ground level, around pipe entries, under doors and where the structure meets its base.

How do I keep mice out of a shed?

Seal it and empty it of food. Mice need only a 6 mm gap, so go round the shed at night with a torch inside — any light visible from outside is a route in — and close every gap with hardware cloth or packed steel wool rather than foam. Then remove what they are eating: bird seed, pet food, bulbs and grass seed all belong in metal bins with lids. Snap traps deal with the mice already inside, and an open shed with nothing to eat does not attract more.

Does a cat keep rats out of a garden?

Partly, and less than people expect. Cats kill young rats and do suppress mice effectively, but an adult brown rat is a large, formidable animal and many cats will not tackle one. A cat's presence does have some deterrent effect on where rats choose to forage. It is not a substitute for closing gaps and removing food, and a garden with an abundant food supply will support rats despite a cat.

When should I call a professional?

When you are seeing rats in daylight, finding burrows under a building or decking, or hearing activity inside a wall or roof space — all three suggest an established population rather than passing visitors. At that point the question is what is feeding and housing them, and that often means something structural: a broken drain, a void under a floor, a neighbour's food source. Buying more traps rarely resolves an infestation of that kind.

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.