Food safety

How long can cooked food stay out of the fridge?

The two-hour rule, the one-hour exception in hot weather, and which foods are the riskiest to leave out.

The short answer is two hours. Perishable food, cooked or raw, should not stay between 5 °C and 60 °C for more than two hours in total. In a hot room or outdoors, above about 32 °C, the limit falls to one hour.

Why time matters

Bacteria that cause food poisoning double in number every 20 to 30 minutes in warm conditions. A small number on cooked food after two hours can become a large number after six. Some bacteria also make toxins that cooking or reheating does not destroy, so reheating leftovers that sat out for hours is not a safe fix.

Count the total time

The two hours are cumulative. Time on the stove after cooking, on the table, on the buffet and in the car on the way home all add up. If food was out for 90 minutes at lunch and then 40 minutes in the evening, it has used up its limit.

Quick guide

SituationWhat to do
Cooked food left out up to 2 hours (1 hour above 32 °C)Refrigerate, or reheat to a safe core temperature and eat.
Cooked food left out more than 2 hoursThrow it away. Do not taste to check.
Hot food for service on a buffetKeep at 60 °C or above, or limit display time to 2 hours and discard the rest.
Cold food on a buffetKeep at 5 °C or below on ice, or limit display time to 2 hours.
Cooked rice, pasta, meat, chicken, egg dishes, cut melon, cooked vegetablesHigh risk. Follow the time limit strictly and cool quickly.
Bread, biscuits, dry cakes, jam, sugar-rich or very salty foodsLow risk for safety. They are not time-limited in the same way, but quality falls.

Good practice

  • Put leftovers in shallow containers and refrigerate within two hours, or within one hour in hot weather.
  • Do not wait for food to cool to room temperature first. Divide it into small portions to cool it faster.
  • Label stored leftovers with the date and use them within about three days.
  • Reheat leftovers once, until steaming hot throughout, and do not keep re-cooling and reheating the same food.

Key points

  • Two hours in total in the danger zone, one hour above 32 °C.
  • Time adds up from cooking to serving.
  • Reheating does not remove toxins that bacteria already made.
  • When in doubt, throw it out.

Frequently asked questions

Can I just reheat food that was left out too long?

No. Reheating kills most bacteria but not all toxins that some bacteria already produced. Food left out longer than the limit should be thrown away.

Does the two-hour rule apply to raw food too?

Yes, to perishable raw food such as meat, fish and dairy. Keep them refrigerated and bring them home from shops quickly in hot weather.

Is it safe to smell or taste food to check?

No. Food that contains dangerous bacteria or toxins usually looks, smells and tastes normal.

Written by Dr. Mokhtar Harb Abdelkhalek, PhD

Associate Professor of Food Science and Technology, Food Technology Research Institute (FTRI), Agricultural Research Center, Egypt. Food safety consultant and instructor.

About the author

This lesson is for education. Always follow the food law and the requirements of your own country, authority or customer.

Want to go deeper?

Take the full course with video lessons, forms and exercises.

Related lessons

Food safety

What is HACCP? The 7 principles explained simply

HACCP is a way to prevent food safety problems before they happen. Learn the 7 principles with a simple example.

6 min read
Read the lesson
Food safety

The temperature danger zone: safe cooking, cooling, holding and storage

Bacteria multiply fastest between 5 °C and 60 °C. Learn the temperatures and times that keep food safe.

5 min read
Read the lesson
Food safety

How to do a food hazard analysis, step by step

Biological, chemical and physical hazards, and a simple method to decide which ones are significant.

6 min read
Read the lesson