Food storage guide
How long food lasts in the fridge, freezer and pantry, how to store it, and how to tell when it has gone bad. Every answer is checked against food-safety guidance and dated.
Dairy
Almond Milk
In the fridge: Opened: 7–10 daysButter
In the fridge: 1–2 monthsCheese
In the fridge: Hard, opened: 3–4 weeks · Soft: 1–2 weeksCottage Cheese
In the fridge: Unopened: about 2 weeks from purchase · Opened: about 1 weekCream Cheese
In the fridge: About 2 weeksGreek Yogurt
In the fridge: 1–2 weeksKefir
In the fridge: Unopened: about 1 week · Opened: 1–2 daysMilk
In the fridge: Until the use-by date on the cartonOat Milk
In the fridge: Opened: about 5–7 days · Chilled, unopened: about 2 months from productionRyazhenka
In the fridge: Unopened: until the date on the bottle · Opened: 1–3 days, never past the dateSour Cream
In the fridge: Until the date on the tub; once opened, about 1–2 weeks (not past the date)Soy Milk
In the fridge: Opened: 7–10 daysYogurt
In the fridge: 1–2 weeksCheddar
In the fridge: Unopened: about 6 months · Opened: 3–4 weeksMozzarella
In the fridge: Fresh: 1–2 weeks · Shredded: about 1 monthParmesan
In the fridge: Wedge, opened: 3–4 weeks · Unopened: about 6 months · Grated: up to 12 monthsFeta
In the fridge: Opened: 1–2 weeksMargarine
In the fridge: 4–6 months from the day you buy it
Meat & Poultry
Beef
In the fridge: Steaks & roasts: 3–5 days · Ground: 1–2 days · Cooked: 3–4 daysChicken
In the fridge: Raw: 1–2 days · Cooked: 3–4 daysChicken Thighs
In the fridge: Raw: 1–2 days from purchase · Cooked: 3–4 daysChicken Wings
In the fridge: Raw: 1–2 days from purchase · Cooked or takeout: 3–4 daysHam
In the fridge: Store-sliced, half, spiral-cut or leftover: 3–4 days (FSIS's ham chart allows up to 5) · Opened plant-sealed pack: 3–5 days · Whole cooked ham: 7 days · Unopened plant-sealed pack: until its use-by date; FoodKeeper suggests about 2 weeks from purchasePork
In the fridge: Chops & roasts: 3–5 days · Ground: 1–2 days · Cooked: 3–4 daysSalami
In the fridge: Sliced: 3–5 days after opening or deli purchase · Opened whole dry: up to 3 weeks · Opened whole cooked: 7 days · Unopened sliced pack: 2 weeks from purchase · Unopened whole dry: until its date · Never past the pack's date
Seafood
Canned Tuna
In the pantry: Unopened: until the best-if-used-by date, 2–5 years; pouches about 18 monthsSalmon
In the fridge: Raw: 1–2 days · Cooked: 3–4 daysShrimp
In the fridge: Raw: 1–2 days from purchase · Cooked: 3–4 days at mostTuna
In the fridge: Raw steaks or fillets: 1–2 days from purchase at 4°C (40°F) or colder, never past a pack's date · Thawed in the fridge: 1–2 more days (vacuum packs: open them before thawing) · Cooked: 3–4 days
Fruits
Apples
In the fridge: 4–6 weeksBananas
In the pantry: Until ripeBlackberries
In the fridge: Fresh, unwashed: 1–3 days; FoodKeeper: 3–6 days from purchase · Cooked sauce or compote: 3–4 daysMango
In the pantry: Firm: several days to ripen (3–8 days after picking), then refrigerateMelon
In the fridge: Ripe, whole: about 5 days (cantaloupe), 3–4 days from purchase (honeydew) · Cut, peeled and covered: 1–3 days · Pre-cut from the store: once opened 1–3 days, never past the date on the containerOranges
In the pantry: Whole: 7–10 days from purchase, out of direct sunPeach
In the pantry: Firm: 1–2 days to ripen in a paper bag · Ripe: 1–2 days · Canned, unopened: 12–18 months from purchase for best qualityPineapple
In the pantry: Whole, ripe: 1–2 days · Canned, unopened: 12–18 months from purchase for best qualityStrawberries
In the fridge: Whole, unwashed, caps on: 1–3 days · Sliced: covered, in the fridge within 2 hours of cutting; no separate figure, so slice only what you'll eat that dayWatermelon
In the pantry: Whole, uncut: up to 1 week from purchase, or about 5 days above 24°C (75°F) · Cut: 2 hours at most, 1 hour above 32°C (90°F)Kiwi
In the fridge: Ripe: 3–7 days, up to 2 weeks in a bag; firm: up to 6 weeks; cut: 1–2 days
Vegetables
Broccoli
In the fridge: Whole head, unwashed: 3–5 days from purchase; Michigan State University Extension says to use it within 3 days · Bagged florets: by the date on the bag · Cooked: 3–4 daysCanned Tomatoes
In the pantry: Unopened can: 12–18 months from purchase, never past the best-if-used-by date · Opened: refrigerateCherry Tomatoes
In the pantry: Ripe, whole: up to 5 days (USDA FoodKeeper: up to 10) · Underripe, from a store: up to 5 days, out of direct sunGarlic
In the pantry: Whole, unbroken bulbs: about 1 month from purchase (USDA FoodKeeper); 3–5 months somewhere cool, about 16°C (60°F), dry and dark (UC) · Jarred chopped garlic: 8–12 months from purchase (FoodKeeper), never past the date on the jar; once opened, store it as the label says · Homemade garlic in oil: never at room temperatureLettuce
In the fridge: Iceberg & romaine: 1–2 weeks · Leaf: 3–7 days · Opened bag: 2 daysOnions
In the pantry: About 1 monthPotatoes
In the pantry: 1–2 monthsTomato Paste
In the pantry: Unopened can, tube or jar: until the best-if-used-by date (USDA FoodKeeper: up to 27 months from purchase) · Opened: refrigerateTomatoes
In the fridge: Not recommended — it dulls the flavorCorn
In the fridge: Raw, in the husk: 1–2 days; cooked: 3–4 daysCanned Corn
In the pantry: Unopened: 2–5 years from purchase, in a cool, dry cupboardGreen Beans
In the fridge: Fresh, whole: 3–5 days from purchase · Cooked: 3–4 days · Canned, opened: 3–4 daysBeets
In the fridge: Fresh, greens cut off: 7–10 days (MSU), up to 2 weeks from purchase (FoodKeeper) · Cooked: 3–4 days · Canned, opened: 3–4 days · Pickled, opened: 5–7 days (FSIS), up to 1–2 months per FoodKeeper's pickled-beet entryArugula
In the fridge: Fresh, unwashed: 3–7 days · Bagged: by the date on the pack; once opened, 2 days but not past that dateEggplant
In the fridge: Whole: best within 1–3 days (UC); 1–2 days, wrapped (MSU, Illinois Extension); USDA FoodKeeper: 4–7 days from purchase · Cut, raw: none of our sources gives a time, so refrigerate at once and cook soon · Cooked: 3–4 daysRadishes
In the fridge: Red radishes, greens removed, in a plastic bag: 5–7 days (Illinois Extension) to 10–14 days from purchase (USDA FoodKeeper) · Greens, stored separately: 2–3 daysGinger
In the fridge: Whole, unpeeled root: 2–3 weeks from purchase · Peeled or cut: no official time; wrap it in a damp cloth, use it first, or freeze itPeas
In the fridge: Fresh: 2–3 days, best within 1–2 (Illinois Extension; Food Hero); 3–5 days from purchase (USDA FoodKeeper, fresh beans and peas) · Cooked: 3–4 days (FoodKeeper, general leftovers); 2 days (UK FSA)Asparagus
In the fridge: Fresh spears: 3–4 days from purchase (USDA FoodKeeper); Illinois Extension says 2–3 days · Cooked: 3–4 days (FoodKeeper's general leftovers figure)Thyme
In the fridge: Fresh sprigs in a damp paper towel: several days to about 1 week (USDA FoodKeeper's thyme entry: 2–3 weeks) · Dried: not advised by UF/IFAS Extension, as dried herbs absorb moisture and clumpCauliflower
In the fridge: Fresh head: 3–5 days from purchase (USDA FoodKeeper) · Cut florets or riced: 2–3 days, never past a store pack's date · Cooked: 3–4 days (general figure for cooked vegetables)Sauerkraut
In the fridge: Opened can or shelf jar: 5–7 days, not past the date on the pack · Opened home-canned jar: 3–4 days (FSIS, all home-canned food) · Chilled pack: by its label, not past its date · Homemade, fermented, not canned: several months, tightly covered
Grains & Bread
Bread
In the pantry: Homemade: 3–5 days · Packaged: 14–18 daysBuckwheat
In the pantry: Dry groats or kasha: about 2 months (USDA FoodKeeper), not past the best-if-used-by date on the bagOatmeal
In the pantry: Dry, unopened: until the best-if-used-by date (USDA: about 12 months from purchase) · Opened, in a sealed container: 6–12 monthsPasta
In the pantry: Dry, unopened: 2 years · Opened: 1 yearRice
In the pantry: White, uncooked: 2 years · Brown: 1 yearGranola
In the pantry: Unopened: 6–9 months · Opened: 2–3 months · Homemade: up to 2 weeksCroissants
In the pantry: Bakery-fresh: 1–2 days · Packaged: until the best-if-used-by datePancakes
In the fridge: Cooked: 3–4 days · Batter: cook within 24 hoursTortillas
In the fridge: Opened flour: up to 3 months (USDA), sooner if the pack says so · Corn: 60–90 days from purchaseBulgur
In the pantry: Dry bulgur: 6–12 months (USDA FoodKeeper); date the bag when you buy it
Pantry
Baking Powder
In the pantry: Unopened: 6–18 months from purchase, up to the best-if-used-by date · Opened, lid on tight: 3–6 months, not past that date · After that: test it before bakingBay Leaves
In the pantry: Dried, unopened jar: 1–2 years from purchase (general dried-herb figure), up to its best-if-used-by date · Opened: about 6 months for best quality (UF/IFAS, herbs and spices in general), not past that date · Home-dried: about 1 year (Penn State, most dried herbs)Chickpeas
In the pantry: Dried: 1–2 years from purchase, 1 year once the bag is open (USDA's figure for dried beans) · Unopened can: until its best-if-used-by dateChips
In the pantry: Unopened: until the best-if-used-by date (USDA: about 2 months from purchase) · Opened, clipped shut: 1–2 weeksCrackers
In the pantry: Unopened: up to 8 months from purchase, not past the best-if-used-by date · Opened: about 1 month, not past that date · Graham or animal crackers, unopened: 6–9 months from purchase, not past the dateDates
In the pantry: Up to 2 months from purchase, not past the date on the pack (USDA FoodKeeper) · UC Davis, commercial storage after harvest at 21°C (70°F) and 70–75% humidity: semi-soft dates about 1 month, soft ones such as Medjool about half thatChewing gum
In the pantry: Sealed: about 6–9 months (candy-industry guideline relayed by Virginia Tech; a 2010 review gives 6 months to about a year by type), within any date on the pack · Opened: no time in the sources, and the sealed figures don't carry over; reclose it, keep it dry and use it up soonerLentils
In the pantry: Dry, in a sealed container: 1 year from purchase, also 1 year once the bag is open (USDA FoodKeeper); stop at the date on the bag if it comes first · Cooked: no more than 2 hours out of the fridge, 1 hour above 32°C (90°F)Nutella
In the pantry: Opened or unopened: until the best-before date on the lidRaisins
In the pantry: Unopened: 6–12 months · Opened: about 1 month, a few months in a sealed jar kept coolWalnuts
In the fridge: In or out of the shell, in an airtight jar: 3–12 monthsPeanut Butter
In the pantry: Opened, regular (no-stir): 2–3 months · Unopened, regular: 6–9 months from purchase · Never past the best-if-used-by date · Natural: refrigerate once openedBaking Soda
In the pantry: Unopened: 18 months (UGA Extension) or 2–3 years from purchase (USDA), up to the best-if-used-by date · Opened: 6 months, up to that date · Past either: vinegar test before baking
Beverages
Energy Drink
In the pantry: Unopened: until the date on the can, below 29°C (85°F)Soda
In the pantry: Sealed: about 6–8 months in a cool cupboard, up to the best-if-used-by date · Already past that date: USDA recommends diet within 3 months of the date, regular within 9Sparkling Water
In the pantry: Sealed: best up to the date on the bottle or can, kept cool, dry and out of the sun · Opened: into the fridgeCola
In the pantry: Unopened: best by the date; past it, diet within 3 months, regular within 9
Condiments & Sauces
Jam
In the fridge: Opened store-bought: 6–12 months · Opened home-canned: about 1 month · Freezer or refrigerator jam: up to 3 weeksKetchup
In the fridge: Opened: up to 6 months for best qualityMayonnaise
In the fridge: Opened jar: up to 2 months (Germany's BLE: 6–8 weeks), never past the best-if-used-by date · Homemade with pasteurized eggs: 3–4 days (FoodKeeper's figure for homemade aioli); with raw eggs FSIS advises against it, and Germany's BLE gives such dishes 1 day at most · Potato salad: 3–5 days; egg or tuna salad: 3–4 daysMustard
In the fridge: Opened: a few months, up to 1 yearSoy Sauce
In the fridge: Opened: 1 month for best quality (USDA FoodKeeper), not past the best-if-used-by dateVinegar
In the pantry: Store-bought: about 2 years from purchase; apple cider vinegar indefinitely; balsamic 3–5 years from purchase · For best quality, use by the date on the bottlePesto
In the fridge: Homemade: up to 3 days · Opened jar or tub: 3 days, or sooner if the label says so · Unopened: by the date on the pack (USDA FoodKeeper: jarred pesto up to 6 months from purchase, never past that date)Olives
In the fridge: Opened: about 2 weeks (USDA); in brine, at their best for 10–14 days (Germany's BLE) · In oil or vacuum-packed: the label's after-opening time, otherwise 2 weeks at most · Never past the date on the jar · Olive bar: 2 weeks from purchaseSalsa
In the fridge: Opened jar: 5–7 days (USDA's general time for opened high-acid canned food), 1 month at most (FoodKeeper's salsa entry), never past the date · Fresh salsa from the refrigerated case: 4–7 days, never past its date · Homemade: 5–7 days
Frozen
Dumplings
In the freezer: Store-bought: until the date on the bag · Homemade uncooked: about 2 months · Cooked: 1–3 monthsFrozen Peas
In the freezer: Store-bought: 10–18 months from purchase at –18°C (0°F) or colder, for best quality (FoodKeeper's general frozen-vegetable figure) · Cooked: 1–2 months (FoodKeeper's figure for vegetable leftovers) · Fresh peas frozen at home: about 8 months from purchaseIce Cream
In the freezer: Opened or unopened: best within 2 months at −18°C (0°F) (Ohio State and Purdue Extension); USDA FoodKeeper: 6 months from purchase; either way, finish it by the best-if-used-by date if the carton has one · Melted: don't refreeze