Does Peanut Butter Help You Sleep Better at Night?

Peanut butter contains several nutrients linked to better sleep, including tryptophan, magnesium, and protein that stabilizes blood sugar overnight. Whether it meaningfully improves your sleep depends on how much you eat, when you eat it, and what else is going on with your sleep habits. But the nutritional profile is genuinely promising, and at least one clinical trial has tested it directly.

Why Peanut Butter Has Sleep-Friendly Nutrients

The connection starts with tryptophan, an amino acid your body uses to produce serotonin and then melatonin. Serotonin regulates mood, appetite, and sleep patterns, while melatonin is the hormone that signals your body it’s time to wind down. One ounce of peanuts contains about 65 milligrams of tryptophan. That’s not a massive dose compared to turkey or cheese, but combined with the other compounds in peanut butter, it contributes to a cumulative effect.

Two tablespoons of peanut butter deliver about 49 milligrams of magnesium. Magnesium helps relax muscles and calm the nervous system by interacting with neurotransmitters that quiet brain activity. It also appears to increase melatonin production while lowering cortisol, your body’s primary stress hormone. That combination of rising melatonin and falling cortisol is exactly what your body needs to transition into sleep. Peanut butter also supplies niacin (vitamin B3), which supports brain function and has been loosely associated with healthier sleep patterns.

Blood Sugar Stability Overnight

One underappreciated reason people wake up at 2 or 3 a.m. is a drop in blood sugar. When glucose dips too low during the night, your body releases stress hormones to compensate, and those hormones can pull you out of deep sleep. Peanut butter’s combination of protein (7 grams per two-tablespoon serving) and fat (15 grams) slows digestion considerably compared to a carb-heavy snack. Protein is processed much more slowly than carbohydrates, which helps maintain steady blood sugar levels through the night.

For the best overnight stability, pairing peanut butter with a small carbohydrate source, like a banana or a piece of whole-grain toast, keeps glucose in a comfortable range without the spike-and-crash pattern that disrupts sleep. This is a strategy commonly recommended for people with diabetes, but it applies to anyone prone to middle-of-the-night waking.

What the Research Shows

A randomized controlled trial tested this idea directly with firefighters, a group that commonly struggles with poor sleep. Participants in the peanut butter group ate two tablespoons (32 grams) about two hours before bed, five nights a week, for seven weeks. Each serving contained 190 calories, 15 grams of fat, 8 grams of carbohydrates, and 7 grams of protein. The study measured sleep quality over the full intervention period to see whether this simple habit made a difference.

Broader population data supports the link as well. A large study on legume and nut consumption found that people who regularly ate nuts had 44% lower odds of short sleep and 49% lower odds of poor sleep quality compared to those who ate the least. These associations followed a dose-response pattern, meaning more frequent consumption was tied to better outcomes. The effects were especially pronounced in women.

Timing and Serving Size

The clinical trial protocol offers a useful blueprint: two tablespoons eaten about two hours before bed. That two-hour window matters for a couple of reasons. Eating too close to lying down increases your risk of acid reflux, especially with a high-fat food. But eating too early means the blood sugar stabilizing effects may wear off before you’re deep into your sleep cycle. Two hours gives your body enough time to begin digesting without creating discomfort.

After eating the peanut butter, participants in the study were asked not to consume anything else before bed. Keeping the serving to two tablespoons (around 190 calories) is reasonable as a pre-sleep snack. Going much beyond that adds calories without clear additional benefit, and a heavier serving could slow digestion enough to cause discomfort.

Choosing the Right Peanut Butter

Not all peanut butter is created equal for this purpose. Many commercial brands add sugar, hydrogenated oils, and salt. The added sugar is the biggest concern for sleep: it can cause a quick insulin spike followed by a blood sugar drop, which is the opposite of what you want overnight. The peanut butter used in the firefighter study contained only 2 grams of added sugar per serving.

Your best bet is a natural peanut butter where the ingredient list is short: peanuts, maybe a small amount of salt. If the only ingredients are peanuts and salt, you’re getting the tryptophan, magnesium, protein, and healthy fats without anything that could undermine the sleep benefits. The texture difference (natural peanut butter tends to separate) is a small trade-off.

Who Should Be Cautious

Peanut butter is high in unsaturated fat, which is generally healthy but can be harder to digest. Your body produces more bile to break down fatty foods, and for people prone to acid reflux, this can worsen symptoms, especially when lying down. If you already deal with heartburn at night, peanut butter before bed could make things worse rather than better. A low-fat variety may reduce that risk, though it also changes the nutritional profile.

The calorie density is also worth noting if you’re watching your weight. At 190 calories for two tablespoons, a nightly peanut butter habit adds roughly 1,000 calories per week. For most people that’s manageable, but it’s not negligible. If the snack replaces something else you’d normally eat in the evening, the net effect on your calorie intake may be minimal. If it’s purely additional, it’s worth factoring in.