Yes, you can compost rice, but how you do it matters

Rice can go in your compost bin, but it comes with a real risk: cooked rice attracts pests and can create odor problems if it's not buried properly. Raw rice is safer to compost than cooked rice, though both break down slowly compared to other food scraps. The key is understanding which type of rice you have, how much you're adding, and whether your compost setup can handle it without inviting rodents or insects.

Cooked rice is the trickier of the two. When rice is cooked, it becomes soft and moist—exactly what flies, ants, and rodents are looking for. If you add cooked rice to a cold or inactive compost pile, it can sit there for weeks before breaking down, creating a smell and a feeding station. Raw rice, by contrast, is hard and dry, so it doesn't attract pests the same way, but it also takes much longer to decompose because microbes have a harder time breaking through the grain's outer layer.

Key Takeaways

  • Raw rice is safer to compost than cooked rice because it doesn't attract pests, though both types break down slowly.
  • Cooked rice should be buried at least 8 inches deep in an active, hot compost pile to prevent odor and pest problems.
  • If your compost bin is in a cold climate or inactive, cooked rice is better left out of the pile entirely.
  • Rice bran and rice husks compost faster than whole grains and are lower-risk additions to any pile.

Why cooked rice is risky in most home compost setups

Cooked rice becomes a magnet for pests because it's soft, moist, and straightforward to eat. Flies lay eggs in it within hours. Ants farm it for the moisture. Rodents will dig through your pile to reach it. In a backyard bin—especially one that sits on the ground—cooked rice can trigger an infestation that spreads to your whole compost system.

The smell is the second problem. Cooked rice that sits in a cool or anaerobic (oxygen-poor) pile starts to ferment and rot, producing a sour, unpleasant odor that can linger for weeks. This happens because the rice is already partially broken down by cooking, so bacteria colonize it quickly and in the wrong way—without enough oxygen to keep the process aerobic and odor-free.

If you do want to compost cooked rice, it has to go into a hot, active compost pile where temperatures stay above 130°F (54°C). At that temperature, the pile breaks down material fast enough that the rice doesn't sit around long enough to attract pests or smell. You also need to bury it at least 8 inches deep, away from the edges of the bin, so it's not visible or accessible to animals digging from outside.

Raw rice is slower but safer

Raw rice doesn't attract pests the way cooked rice does, which makes it a lower-risk choice for most home composters. The hard, dry grain is not appealing to flies or rodents, and it won't create the fermentation smell that cooked rice does. You can add raw rice to a cold pile without worrying about an infestation.

The trade-off is speed. Raw rice takes months to break down because the grain's outer layer is tough and water-resistant. Microbes work slowly on it, especially in a cool pile. You might add raw rice in spring and still see intact grains in your finished compost in fall. This isn't a problem if you're patient, but it means raw rice won't disappear quickly the way softer scraps do.

If you have a lot of raw rice to compost—say, from cleaning out a pantry—consider breaking it up or soaking it first. Soaking rice for a few hours softens it and speeds decomposition. Crushing it or running it through a food processor also helps, though that creates more work than most people want to do for a small amount of grain.

Rice bran and rice husks compost much faster

If you have access to rice bran or rice husks—byproducts from rice milling or processing—these are excellent compost additions. Rice bran is the nutritious layer just under the grain's outer shell, and it breaks down quickly because it's already soft and rich in nitrogen. Rice husks are the hard outer shells, and while they take longer than bran, they're still faster than whole grains and add valuable carbon to your pile.

Rice bran is particularly good if your compost pile needs a nitrogen boost. It has a carbon-to-nitrogen ratio of roughly 10:1, which is close to the ideal 25:1 to 30:1 for compost, so it won't throw off your pile's balance the way pure carbon sources do. Rice husks are mostly carbon, so they're useful if you have too much green material (grass clippings, food scraps) and need to add brown material to balance it out.

How to add rice to your compost safely

Start by deciding what type of rice you have and what kind of compost system you're using. If you have a hot, active pile that you turn regularly and monitor for temperature, cooked rice is acceptable as long as you bury it deep. If you have a cold pile or a bin that sits untouched for months, stick to raw rice only, and add it in small amounts mixed with other materials.

Never add rice to the top of your compost or leave it visible. Always mix it in or bury it. If you're using a closed bin, make sure the lid seals properly so pests can't get in. If you're using an open pile, consider a wire mesh bottom to keep rodents from burrowing underneath.

Add rice gradually. A cup or two of raw rice mixed into a large pile won't cause problems. A bucket of cooked rice all at once, even in a hot pile, can create a localized smell and pest problem before the pile's heat reaches it. Spread it out over time, or mix it thoroughly with other materials so it's not concentrated in one spot.

What to do if rice attracts pests to your pile

If you've already added rice and you're seeing flies, ants, or rodent activity, the fastest fix is to cover the rice with a thick layer of brown material—dry leaves, shredded paper, or wood chips—at least 12 inches deep. This cuts off the pests' access and reduces smell. If the problem is severe, you may need to remove the rice entirely and start a new section of the pile away from the infested area.

For future batches, remember that prevention is easier than cleanup. Cooked rice belongs in a hot pile or in the trash, not in a cold bin. Raw rice is fine in any pile as long as you don't add huge amounts at once. And if you're not sure whether your pile is hot enough to handle cooked rice, raw rice or no rice at all is the safer choice.

Frequently Asked Questions

Can I compost leftover rice from dinner?

Yes, but only if your compost pile is hot and active (above 130°F). If you have a cold pile or a bin that sits for months, it's better to throw cooked rice in the trash. The risk of attracting pests and creating odor is too high in a cool system.

How long does rice take to decompose in compost?

Raw rice takes three to six months or longer, depending on pile temperature and moisture. Cooked rice breaks down faster—four to eight weeks in a hot pile—but it's riskier because of pests. Rice bran decomposes in four to eight weeks, and rice husks take two to three months.

Will rice attract rats to my compost bin?

Cooked rice will attract rats if it's visible or straightforward to reach. Raw rice is less appealing to rodents, but a large amount can still draw them. Use a bin with a tight-fitting lid and a wire mesh bottom to keep rats out, and bury any rice deep inside the pile, away from the edges.

Can I compost rice that's moldy or spoiled?

Yes. Moldy rice is actually easier to compost than fresh rice because the mold has already started breaking it down. Bury it deep in an active pile or mix it with other materials in a cold pile. The mold won't spread to your garden—it will break down as part of the composting process.

Is rice paper or rice cakes compostable?

Rice paper is compostable and breaks down quickly because it's thin and already processed. Rice cakes are compostable too, but they take longer because they're denser. Both are safer than cooked rice because they don't attract pests the same way. Treat them like any other grain product and mix them into your pile.