Troubleshooting

Keeping Rats and Mice Out of Compost

How to keep rats and mice out of a compost bin with 1/4-inch hardware cloth, buried food scraps, a closed lid and no meat or dairy in the pile.

On this page
  1. Why rodents come to compost
  2. Keep the food out of reach
  3. Rodent-proof the bin
  4. Signs of burrows
  5. Stay safe

Why rodents come to compost

Rats and mice look for food, warmth, and shelter. A compost bin can offer all three, especially when it holds meat, dairy, oily or cooked food, bread, pet food, or fruit. Scraps left on the surface, and a cold pile that still contains edible food, are a strong draw. Spilled birdseed nearby can bring them in too.

Keep the food out of reach

  • Leave out the foods rodents like. In a backyard bin, meat, fish, dairy, cooked food, bread, and oily food are the main ones to avoid.
  • Bury any scraps deep in the pile. Turn the pile so that food ends up covered by material.
  • Keep the pile active. A pile that is working and warm gives rodents less reason to stay.
  • Clean up birdseed. Spilled seed under feeders near the bin draws rodents straight to it.
  • Keep the lid closed. An open top gives easy access.

Rodent-proof the bin

  • Use quarter-inch hardware cloth. Line the sides and base with galvanized hardware cloth with openings of about 1/4 inch. Chicken wire has holes that are too large to keep out smaller rodents.
  • Attach it well. Use heavy-gauge staples or screws, and make sure there are no gaps at the corners or seams.
  • Cover the vents. Any ventilation openings need mesh too, with no opening wider than 1/4 inch.
  • Stop tunneling from below. Rats can dig up under a bin set on the ground. Extend the mesh a few inches beyond the bottom of the bin, or bury the edge an inch or two into the soil.
  • Seal store-bought bins. Many bins have gaps around the lid or seams. Mesh over those spots helps.

Signs of burrows

If you see holes or disturbed soil around the base, check the mesh for gaps and fill any holes. Fresh burrows may mean an active nest nearby.

Stay safe

Rodents can carry diseases, so wear gloves when you handle compost, wash your hands afterward, and never handle a nest with bare hands. If rodents keep coming back despite these steps, a local pest control professional can help with a plan.

The complete guide to troubleshooting

Fixing Common Compost Problems
Read the guide

Keep exploring

Guides from other topics

All topics →