Skip to content
Grow In Backyard
Squirrels & Wildlife

How to Stop Rats Eating Your Vegetable Garden

Rats raid a garden for food, water and cover. Remove all three, harvest earlier, and exclude with 1/4-inch hardware cloth — poison is the last resort.

By Salma 2 min read Save to Pinterest — opens Pinterest in a new tab
A brown rat feeding among leaf litter and twigs at ground level
Photo: TheOtherKev, Pixabay Content License, via Pixabay
On this page

Rats do not raid a garden for the vegetables alone. They need food, water and cover within a short run of each other — and the fix is to break that triangle before reaching for anything lethal.

Step 1: remove the food

  • Pick fruit slightly early rather than leaving it to full ripeness on the plant
  • Clear fallen fruit and vegetables daily in season
  • No kitchen scraps in an open heap. Cooked food, bread, meat and dairy out of the compost entirely; use a closed tumbler for anything soft
  • Sweep up spilled bird seed and store feed in metal bins, not bags or plastic tubs
  • Cover pet food and never leave bowls out overnight

Step 2: remove the water

  • Fix dripping outdoor taps and leaking hose joints
  • Tip out saucers, buckets and tarps holding water
  • Empty and refill birdbaths rather than letting them sit

Step 3: remove the cover

  • Woodpiles up off the ground and away from beds
  • Gaps under sheds, decks and steps closed with hardware cloth, skirted into the soil
  • Dense ground cover thinned near the beds
  • Long grass along fences mown short

Step 4: exclude

materialverdict
1/4 in galvanised hardware clothCorrect. Rats cannot pass or easily chew it
1/2 in hardware clothYoung rats get through
Chicken wireToo soft and too open — they chew it
Plastic or nylon nettingChewed through in a night

Line the base of a raised bed before filling, and build a removable mesh lid for the crops being hit hardest.

Poison is the option that backfires

An anticoagulant bait leaves a dying rat out in the open for a day or two, where an owl, hawk, fox or cat eats it. That is how secondary poisoning happens, and it removes the predators that were keeping rat numbers down. Snap traps in a protected box are more selective and tell you what you caught.

When to call someone

Burrow holes with fans of soil, droppings in quantity, daytime sightings, or gnawing on the house itself mean an established population rather than a visiting one. That is a professional job, and the garden measures above are then the follow-up that stops it recurring.

Common questions

Why are rats eating my vegetables?

Because the garden offers all three things a rat needs within a few feet of each other: food, water and cover. Ripe fruit left on the plant, fallen windfalls, a compost heap with kitchen scraps, a dripping tap or a birdbath, and a dense shrub or a gap under a shed. Rats will not range far from cover, so a bed in the open with nothing to hide in nearby is raided far less than one against a fence or a woodpile.

What vegetables do rats go for first?

Soft, sweet and high-calorie items: ripe tomatoes, squash and pumpkin, sweetcorn, strawberries, and anything with seeds or stored starch. They also dig for sown peas, beans and sweetcorn seed, and chew sweet potatoes and root crops in the ground. Leafy greens and brassicas are far down the list, which is a useful diagnostic — if only the tomatoes and squash are hit, rats or squirrels are more likely than slugs.

How do I rat-proof a raised bed?

1/4-inch galvanised hardware cloth, not chicken wire. Line the base of the bed before filling it, and where damage is serious, build a removable mesh cage or lid over the top in the same material. Rats pass through 1/2-inch mesh and chew through plastic netting, so the gauge and the hole size are the whole job. Seal the edges tightly — a rat only needs a gap the width of its skull.

Does anything repel rats from a garden?

Nothing reliably. Peppermint oil, ultrasonic devices and scent repellents have no good evidence and rats habituate to novel smells within days. What genuinely changes behaviour is removing the food and cover, excluding them with mesh, and trapping. Treat any product that promises to repel rats as money better spent on hardware cloth.

Should I use rat poison in a vegetable garden?

As a last resort and ideally not at all. Anticoagulant baits kill slowly and the poisoned rat is then eaten by an owl, a hawk, a fox or a neighbour's cat, which is how secondary poisoning happens; the bait itself is also a risk to pets and children. Snap traps in protected boxes are more selective and give you confirmation of the kill. If an infestation is established — burrows, runs, droppings in quantity — call a professional rather than scattering bait.

How do I know it is rats and not something else?

Look for the droppings and the runs. Rat droppings are dark, about half an inch long and spindle-shaped, usually concentrated along a route. You will also see smooth worn runs through grass or under a fence, burrow holes two to three inches across with a fan of soil, and gnaw marks with distinct paired incisor grooves. Damage at night, clean-cut stems, and fruit hollowed out from one side all point the same way.

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.

Weathered timber deck boards with grass and sky beyond
Backyard Animals ·

How to Stop Squirrels Chewing Your Deck

Squirrels gnaw decking for mineral salts and to wear their teeth down. The capsaicin routine, metal flashing on the edges they attack, and what fails.