Do Nuts Make You Sleepy? Best Picks and Timing Tips

Nuts can promote sleepiness, but the effect is mild and depends on which nuts you eat and how many. Certain varieties contain meaningful amounts of melatonin, the hormone that signals your brain it’s time to sleep, along with other compounds that support the body’s sleep chemistry. You won’t feel drowsy minutes after snacking on a handful of almonds the way you might after taking a melatonin supplement, but eating the right nuts in the evening can nudge your body toward better sleep over time.

Why Some Nuts Promote Sleep

Three things in nuts work together to influence sleepiness: melatonin itself, the amino acid tryptophan, and minerals like magnesium and selenium. Melatonin is the most direct player. Your body produces it naturally as light fades in the evening, and consuming foods that contain it adds a small external dose on top of what your brain already makes.

Tryptophan takes a more indirect route. Your body converts it first into serotonin (a hormone involved in mood and sleep regulation), then into melatonin. An ounce of cashews delivers about 81 milligrams of tryptophan, and most other tree nuts fall in a similar range. That’s not an enormous amount compared to turkey or chicken, but it contributes to the overall sleep-supporting profile of nuts as a snack.

Magnesium helps regulate melatonin production and promotes muscle relaxation. Selenium, found in especially high concentrations in Brazil nuts, has been linked to insomnia when levels run low. Together, these minerals create a biochemical environment that favors drowsiness, even if no single nutrient delivers a knockout punch on its own.

Pistachios Stand Out by a Wide Margin

Not all nuts are equal when it comes to sleep compounds. Pistachios contain far more melatonin than any other common nut. Lab analyses consistently find around 200 micrograms or more of melatonin per gram of pistachio, with some varieties reaching 233 micrograms per gram. For context, most plants contain somewhere between 1 and 100 nanograms per gram, making pistachios roughly a thousand times higher than typical plant sources. A standard one-ounce serving of pistachios (about 49 kernels) could deliver several milligrams of melatonin, which overlaps with the range found in over-the-counter melatonin supplements.

Walnuts, by comparison, contain only about 1 to 3.5 nanograms per gram of fresh weight. That’s a tiny fraction of what pistachios offer, though walnuts still appear on most lists of sleep-friendly foods because they combine that small melatonin dose with healthy fats and magnesium. Almonds fall somewhere in the middle tier, providing moderate melatonin alongside high magnesium content.

Brazil nuts earn their spot through selenium rather than melatonin. Just one or two Brazil nuts supply more than a full day’s worth of selenium, and people with insomnia have been found to be more likely to have low selenium levels. You don’t need many, and eating too many regularly can actually push selenium intake too high.

How Nuts Compare to Other Sleep Foods

Tart cherry juice is the most studied food-based sleep aid. In clinical trials, people with insomnia who drank two cups of tart cherry juice daily logged more total sleep time and better sleep efficiency. Tart cherries have above-average melatonin concentrations, though still far below pistachios on a gram-for-gram basis. The advantage of tart cherry juice is that people tend to consume a larger volume of it, which adds up.

Eggs contain about 1.5 nanograms of melatonin per gram, putting them in roughly the same ballpark as walnuts. Milk is another commonly cited sleep food, largely because of its tryptophan and the psychological comfort factor. Pistachios, however, are in a category of their own among whole foods when it comes to raw melatonin content.

Timing and Portion Size Matter

Eating nuts right before you lie down isn’t ideal. Nuts are calorie-dense and relatively high in fat, which means your digestive system needs time to process them. The cell walls in whole nuts are tough enough that some of the fat passes through without being fully absorbed, but digestion still requires real effort from your stomach and intestines. Eating a heavy portion too close to bedtime can leave you feeling full or uncomfortable rather than relaxed.

A good target is a small handful (roughly one ounce, or about 28 grams) eaten two to three hours before bed. This gives your body time to digest and start absorbing the melatonin, tryptophan, and minerals without the discomfort of going to sleep on a full stomach. Roasted nuts are digested slightly more efficiently than raw ones because roasting breaks down some of the plant cell structure, making nutrients more accessible.

When Nuts Might Work Against Sleep

Eating a large quantity of nuts in the evening can backfire. Their high fat content slows stomach emptying, and if you’re prone to acid reflux, lying down while your stomach is still working through a heavy snack can trigger symptoms that keep you awake. Salted or flavored nuts can also cause thirst or mild bloating that disrupts comfort at bedtime.

Portion control is the simplest fix. A single ounce of pistachios or almonds is enough to deliver the sleep-relevant nutrients without overloading your digestive system. If you find that even a small serving causes discomfort, try eating your nuts earlier in the evening, closer to dinner, rather than as a dedicated bedtime snack. The melatonin and tryptophan will still be circulating in your system a few hours later.

Best Nuts to Choose for Sleep

  • Pistachios: The highest natural melatonin content of any commonly eaten nut, by a factor of thousands compared to most alternatives. A one-ounce serving is the most straightforward food-based way to add melatonin to your evening routine.
  • Almonds: High in magnesium, which supports melatonin regulation and muscle relaxation. A solid all-around choice with moderate melatonin.
  • Walnuts: Low melatonin content but a good source of omega-3 fatty acids, which have their own links to sleep quality.
  • Cashews: Notable for tryptophan content, feeding the body’s own melatonin production pathway.
  • Brazil nuts: Best for selenium. One or two nuts per day is plenty, and more than four or five daily can lead to excessive selenium intake over time.

Mixing a few varieties gives you the broadest combination of sleep-supporting compounds. A small handful of pistachios with a couple of almonds and a single Brazil nut covers melatonin, magnesium, tryptophan, and selenium without overdoing any one thing.