Research explained: randomized crossover trial

Eating 40 g of walnuts a day for 8 weeks improved mood scores in young adults, a small crossover trial finds

In a randomized crossover trial of 31 healthy young adults in Spain, a daily walnut period lowered total mood disturbance compared with a nut-free period and raised a urinary serotonin metabolite.

Healthy young adults who ate 40 g of walnuts every day for 8 weeks reported better mood than during an 8-week period without nuts, according to a randomized crossover trial published on 19 October 2026 in Food & Function. Total mood disturbance scores fell by 4.85 points compared with the control period (p = 0.030). During the walnut period, urine levels of 5-HIAA, a breakdown product of serotonin, went up, while urinary cortisol did not change.

What the researchers did

A team at the University of Barcelona enrolled 31 healthy young adults with a mean age of 24 years, 90.3% of them women. Each person went through two 8-week periods in random order: one with 40 g of walnuts a day and one with no nuts at all, separated by a 2-week washout. The whole study lasted 18 weeks.

Participants filled in validated questionnaires on mood, perceived stress, well-being and food cravings. The researchers also measured 5-HIAA and cortisol in urine, plus urolithins, compounds the gut makes from walnut components that served as a marker that people actually ate the walnuts. Larger rises in 5-HIAA went along with bigger drops in fatigue and in total mood disturbance.

How strong is the evidence?

Randomization and the crossover design, where each person acts as their own control, are strengths. The trial was small, however, and it was open-label, so participants knew when they were eating walnuts, which can influence self-reported mood. Almost all participants were young women, so the results may not apply to other groups. The links between urine markers and mood are correlations, and the authors say the mechanisms still need more study. The abstract does not state funding sources or conflicts of interest.

What it means for you

This is an early, small result, not proof that walnuts treat low mood. Still, walnuts fit easily into a varied diet, for example in oatmeal, salads or as a snack. If you prefer other nuts, almonds and peanuts are also good everyday choices. Nuts are energy-dense, so they work best in place of other snacks rather than on top of them.

See more options in nuts and seeds.

Sources

  1. Zerón-Rugerio MF, Parilli-Moser I, Gonzalez-Rodriguez A, et al. Walnut consumption improves mood and is associated with increased urinary excretion of 5-hydroxyindoleacetic acid and urolithins in a randomized crossover trial. Food Funct. 2026;17(20):9107-9119. Published 19 October 2026. doi:10.1039/d6fo00807k. PMID 42808314.