Long shelf life foods are pantry staples. Keep these on hand for years (or even decades!).

Don’t you just hate reaching into the cupboard and realizing that box of cake mix has expired or your favorite snack is past its prime? Certain pantry items just don’t seem to last as long as we like. However, there are plenty of long shelf life foods perfect for filling your cupboards. Foods like these are great to have on hand for everyday cooking, of course, but also times when you just can’t get out of the house.

Many foods with long shelf lives are the basics—think rice, grains and salt—but others can last for a long time because they’re dried or canned. These techniques can extend the usefulness of all kinds of foods.

Sydney Watson/Taste of Home

We’ll show you pantry must-haves that can last you ages—if stored properly. Our Test Kitchen recommends storing as much as you can in airtight containers. These OXO Good Grips canisters ($50 for a 5-piece set) fill the Taste of Home kitchens.

1. Bouillon

magnez2/Getty Images

How long it lasts: Two years

How to store bouillon cubes: Keep them in a dark pantry.

If you don’t have room to store containers upon containers of broth, grab a container of bouillon. This broth starter can be dissolved in water to start your favorite soup or added to sauces to add flavor.

2. Canned Fruits, Vegetables and Beans

SarapulSar38/Getty Images

How long they last: Up to six years

How to store canned goods: Keep canned goods in your cupboard.

Canned goods can last for some time after their best-by dates, however, they will taste best during before them. If you find a can of fruit in the back of the cupboard that’s six months past its supposed prime, it’s still safe to eat or add to one of these recipes that use canned fruit.

If a can is dented or bulging, don’t eat what’s inside. Cans that aren’t in great shape can indicate that what’s inside isn’t preserved properly, so for your safety, it’s best to avoid them.

3. Corn Starch

Shutterstock/ Michelle Lee Photography

How long it lasts: Forever

How to store corn starch: Keep in its original container, stored in a cool, dark place away from moisture. Cornstarch will begin dissolving as soon as it comes in contact with water. But as long as it’s kept dry, cornstarch can last indefinitely, so stock up on this natural thickening agent.

4. Dark Chocolate

jirkaejc/Getty Images

How long it lasts: Two years

How to store dark chocolate: Keep dark chocolate at room temperature and stored in its original packaging or wrapped tightly once opened.

Of all the varieties of chocolate, dark chocolate keeps the longest. If you’re a fan of milk or white chocolate, eat those within a year. And if you need a recommendation for a great indulgence to keep on hand, these are our Test Kitchen’s top-rated dark chocolate brands.

5. Dried Beans, Lentils and Legumes

Aamulya/Getty Images

How long they last: Forever

How to store dried beans: Keep dried beans and lentils in sealed containers in your pantry.

As time goes on, dried legumes can become even drier, so if you’re cooking them up after their initial best-by date, they might take a little longer. If you use an Instant Pot to cook your dried beans, this shouldn’t take much extra time at all.

6. Dried Fruits (Raisins, Dried Cranberries and More)

jirkaejc/Getty Images

How long they last: A year or more

How to store dried fruits: Keep them in their sealed packages or transfer to tightly sealed containers. You can extend their shelf life by six months popping them in the freezer

Dried fruits are always good to keep on hand for snacking and baking. Dried cranberries, apricots and more are the basis for some of our favorite dried fruit recipes.

7. Dried Pasta

Tatiana Atamaniuk/Getty Images

How long it lasts: Up to three years

How to store dried pasta: Keep dried pasta in an airtight container

If you buy pasta in a sealed, plastic bag, you can store it as-is in the pantry. Pasta that comes in a cardboard box or pasta that you’ve opened should be transferred to a sealed container so it lasts as long as possible.

8. Grains

NEW AFRICA/SHUTTERSTOCK

How long they last: Up to eight years

How to store grains: Keep them in a sealed container in the pantry

When it comes to grains like quinoa, barley, rye, flax, millet and grits, buying in bulk is a worthwhile investment. You can keep all of these grains stored in airtight containers for best results.

9. Instant Coffee

Taste of Home

How long it lasts: Up to 25 years in the pantry, longer in the freezer

