Store nuts in an airtight container in a cool, dark, dry place, and move them to the fridge or freezer if you'll keep them longer than a month or two. Heat, light, air, and moisture are what turn nuts rancid or moldy.
Why nuts spoil
Nuts are high in fat. According to USDA, per 100 g, walnuts have about 65 g of fat, pecans about 72 g, almonds about 50 g, and peanuts about 49 g. Much of that fat is unsaturated, and unsaturated fats react with oxygen over time. This is called rancidity: the nuts taste bitter, stale, or paint-like. Rancid nuts are unpleasant, but eating a few is not usually considered dangerous. Strongly off-tasting nuts are best thrown out.
Mold is a different problem. It grows when nuts get damp or are stored somewhere humid. Some molds produce aflatoxins, toxins that are a recognized health concern with long-term, high exposure. Peanuts are one of the foods most often associated with them. Commercial testing and regulation reduce the risk, but home storage matters too.
How to store them
| Where | Roughly how long (general guidance) |
|---|---|
| Pantry (cool, dark, airtight) | A few weeks to a couple of months |
| Fridge | Around 6 months or more |
| Freezer | Up to a year or longer |
These timeframes are rules of thumb and vary by nut type, freshness at purchase, and conditions.
- Use airtight containers. Glass jars, sealed plastic containers, or zip bags with the air pressed out limit oxygen and moisture.
- Keep them away from heat and light. Avoid spots near the stove or in sunny windows.
- Chill the high-fat ones. Walnuts and pecans are especially rich in fat and tend to go off faster, so the fridge or freezer is a good default for them.
- Freeze in portions. Nuts thaw quickly. Bring the container to room temperature before opening to avoid condensation, which adds moisture.
- Keep shelled nuts sealed. Shelled and chopped or ground nuts spoil faster than whole nuts in the shell because more surface is exposed to air.
- Keep food odors out. Nuts can absorb smells from other foods in the fridge, so seal them well.
Signs to throw them out
- Rancid: a sharp, bitter, soapy, or oil-paint smell or taste.
- Moldy: any visible fuzz, dark spots, or a musty smell. Discard the whole batch, because mold can spread beyond what you can see.
- Shriveled, dark, or damp nuts, particularly peanuts, which may signal poor storage.
- Unusually bitter taste: spit it out and discard the rest.
Don't try to salvage moldy nuts by picking out the bad ones or roasting them, since heat does not reliably destroy aflatoxins.
If you have a nut allergy, immune problems, or are pregnant and unsure about a batch, it's worth checking with a doctor or registered dietitian. When in doubt, throw it out.