Pantry shelf life chart: how long flour, rice, spices and more last

Type a food and this lookup shows the pantry shelf life USDA's FoodKeeper gives it: the time from the date of purchase, the time after opening, and FoodKeeper's own storage tips, word for word. It carries every food in the FoodKeeper dataset that has a pantry time, from baking staples and grains to canned goods, condiments, drinks and room-temperature produce. Nothing you type leaves your browser.

For the staples people ask about most, FoodKeeper gives white flour 6 to 12 months in the pantry from the date of purchase and 6 to 8 months after opening, white rice 2 years (1 year opened), ground spices 2 to 3 years, commercial peanut butter 6 to 24 months (2 to 3 months opened) and dry pasta 2 years (1 year opened).

All 331 foods with a pantry time

FoodPantryAfter opening
Baby Food
Cereal, dry mixesTip: Should be discarded after use-by date.Not listed1 month
FormulapreparedTip: Should be discarded after use-by date.Not listed1 hour
Baked Goods: Bakery
Commercial bread productsincluding pan breads, flat breads, rolls, and buns14 to 18 daysfrom the date of purchaseNot listed
Commercial cakes and muffins3 to 7 daysfrom the date of purchaseNot listed
Cookiessoft2 to 3 monthsfrom the date of purchaseNot listed
Cookiescrispy4 to 6 monthsfrom the date of purchaseNot listed
Doughnuts1 to 2 daysfrom the date of purchaseNot listed
Fruit cake6 monthsfrom the date of purchaseNot listed
Pastries, danish5 to 10 daysfrom the date of purchaseNot listed
Fruit piesapple, peach, blueberry, apricot, cherry, blackberry1 to 2 daysNot listed
Piesmincemeat2 hoursNot listed
Piespecan2 hoursNot listed
Piespumpkin2 hoursNot listed
Quiche2 hoursNot listed
Bagelfresh baked1 to 2 daysNot listed
Muffinhomemade - including bran, blueberry, banana, corn, chocolate chip3 to 7 daysNot listed
Muffincommercially packaged3 to 7 daysNot listed
Muffinmix, dry, commercially packaged9 monthsNot listed
MacaroonsfrenchTip: Store in refrigerator if not eaten right away.1 to 2 daysNot listed
BreadhomemadeTip: May have shorter shelf life due to lack of preservatives.3 to 5 daysNot listed
Baked Goods: Baking and Cooking
Baking powder6 to 18 monthsfrom the date of purchase3 to 6 months
Baking soda2 to 3 yearsfrom the date of purchase6 months
Biscuit or pancake mix9 monthsfrom the date of purchaseNot listed
Cake, brownie, bread mixes12 to 18 monthsfrom the date of purchaseNot listed
Chocolateunsweetened and semi-sweet, solid1 to 2 yearsfrom the date of purchase1 year
Cocoa and cocoa mixesIndefinitelyfrom the date of purchase1 year
Cornmealregular, degerminated6 to 12 monthsfrom the date of purchase2 years
Cornmealstone ground or blue1 monthfrom the date of purchaseNot Recommended
Cornstarch18 to 24 monthsfrom the date of purchase18 months
Flourwhite6 to 12 monthsfrom the date of purchase6 to 8 months
Flourwhole wheat3 to 6 monthsfrom the date of purchaseNot listed
Frosting or icing10 to 12 monthsfrom the date of purchaseNot listed
Gelatinflavored10 to 12 monthsfrom the date of purchase3 to 4 months
Gelatinunflavored3 yearsfrom the date of purchaseNot Recommended
Oilsolive or vegetable6 to 12 monthsfrom the date of purchase3 to 5 months
Nut oils6 to 12 monthsfrom the date of purchase3 to 8 months
Vegetable oil sprays2 yearsfrom the date of purchase1 year
Shorteningsolid1 to 2 yearsfrom the date of purchase6 to 12 months
Tamarind paste6 to 12 monthsfrom the date of purchase6 months
Chili powder2 yearsfrom the date of purchase2 years
Seasoning blends1 to 2 yearsfrom the date of purchase1 to 2 years
Flavored or herb mixes6 monthsfrom the date of purchaseNot listed
Garlicchopped, commercial jars8 to 12 monthsfrom the date of purchaseNot listed
Herbsdried1 to 2 yearsfrom the date of purchase1 to 2 years
Spice/spiceswhole3 to 4 yearsfrom the date of purchase3 to 4 years
Spice/spicesground2 to 3 yearsfrom the date of purchase2 to 3 years
SugarbrownTip: Sugar never spoils, but for best quality use within 2 years of opening.Indefinitely18 to 24 months
SugargranulatedTip: Sugar never spoils, but for best quality use within 2 years of opening.Indefinitely18 to 24 months
SugarconfectionersTip: Sugar never spoils, but for best quality use within 2 years of opening.Indefinitely18 to 24 months
Sugar substitutes2 yearsfrom the date of purchaseIndefinitely
Tapiocas12 monthsfrom the date of purchase12 months
Whole wheat flour12 monthsNot listed
Almond extract2 years12 months
Cinnamon extract2 years12 months
Lemon extract2 years12 months
Pure vanilla extract2 years12 months
Butter flavor2 years12 months
Coconut flavor2 years12 months
YeastpackagedTip: Store in cool, dry place. Must be refrigerated or frozen once opened.2 yearsfrom the date of purchaseNot listed
Amaranthflour, meal2 monthsNot listed
Barleyflour, meal3 monthsNot listed
Buckwheatflour, meal1 monthNot listed
Farroflour, meal3 monthsNot listed
Milletflour, meal1 monthNot listed
Oatsflour, meal2 monthsNot listed
Ryeflour, meal3 monthsNot listed
Sorghumflour, meal2 monthsNot listed
Speltflour, meal3 monthsNot listed
Teffflour, meal2 monthsNot listed
Garam masala1 yearNot listed
Cinnamon rollsbaked1 to 3 daysNot listed
Beverages
Coffeewhole beans3 to 5 monthsfrom the date of purchase3 to 5 months
Coffeehome ground, non-vacuum3 to 5 monthsfrom the date of purchase3 to 5 weeks
Coffeeinstant1 yearfrom the date of purchase2 to 3 months
Diet powder mixes and drink mixes18 to 24 monthsfrom the date of purchase1 to 3 months
Fruit Juice in cartons, fruit drinks, punch3 weeksfrom the date of purchase7 to 12 days
Juice, boxesPackage use-by dateNot listed
Nectarpapaya, mango, guava, or guavabana12 to 18 monthsfrom the date of purchaseNot listed
Teabags18 to 36 monthsfrom the date of purchase6 to 12 months
Teainstant2 to 3 yearsfrom the date of purchase6 to 12 months
Tealoose2 yearsfrom the date of purchase6 to 12 months
Watercommercially bottledTip: Water will store indefinitely, though the taste may be impacted by storage conditions, including sunlight, items stored around it and the containers being used to store it.IndefinitelyNot listed
Lime juice12 to 18 monthsfrom the date of purchaseNot listed
Lemon juice12 to 18 monthsfrom the date of purchaseNot listed
Red wineTip: Dark, away from direct heat or sunlight.3 to 5 yearsNot listed
White wineTip: Dark, away from direct heat or sunlight.1 to 2 yearsNot listed
Hard liquorsIndefinitelyNot listed
Cream liquorsunopened6 to 8 monthsNot listed
Coffeecommercial ground, non-vacuum2 yearsfrom the date of purchase2 weeks
Nutrition supplement drinkscanned2 to 5 yearsfrom the date of purchaseNot listed
Vegetable juiceshelf-stable18 monthsfrom the date of purchaseNot listed
Coconut water12 monthsfrom the date of purchaseNot listed
Apple ciderfresh2 to 3 daysNot listed
Yuzu juice4 to 6 monthsfrom the date of purchaseNot listed
Condiments, Sauces & Canned Goods
Barbecue saucebottledFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.1 yearfrom the date of purchaseNot listed
Chutney1 yearfrom the date of purchaseNot listed
Cream sauces, milk solids6 to 12 monthsfrom the date of purchaseNot listed
Dry gravy mixes2 yearsfrom the date of purchaseNot listed
Gravyjars and cans2 to 5 yearsfrom the date of purchaseNot listed
Honey2 yearsfrom the date of purchaseNot listed
Jams, jellies, and preserves6 to 18 monthsfrom the date of purchaseNot listed
Ketchup, cocktail, or chili sauceFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.1 yearfrom the date of purchaseNot listed
Marinades1 yearfrom the date of purchaseNot listed
MayonnaisecommercialFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.3 to 6 monthsfrom the date of purchaseNot listed
MustardFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.1 to 2 yearsfrom the date of purchaseNot listed
Olivesblack and green12 to 18 monthsfrom the date of purchaseNot listed
Pickles1 yearfrom the date of purchaseNot listed
Salad dressingscommercial, bottledFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.10 to 12 monthsfrom the date of purchaseNot listed
Salsapicante and taco saucesFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.1 yearfrom the date of purchaseNot listed
Sauce mixesnondairy (spaghetti, taco, etc.)2 yearsfrom the date of purchaseNot listed
Spaghetti saucein jars18 monthsfrom the date of purchaseNot listed
Soy sauce or teriyaki sauceFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.3 yearsfrom the date of purchaseNot listed
Vinegar2 yearsfrom the date of purchaseNot listed
Worcestershire sauceFoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.1 yearfrom the date of purchaseNot listed
Tahini1 yearfrom the date of purchaseNot listed
Black bean sauce18 to 24 monthsfrom the date of purchaseNot listed
Oyster sauce18 to 24 monthsfrom the date of purchaseNot listed
Hoisin sauce18 to 24 monthsfrom the date of purchaseNot listed
Beef broth/stock/consommécommercially producedTip: Bouillon cubes will keep their best quality 1 year. The reconstituted broth lasts 3-4 days in the refrigerator.Package use-by dateNot listed
Chicken broth/stock/consommécommercially producedTip: Bouillon cubes will keep their best quality 1 year. The reconstituted broth lasts 3-4 days in the refrigerator.Package use-by dateNot listed
Vegetable stock/brothcommercially producedTip: Bouillon cubes will keep their best quality 1 year. The reconstituted broth lasts 3-4 days in the refrigerator.Package use-by dateNot listed
Relish30 monthsfrom the date of purchaseNot listed
Apple cider vinegarIndefinitelyNot listed
Hot sauceTip: Will stay fresher longer if refrigerated.6 monthsNot listed
Thai red curry paste2 yearsfrom the date of purchaseNot listed
Cranberry saucecanned2 yearsfrom the date of purchaseNot listed
Tomato saucespaghetti, pizzaTip: Refrigerating unopened jars will NOT lengthen shelf life.Package use-by dateNot listed
Salad dressingcreamy6 monthsfrom the date of purchaseNot listed
Salad dressingvinaigrette6 monthsfrom the date of purchaseNot listed
Salad dressingdry,packagedPackage use-by dateNot listed
Cooking winePackage use-by dateNot listed
Salsahomemade, canned9 to 12 monthsNot listed
Tomato Saucehomemade, canned9 to 12 monthsNot listed
Barbecue Saucehomemade, canned9 to 12 monthsNot listed
Balsamic vinegar3 to 5 yearsfrom the date of purchaseNot listed
Anchoviescanned5 yearsNot listed
Dairy Products & Eggs
Coffee creamerpowderedTip: Store in a dry, cool environment2 yearsfrom the date of purchase2 to 3 months
Powdered milkTip: 3 - 5 year timetable based on cool temperatures, dark storage. May spoil as quickly as 3 months in hot temperatures.3 to 5 years3 months
Nacho cheesestore bought2 yearsfrom the date of purchaseNot listed
Ghee6 to 8 monthsNot listed
Grains, Beans & Pasta
Tortillasflour3 monthsfrom the date of purchaseNot listed
Beansdried1 to 2 yearsfrom the date of purchase1 year
Lentilsdried1 yearfrom the date of purchase1 year
Pastadry, without eggs2 yearsfrom the date of purchase1 year
Dry egg noodles2 yearsfrom the date of purchase1 to 2 months
Peasdried split1 yearfrom the date of purchase1 year
Ricewhite or wild2 yearsfrom the date of purchase1 year
Ricebrown1 yearfrom the date of purchase1 year
Quinoauncooked2 to 3 yearsfrom the date of purchaseNot listed
Whole wheat breadhomemadeTip: May have shorter shelf life due to lack of preservatives.3 to 5 daysNot listed
Whole wheat breadcommercially baked & pre-sliced3 to 5 daysNot listed
Peanutsboiled, shelled3 yearsfrom the date of purchaseNot listed
Refried beans3 yearsfrom the date of purchaseNot listed
Tortillascorn25 to 45 daysfrom the date of purchaseNot listed
Amaranthwhole grain4 monthsNot listed
Barleywhole grain6 monthsNot listed
Buckwheatwhole grain2 monthsNot listed
Farrowhole grainTip: Benefits from being stored in airtight containers and out of direct light.6 monthsNot listed
Milletwhole grain2 monthsNot listed
Oatswhole grain4 monthsNot listed
Ryewhole grain6 monthsNot listed
Sorghumwhole grain4 monthsNot listed
Speltwhole grain6 monthsNot listed
Teffwhole grain4 monthsNot listed
Bulgur6 to 12 monthsNot listed
Mung beandry, food-grade bagsTip: Keep the beans in an airtight container as it’s imperative that they remain dry.1 yearNot listed
Mung beandry, vacuum-sealed8 to 10 yearsNot listed
Meat: Shelf Stable Foods
Baconfully cooked6 monthsfrom the date of purchaseNot listed
Hamshelf-stable cans6 to 9 monthsfrom the date of purchaseNot listed
Jerkycommercially dried12 monthsfrom the date of purchaseNot listed
Jerkyhomemade1 to 2 monthsNot listed
Meat productscanned5 yearsfrom the date of purchaseNot listed
Meat: Smoked or Processed
Chorizosmoked and processed, cooked1 yearNot listed
Poultry: Shelf Stable Foods
Canned chicken5 yearsfrom the date of purchaseNot listed
Produce: Fresh Fruits
Apples3 weeksfrom the date of purchaseNot listed
ApricotsTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
AvocadosTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
BananasTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
CherimoyaTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
Citrus fruitlemon, lime, orange, grapefruit, tangerines, clementines10 daysfrom the date of purchaseNot listed
CoconutshreddedTip: Applies to unopened coconut.1 yearfrom the date of purchaseNot listed
Coconutsfresh1 weekfrom the date of purchaseNot listed
Dates2 monthsfrom the date of purchaseNot listed
Grapes1 dayfrom the date of purchaseNot listed
GuavaTip: Ripe is when this item is tender, fully developed and ready to eat. Note, these spoil quickly.When RipeNot listed
Kiwi fruitTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
MelonsTip: Until Ripe, then 7 days. Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
Papaya, mango, feijoa, passionfruit, casaha melon3 to 5 daysfrom the date of purchaseNot listed
Peaches, nectarines, plums, pears, sapoteTip: Until Ripe, then 1-2 days. Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
PineappleTip: Until Ripe, then 1-2 days. Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
PlantainsTip: Until Ripe, then 1-2 days. Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
Pomegranate2 to 5 daysfrom the date of purchaseNot listed
KumquatsTip: Ripe is when this item is tender, fully developed and ready to eat.When RipeNot listed
Star fruitTip: Or until ripe. Ripe is when this item is tender, fully developed and ready to eat.1 weekNot listed
Prickly pearTip: Or until ripe. Ripe is when this item is tender, fully developed and ready to eat.2 to 5 daysNot listed
Pitaya/dragon fruitTip: Or until ripe. Ripe is when this item is tender, fully developed and ready to eat.2 to 5 daysNot listed
WatermelonTip: Or until ripe.1 to 2 daysfrom the date of purchaseNot listed
CantaloupeTip: Or until ripe.2 to 4 daysfrom the date of purchaseNot listed
Honeydew2 to 7 daysfrom the date of purchaseNot listed
Produce: Fresh Vegetables
Artichokes, whole1 to 2 daysfrom the date of purchaseNot listed
Beets1 dayfrom the date of purchaseNot listed
Eggplant1 dayfrom the date of purchaseNot listed
GarlicTip: Store unbroken bulbs in pantry.1 monthfrom the date of purchaseNot listed
Ginger root2 to 5 daysfrom the date of purchaseNot listed
OkraTip: Highly perishable when stored in the pantry.1 dayfrom the date of purchaseNot listed
Onionsyellow, white, red, etc.1 monthfrom the date of purchaseNot listed
Onionsspring or green1 monthfrom the date of purchaseNot listed
PotatoesTip: This is the recommended storage method for whole potatoes.1 to 2 monthsfrom the date of purchaseNot listed
Pumpkins2 to 3 monthsfrom the date of purchaseNot listed
Rutabagas1 weekfrom the date of purchaseNot listed
Squashsummer and zucchini1 to 5 daysfrom the date of purchaseNot listed
Squashwinter2 to 6 weeksfrom the date of purchaseNot listed
Tamarind1 to 3 weeksfrom the date of purchaseNot listed
Taro7 daysfrom the date of purchaseNot listed
TomatoesTip: Until Ripe, then 7 days. Ripe is when this item is tender, fully developed and ready to eat. Refrigeration may affect flavor; USDA recommends pantry storage.When RipeNot listed
Yuca/cassava7 daysfrom the date of purchaseNot listed
Yams/sweet potatoes2 to 3 weeksfrom the date of purchaseNot listed
Baby carrotsTip: below 75 °F4 daysfrom the date of purchaseNot listed
JicamafreshTip: 1-2 weeks if inappropriately handled.4 monthsfrom the date of purchaseNot listed
Cilantro1 to 2 weeksNot listed
Mint1 to 2 weeksNot listed
Basildried12 monthsNot listed
BasilfreshTip: Keep stems in water.5 daysNot listed
Oregano1 to 2 weeksNot listed
Rosemary1 to 2 weeksNot listed
Chives1 to 2 weeksNot listed
Thyme1 to 2 weeksNot listed
Spaghetti squashwhole2 monthsNot listed
Cherry tomatoes10 daysNot listed
Shelf Stable Foods
Applesaucecommercial12 to 18 monthsfrom the date of purchaseNot Recommended
Bacon bitsimitation1 yearfrom the date of purchaseNot listed
Canned goodslow acid (such as meat, poultry, fish, gravy, stew, soups, beans, carrots, corn, pasta, peas, potatoes, spinach)FoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.2 to 5 yearsfrom the date of purchaseNot Recommended
Canned goodshigh acid (such as juices, fruit, pickles, sauerkraut, tomato soup, and foods in vinegar-based sauce)FoodKeeper has a further tip for this food about food safety, which this page leaves out; read it in the FoodKeeper app.12 to 18 monthsfrom the date of purchaseNot Recommended
Cerealready-to-eat6 to 12 monthsfrom the date of purchase2 to 3 months
Cerealcook before eating (oatmeal, etc.)12 monthsfrom the date of purchase6 to 12 months
Chocolate syrup2 yearsfrom the date of purchaseNot Recommended
Crackers8 monthsfrom the date of purchase1 month
Graham cracker/animal cracker6 to 9 monthsfrom the date of purchaseNot listed
Fruits, driedraisins, apricots, mangoes, cranberries, etc.6 monthsfrom the date of purchase1 month
Gummy (fruit) snacks6 to 9 monthsfrom the date of purchaseNot listed
Marshmallows1 yearfrom the date of purchase1 month
Marshmallow crème2 to 5 monthsfrom the date of purchase1 month
Milkcanned evaporated or condensed12 monthsfrom the date of purchaseNot listed
Molasses1 to 2 yearsfrom the date of purchase6 months
Mushroomsdried1 to 2 yearsfrom the date of purchase3 months
Nutsjars or cans1 yearfrom the date of purchase2 to 9 months
Peanut buttercommercial6 to 24 monthsfrom the date of purchase2 to 3 months
PectinPackage use-by date1 month
Popcorndry kernels in jar2 yearsfrom the date of purchase1 year
Popcorncommercially popped in bags2 to 3 monthsfrom the date of purchase1 to 2 weeks
Popcornmicrowave packetsTip: After opening time applies to prepared product.6 to 12 monthsfrom the date of purchase1 to 2 days
Potato chipsPackage use-by date2 monthsfrom the date of purchase1 to 2 weeks
Potatoesinstant10 to 15 monthsfrom the date of purchase6 to 12 months
Pretzels4 to 9 monthsfrom the date of purchase3 weeks
Pudding mixes1 yearfrom the date of purchase3 to 4 months
Soup mixesdry bouillon1 yearfrom the date of purchase1 year
Sun dried tomatoesjar1 yearfrom the date of purchase3 to 6 months
Syrup1 yearfrom the date of purchaseNot listed
Toaster pastries6 to 12 monthsfrom the date of purchase1 to 2 weeks
Fruit cocktailcanned18 monthsNot listed
Almondsshell6 monthsfrom the date of purchaseNot listed
Almondsno shell4 monthsfrom the date of purchaseNot listed
Cashewsno shell2 to 4 weeksfrom the date of purchaseNot listed
Macadamiasno shell2 to 4 weeksfrom the date of purchaseNot listed
Peanutsshell4 monthsfrom the date of purchaseNot listed
Peanutsno shell4 weeksfrom the date of purchaseNot listed
Pecansshell2 to 4 weeksfrom the date of purchaseNot listed
Pecansno shell2 to 4 weeksfrom the date of purchaseNot listed
Pistachiosshell or no shell3 weeksfrom the date of purchaseNot listed
Walnutsshell or no shell2 to 4 weeksfrom the date of purchaseNot listed
Coconut oil3 yearsNot listed
Dry stuffing mixcommercially packagedTip: Do not refrigerate.9 to 12 monthsNot listed
Almond butterTip: When stored in the pantry, almond butter may become hard and the natural oil may separate and float to the top; this is perfectly normal. To reincorporate the natural almond oils into the almond butter, simply mix it manually or with a hand mixer.1 yearNot listed
Cashew butterTip: Does not need to be refrigerated.3 monthsNot listed
Salttable, plain, or iodizedIndefinitelyNot listed
Black pepperground, dried, commercially bottled or purchased in bulk2 yearsfrom the date of purchaseNot listed
Black peppercracked, dried, commercially bottled or purchased in bulk2 to 3 yearsfrom the date of purchaseNot listed
Cajun seasoning blendground, dried, commercially bottled or purchased in bulk1 to 2 yearsfrom the date of purchaseNot listed
Cinnamonground, dried, commercially bottled or purchased in bulk3 to 4 yearsfrom the date of purchaseNot listed
Cuminground, dried, commercially bottled or purchased in bulk, opened or unopened3 to 4 yearsfrom the date of purchaseNot listed
Garlic powderdried, commercially bottled or purchased in bulk3 to 4 yearsfrom the date of purchaseNot listed
Onion powderdried, commercially bottled or purchased in bulk3 to 4 yearsfrom the date of purchaseNot listed
Nutmegground, dried, commercially bottled or purchased in bulk3 to 4 yearsfrom the date of purchaseNot listed
Peanut buttercommercially produced, containing hydrogenated fat or other stabilizers6 to 9 monthsfrom the date of purchase2 to 3 months
Tomato paste27 monthsfrom the date of purchaseNot listed
Tapenade9 monthsfrom the date of purchaseNot listed
Flaxseedwhole seed2 yearsfrom the date of purchaseNot listed
Canola oil1 yearfrom the date of purchaseNot listed
Almond oil1 yearfrom the date of purchaseNot listed
Sunflower oil1 yearfrom the date of purchaseNot listed
Grapeseed oil1 yearfrom the date of purchaseNot listed
"Genuine" Maple syrupunopened, glass4 yearsNot listed
"Genuine" Maple syrupunopened, plastic2 yearsNot listed
Granola6 to 9 monthsNot listed
Pork rindsTip: From date of manufacturer.4 monthsNot listed
Chia seeds18 monthsNot listed
Coconut creamcanned2 to 5 yearsfrom the date of purchaseNot listed
Coconut milkcanned2 to 5 yearsfrom the date of purchaseNot listed
Pumpkin seedsraw, no shell6 monthsNot listed
Pumpkin seedsraw, in-shell6 monthsNot listed
Pumpkin seedsroasted, no-shell6 monthsNot listed
Pumpkin seedsroasted, in-shell6 monthsNot listed
Sunflower seedsraw, unsalted, no shell12 monthsNot listed
Sunflower seedsroasted, no shellTip: The (roasted) seeds will become rancid if stored at room temperature for long periods of time.12 monthsfrom the date of purchase3 to 4 months
Sunflower seedsroasted, salted, in shellTip: The (roasted) seeds will become rancid if stored at room temperature for long periods of time.Package use-by datefrom the date of purchaseNot listed
Sesame oil2 yearsfrom the date of purchase6 months
Sesame seeds5 yearsNot listed
Capersin jarPackage use-by dateNot listed
Chocolate hazlenut spreadTip: For best quality, do not refrigerate or microwave.Package use-by dateNot listed
Roasted nuts (peanuts, cashews, almonds)Package use-by datefrom the date of purchase1 to 2 weeks
Tunapacket18 monthsfrom the date of purchaseNot listed
Tunacanned3 yearsNot listed
Seafoodcanned1 yearNot listed
Gritsboxed12 monthsfrom the date of purchaseNot listed
Beetspickled1 yearNot listed
Edamamesalted, dry roasted, out of pod12 monthsNot listed
Breadcrumbscommercial6 monthsNot listed
Milkshelf-stable6 to 12 monthsfrom the date of purchaseNot listed
Corn syrupTip: Keep tightly covered; refrigerate to extend storage life.3 yearsNot listed
Nutrition supplement drinksbottledPackage use-by dateNot listed
Instant breakfast drinksbottled6 monthsNot listed
Pine nuts2 to 3 weeksNot listed
Polentashelf-stablePackage use-by dateNot listed
Cereal or granola bars6 to 12 monthsNot listed
Avocado Oil2 yearsfrom the date of purchase6 months
Basebeef, vegetableTip: Refrigerate after opening.Package use-by dateNot listed
Croutons5 to 6 monthsNot listed
Mustarddried, ground6 monthsNot listed
Vegetarian Proteins
Soy flourfull-fat2 monthsfrom the date of purchaseNot listed
Textured soy protein(TSP)2 yearsfrom the date of purchase3 to 4 months
Re-hydrated textured soy protein(TSP)3 to 4 monthsfrom the date of purchaseNot listed

