Cooked food should sit out for no more than 2 hours at room temperature, and only 1 hour if the room is hot (above about 32°C / 90°F), such as at a summer picnic. After that, bacteria can grow to levels that may make you sick, so refrigerate or discard it.
Why the 2-hour rule exists
Bacteria that cause food poisoning multiply fastest between about 4°C and 60°C (40°F and 140°F). Food safety agencies like the USDA call this the "danger zone." In the right conditions, some bacteria can double in number in roughly 20 minutes, so a short delay can turn a small number of germs into a large one.
The 2-hour guideline is a cautious rule of thumb used by food safety agencies, not a precise cutoff. Risk depends on the food, how it was handled, and how warm the room is. The time counts as a running total: if food sat out for an hour, went into the fridge, then came out for another hour, that's 2 hours.
Things that can't be fixed by reheating
- Reheating doesn't always make it safe. Some bacteria, such as Staphylococcus aureus and Bacillus cereus, produce toxins (poisons) that survive cooking. Food can still make you ill even after it's piping hot.
- Looks and smell are unreliable. Food contaminated with harmful bacteria often looks and smells normal. Don't use a sniff test to decide.
Foods that need extra care
Moist, protein-rich or starchy foods tend to be the riskiest when left out:
- Cooked rice, pasta and other grains (B. cereus spores can survive cooking and grow as food cools slowly)
- Meat, poultry, fish and egg dishes
- Dairy-based dishes and creamy sauces
- Cooked vegetables, beans and soups
Drier, high-sugar, high-salt or very acidic foods (like jam or pickles) are generally less hospitable to bacteria, but the 2-hour rule is the safest default for cooked meals.
How to store leftovers safely
- Refrigerate within 2 hours (1 hour in hot weather).
- Divide large batches into shallow containers so they cool quickly. A big, deep pot can stay warm in the middle for hours.
- Keep the fridge at 4°C (40°F) or below.
- Eat leftovers within about 3 to 4 days, a commonly recommended window.
- Reheat to 74°C (165°F) throughout, which kills most bacteria, though not the toxins mentioned above.
- Keep hot food hot (above 60°C / 140°F) if serving it over a long period, for example with warming trays.
When to be extra careful
Pregnant people, older adults, young children, and anyone with a weakened immune system or chronic illness are more vulnerable to serious food poisoning. If that applies to you, be stricter about timing, and check with a doctor or registered dietitian if you're unsure about specific foods.
When in doubt, throw it out. Wasting a plate of leftovers costs far less than a bout of food poisoning.