Yes, rice can go in compost, but it needs careful handling to avoid attracting pests and creating odor problems
Cooked rice breaks down in a compost pile, but it behaves differently than raw rice and poses real risks if you don't manage it correctly. Cooked rice can attract rats, flies, and other pests because it's soft, moist, and smells like food. Raw rice, which is drier, is safer to add but still requires the right conditions to decompose without problems. The key difference is moisture and decomposition speed: cooked rice ferments quickly in a warm, wet pile and becomes a pest magnet within days.
The safest approach is to bury cooked rice deep in the center of an active, hot compost pile where temperatures stay above 140°F. If your pile doesn't reach that temperature or you're using a bin in your yard, raw rice is the better choice, and even then you should limit how much you add.
Key Takeaways
- Cooked rice attracts rodents and flies because it's soft and moist; raw rice is safer but still requires burial in the pile.
- Cooked rice must be buried at least 8 inches deep in the center of a hot compost pile to prevent pest problems.
- If your compost pile doesn't reach 140°F or stays cool, avoid cooked rice entirely and use raw rice sparingly.
- Rice takes 2 to 6 months to fully decompose depending on pile temperature, moisture, and whether it's raw or cooked.
- Moldy or fermented rice should still be buried deep; the smell and appearance are normal but signal a pest risk if left exposed.
Why Cooked Rice Causes Problems in Compost
Cooked rice is soft and absorbs moisture, which makes it decompose fast—sometimes too fast. When rice ferments in a warm, wet environment, it produces a sour smell that attracts flies, ants, and rodents within 24 to 48 hours. The smell comes from anaerobic bacteria (bacteria that work without oxygen) breaking down the rice in pockets where air can't reach. This is the same process that makes garbage smell bad.
Rats are especially drawn to cooked rice because it's straightforward to eat and nutritious. A single cup of cooked rice can feed a rat for a day, and once rats find your compost pile, they'll return regularly. Flies lay eggs in the moist rice, and those eggs hatch into larvae within 3 to 5 days. The pile becomes a breeding ground rather than a composting system.
Raw rice doesn't have these problems when ready because it's dry and harder to break down. Bacteria and fungi work more slowly on raw grains, so the smell develops over weeks rather than days. This slower pace gives you time to bury it before pests notice.
How to Compost Cooked Rice Safely
If you want to compost cooked rice, bury it at least 8 inches deep in the center of your pile, where the temperature is hottest. An active compost pile with a good mix of brown materials (dry leaves, shredded paper) and green materials (grass clippings, food scraps) will heat up to 130°F to 160°F within a few days. At 140°F or higher, most pests and pathogens die, and the rice breaks down without attracting rodents or flies.
Use a garden fork or shovel to dig a hole in the middle of your pile, add the cooked rice, and cover it with at least 8 inches of brown material like shredded leaves or cardboard. The brown layer acts as a barrier that blocks the smell and keeps pests from digging down to the rice. Check the pile's temperature with a compost thermometer if you have one; if it stays below 120°F, don't add cooked rice.
Never leave cooked rice on top of the pile or mix it into the outer layers. The surface is cooler and attracts pests when ready. Also avoid adding cooked rice if your pile is in a bin without a lid or if you live in an area with a large rat population.
Raw Rice as a Safer Alternative
Raw rice is a better choice for most home composters because it doesn't smell and doesn't attract pests as quickly. Uncooked grains are hard and take longer to break down, so they sit in the pile without creating the fermentation smell that draws rodents and flies. You can add raw rice to the surface of your pile or mix it into the middle without the same level of risk.
Raw rice still needs to be buried or mixed in rather than left on top, especially if you see signs of pests in your yard. A handful of raw rice mixed into a large pile is fine; a cup or more should still be buried under brown material. Raw rice will take 3 to 6 months to fully decompose depending on pile temperature and moisture, compared to 2 to 4 months for cooked rice in a hot pile.
If you have leftover rice regularly, consider feeding it to chickens or other animals instead, or throwing it in the trash. Composting works best when rice is occasional, not a regular addition.
Temperature and Decomposition Speed
The speed at which rice breaks down depends almost entirely on your pile's temperature. A hot pile (140°F to 160°F) will decompose cooked rice in 2 to 4 months. A warm pile (100°F to 130°F) takes 4 to 6 months. A cool pile (below 80°F) may take 6 months to a year, and the rice may not fully break down before you use the compost.
To keep your pile hot, add fresh green materials (grass clippings, food scraps, coffee grounds) regularly and turn the pile every 1 to 2 weeks. A pile that sits undisturbed will cool down, especially in fall and winter. If you live in a cold climate or your pile is in shade, cooked rice is riskier because the pile won't stay hot enough to kill pests and pathogens.
You can check your pile's temperature with a long compost thermometer (available at garden centers for $10 to $20). Insert it 12 inches into the center of the pile. If it reads below 120°F, wait until the pile heats up before adding cooked rice, or skip it entirely and use raw rice instead.
Signs Your Rice Compost Is Going Wrong
If you see flies hovering over your pile or smell a strong sour odor, the rice is fermenting anaerobically and attracting pests. Cover the rice when ready with 12 inches of brown material (shredded leaves, cardboard, straw) to block the smell and prevent flies from laying eggs. If you see rats or evidence of rats (droppings, tunnels), stop adding food scraps and cooked rice to that pile for at least a month.
Mold or a white fuzzy coating on rice is normal and means decomposition is happening. Don't remove it; just bury it deeper. A slimy texture or black spots mean the rice is breaking down in anaerobic conditions, which is still normal but signals that you need better aeration. Turn the pile to add oxygen, or bury the rice deeper next time.
If your pile smells like vinegar or rotting food, the carbon-to-nitrogen balance is off. Add more brown material (dry leaves, shredded paper, cardboard) to absorb moisture and improve airflow. Rice is a nitrogen-rich green material, so too much of it without enough brown material will create smell and pest problems.
When to Skip Composting Rice
Don't compost cooked rice if your pile is in a bin without a lid, if you live in an urban area with rats, or if your pile doesn't heat up. Enclosed bins with lids are safer because they limit pest access, but even then, cooked rice should be buried deep. If you're new to composting or your pile has been cool for weeks, throw cooked rice in the trash instead.
Rice mixed with sauces, oils, or meat should not go in compost at all. Oils slow decomposition and attract pests; meat and fish create strong odors and draw rats and raccoons. Stick to plain cooked rice with no additions, or skip it entirely.
If you have a small apartment compost bin or a worm bin (vermicomposting), avoid rice altogether. These systems don't get hot enough to handle rice safely, and the moisture and smell will cause problems in a small space.
Frequently Asked Questions
Can I compost rice with sauce or oil on it?
No. Rice with sauces, oils, or butter should go in the trash. Oils slow decomposition and create a barrier that keeps oxygen out, leading to fermentation and strong smells. Meat-based sauces attract rats and raccoons. Plain cooked rice only.
How long does rice take to break down in compost?
Raw rice takes 3 to 6 months depending on pile temperature and moisture. Cooked rice breaks down faster in a hot pile (2 to 4 months) but ferments quickly and attracts pests if not buried deep. Cool piles may take 6 months to a year for either type.
What if I don't have a hot compost pile?
Use raw rice only, and bury it under brown material. Skip cooked rice entirely. If your pile stays cool year-round, consider a different composting method like bokashi or vermicomposting, which don't rely on heat.
Will rice attract rats to my compost pile?
Cooked rice will attract rats if left exposed or buried shallow. Raw rice is safer but still poses a risk if you add large amounts. Bury all rice at least 8 inches deep and keep your pile covered with a lid or brown material to reduce pest access.
Can I compost uncooked rice that's gone bad or moldy?
Yes. Moldy raw rice is fine to compost; the mold is part of the decomposition process. Bury it in your pile like regular raw rice. Moldy cooked rice should also be buried deep to prevent pest problems, even though the mold shows decomposition is already underway.