sandman

Does what you eat before bed actually change your dreams?

Does what you eat before bed actually change your dreams?

The folk wisdom about cheese and nightmares has been around for centuries. Here's what the research actually says about food, sleep, and dream content.

Jacob Lowe

Jacob Lowe · Founder of Sandman

Published on Apr 16th · 6 min read

The idea that cheese gives you nightmares has been around since at least the 1800s. Winsor McCay drew an entire comic strip about it — Dream of the Rarebit Fiend, published from 1904 to 1913, where characters ate Welsh rarebit (melted cheese on toast) before bed and spent the night in hallucinatory chaos.

Over a century later, people are still saying it. "Don't eat cheese before bed" gets repeated in dream journaling communities the way "don't swim after eating" gets repeated at pools. Everybody's heard it. Nobody quite knows if it's real.

I went looking for the research expecting to debunk it. What I found was messier than that.

The biggest study on food and dreams

In 2015, dream researcher Tore Nielsen at the University of Montreal published a study titled "Dreams of the Rarebit Fiend", a direct nod to McCay's comic. He surveyed 396 students about whether they believed food affected their dreams. About 18 percent said yes. When asked which foods, dairy came up the most: 43.8 percent of people who reported food-related disturbing dreams pointed to dairy products.

Spicy food came in second, cited by 19 percent of respondents. Starchy foods at 16 percent, then meat at 13 percent.

Nielsen followed this up with a larger survey of 1,082 Canadian psychology students. This time, about five percent believed food affected their dreams. But the part that got me wasn't about belief. It was about biology. The strongest dietary predictor of nightmare frequency was self-reported lactose intolerance. People who said they were lactose intolerant reported more nightmares than anyone else in the study, even after controlling for other variables.

His explanation is straightforward. If a food gives you digestive discomfort, it disrupts your sleep. Disrupted sleep means more awakenings during REM. More awakenings during REM means you catch more of what you were dreaming — and what you catch during an uncomfortable night tends to skew negative. The food isn't changing the dream itself. It's changing how much of the dream you remember, and the physical discomfort colors the experience.

Spicy food and the temperature problem

The spicy food connection is a little more concrete, though it rests on one small study.

In 1992, Edwards and colleagues had six healthy men eat Tabasco sauce and mustard with their evening meal, then monitored their sleep. On spicy nights, participants took longer to fall asleep, spent less time in slow-wave and stage 2 sleep, and were awake more during the night. The reason: capsaicin raised their core body temperature during the first sleep cycle.

Your body needs to cool down to enter and stay in deep sleep. When your core temperature stays elevated, deep sleep gets delayed and shortened, which can push REM into more compressed windows later in the night. Compressed REM tends to be more intense.

Many dream journalers notice a version of this pattern without knowing why. The nights where sleep is fragmented, where you fell asleep late or kept waking up, are often the nights with the longest, most vivid entries. Not because the content changed, but because the delivery did.

The B6 question

Vitamin B6 is probably the most repeated "hack" for vivid dreams. You'll find it recommended in lucid dreaming forums, supplement review channels, and dream journaling communities. The claim: take B6 before bed, get wilder dreams.

There's a double-blind, placebo-controlled study on this, which is more than most dream claims can say. In 2018, researchers at the University of Adelaide gave 100 participants either 240 mg of vitamin B6 or a placebo before bed for five consecutive nights.

The result surprised me. B6 significantly increased how much dream content people recalled. They remembered more. But it didn't make the dreams more vivid, more bizarre, or more colorful. An earlier 2002 pilot study by Ebben, Lequerica, and Spielman had found effects on vividness too, but with a much smaller sample and a composite measure that bundled several qualities together.

So B6 may help you remember more, but it probably doesn't make the dreams themselves stranger. That distinction matters if you keep a journal. Remembering more of a normal dream is different from having a weirder one.

Worth noting: 240 mg is roughly 185 times the recommended daily intake of about 1.3 mg. At those doses, long-term use can cause peripheral neuropathy — nerve damage in the hands and feet. Not something to take lightly.

Alcohol and the rebound

This is the one I expected to be overblown, but the research is pretty unambiguous.

It suppresses REM sleep by increasing GABA, an inhibitory neurotransmitter that quiets neural activity. You fall asleep fast, but the first half of your night is nearly dream-free.

Then the alcohol wears off. Your brain, having been deprived of REM, overcorrects. The second half of the night floods with REM periods that are longer and more intense than normal. Researchers call this "REM rebound." It's why people who drink before bed often jolt awake at 3 or 4 a.m. in the middle of a dream that feels too real.

A 2013 review in Alcoholism: Clinical and Experimental Research confirmed the pattern across multiple studies: alcohol consistently delays REM onset and reduces REM during early sleep, with a compensatory surge later in the night. The effect shows up even at moderate doses.

If you track your drinking alongside your entries, you'll probably notice this fast. The night after drinks, the journal fills up. Not with pleasant content, usually. The REM rebound dreams tend to run anxious and emotionally raw.

Late-night eating in general

Forget specific foods for a second. Eating anything close to bedtime raises your metabolic rate and your body temperature. Both of those interfere with the onset of deep sleep. The same thing happens as with spicy food: deep sleep gets cut short, REM gets squeezed into the back half of the night, and the dreams get louder.

Nielsen's 2015 survey found that students who described their eating habits as unhealthy (frequent fast food, skipped meals, regular late-night eating) reported more negative dream content overall, even when the dreams didn't qualify as full nightmares.

This isn't dramatic. Nobody's having hallucinations because they ate pizza at midnight. But the pattern is consistent enough that it seems real: eating late means sleeping worse, and sleeping worse means the dreams you catch tend to be more fragmented and more emotionally charged.

What to do with this

If you keep a dream journal, all of this is testable. Not in a clinical sense, but you can get pretty far on your own. Some dream journalers add a line about their evening: what they ate, when they ate it, whether they had a drink. Then they look back for patterns after a few weeks.

The research suggests you probably won't find that any specific food puts specific content into your dreams. Cheese won't give you nightmares about cheese. But you might find that certain nights produce reliably different entries. Longer, more emotional, more waking up in the middle of something. And those nights tend to correlate with what you did before bed.

The folk wisdom about food and dreams wasn't completely wrong. It was just pointed at the wrong thing. The mechanism isn't mystical. It's that what you eat and when you eat it changes how you sleep. And how you sleep changes what you bring back in the morning.

McCay probably wasn't far off with the Welsh rarebit. He just didn't know the real story was the disrupted sleep, not the cheese. I find that kind of satisfying. The folk wisdom was onto something real. It just took a hundred years to figure out what.

About the Author

Jacob Lowe

Jacob Lowe

Founder of Sandman

Jacob is a web developer with over a decade of experience in the field. His passion for coding and open-source technologies drives his desire to create and innovate. He believes that through technology, we have the power to increase access to new experiences and make a positive impact in the world. At the heart of his work lies a love for nature and the beauty of the natural world. He finds solace in the stillness of nature and the abstractions of code.

Remember your dreams