Food spoils when microbes, enzymes, or chemical reactions break it down to the point where it’s unsafe or unpleasant to eat. How quickly that happens depends on the type of food, its moisture content, and how it’s stored. Some foods last days, others last years, and the difference comes down to a few key factors you can actually control.
What Makes Food Go Bad
Three things drive spoilage. First, bacteria, yeasts, and molds feed on nutrients in food, producing slime, off-odors, discoloration, and gas as they multiply. Second, enzymes naturally present in the food itself continue working after harvest or slaughter, softening textures and changing flavors. Third, chemical reactions like oxidation break down fats and pigments over time, turning oils rancid and causing browning.
Here’s what makes spoilage tricky: the bacteria that make food look and smell bad are not always the same ones that make you sick. Spoilage bacteria announce themselves with sour smells, slimy surfaces, or visible mold. Pathogens like Salmonella or E. coli can grow on food that looks, smells, and tastes perfectly fine. That’s why safe handling matters even when food seems fresh.
Temperature Is the Biggest Factor
Bacteria grow fastest between 40°F and 140°F, a range food safety experts call the “danger zone.” In that window, bacterial populations can double in as little as 20 minutes. Perishable food left out at room temperature should be discarded after 2 hours. On a hot day above 90°F, that window shrinks to just 1 hour.
Refrigeration at or below 40°F slows bacterial growth dramatically but doesn’t stop it. Freezing at 0°F or below essentially pauses microbial activity altogether, which is why frozen food stays safe indefinitely (though quality eventually declines). Cooking food to proper internal temperatures kills most bacteria and their toxins, but it doesn’t make already-spoiled food safe.
Moisture Decides Which Foods Last
Water activity, a measure of how much available moisture a food contains, determines what can grow on it. Most fresh foods have a water activity above 0.95, which supports the growth of bacteria, yeasts, and mold easily. The bacterium responsible for botulism needs a water activity of at least 0.93 to grow.
This is why dry and concentrated foods last so much longer. Peanut butter has a water activity around 0.70, dry milk powder sits at about 0.70, and salami comes in around 0.82. At those levels, most dangerous bacteria simply can’t reproduce. Honey, salt, sugar, and dried grains all exploit this principle. They aren’t preserved by magic; they’re preserved because they’re too dry for microbes to thrive.
How Long Common Foods Last in the Fridge
These timelines assume proper refrigeration at 40°F or below:
- Raw ground meat and poultry: 1 to 2 days. Ground meat spoils faster than whole cuts because grinding exposes more surface area to bacteria.
- Whole raw chicken or turkey: 1 to 2 days.
- Cooked meat, poultry, or leftovers: 3 to 4 days. This includes pizza, chicken nuggets, and casseroles.
- Eggs in the shell: 3 to 5 weeks. Eggs last far longer than most people assume.
- Opened milk: 4 to 7 days past the printed date, regardless of whether it’s whole, skim, or flavored.
If you’re unsure whether something is still good, trust your senses. Spoiled food typically develops an off smell, unusual texture (slimy or sticky surfaces), or visible mold. When food shows any of those signs, discard it.
Fruits and Vegetables Spoil at Different Rates
Produce spoilage depends heavily on a natural plant hormone called ethylene, a gas that triggers ripening. Fruits that keep producing ethylene after being picked (called climacteric fruits) ripen and spoil much faster than those that don’t.
Bananas are among the highest ethylene producers, generating up to 130 ppm of the gas as they ripen. They typically show signs of deterioration within one week regardless of storage conditions. Tomatoes also produce ethylene and continue to ripen and soften after harvest. Non-climacteric fruits like oranges don’t experience the same ripening surge. Ethylene exposure only changes their peel color, not their internal ripening.
This is why storing bananas next to tomatoes is a bad idea. The ethylene from bananas accelerates enzyme activity in nearby produce, breaking down cell walls and creating that mushy texture you find in tomatoes left in a fruit bowl too long. To slow spoilage, separate high-ethylene fruits (bananas, apples, avocados, peaches) from produce you want to keep fresh longer.
What Date Labels Actually Mean
The dates printed on food packaging are almost never safety dates. Federal law does not require product dating on any food except infant formula. Those labels are voluntary and refer to quality, not safety.
- “Best If Used By” indicates when a product will be at its best flavor or quality. Food past this date is not automatically unsafe.
- “Sell-By” tells the store how long to display the product. It’s an inventory management tool, not a safety cutoff.
- “Use-By” is the manufacturer’s recommendation for peak quality. Again, not a safety date, with one exception: infant formula. Federal regulations require a “Use-By” date on infant formula to ensure it contains the nutrient levels listed on the label.
If a date passes while food is stored properly at home, it can still be safe and wholesome until actual spoilage is evident. Millions of pounds of food are thrown away each year based on misunderstood date labels.
Canned Goods and Signs of Danger
Commercially canned foods can last years because the canning process kills microorganisms and seals out new ones. Spoilage in canned goods is rare, but when it happens, the stakes are high because of botulism risk.
Throw away any canned food, whether store-bought or home-canned, that shows these signs: the container is leaking, bulging, or swollen; the can looks damaged, cracked, or abnormal; liquid or foam spurts out when you open it; or the food inside is discolored, moldy, or smells bad. Bulging is particularly concerning because it indicates gas production from bacterial activity inside the sealed container. Don’t taste food from a suspect can to check it.
Practical Ways to Slow Spoilage
Most spoilage comes down to time, temperature, and moisture. Keeping perishable food cold, using it within the recommended windows, and paying attention to your senses will prevent the vast majority of problems. A few specific habits help:
Get groceries into the refrigerator quickly, especially in warm weather. Store raw meat on the lowest shelf to prevent drips from contaminating other food. Use or freeze ground meat and poultry within a day or two of purchase. Keep your refrigerator at or below 40°F (a cheap thermometer is the easiest way to verify this). And separate ethylene-producing fruits from the rest of your produce.
The egg float test, where you place an egg in water to see if it floats, only tells you that the air cell inside has enlarged, meaning the egg is older and lower quality. A floating egg may still be perfectly safe. Crack it into a bowl and check for off-odors or unusual appearance before deciding.

