Why do nuts and grains go bad?

You might want to toss those weird-tasting walnuts.

Grains in wooden bowls
A variety of raw grains, seeds, legumes and more, including sesame, mung bean, walnuts, tapioca, wheat, buckwheat, oatmeal, coconut and rice.
(Image credit: Natasha Breen via Getty Images)

Even when stored as directed — in cool, dry places — your canister of macadamia nuts or container of rice can go bad. While not as obvious or off-putting as a moldy tomato or a blueish cut of meat left too long in a refrigerator, grains and nuts do expire. But why does this happen? 

Just like other foods, these groups are made of fat, carbohydrate and protein molecules. Over time, these macronutrients mix with each other and their surroundings, changing their taste, texture and your appetite for them.

Donavyn Coffey
Live Science Contributor

Donavyn Coffey is a Kentucky-based health and environment journalist reporting on healthcare, food systems and anything you can CRISPR. Her work has appeared in Scientific American, Wired UK, Popular Science and Youth Today, among others. Donavyn was a Fulbright Fellow to Denmark where she studied  molecular nutrition and food policy.  She holds a bachelor's degree in biotechnology from the University of Kentucky and master's degrees in food technology from Aarhus University and journalism from New York University.