Nuts are good in your pantry for up to three months. After that, keep them in the fridge for up to six months or in the freezer for a year or longer.