Tryptophan-rich foods help you sleep because they release serotonin, a mood-stabilizing hormone. Nuts are tryptophan-rich. The best nuts are listed by Everyday Health.
Almonds and walnuts contain magnesium and melatonin, which induce sleep, reduce insomnia, and improve sleep quality.
Brazil nuts may also be good before bed. One Brazil nut has 96 mcg of selenium,
A nutrient that helps people fall asleep, compared to the 55 mcg recommended for adults.
Nuts are a healthy late-night snack, but you should also eat them before bed. Nuts can help you sleep as long as they're not salted or sugared.