1 Answer
1

General comments on the shelf-, fridge-, and freezer-life of foods

The shelf-life is the amount of time a food can be stored before it is considered unsuitable for use. It may be unsuitable due to quality degradation (no longer tasty) or food safety (risk of food poisoning). [1]

As far as food safety goes, food stored frozen at 0°F (-18°C) or below is remains safe forever; only quality degrades over time. [2]. Thus the freezer-storage times below are entirely about quality.

If your freezer is set at a temperature higher than -18°C (three-star setting), these times may not apply. Especially the safe storage time in one-star freezers (-6°C) is much reduced.

The times all assume proper storage. Freezers 0°F or below, refrigerators 40°F (4°C) or below. [3] Cans should be stored in a cool, dry place, below 85°F (30°C) [4].

The tables given here assume proper storage. Food which requires refrigeration is considered unsafe if left for over two hours at temperatures between 41–135°F (5–57°C) [5].

The Tables

Regardless of the table below, if a food shows signs of spoilage (including mold, with some exceptions described below), its past its shelf-life. Note that the lack of spoilage does not imply safety.

Vegetables

Freezer times are given for cooked or blanched, then frozen. Generally, this is
required, otherwise enzymatic degradation will occur. See "Where can I go for
details on a specific food?" for where to find specific steps for each vegetable.

Refrigerator and shelf times are for storage raw.

If a column is -, it means that storage type is not recommended. "Ripe" means
"until ripe".

Fruits

Many fruits must be at least partially cooked (blanched) before freezing in
order to deactivate enzymes that would otherwise degrade quality while in
storage. Some are best frozen packed in acid (lemon juice or citric acid)
and/or syrup. See "Where can I go for details on a specific food?" for where to
find specific steps for each fruit.

If a column is -, it means that storage type is not recommended. "Ripe" means
"until ripe".

*: bananas stored in the fridge will blacken. This is not a sign of spoilage, and they can be eaten safely.

Cooked dishes

2 hours on the counter, for all of them, unless you prepared a known shelf-stable item which generally does not go in the fridge (like cookies, or a canned jam, or others). It does not matter how long the individual components would have lasted on their own.

Refrigerated: generally 3–4 days in the fridge. This includes pizza, soups, stews,
casseroles, pies, and quiche [KC]. Some salads get a fifth day [CFG].
Freezer time is generally under three months.

Infused oils

Putting any plant matter in oil (such as garlic, chillies or herbs) creates the danger for botulism, a rare but fatal disease. Thus infused oils are not shelf-stable. They can be kept in the refrigerator for 3-5 days, discard them earlier if you see cloudiness or gas bubbles. Or buy commercially produced infused oils, they have been treated with industrial methods to kill the botulinum spores.

General tips for storing foods

How do I freeze fruits and vegetables?

Fruit. Ripe (but not overripe) fruit should be used. Wash them, and sort according to size. Working in small batches, remove pits, seeds, and blemishes. For fruits that turn brown, apply ascorbic acid or sugar and citric acid. Most fruits benefit from packing in dry sugar or a sugar syrup. Small, whole fruits (e.g., berries) can be spread on a tray and individually frozen, then packed in a freezer bag or other airtight container.

Vegetables. Most vegetables need blanching. To blanch, immerse in boiling water over high heat or steam over rapidly boiling water (steam). After blanching, transfer to ice bath for the same amount of time as blanched. Drain and dry. Freeze either by packing in a freezer bag with as much air as possible removed, or by allowing to freeze on a tray, then putting in a bag or other container.

What about mold?

Some foods are expected to have mold in them (e.g., P. roqueforti in
Roquefort cheese). Unexpected mold, however, is something to be concerned
about. Mold can grow even on refrigerated foods, and even those high enough in
salt or sugar to deter bacteria. Some molds produce mycotoxins. Mold growth can
be minimized by cleaning the refrigerator every few months (use a mixture of 1
tablespoon of baking soda per quart of water, then rinse with plain water, then
dry), by keeping dishcloths, sponges, mops, etc. clean and fresh-smelling; and
keeping indoor humidity levels under 40%.

In general, the visible surface mold on a food is only a small part of the
actual mold growth. For most foods, any visible unexpected mold growth means
you should discard the entire item. There are several exceptions:

Hard salami, dry-cured Scrub mold off surface.
country hams
Hard cheese Cut at least 1 inch around and below mold spot,
do not cut through mold.
Cabbage, bell peppers, Cut at least 1 inch around and below mold spot,
carrots do not cut through mold.

Where can I go for details on a specific food?

The web site StillTasty maintains a comprehensive list
of food storage times, notes, and procedures for a wide variety of food items.
They draw information from a variety of reputable
sources and should probably
be the first place you check.

Another good source of information is the Food Marketing Institute's Food
Keeper. This is also a searchable database of foods.

For printing, I've copypasted this text and edited the tables. How and where can I upload the file so it's available to the community?
– BaffledCookFeb 12 '12 at 8:37

@BaffledCook: Not sure where to upload it. If your versions of the tables are just better, then I guess just edit the question. Otherwise, there are always things like pastebin (though I have no idea how to keep the two versions in sync, then). Maybe ask on meta?
– derobertFeb 12 '12 at 10:25

I'll ask on Meta. I made a LibreOffice doc. Syncing (?) will be hell.
– BaffledCookFeb 12 '12 at 10:52

You might add that mold on real maple syrup (not maple flavord corn syrup) can be removed, and the syrup still used.
– FlimzyMay 10 '13 at 22:56

1

The USDA's guideline on eggs in the fridge is extremely conservative, more so than most of the items on this list.
– WetlabStudentApr 30 '15 at 16:53