Times as FSIS publishes them in FoodKeeper Data version 128 (September 6, 2018); names and tips are the dataset's own words.

What FoodKeeper is

FoodKeeper is USDA's food storage guidance, published as an app and as open data. It was developed by USDA's Food Safety and Inspection Service (FSIS) with Cornell University and the Food Marketing Institute, and FoodSafety.gov runs it as the FoodKeeper app, which it says will help you "maximize the freshness and quality of items".

FSIS publishes the records behind the app as FoodKeeper Data on data.gov. Each food has fields for the pantry, the refrigerator and the freezer. This lookup takes only the pantry fields; for the fridge and freezer, the food storage time lookup carries the FoodSafety.gov cold storage chart for meat, poultry, fish and eggs.

How to read the three pantry times

FoodKeeper Data has three separate pantry fields, and the lookup keeps them apart rather than merging them into one "shelf life" number.

Column in the lookup FoodKeeper field What it covers
Pantry (plain) Pantry A pantry time with no starting point stated, such as salt: "Indefinitely"
Pantry, marked "from the date of purchase" DOP_Pantry Time in the pantry counted from the day you bought it, most packaged staples
After opening Pantry_After_Opening Time in the pantry once the package is open

Where FoodKeeper gives a word instead of a time, the lookup shows the word: "Indefinitely" for salt, granulated sugar and hard liquor, "Not Recommended" for opened canned goods kept in the pantry, "When Ripe" for bananas and avocados, and "Package use-by date" for items such as pectin and tomato sauce in jars. Where it gives nothing for a case, the cell reads "Not listed" rather than borrowing a time from somewhere else.

