Unopened dried spices have a shelf life of up to two or three years, depending on the specific spice and whether it is a whole spice or a ground spice. A rule of thumb is that whole spices (such as cinnamon sticks and pimento) have the longest life. Ground herbs and spices are generally more fragile.