Spices don’t spoil like milk, but they do lose their potency over time. Their shelf life varies based on the type of spice, how it’s stored, and whether it’s whole or ground. Whole spices generally retain their flavor for 3 to 4 years.