Pantry shelf life of common staples

FoodKeeper's pantry times for the staples most people keep, from the dataset:

Food Pantry, from the date of purchase After opening
Flour, white 6 to 12 months 6 to 8 months
Flour, whole wheat 3 to 6 months Not listed
Rice, white or wild 2 years 1 year
Rice, brown 1 year 1 year
Pasta, dry, without eggs 2 years 1 year
Beans, dried 1 to 2 years 1 year
Cereal, ready-to-eat 6 to 12 months 2 to 3 months
Oatmeal and other hot cereal 12 months 6 to 12 months
Spices, whole 3 to 4 years 3 to 4 years
Spices, ground 2 to 3 years 2 to 3 years
Herbs, dried 1 to 2 years 1 to 2 years
Baking powder 6 to 18 months 3 to 6 months
Baking soda 2 to 3 years 6 months
Oils, olive or vegetable 6 to 12 months 3 to 5 months
Peanut butter, commercial 6 to 24 months 2 to 3 months
Honey 2 years Not listed
Canned goods, low acid 2 to 5 years Not Recommended
Canned goods, high acid 12 to 18 months Not Recommended

Granulated, brown and confectioners sugar read "Indefinitely" in the pantry and 18 to 24 months after opening, with FoodKeeper's tip: "Sugar never spoils, but for best quality use within 2 years of opening." Low-acid cans are things like meat, soups, beans, corn and potatoes; high-acid cans are juices, fruit, pickles, sauerkraut and tomato soup, in FoodKeeper's own examples. The canned food shelf life article covers can codes and damaged cans.