How to store instant coffee: Keep instant coffee dry. Store it in its original container or transfer into an airtight container.

While many of us may be devotees to our favorite coffee shops (or even just our coffee makers), instant coffee is always good to have on hand for an emergency caffeine fix. And with a long shelf life, you can stock up on some of our favorite instant coffee brands and have them to enjoy for ages to come.

10. Jams and Jellies

Taste of Home

How long they last: Two years if unopened; once opened, six months

How to store jam and jelly: Store unopened jams and jellies in the pantry. Once you’ve popped a jar open, keep it in the fridge.

Jams and jellies are perfect for getting great fruit flavors, even during the offseason. Preserve what you grow by learning how to can.

11. Jerky

Taste of Home

How long it lasts: Up to two years

How to store jerky: Keep it sealed in a dark pantry.

Unopened, store-bought beef jerky lasts a long time, so feel free to buy a bit extra of this protein-packed snack. Homemade jerky is a different story, though. That should be eaten within a few weeks.

12. Liquor

Instants/Getty Images

How long it lasts: Forever

How to store hard liquor: Store hard liquors at room temperature. Few liquors, like vermouth and Irish cream, should be stored in the fridge after opening.

The high alcohol content of hard liquors helps ward off bacterial growth. That’s why they can last a lifetime or more. It’s not necessary to keep them in the freezer to extend their shelf life (though it helps if you like a chilled martini!). Stock your home bar with rum, whiskey, tequila, vodka, gin and other similar liquors, and you’ll always be prepared for an impromptu get-together.

13. Maple Syrup

Cindy Creighton/Shutterstock

How long it lasts: Forever if unopened; up to a year once you open the bottle

How to store maple syrup: Store unopened bottles of syrup in the cupboard. Opened bottles should be kept in the fridge.

If you need to use up a bottle before it goes bad, these maple recipes are a great place to start. They’re also a good reason to crack open a bottle!

14. Molasses

iPreechaya Studio/Shutterstock

How long it lasts: Up to 10 years if unopened, up to five once opened

How to store molasses: You can keep your molasses in the pantry with the rest of your baking supplies. Make sure the cap is on tight.

15. Oats

Eli Wilson/Getty Images

How long they last: Up to two years

How to store oats: If you plan on keeping your oats long-term (for more than a year), you’ll want to transfer them out of their cardboard container and into an airtight container.

Oats are a fantastic staple to keep in stock at home for homemade oatmeal, oatmeal cookies and granola.

16. Oils

Juanmonino/Getty Images

How long do they last: Up to two years

How to store cooking oils: Keep them in the pantry and out of direct sunlight and heat.

Left unopened, many cooking oils can keep in the pantry for a few years. Canola oil, olive oil, peanut oil and vegetable oil all will keep well when stored in a dark place. Once you open these oils, be sure to use them within a few months.

If you prefer cooking oil in spray form, you’ve got two years to use it.

17. Packaged Tuna

belchonock/Getty Images

How long it lasts: Up to five years

How to store canned tuna: Keep it in the pantry or cupboard.

Tuna is a love-it or leave-it sort of food, but tuna fans can take solace that they can store tuna in the cupboard for up to five years. The sealed packets of tuna can last for three. Go beyond basic tuna salad with your favorite brand and try these recipes that start with canned tuna.

18. Pickles and Pickled Vegetables

Taste of Home

How long they last: Four years if unopened, one year opened and refrigerated

How to store pickles: Unopened jars of pickles and other pickled vegetables can stay in your pantry. Once you’ve popped open a jar, keep it in the fridge.

Pickles that have been canned can last a long time (up to two years past their best by date). Quick pickles and refrigerator pickles, though, are best eaten right away. Just double-check what you’ve got on hand before enjoying.

19. Popcorn

INNA GRITSINOVA/SHUTTERSTOCK

How long does it last: Forever

How to store popcorn kernels: Keep them in a sealed container in the cupboard

You can safely buy popcorn in bulk without ever fearing an expiration date. Now stock up on your favorite popcorn and brush up on your stovetop popcorn technique.

20. Powdered Jell-O

