When stored well, icing sugar will last almost indefinitely (in a dry, cool, airtight location away from strong smells). However, if it smells odd, has any signs of mold, or even gets insects in it, then it’s time to get rid!