Garden & Home Reviews is reader-supported. We earn affiliate commissions from qualifying purchases — how this works.

Do Compost Bins Attract Rats?

Home/Resources/Composting & Soil/Compost and Rats
Close-up detail of the material being worked in a composting & soil project, in soft overcast light

Affiliate Disclosure

Some links on this page are affiliate links. As an Amazon Associate, we earn from qualifying purchases — at no extra cost to you. We do not buy, test, or physically handle the products we cover; our rankings come from aggregated owner reviews, ratings and expert consensus. Commissions never change our verdicts. How we rank · full disclosure.

A well-run compost bin does not attract rats; a neglected one can shelter them. Rodents come for three things — food, water and dry undisturbed shelter — and a pile that gets meat, dairy or grease, or one that sits dry and untouched for months, supplies all three. A hot, damp, turned pile fed only plant material supplies none of them. Four changes solve almost every case: exclude the wrong inputs, keep it damp, turn it weekly, and line the base with quarter-inch hardware cloth.

What actually draws them?

AttractantWhy it works for a ratFix
Meat, fish, bones, dairy, greaseHigh-value food, and it lingersKeep it out entirely of a home bin
Cooked grains, bread, pasta on the surfaceEasy calories at the top of the pileBury in the center or leave out
A dry pileDry material is ideal nesting beddingKeep it at wrung-out-sponge dampness
An undisturbed pileNests need to be left aloneTurn weekly, or at least monthly
Open base on soft soilBurrow access from belowQuarter-inch hardware cloth under the bin
Gaps and a loose lidDirect entryClose any gap over half an inch
Cold pile in winterWarm-ish, sheltered, dry — a good winter nestTurn it and keep it wet through winter

Notice how many of these are about shelter rather than food. Plenty of people find rodents in a pile that never received a scrap of meat, and the reason is almost always that the pile was dry, cool and untouched for a season.

Three-quarter view of a person turning dark crumbly compost with a garden fork beside a compost bin, in soft early-morning light

How do you rat-proof a bin?

  1. Line the base with quarter-inch hardware cloth, running a few inches up the sides and secured so it cannot be pushed aside. Half-inch is the maximum; chicken wire at one inch does nothing.
  2. Close every gap over half an inch, including around the lid, the hatch and the joints of a slatted bin.
  3. Keep meat, dairy, oil and greasy leftovers out — the full list is in what not to put in a compost bin.
  4. Bury kitchen scraps in the center under a few inches of browns, and cover the top with a layer of leaves, straw or cardboard.
  5. Keep it damp. Rodents will not nest in wet material. This is also what a working pile needs anyway.
  6. Turn it weekly. The single most effective habit — it destroys nests, restores heat, and reveals problems early.
Over-the-shoulder view of a person turning dark crumbly compost with a garden fork beside a compost bin, in soft early-morning light

Which composting system is most rodent-resistant?

Tumblers are the strongest option: a sealed drum raised on a frame with no soil floor and a latching lid. If rodents are an active problem in your neighborhood, that is the system to choose, accepting that tumblers are smaller and rarely get properly hot — tumbler versus compost bin covers the compromise, and how long compost takes in a tumbler covers the timeline.

Enclosed plastic bins with a lid and a hardware cloth base are the middle option, and the most common recommendation from municipal composting programs, many of which subsidize exactly that design for this reason. Open heaps and pallet bins are the most vulnerable and are best used for yard waste only, with kitchen scraps going to a closed system. Worm bins kept indoors or in a garage sidestep the question entirely.

Wide view of a person turning dark crumbly compost with a garden fork beside a compost bin, in soft early-morning light

How do you know if you have them?

Look for smooth burrow holes two to four inches across at the base of the bin or nearby, runways of flattened vegetation, droppings, gnaw marks on plastic near the lid or hatch, and a hollow dry cavity when you fork into the pile. Finding one of these is a management prompt, not a reason to stop composting.

If you do find an active nest, follow the US Centers for Disease Control and Prevention guidance on rodent cleanup — ventilate, wet material down rather than sweeping it dry, and wear gloves. That is general safety information, not medical advice. A persistent infestation is a pest control problem in its own right, and compost is frequently blamed for a population that is actually feeding on spilled birdseed, fallen fruit, outdoor pet food or an unsecured trash can.

Once management is back on track, a pile that heats properly is your best ongoing deterrent — why compost is not heating up and browns and greens explained cover getting there. Bin choice is ranked in best compost bin, and siting in where to put a compost bin.

We never buy, test or physically handle the products we rank. Recommendations come from aggregated owner reviews, star ratings, review volume and expert consensus — see how we rank.

More from this hub: Composting & Soil · Best compost tumbler · How to make compost · How we rank

Straight Answers

Frequently Asked

What size mesh keeps rats out of a compost bin?

Quarter-inch hardware cloth is the standard, and half-inch is the practical maximum. Adult rats can pass through any gap wider than about half an inch and young rats through less, so ordinary chicken wire at one inch is decorative rather than protective. Line the base of the bin with hardware cloth extending a few inches up the sides, secure it so it cannot be pushed aside, and check the perimeter once a season for gaps opened by settling.

Do tumblers stop rats completely?

They are the most rodent-resistant home system, because the drum is sealed, raised off the ground on a frame, and has no soil floor to burrow through. A tumbler with an intact lid latch is effectively rat-proof. The trade-offs are capacity and heat: tumblers are usually smaller than a bin, they rarely sustain thermophilic temperatures, and they are slower with woody material. For an urban yard with a known rodent problem it is still usually the right call.

Does a hot compost pile deter rats?

A genuinely hot pile is uninviting for two reasons — the core temperature is uncomfortable, and hot composting breaks food down fast enough that little remains recognizable as food. Rats nest in cool, dry, undisturbed material, which is exactly what a neglected pile becomes. Turning the pile weekly is as effective as anything else on this list, because it disrupts nesting and reintroduces heat and moisture at the same time.

Are rats in compost a health risk?

Rodents are associated with several diseases and the US Centers for Disease Control and Prevention publishes guidance on safe cleanup of rodent-contaminated areas, including ventilating the space, wetting material rather than sweeping dry, and wearing gloves. This is general information rather than medical advice. If you find an active nest, follow the CDC cleanup guidance, and treat a persistent infestation as a pest control matter rather than a composting one.

Should you stop composting if you see a rat?

No, in almost every case — change the management instead. Pull the food scraps out of the pile for a few weeks, wet the pile down and turn it, add hardware cloth to the base, and check for a cool dry pocket where something has been nesting. Rats in a yard usually indicate a food source somewhere, and compost is often blamed when the actual draw is a bird feeder, fallen fruit, pet food left outside, or an unsecured trash can.