Two things in the data catch people out. FoodKeeper lists whole wheat flour twice, with different answers: 3 to 6 months from the date of purchase under "Flour, whole wheat", and 12 months under a second entry, "Whole wheat flour", with no starting point. The lookup shows both rather than picking one, and the shorter one is the cautious reading. And for several foods the time after opening is as long as the time before it (spices, dried herbs, brown rice), so opening the jar doesn't shorten FoodKeeper's window at all. Neither time means the food changes on the last day; it's the window FoodKeeper gives for the food at its best.

What the times are, and what they are not

FoodKeeper's pantry times are storage guidance for quality, for food kept in a cool, dry cupboard. FoodSafety.gov presents them under the heading "For freshness and quality", and several of the dataset's own tips say the same thing in their own words ("for best quality use within 2 years of opening").

This lookup does not say whether a particular jar or bag in your kitchen can be eaten, and it can't: it has no idea how warm your cupboard gets, whether the bag was left open, or what the label says. For the date printed on the package, USDA's Food Safety and Inspection Service says "Manufacturers provide dating to help consumers and retailers decide when food is of best quality," and best before vs use by vs sell by explains what each label phrase means.

A few of FoodKeeper's tips go further than storage and make a statement about safety, for example about canned goods and shelf-stable condiments. This page does not repeat statements of that kind; those foods say that FoodKeeper has a further tip and link to the app, where you can read it in full.

