How do I keep animals out of compost?
Fencing, pile design and feedstock choices that discourage rodents, dogs, raccoons and bears
Compost smells like food to wildlife, so if you want to keep animals out of compost you need to control what goes in and what can get in. Rodents, raccoons, skunks, dogs and, in some regions, bears are all attracted to the wrong ingredients.
Start with what you put in
Meat, bones, dairy, grease and cooked food are the biggest attractants. The EPA guide to composting at home recommends keeping meat and dairy out of home piles for this reason. On a farm, if you accept food waste, bury it immediately under a deep layer of carbon and cover it.
Keep animals out of compost with barriers
Fencing and bins
Hardware cloth with small openings stops rodents when buried a few inches below ground and bent outward at the bottom. For larger animals, solid-sided bins with locking lids work well for small operations. In bear country, electric fencing is commonly used around larger sites. See the USDA APHIS Wildlife Services overview of nonlethal methods for more ideas.
Pile management
A hot, active pile is less attractive than a cool one that is full of fresh scraps. Keep fresh material buried in the center, cover with finished compost or woodchips, and turn on schedule. Do not leave bags of feed, grain or fresh food waste sitting beside the pile.
Reduce shelter
Mice and rats nest in tall weeds, pallets and old equipment. Mow around the site and remove debris. Raise any stored material off the ground. Penn State Extension and others note that tidy sites reduce rodent pressure across the farm, not just at the compost pad.
Watch for signs
Tunnels, droppings, scattered material and torn bags tell you what you are dealing with. Rodents leave burrows. Raccoons tip lids and leave tracks. Identify the visitor before choosing a fix, and check state rules about trapping or removal before you act.
Keep your neighbors in mind
Odors invite visitors. Controlling smell, as the Cornell composting resources discuss, reduces animal pressure as well as complaints.
Longer-term prevention
Building habits to keep animals out of compost
Pest control works best as a routine rather than a reaction. Set a weekly walk of the site, repair gaps in fencing right away and bury fresh material before you leave for the day. If you accept food waste from outside, write acceptance rules for what is allowed and refuse loads that contain meat or packaging. Many problems start with contaminated loads, not with the pile itself. When a pest does show up, identify it first, because the right response for rats is different from the right response for a bear.
Learning to keep animals out of compost comes down to three habits: exclude the high-risk foods, bury and cover what you accept, and fence the site to match the wildlife you actually have.