It is better to keep pistachios in their shells. Unshelled pistachios can be stored in the refrigerator for about three months. If they can be frozen, they can last for about 12 months. But if you want to store the shelled ones, you can store them in an airtight container in the fridge for up to three months. However, frozen pistachios can last for longer (more than a year).