Where the data comes from

The times come from FSIS's FoodKeeper Data file, published on data.gov, read by a script rather than typed:

  1. The script downloads FSIS's JSON file and reads its current version. On 26 September 2026 that was version 128, dated 6 September 2018; the lookup prints the version and date under every result.
  2. It keeps every food with at least one pantry field and drops foods that have only fridge or freezer times. Butter and the baby foods, which have a pantry tip but no pantry time, are left out.
  3. It keeps the dataset's names, subtitles, categories and tips as written, and rewrites only the duration fields ("6 - 12 Months" becomes "6 to 12 months").
  4. It leaves out any tip that makes a safety statement, and marks the food so the page can say so.

We compared the result with the records FoodSafety.gov's FoodKeeper app loads today, food by food: the names, pantry times and pantry tips match version 128 exactly. The tests behind the lookup check a sample of foods against what the app shows, so a mistake in reading the file fails before it reaches the page.

Keeping track of your own jars

A storage time only helps if you know when the jar arrived and when you opened it. Writing the month on the lid with a marker when you open flour, oil or peanut butter is the cheapest habit there is, and it turns the "after opening" column into something you can use.

The rest is organization. How to organize a pantry covers zones, first in, first out and the containers worth buying; pantry moths covers the pests that find flour and rice long before any date does; and the pantry staples list is a printable checklist of what to keep in stock.

