The smartest way to get the best taste and value out of your herbs and spices is to store them effectively. Store them in tightly sealed containers in a cool dark place. Keeping containers tightly closed will protect them from moisture and oxidation, and they will retain more of their essential oil content when stored in glass jars. Keeping them away from direct light will also keep the color from fading. Never store them above your stove or near other heat sources as heat will degrade the quality. Also keep them away from the heat of the stove and the humidity of the dishwasher. It is also inadvisable to freeze herbs or spices. Condensation will be a problem each time the bottle comes out of the freezer and is likely to introduce moisture to the spices. And don't shake herbs or spices out of the bottle directly into something you are cooking as moisture may be introduced. So, FDA guidelines suggest the following general recommendations: Whole spices and herb leaves and flowers will keep for 1 to 2 years. Seeds will keep for 2 to 3 years and roots for 3 years. Ground spices and herb leaves and seeds will last for 1 year. Ground roots will keep for 2 years.
The best way I have found to test spices and herbs is to look at the color and take a smell test. I guess that it is time to discard my 5 year old spices and herbs. Sad...