Cooked rice is best eaten soon after it's made. The NHS in the United Kingdom puts it this way: serve rice and grains as soon as they're cooked. If some is left over, cool it fast and put it in the fridge within 1 hour, and eat it within 24 hours. Rice left at room temperature overnight should be thrown away.
That sounds fussy for something as plain as rice. The reason is in the grain itself.
Why rice gets its own rule
Raw rice can carry the spores of some bacteria that cause food poisoning. The NHS says these spores can survive cooking. While the rice is hot, nothing happens. If the pot stands on the counter for hours, the spores can germinate, the bacteria multiply, and they make toxins that can cause vomiting and diarrhoea.
Reheating doesn't fix it. The NHS states that reheating food will not get rid of those toxins. So the hours rice spends warm before it reaches the fridge matter more than how hot you make it later. The NHS page talks about rice and grains in general, not one variety.
Getting it into the fridge
The NHS gives 1 hour as the limit for cooked rice. The US Centers for Disease Control and Prevention (CDC) gives a wider window for cooked leftovers in general: within 2 hours, and within 1 hour if the food is sitting in temperatures above 90 degrees Fahrenheit, which is about 32 degrees Celsius. On a hot afternoon in a Thai kitchen, the shorter limit is the one that fits.
You don't need to wait for the pot to go cold. The CDC says to put warm or hot food into several clean, shallow containers and then refrigerate it, and adds that small portions of hot food can go straight into the fridge because they cool faster. Rice packed deep in a pot holds its heat in the middle for a long time. Rice spread thin in a flat container loses it much sooner.
The CDC says the fridge should be at 4 degrees Celsius (40 degrees Fahrenheit) or below. It calls the range from 4 to 60 degrees Celsius (40 to 140 degrees Fahrenheit) the zone where bacteria multiply quickly. A rice pot left on the counter spends its whole cooling time inside that range, and the longer it stays there, the more time the bacteria have.
How long it keeps
The NHS figure is 24 hours in the fridge, which is short next to many other cooked dishes. In practice that means putting the extra rice away while the meal is still going, not once the washing up is done.
The CDC page gives no separate fridge time for cooked rice, so the 24 hours here is the NHS's figure alone.
Reheating
The NHS asks for rice to be reheated thoroughly, to a core temperature of 70 degrees Celsius for 2 minutes (or an equivalent combination), so that it's steaming hot all the way through. A hot edge with a cold middle doesn't meet that.
Rice should be reheated once only, and anything left after that goes in the bin. The NHS also says not to reheat rice at all unless it was chilled safely and kept in the fridge until then.
For leftovers in general, the CDC gives 165 degrees Fahrenheit, about 74 degrees Celsius, measured with a food thermometer. The two figures come from two countries with their own guidance. Both describe food that is hot all the way through.
In short
- The NHS says to refrigerate cooked rice within 1 hour and eat it within 24 hours.
- The CDC says to chill cooked leftovers within 2 hours, or within 1 hour when the surroundings are above 32 degrees Celsius.
- According to the NHS, rice spores can survive cooking, and reheating does not remove the toxins the bacteria make.
- The CDC advises shallow containers so food cools quickly.
- The NHS says to reheat rice until steaming hot, once only, and to throw away rice left out overnight.



