Cooked rice that sits out too long can let bacteria such as Bacillus cereus multiply, even if it still looks and smells normal. Unlike dry, uncooked rice that stays shelf-stable for years, cooked rice needs prompt cooling and careful storage to stay safe to eat.
After cooking, rice should be cooled quickly in a shallow, airtight container and refrigerated within two hours, where it keeps for roughly four to six days, or frozen in smaller portions for longer. Because harmful bacteria can be present before rice turns sour, slimy, or