Common questions

How long does flour last in the pantry?

USDA's FoodKeeper gives white flour 6 to 12 months in the pantry from the date of purchase and 6 to 8 months after opening. For whole wheat flour it has two entries, 3 to 6 months from the date of purchase and 12 months, and flours such as rye, spelt and buckwheat get 1 to 3 months.

How long do spices last?

FoodKeeper gives whole spices 3 to 4 years and ground spices 2 to 3 years in the pantry, both from the date of purchase and after opening. Dried herbs get 1 to 2 years. Spices fade in flavor rather than changing overnight, so an old jar of cumin mostly tastes of less.

How long does rice last in the pantry?

FoodKeeper gives white or wild rice 2 years in the pantry from the date of purchase and 1 year after opening. Brown rice gets 1 year either way.

How long does peanut butter last after opening?

FoodKeeper gives commercial peanut butter 2 to 3 months in the pantry after opening, and 6 to 24 months from the date of purchase before opening. Peanut butter made with hydrogenated fat or other stabilizers gets 6 to 9 months unopened and the same 2 to 3 months opened.

Do these times start from the date on the package?

No. FoodKeeper states its pantry times as time in the pantry, from the date of purchase or after opening, except for a few foods where its answer is simply "Package use-by date". The printed date is the manufacturer's; FSIS says those dates are about best quality, and the lookup does not combine the two.

Why is my food not in the list?

FoodKeeper gives many foods only fridge or freezer times: fresh meat, dairy, eggs and most fresh vegetables among them. The food storage time lookup covers the fridge and freezer for meat, poultry, fish and eggs. The lookup also matches whole words and the start of words, so a plainer word ("flour" rather than "all purpose flour") often finds more.

Is anything I type saved?

No. The lookup runs in the page, the search box never leaves your browser, and Duneed stores nothing from it. The only thing the page can share is a link you copy yourself.

Open Duneed on your phone

Point your camera at this code and the App Store page opens.

QR code that opens Duneed's App Store page
apps.apple.com/app/id6804494670

Duneed is an iPhone app. There is no Android version yet.