Taste of Home

How long it lasts: Forever

How to store powdered Jell-O: Keep boxes of gelatin in the pantry or cupboard.

That’s right—Jell-O packets last a long time. You can stock up on boxes of gelatin to make any of these fun vintage recipes.

21. Powdered Milk

vikif/Getty Images

How long it lasts: Up to 20 years

How to store powdered milk: Store powdered milk in an airtight container with a moisture-absorbing packet in a cool, dark place.

Powdered milk might not be the first thing on your grocery list, but it can be a useful thing to keep on hand for baking. Powdered milk adds richness to breads, cookies and other baked goods. If you’re an avid baker, snag a package.

22. Ramen Noodles

Taste of Home

How long they last: Two years

How to store ramen noodles: Keep them in the package at room temperature.

Having a few packages of ramen on hand is always a good idea. You can make them as the package instructs, stir them into soup or these other creative ramen ideas.

23. Raw Honey

Taste of Home

How long it lasts: Forever

How to store honey: Keep tightly sealed in a jar to keep out humidity.

To be clear, only the real deal will keep indefinitely. Be wary of fake honey and be sure to grab the good stuff.

24. Rice

Valeriy_G/Getty Images

How long it lasts: 30 years

How to store rice: Store rice an airtight container in a cool, dry place. White, jasmine, wild, basmati and Arborio rice have low oil content and therefore have an indefinite shelf life. Brown rice, however, is higher in oil, so it spoils much faster than its white counterparts.

25. Salt

taa22/Shutterstock

How long it lasts: Forever

How to store salt: Keep salt a cool, dark, dry place, where temperatures remain constant.

26. Soy Sauce

Karpenkov Denis/Shutterstock

How long it lasts: Forever (if unopened)

How to store soy sauce: Because of its high concentration of salt, soy sauce will last forever as long as it stays sealed. Once opened, soy sauce is safe to eat for two to three years when kept in the refrigerator—still a long time!

27. Whole Spices and Herbs

MAHATHIR MOHD YASIN/Shutterstock

How long they last: Up to four years

How to store spices: Store spices in airtight jars in a cool, dry place away from direct sunlight.

Your dried spices don’t have an indefinite shelf life, but they can last for quite a while. Whole spices can last for up to four years; ground they are best within three years. Dried herbs can also last up to three years. Eating herbs and spices that are older won’t make you ill or harm you, but they really start to lose potency over time, so use them within the suggested time frame for the best results.

28. Sugar

Josue Ricardo Florido/Getty Images

How long it lasts: Forever

How to store sugar: Keep white sugar in a dark, dry place. An airtight container is best.

Brown sugar also keeps for a long time since both sugar and molasses have long shelf lives. However, brown sugar is apt to turn hard after a while. To soften brown sugar, you can use a slice of bread or a marshmallow slipped into the container overnight.

29. Tea

Taste of Home

How long it lasts: Up to two years

How to store tea: In an airtight container

Looseleaf tea and tea bags can both handle a long stay in the pantry. Keep them in a sealed container for the best results and take them out when you’re ready for these tea recipes.

30. Tomato Sauce (Canned or Jarred)

Taste of Home

How long it lasts: Up to two years if unopened

How to store tomato sauce: Keep unopened jars and cans of tomato sauce in the cupboard.

It’s safe to stock up on your favorite brand of pasta sauce since it can last on the shelf for a good while. And who wouldn’t want a quick spaghetti dinner always at the ready?

31. Vanilla Extract

Taste of Home

How long it lasts: Forever

How to store vanilla extract: Keep pure vanilla extract in a dark container, away from sunlight, heat sources and moisture.

Pure vanilla extract is made from dried, cured vanilla beans soaked in alcohol, and that alcohol acts as a preserver for the beans, ensuring it will stay fresh and flavorful forever. But imitation vanilla will expire after just two to four years. So if you don’t want to toss out that bottle, spring for the higher-quality pure vanilla extract (or better yet, learn how to make your own).

32. Vinegar

Taste of Home

Popular Videos

ForeverKeep in its original airtight container in a cool, dry place, away from heat sources.