Everyone who goes grocery shopping knows that buying food weekly can become fairly expensive—especially when you add in how much money we waste on food. Luckily, there are many foods that’ll last for years and save you money in the long run if you buy them in bulk and store them properly.

Check out these 12 ingredients that can help you save money on your groceries for years to come.

It’s hard to find a food that’s more versatile than rice: you can eat it on its own, with vegetables or beans, in soup, with meat, in sushi, and so much more. You can even use it to help save your electronics from water damage. Plus, rice is super cheap and often comes in bulk. Even better, white rice can last more than 30 years if stored properly—in the pantry, in the fridge, or in the freezer—so don’t throw it out unless it has spoiled through improper storage. (Brown rice has a higher oil content, so it’ll actually spoil after six months, unfortunately.)

2. Honey

Scientists have found perfectly preserved honey in the Egyptian pyramids—even at over 3,000 years old, that honey is still edible and safe to eat. Honey’s high acidity and lack of water help it last indefinitely. It may crystallize over time, but don’t worry; it is still safe to eat. You can warm it up to soften and de-crystallize it for easier consumption. Honey can be used as a sweetener, in salad dressings, in desserts, as a home remedy, and even for facials.

3. Oats

If you love breakfast foods and baking, buy bulk portions of oats to store in your pantry. Rolled and instant oats can last several years when kept in airtight containers—some estimate that oats can be safely eaten for 30 years if stored properly! Keep oats on hand and make your own flour, granola bars, or cereal whenever you want.

4. Hot sauce

From eggs to salads to pizza, anything can benefit from some added spice. Whether you’re a Tabasco or Tapatío fan, your favorite hot sauce can last for three to five years thanks to its high vinegar content and the capsaicin found in chili peppers. Just make sure you follow proper storage directions, and keep in mind that the taste will change as time passes. The sauce may even get hotter as the peppers age! Buy a large bottle on sale and keep it for years—or until you run out.

How to invest in the future of health care

5. Dried beans

You can find a great source of protein in beans, especially if you’re vegetarian or vegan. Flavored and canned beans will last you a while, but dried beans can last for up to 30 years. They do begin to lose their moisture after a few years, so cooking times may vary depending on how long you have been storing them. If you love black beans in homemade burritos or homemade barbecue chili, keep bags of dried beans in your pantry—they’re super affordable and go with pretty much anything.

6. Quinoa

Contrary to popular belief, quinoa is a seed not a grain, so it actually keeps two to three years past the expiration date. Though it lasts several years, you do need to keep quinoa in a cool, dry area or it could grow mold—and you should never eat quinoa that has grown mold. Quinoa is super filling and can be used in tons of dishes in place of less-healthy carbs. Make soups, salads, or protein bowls with this superfood.

7. Pure vanilla extract

Imitation vanilla extract will last you a while if you’re in a pinch (about two to four years), but we highly recommend finding a big bottle of pure vanilla extract. The high alcohol content of the extract makes it stay good indefinitely—just keep it away from heat and light and keep the cap tightly closed when not in use—so it’ll always be ready to use when you’re baking or cooking.

8. Soy sauce

If you’re a fan of Asian food, don’t throw out your open bottles of soy sauce. Due to the large amounts of sodium, soy sauce can last over three years when stored properly. It keeps its flavor and freshness better when stored in the refrigerator, but it is safe to keep in the pantry as well. Save money on takeout by making your own stir-fry, Chinese chicken salad, or noodle dishes with your long-lasting soy sauce.

9. Apple cider vinegar

Due to its high acidity, apple cider vinegar can last for up to five years when stored in a cool, dry place (in the pantry or in the fridge) with the lid tightly closed. If you see a dark, cloudy substance in the bottom of your bottle, don’t worry—that’s just the “mother,” formed by naturally occurring pectin. The mother is actually the most nutritious part of the cider, so feel free to consume it! Add apple cider vinegar to soups and salad dressings for an acidic finish.

10. Dried ramen

It might seem obvious, but dried ramen noodles will last for many years in your pantry, though the taste is best if consumed within a few years. The noodles are extremely dehydrated, so they don’t usually spoil. Use this cheap staple to make soup or cold noodle bowls.

11. Pure maple syrup

Unopened, pure maple syrup will last indefinitely if stored in the freezer (it won’t freeze solid) and up to several years if kept in the refrigerator. Syrup lacks water and is relatively acidic, which contributes to its long shelf life—though it can develop mold, in which case you should not consume it.

12. Baking soda

One of the most versatile ingredients you can buy in bulk is baking soda. While not super exciting, this extremely cheap ingredient is perfect for making homemade toothpaste, freshening up your fridge, leavening anything you bake, washing your counters, and removing stains from your clothes. Stock up on baking soda and don’t throw it away because it will last you multiple years without going bad. You can test your baking soda to determine whether it’s still good: just add a few drops of vinegar to your baking soda and see if it bubbles.

Whether you’re a cash-strapped college student or just a conscious spender, every little bit helps. Buy these ingredients in bulk and enjoy them for years.

As with all food, check to make sure these ingredients haven’t spoiled before you eat them, and never eat food that has not been stored properly.