Toss your rice immediately if you notice these signs

Here's what you need to know.

How Long Does Rice Last?, How To Tell if Cooked Rice Is Bad, How To Keep Your Cooked Rice Fresh (And Prevent Bacteria Growth), How To Tell if Uncooked Rice Is Bad

Rice is a superhero of the starch world. Whether you prefer brown, long-grain, or jasmine rice, you can't deny the ingredient's versatility. In fact, it's the staple food for more than half of the globe's population. But storing cooked and uncooked rice can be complicated, as it can harbor spores of Bacillus cereus—a bacterium present in soil that can contaminate the grain during cultivation or harvesting and survive the cooking process. When cooked rice isn't stored, handled, cooled, or heated properly, the heat-resistant bacteria can multiply and cause food poisoning.

How Long Does Rice Last?

How Long Does Rice Last?, How To Tell if Cooked Rice Is Bad, How To Keep Your Cooked Rice Fresh (And Prevent Bacteria Growth), How To Tell if Uncooked Rice Is Bad

It depends! The USA Rice Federation, a global advocate for all segments of the United States rice industry, says that uncooked white rice can stay fresh indefinitely on the pantry shelf (if stored properly). In contrast, whole-grain or brown rice lasts about 6 months because it has a higher oil content.

To keep your rice as fresh as possible, store it in a cool, dry place away from other ingredients. Transporting it from the bag to an airtight container will also help protect it from contaminants, like moisture and bugs, that could cause it to spoil faster.

As for cooked rice, you can store it in the refrigerator for 3 to 4 days and in the freezer for 1 to 2 months, according to the USDA Food Safety Guidelines.

How To Tell if Cooked Rice Is Bad

  • It smells bad: Freshly cooked rice is fairly odorless—so if it smells funky, sour, or unpleasant in any way, throw it out.
  • The grains have an odd texture: Bacterial growth can make rice slimy or mushy. If the grains are hard or crunchy, it's probably been in the fridge for a few days (the longer you store it, the more it'll dry out). 
  • The color changed: Throw away rice that's duller than when you first cooked it, or if there's any sign of mold (for example, green, blue, or brown spots).

How To Keep Your Cooked Rice Fresh (And Prevent Bacteria Growth)

How Long Does Rice Last?, How To Tell if Cooked Rice Is Bad, How To Keep Your Cooked Rice Fresh (And Prevent Bacteria Growth), How To Tell if Uncooked Rice Is Bad
  • Don't leave cooked rice out for more than one to two hours. Put it in the fridge soon after you portion it.
  • Be careful with your rice cooker. If you store cooked grains in your rice cooker on the "Keep Warm" setting, make sure it's at least 150 degrees F (65 degrees C) by using a food thermometer. If not, portion it into containers and refrigerate.
  • Make smaller portions. That way, you don't have leftovers!
  • Keep an eye on takeout. If you order takeout rice, consume or refrigerate it right away, in case it sat out at the restaurant for any period of time.

How To Tell if Uncooked Rice Is Bad

  • The grains smell stale. Instead of a fresh, earthy odor, spoiled raw rice smells sour or musty.
  • It's clumpy or oily. Any variety of raw rice that feels unusually damp to the touch could contain mold. But because brown rice's bran layer contains oil, it spoils more quickly. If your brown rice is extra oily or begins to yellow, it means the oils have turned rancid.
  • You see bugs. Any signs of unwanted dinner guests, such as weevils or their larvae, are a sign to put your grains in the garbage bin. Infested grain may have a white, sawdust-like appearance or holes in the packaging—signs of weevil infestation. If you accidentally ate rice contaminated with the bugs, don't worry! They aren't harmful (though your appetite for rice will likely be impacted for a while).