Refrigerate cooked food within 2 hours of cooking, or within 1 hour if the room is hot (above about 32°C / 90°F). This is the standard guidance from food safety agencies such as the USDA and the UK's Food Standards Agency. Some UK guidance says to cool food as quickly as possible, ideally within 1 to 2 hours.
Why the clock matters
Bacteria multiply fastest between roughly 5°C and 60°C (41°F and 140°F). Food safety agencies call this the "danger zone." Under good conditions for growth, some bacteria can double in number in about 20 minutes, so a few hours at room temperature can turn a small number of germs into a large one.
Some bacteria, such as Staphylococcus aureus and Bacillus cereus, can also produce toxins that reheating does not destroy. So food that has sat out too long may still make you ill even if you cook it again. This is well established in food safety research.
How to cool food quickly
You do not need to wait for food to cool completely before refrigerating it. A modern fridge can handle warm food, as long as you help it cool efficiently:
- Divide large batches into shallow containers (about 5 cm / 2 inches deep or less) so heat escapes faster.
- Cut big items down. Slice large roasts or split a big pot of soup into smaller portions.
- Use an ice bath. Set the pot in a sink of cold water and ice, stirring occasionally, for soups, stews and sauces.
- Leave lids loose or off at first, then cover once the food is cool.
- Don't overpack the fridge, so cold air can circulate.
Storing and reheating
- Fridge temperature: keep it at 5°C (41°F) or below. Many agencies recommend 4°C or lower.
- How long it keeps: most cooked leftovers are best eaten within 3 to 4 days (USDA guidance). Some UK guidance says up to 2 days for certain foods, so when in doubt, eat sooner or freeze.
- Freezing: this is a good option if you won't eat the food within a few days.
- Reheating: heat leftovers until steaming hot throughout, to at least 74°C (165°F) per USDA guidance, and only reheat once.
Special case: rice and pasta
Cooked rice can contain spores of Bacillus cereus, which survive cooking and can grow if the rice stays warm. Cool rice quickly, ideally within an hour, refrigerate it, and eat it within a day. Spread it out in a shallow tray to speed cooling. Pasta and other starchy foods benefit from the same care.
A note on vulnerable groups
Pregnant people, older adults, young children and those with weakened immune systems are more at risk from food poisoning. If that applies to you, it is especially worth following these time limits strictly, and a doctor or registered dietitian can give advice for your situation.