Diet and sleep · Trial assessment

Walnuts, tomatoes and urinary melatonin: what two sleep trials measured

Persistent difficulty falling or staying asleep deserves assessment. NHLBI recommends cognitive behavioral therapy for insomnia as the usual first treatment for long-term insomnia.

The short answer

For nighttime urination, keep a record of bathroom times, measured volumes, drinks and awakenings over several days. Bring the pattern to the clinician rather than choosing treatment from a metabolite result alone.

October 24, 2026 · Sources checked October 24, 2026

About 3 min read

A nighttime record includes urination time, measured volume and time spent awake.
Include drinks and awakenings in the record.

Walnuts: small sleep changes in young adults

A 2025 randomized crossover trial analyzed 76 young adults, average age 24; 85.5% were women.

Study at a glance
Comparison40 grams of walnuts at dinner versus avoiding nuts, eight weeks each, separated by two weeks.
MeasuresTimed urine samples, wrist activity monitoring and sleepiness questionnaires.

Evening urinary 6-sulfatoxymelatonin increased. The estimated reduction in sleep latency was 1.29 minutes versus baseline, not a 1.29-minute advantage over control. Sleep efficiency improved by 0.72 percentage points versus control.

Participants already had generally good sleep. The trial was open-label, diets were not standardized, and nocturia was not an outcome. It cannot establish fewer bathroom trips. The California Walnut Commission cofunded the study; the authors reported no funder role in design, analysis or interpretation.

Tomatoes: another population and collection method

An earlier open-label randomized trial studied women with obesity after menopause. Thirty-six completed eight weeks.

Study at a glance
Intervention250 grams of beefsteak tomatoes two hours before sleep.
MeasuresPittsburgh Sleep Quality Index, blood sampling and urinary melatonin metabolite.

The abstract reported improved sleep scores and a tenfold higher urinary metabolite level than control. That is not ten times better sleep. The publisher’s summary specifies first-morning urine, rather than the separately timed evening and night collections used in the walnut study.

This assessment uses the abstract and publisher summary, which do not supply a nocturia outcome or enough detail for a direct comparison between foods. They cannot show which food treats nighttime urination.

Persistent insomnia has established treatment options

NHLBI’s insomnia guidance describes cognitive behavioral therapy for insomnia, or CBT-I, as the usual first treatment for long-term insomnia. A course typically lasts six to eight weeks and may be delivered in person, by telephone or online.

CBT-I can combine work on sleep-related worries, relaxation, sleep education, stimulus control and an individually managed sleep schedule. Ask whether that approach fits persistent difficulty falling or staying asleep.

Discuss medicines and supplements with the clinician too. A food study reporting a urinary hormone metabolite does not determine an appropriate supplement prescription. Treatment should address the sleep problem and its effect on daytime function.

Measure nighttime urination directly

EAU’s nocturia diary guidance recommends recording daytime and nighttime bathroom visits, urine volume, what and how much you drink, and how often you wake to urinate.

Also record how long each awakening lasts and any urinary pain or discomfort. Several days of entries can help the clinician identify patterns and decide which further assessment is useful.

Bring the record to a review of troublesome nighttime urination.

Questions to bring

  • Does my record suggest a urinary problem, a sleep problem, or both?
  • Which findings would change the treatment plan?
  • Would a sleep-focused assessment or CBT-I be appropriate for me?

Sources and editorial notes

Different populations, foods and urine collections prevent a direct food ranking. Sleep outcomes do not establish nocturia benefit.

By The Mighty Bladder Editors.

Browse all Mighty Bladder articles