What general rules do I need to follow to keep my food safe? How do I know what temperature to cook something to, or whether my food is safe at room temperature?
locked by Jefromi♦ Feb 2 at 21:10
This question's answers are a collaborative effort: if you see something that can be improved, just edit the answer to improve it! No additional answers can be added here
Storing food: the danger zone
When food is between 38°F and 140°F (4°C and 60°C) it's considered in the danger zone, and bacteria are growing on it quickly. USDA guidelines say that no longer than two hours in the danger zone is acceptable. This applies to anything that should be refrigerated, including raw meat and cooked food (leftovers). Additionally, if it's over 90F (32C), they reduce the guideline to just one hour.
Killing pathogens: cooking temperatures
When cooking meat, cook it to the recommended temperature for that particular kind of meat. See for example the USDA's temperatures for various meats. These are conservative guidelines, but they'll make you safe. The common ones:
Different meats have different potential hazards. Most bacteria is killed by heating it over 145°F (63°C), but some things are much harder to kill, so it's important to use the appropriate temperature for what you're cooking.
And of course, once it's cooked, there may be some things that survived, or are reintroduced to the food, so you still have to follow the two-hour danger zone rule above.
Even if the bacteria is dead, toxins can remain if the food was out too long, causing problems. No matter how thoroughly you cook something, it won't make up for bad handling. (Also asked and answered here). For more details on killing bacteria and the hazards of the toxins they leave behind, see the many answers to this question.
Botulism is anaerobic (it grows without oxygen) so it's often a concern for canned goods, or things suspended in oil (e.g. garlic in oil). Some further information from http://www.uga.edu/nchfp/publications/nchfp/lit_rev/cure_smoke_fs.html (°C values added)
Nowadays foodborne botulism kills about 10 to 30 people a year in the USA, according to the Centers for Disease Control and Prevention.