Yes, you can compost moldy food, but mold alone does not make something safe to add
Mold is already part of the composting process — it breaks down organic matter along with bacteria and fungi. Food that has visible mold on it will decompose in a compost bin or pile. The mold itself is not a problem. What matters is what the food is, whether it will attract pests, and whether your compost pile is hot enough to kill harmful pathogens that may have grown alongside the mold.
Most moldy fruits and vegetables are fine to compost. Moldy bread, grains, and cooked foods require more caution. The difference comes down to pest risk and whether the food will create conditions that slow decomposition or draw rodents and insects.
Key Takeaways
- Moldy fruits and raw vegetables decompose safely in compost and do not need special handling.
- Moldy bread, grains, nuts, and cooked foods can attract rats and should go only in enclosed bins or hot piles that reach 140°F or higher.
- Moldy dairy, meat, and oils should not go in home compost at all, regardless of temperature.
- A compost pile that stays cool or sits in an open heap will take longer to break down moldy food and may draw pests before decomposition finishes.
Moldy fruits and vegetables are safe to compost
Raw produce with mold — apples, berries, lettuce, carrots, potatoes — breaks down without risk in any compost system. The mold is already doing the work of decomposition. These foods have no oils or proteins that attract pests the way meat or dairy does, and they will not create odor problems as they rot.
Add them to an open pile, a bin, or a tumbler. They will decompose faster in a hot pile (one that reaches 130°F to 150°F) but will break down in a cool pile too, just over a longer period. No special precautions are needed.
Moldy bread, grains, and nuts need an enclosed bin or hot compost
Bread, cereal, rice, pasta, nuts, and seeds attract rats and other rodents when they sit exposed in a compost pile. Mold does not change this risk. If your compost is an open heap or a bin without a lid, do not add moldy bread or grains — they will draw pests before they finish breaking down.
If you have an enclosed bin with a tight-fitting lid, or if you maintain a hot compost pile that reaches at least 140°F, moldy bread and grains are safe to add. The enclosed bin keeps rodents out. The heat kills pathogens and speeds decomposition so the food breaks down before pests find it. A tumbler-style composter works well for this reason — it is enclosed and you can turn it to generate heat.
If you are unsure whether your pile gets hot enough, leave bread and grains out of it. The risk of a rodent infestation is not worth the convenience.
Moldy cooked food and leftovers depend on what is in them
Cooked vegetables with no oil or sauce can go in compost the same way raw vegetables do. Cooked rice, pasta, or potatoes are treated like bread — they need an enclosed bin or hot pile because they attract pests.
Cooked food with oil, butter, or meat sauce should not go in home compost. The oils slow decomposition and can create odor. The meat proteins draw pests. Even in a hot pile, these foods create problems that outweigh the benefit of composting them. Throw them in the trash instead.
Never compost moldy dairy, meat, or fish
Moldy cheese, yogurt, milk, meat, poultry, and fish do not belong in home compost, even if they are in an enclosed bin or a hot pile. These foods contain proteins and fats that attract strong pest interest — rats, raccoons, and flies will work hard to reach them. The smell can also become severe enough to bother neighbors.
Commercial composting facilities that reach temperatures above 160°F can handle these materials, but home systems cannot reliably get hot enough or stay hot long enough to make them safe. Throw them in the trash.
How to tell if your compost system can handle moldy grain and bread
An open pile or open bin — no lid, no walls — cannot safely take moldy bread or grains. Do not add them.
A bin with a lid that closes tightly will keep rodents out. Moldy bread and grains are safe to add as long as you keep the lid closed and latched.
A tumbler or drum composter is enclosed and designed to be turned regularly, which generates heat. These work well for moldy bread and grains.
A hot pile — one you build in layers and monitor with a compost thermometer — can reach 140°F to 160°F if you turn it every few days and keep the carbon-to-nitrogen ratio balanced. If your pile regularly hits 140°F or higher, moldy bread and grains are safe to add. If you do not monitor temperature, assume your pile does not get hot enough.
What happens to moldy food in compost
Mold is a fungus that breaks down organic matter by releasing enzymes into the food. In a compost pile, mold works alongside bacteria and other microorganisms to turn food into humus — the dark, crumbly material that improves soil. The mold does not disappear; it becomes part of the finished compost.
In a hot pile, decomposition happens faster because heat speeds up microbial activity. Moldy food can break down in weeks. In a cool pile, the same food may take months. The longer it sits, the more time pests have to find it if it is something they want to eat.
The finished compost is safe to use in gardens and potted plants regardless of whether the original food was moldy. Any pathogens that grew on the food are killed by the decomposition process or buried deep enough in the pile that they do not survive to the finished product.
Frequently Asked Questions
Will moldy food make my compost smell bad?
Moldy raw vegetables and fruits do not create odor problems. Moldy bread, grains, and cooked foods with oil can smell if they sit in a cool pile for weeks before breaking down. An enclosed bin or a hot pile minimizes odor because decomposition happens faster and pests do not disturb the pile.
Can I compost moldy leftovers from the fridge?
It depends on what is in them. Moldy vegetables or plain rice are fine. Moldy leftovers with meat, dairy, oil, or sauce should go in the trash. The risk of pests and odor is too high for home compost.
Does mold in compost mean something is wrong?
No. Mold is a sign that decomposition is happening. You will see white, gray, or colored mold throughout a healthy compost pile. If your pile smells like ammonia or rotten eggs, that signals a different problem — usually too much nitrogen or not enough air — but visible mold by itself is normal and expected.
What if I accidentally put moldy bread in an open pile?
Remove it if you see it and can reach it easily. If you cannot, monitor the pile for signs of rodent activity — droppings, burrows, or disturbed material. If you spot pests, stop adding food scraps and turn the pile to bury the remaining food deeper, which makes it less accessible.
Can I compost moldy nuts and seeds?
Moldy nuts and seeds attract rodents the same way moldy bread does. They need an enclosed bin or a hot pile. If your compost is an open system, leave them out.