The Gut-Brain Connection: How Sleep And Digestion Affect Each Other

Yes, your gut and your sleep are connected, but the strength of the evidence varies a lot from one link to the next. Your brain and digestive system exchange signals (NIDDK), your body clock helps run both sleep and digestion (NIGMS), and some of the links are well documented, such as night-time reflux disturbing sleep (Chest, 2018). Others are early: studies of the gut microbiome and sleep are small, and a few found only modest changes.

Last updated October 9, 2026

How Are The Gut And Brain Connected?

According to the NIDDK, nerves, hormones and the bacteria in your gut (also called the gut flora or microbiome) work together in digestion, and signals flow within the digestive tract and back and forth between the digestive tract and the brain.

The NIDDK also describes functional gut disorders such as irritable bowel syndrome (IBS) as problems with brain-gut interaction, meaning how the brain and gut work together (NIDDK). That describes two-way communication, not the gut controlling your sleep.

Gut And Sleep: What Research Suggests And How Strong It Is

Topic What research suggests How strong is the evidence
Body clock and digestion Circadian rhythms influence sleep, appetite and digestion, and food intake is one of the cues that affect them Well established in general terms (NIGMS)
Sleep loss and the gut microbiome Short sleep may change the makeup or richness of gut bacteria Early. Small, short experiments with mixed and modest findings
Microbiome diversity and sleep quality Greater diversity was linked with better sleep efficiency in one study Weak. Correlation in a small group, cause and effect unknown
Night-time reflux and sleep Reflux is linked with poorer sleep, and the head-up and left-side positions may help Moderate for the link. Limited for the position advice
IBS and sleep Sleep problems are more common in people with IBS Moderate. A link, not proof of cause
Late meals Eating close to bedtime is linked with poorer sleep in observational data Limited and mixed
Caffeine and alcohol Both can disturb sleep, and both are linked with reflux symptoms Reasonably consistent
Probiotics for sleep Some trials report better scores on sleep questionnaires Limited. Small trials with a risk of bias

Does Poor Sleep Change Your Gut Microbiome?

It might, but the human studies are small. A 2016 experiment in nine healthy young men found that two nights of restricted sleep, compared with two nights of normal sleep, changed the proportions of some gut bacterial groups, and the authors called the effects subtle. They also said that whether these changes contribute to the metabolic effects of sleep loss needs further study (Benedict et al., Molecular Metabolism, 2016).

A 2023 study of 19 healthy young men found that three nights of 2-hour sleep lowered one richness measure by 21 percent, but other diversity measures and gut permeability did not change (Scientific Reports, 2023).

The reverse direction has also been studied. A study that used wrist actigraphy found that greater overall microbiome diversity was associated with higher sleep efficiency and longer total sleep time, and the authors noted that earlier studies had given conflicting results (Smith et al., PLoS One, 2019). A correlation like this cannot show which affects which. In a 2026 pilot study, two weeks of longer sleep left microbial diversity unchanged (Journal of Sleep Research, 2026).

A 2020 review says sleep fragmentation and short sleep are associated with gut dysbiosis and that the relationship may run in both directions (Sleep Medicine Reviews, 2020).

Reflux, Heartburn And Sleep

Gastroesophageal reflux (GER) happens when stomach contents come back up into the esophagus. When it happens often it is called gastroesophageal reflux disease (GERD). The main symptoms are heartburn and regurgitation, but some people with GERD have neither and instead have chest pain, nausea, trouble swallowing or a chronic cough (NIDDK).

A 2018 review in the journal Chest reported that nocturnal reflux has been associated with poor sleep quality and that the normal changes your body goes through in sleep prolong and intensify reflux events. (Chest, 2018).

What The NIDDK Suggests

  • Leave a gap after eating. If you have GERD symptoms at night or when lying down, eating meals at least 3 hours before you lie down or go to bed may improve symptoms (NIDDK).
  • Raise your head. Doctors may recommend a foam wedge or extra pillows to lift the head and upper back so the body is inclined 6 to 8 inches (NIDDK).
  • Watch common triggers. Commonly linked foods and drinks include citrus, tomatoes, alcohol, chocolate, coffee and other caffeine, high-fat, mint and spicy foods. Triggers differ between people (NIDDK).

Sleeping Position

A 2023 systematic review found limited evidence that sleeping on the left side reduces night-time reflux compared with the right side or the back. It was based on two non-randomized studies plus one randomized trial of a positional device, and its authors concluded that the evidence suggests left-side sleeping could help (World Journal of Clinical Cases, 2023). It is worth trying, but it is not a proven treatment.

Do Late Meals Cause Night-Time Reflux?

Less clearly than many articles claim. In a small 1998 study of 20 people with reflux symptoms, a late evening meal at 9 p.m. did not significantly change the number or duration of reflux events compared with an earlier meal, though the authors noted that this applied to a non-provocative meal and to some patients only (Alimentary Pharmacology and Therapeutics, 1998). The NIDDK advice above is still a practical step to test for yourself.

IBS And Sleep

