Although herbs and spices will not "go bad," per se, they will definitely lose their potency with age, and seeds such as poppy and sesame will get rancid. Most whole herbs and spices will retain their flavor about 1 year, while dried and ground versions are best used within 6 months.
Dried herbs should be crushed between the palms of your hands to release their flavor before adding to recipes. As a general rule for most herbs, 1 teaspoon of dried herb may be substituted for 1 Tablespoon of chopped fresh herb.
This list is a general guide. Take your own tastes into consideration when selecting your own pantry basics. The links will take you to more detailed information on each of the herbs and spices:
Pantry Basics : Herbs and Spices
• Allspice, ground and whole• Arrowroot starch
• Basil
• Bay leaves
• Chili powder
• Cinnamon, ground and sticks
• Cloves, ground and whole
• Coriander, ground
• Cream of tartar
• Cumin, ground
• Curry powder
• Dill weed
• Fennel seeds
• Five-spice powder
• Garlic powder
• Ginger, ground
• Marjoram, dried
• Mint, dried
• Mustard, dried ground
• Nutmeg
• Onion powder
• Oregano, dried
• Paprika, Hungarian sweet
• Pepper, cayenne, dried red flakes
• Peppercorns, dried black
• Poppy seeds
• Rosemary, dried
• Sage, dried and rubbed
• Salt, table and Kosher
• Sesame seeds
• Tarragon, dried
• Thyme, ground and dried
• Turmeric
• Vanilla extract
Other Pantry Basics Lists:
• Condiment Basics• Staples (standard supplies)
• Refrigerator and Freezer Basics

