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.
Spices don’t last forever, but if stored properly, they can stay in your spice rack for up to four years. Whole spices—whole cloves, whole nutmeg, cinnamon sticks, etc.—can last four years. If you prefer your baking spices pre-ground, be sure to use them within three years. Spices used past their prime won’t hurt you (much like cocoa powder), but they aren’t as flavorful. So if you want sweet and spicy gingersnaps, make sure that ground ginger and cinnamon is fresh. Here’s more information on how long spices really last.