IBS causes abdominal pain linked with bowel movements and changes such as diarrhea, constipation or both, and symptoms can come and go for years. Doctors do not know exactly what causes it (NIDDK). A 2018 meta-analysis of 36 studies and 63,620 participants estimated that 37.6 percent of people with IBS had a sleep disorder, and the odds were about 2.6 times those of people without IBS. The authors said causality needs more study (Saudi Journal of Gastroenterology, 2018). If you have both bowel symptoms and poor sleep, mention both to your doctor.

Meal Timing, Caffeine And Alcohol

Eating Close To Bedtime

The AASM advises not eating a large meal before bedtime and having a light, healthy snack if you are hungry at night (AASM Sleep Education). In a study of 52 healthy volunteers who had overnight sleep recordings and kept a 3-day food diary, food eaten near the sleep period, such as dinner and a late snack, was negatively associated with sleep quality measures. The authors called for more studies (Crispim et al., Journal of Clinical Sleep Medicine, 2011). For a timing framework that includes the last meal, see our guide to the 10-3-2-1-0 sleep rule.

Caffeine

Caffeine reaches its peak level in your blood within an hour, you may feel its effects for four to six hours, and too much can cause insomnia. It also increases the release of acid in the stomach, which can lead to an upset stomach or heartburn (MedlinePlus). In a home study, a 400 mg dose of caffeine taken 6 hours before habitual bedtime still had a significant effect on sleep disturbance compared with placebo, which supports advice to avoid substantial caffeine for at least 6 hours before bed (Drake et al., Journal of Clinical Sleep Medicine, 2013). The caffeine impact on sleep calculator estimates how much caffeine could still be in your system at bedtime.

Alcohol

Alcohol may help you feel drowsy at first, but it tends to disrupt sleep later in the night, giving lighter and more broken sleep, and it can worsen snoring and sleep apnea. The Sleep Foundation suggests avoiding alcohol within three to four hours of bedtime (Sleep Foundation).

What About Probiotics And Sleep?

The NCCIH defines probiotics as live microorganisms intended to have health benefits, and says that for health conditions in general much remains to be learned about whether they are helpful and safe. For most uses researchers still do not know which probiotics help, how much to take, or who would benefit (NCCIH). Its overview does not list sleep among the conditions it covers.

Research on sleep specifically is recent. A 2024 meta-analysis of 15 placebo-controlled trials found that probiotics may improve sleep quality scores, but some studies had a risk of bias and the authors said further research is needed (Clinical Nutrition ESPEN, 2024). A 2025 meta-analysis of six studies with 424 people with insomnia found lower sleep quality scores with probiotics but no significant effect on total sleep time or sleep efficiency, and called for larger, higher-quality trials (Frontiers in Microbiology, 2025). In short, the signal is small and uncertain, and no product has been shown to treat insomnia. The AASM names cognitive behavioral therapy for insomnia as the most effective long-term treatment (AASM).

What You Can Reasonably Do

  • Keep a regular sleep schedule and get at least 7 to 8 hours in bed, since regular sleep and wake times support your body clock, which also helps run digestion (AASM; NIGMS). Our sleep hygiene guide covers the full routine.
  • Finish large meals at least 3 hours before bed if you get reflux at night.
  • Keep caffeine to the morning and alcohol well away from bedtime.
  • If you have reflux, ask your doctor about raising the head of the bed with a wedge.
  • Do not buy a probiotic for sleep on current evidence. If you want to try one, talk with your doctor first (NCCIH notes serious infections in premature infants given probiotics).

Limits Of The Evidence

Most human microbiome and sleep studies are small and short, and the ones above used healthy young adults, mostly men. Many findings are correlations, so they cannot show which came first, and results may not apply to you.

When Should You See A Doctor?

See a doctor if you think you have GERD or your symptoms do not get better with over-the-counter medicines or lifestyle changes. Also seek care for chest pain, loss of appetite, persistent vomiting, trouble or pain swallowing, vomit that contains blood or looks like coffee grounds, stool that contains blood or looks black and tarry, or unexplained weight loss (NIDDK). Antacids should not be used every day for severe symptoms without talking to a doctor (NIDDK).

Gut And Sleep FAQs

Can Gut Problems Cause Insomnia?

They can disturb sleep. Night-time reflux is associated with poor sleep, and sleep disorders are more common in people with IBS, but cause and overlap are not settled.

Does Poor Sleep Damage Gut Bacteria?

A few nights of sleep loss caused small, inconsistent changes in short experiments. Lasting harm has not been shown in people.

Should I Take Probiotics To Sleep Better?

The evidence is not strong enough to recommend it. Meta-analyses suggest a possible small benefit on questionnaire scores, from small trials with a risk of bias.

How Long Before Bed Should I Stop Eating?

The NIDDK suggests finishing meals at least 3 hours before you lie down if you have reflux symptoms at night. The AASM advises avoiding a large meal before bed and choosing a light snack if you are hungry.

Which Side Should I Sleep On For Acid Reflux?

Limited evidence suggests the left side may reduce night-time reflux. The NIDDK lists raising the head of the bed with a wedge as a lifestyle step.

Do Coffee And Alcohol Affect Both Digestion And Sleep?

Yes. Caffeine can disturb sleep for hours, and alcohol can fragment it. The NIDDK lists both among common reflux triggers.

This article is general education, not medical advice. It does not diagnose or treat any condition. Talk to a doctor about persistent reflux, bowel symptoms or sleep problems, and before starting any supplement.