The gut-brain connection: why stress hits your stomach, and why your gut affects your mood
How the gut and brain communicate through the vagus nerve, hormones, immune signals and microbes, why stress upsets digestion, the two-way link with anxiety, disorders of gut-brain interaction like IBS, and what helps.

Short answer
The gut-brain connection is the two-way communication between your digestive system and your brain, through nerves (especially the vagus nerve), stress hormones, the immune system and gut microbes [1, 2]. That's why stress can cause stomach aches, nausea, diarrhea or constipation — and why ongoing gut problems can raise anxiety and low mood.
A 12-year study showed the link runs both ways: anxiety predicted new gut disorders, and people with gut disorders developed more anxiety and depression later [3]. Treatments that target the connection — such as cognitive behavioural therapy and gut-directed hypnotherapy — help many people with irritable bowel syndrome [4].
If your stomach reacts every time you're stressed, that's not "all in your head," not your fault and not weakness. It's real physiology: your gut has its own nervous system that talks to your brain all day long.
Note: this article is for general education and is not medical advice. Blood in your stool, black stools, unexplained weight loss, vomiting that won't stop, severe abdominal pain, fever, difficulty swallowing or new symptoms after age 45 need medical attention.


Start understanding your body
Learn what affects your energy, stress, sleep, and daily state. Get the app.
The gut-brain connection at a glance
How do the gut and brain talk? — Through the vagus nerve and spinal nerves, stress hormones like cortisol, immune signals and substances made by gut microbes [1, 2]
What is the "second brain"? — The enteric nervous system — a large network of nerve cells in the gut wall that runs digestion and talks to the brain
Does stress cause stomach problems? — It can change gut movement, sensitivity and secretions, and worsen symptoms [1]
Can the gut affect mood? — Yes — gut disorders predicted later anxiety and depression in a 12-year study [3]
What are disorders of gut-brain interaction? — The current name for conditions like IBS and functional dyspepsia [5]
What helps? — Medical care for gut symptoms plus therapies that calm the gut-brain loop: CBT, gut-directed hypnotherapy, stress care, sleep, movement [4]


Discounts for blog readers: up to 36% off
See what affects your energy, stress, sleep, and daily state with Welltory
How do the gut and brain communicate?
Nerves. Your gut contains the enteric nervous system, a mesh of nerve cells in the gut wall that controls muscle contractions, secretions and blood flow. It's connected to the brain mostly through the vagus nerve, which carries far more signals from the gut to the brain than the other way around, and through spinal nerves [1, 6].
Stress hormones. When you're stressed, the brain triggers the release of cortisol and adrenaline. These change how fast food moves, how sensitive the gut lining is, and how the immune system behaves in the gut [1].
Immune signals. Much of the body's immune tissue sits in the gut. Inflammation there sends signals to the brain that can affect mood and energy.
Gut microbes. Trillions of bacteria in the gut produce substances that interact with nerves, hormones and the immune system [2]. Research on the microbiome is fast-moving but still mostly early. For more on microbes and probiotics, see our guide to the gut-brain axis.
Why does stress affect your stomach?
When your brain senses a threat, it prepares you for action. Digestion becomes a low priority, so:
movement changes — the gut can speed up (urgency, diarrhea) or slow down (bloating, constipation, nausea);
sensitivity rises — normal gut stretching can feel painful, a pattern called visceral hypersensitivity, common in IBS;
secretions and blood flow shift;
appetite changes — some people lose it, others crave comfort food.
These reactions are normal in short bursts. Before an exam or an interview, "butterflies" or a rush to the bathroom are common. Problems start when stress is frequent or long-lasting, or when a sensitive gut reacts strongly to everyday stress [1, 5].
Can your gut affect your mood?
Yes. In a 12-year study of a random sample of Australian adults, researchers followed 1,002 people who completed both surveys. Among people without a gut disorder at the start, higher anxiety predicted new functional gut disorders 12 years later. Among people without anxiety or depression at the start, those with a gut disorder had higher anxiety and depression at follow-up [3]. The authors concluded that the gut and brain interact in both directions.
That fits what many people describe: weeks of pain, bloating or unpredictable bowels wear down mood, sleep and confidence — and that stress then feeds back into the gut.
What are disorders of gut-brain interaction?
Doctors now use the term disorders of gut-brain interaction (DGBI) for conditions where symptoms come from how the gut and brain communicate rather than from visible damage. The Rome IV criteria, published in 2016, define them [5]. They include:
irritable bowel syndrome (IBS) — abdominal pain linked to changes in bowel habits;
functional dyspepsia — upper stomach pain, burning or early fullness;
functional constipation and diarrhea;
cyclic vomiting syndrome and others.
These are real, diagnosable conditions. A doctor will usually check for other causes first, such as celiac disease, inflammatory bowel disease or infections. For IBS specifically, see our guide to what causes IBS.
What role does the vagus nerve play?
The vagus nerve carries signals both ways between the gut and brain and also has an anti-inflammatory role [6]. Researchers measure its influence on the heart using heart rate variability (HRV).
In one study comparing people with IBS, Crohn's disease and healthy volunteers, healthy people with higher vagal tone had lower evening cortisol, but that pattern wasn't seen in people with IBS or Crohn's. In IBS, lower vagal tone went along with higher adrenaline levels [7]. It's a small study, but it supports the idea that the stress-regulating "brake" works differently in some gut disorders.
Common gut-brain symptoms and what they may mean
| Symptom | Often linked with | When to get checked |
|---|---|---|
| Stomach "butterflies" or nausea before a stressful event | Normal stress response | If it happens most days or stops you eating |
| Urgent diarrhea when anxious | Faster lower-gut movement under stress | If it wakes you at night, has blood, or comes with weight loss |
| Bloating and cramping that change with stress | IBS or another disorder of gut-brain interaction | If new after 45, or with red flags |
| Feeling full quickly, upper-stomach burning | Functional dyspepsia, reflux or other causes | If you have vomiting, weight loss or difficulty swallowing |
| Constipation that worsens during stressful periods | Slower gut movement, less routine, less fluid and activity | If it's new, severe or with bleeding |
| Low mood and anxiety during long bouts of gut symptoms | Two-way gut-brain link [3] | If mood stays low or affects daily life |
The vagus nerve, HRV and your daily gut symptoms
Because the vagus nerve links heart rhythm and gut function, heart rate variability can be a rough window into how much "rest and digest" activity your body has at a given moment [6, 7]. Some people notice that their gut symptoms flare on days when their HRV is lower — after poor sleep, a stressful day or illness. That doesn't mean HRV measures your gut. But tracking both can help you spot patterns and test what helps, like a walk after meals or a few minutes of slow breathing.
What helps the gut-brain connection?
Get the gut checked. Make sure other conditions are ruled out, especially if you have red-flag symptoms.
Psychological therapies with good evidence. A network meta-analysis of 41 randomized trials with 4,072 people found that cognitive behavioural therapy (face-to-face or with minimal contact) and gut-directed hypnotherapy were effective for IBS symptoms. The authors noted a high risk of bias in many trials, so benefits may be overestimated [4]. These therapies don't mean the problem is "psychological" — they work on the gut-brain loop.
Stress and nervous system care. Slow, exhale-focused breathing, relaxation, mindfulness and regular breaks lower the stress signals reaching the gut. See our guide to breathing techniques.
Sleep. Poor sleep worsens pain sensitivity and gut symptoms; regular sleep helps.
Movement. Regular physical activity helps bowel function and stress.
Food patterns. Regular meals, enough fluids and, for some people with IBS, a dietitian-guided approach such as a low-FODMAP diet. Avoid cutting out many foods on your own.
Medicines. Depending on symptoms, doctors may use medicines for diarrhea, constipation, cramping or pain, including low doses of some medicines that act on gut-brain signalling.
A two-week plan to calm a nervous stomach
Use this alongside medical advice, not instead of it.
Days 1–3: observe. Keep a simple diary: meals, gut symptoms (0–10), bowel habits, stress (0–10), sleep. Don't change anything yet.
Days 4–7: regular rhythm. Eat at roughly the same times each day, sit down for meals and slow down. Drink fluids through the day. Add a 10–20-minute walk after one meal.
Days 8–10: calm the system. Add two short breathing breaks a day — five minutes of slow, exhale-focused breathing — especially before meals or stressful events.
Days 11–14: review. Look for patterns: do symptoms spike after poor sleep, on high-stress days, after certain meals or at certain points in your cycle? Bring the diary to your doctor or dietitian.
Food and the gut-brain connection
There's no single "gut-brain diet," but some general points are widely recommended:
Regularity. Skipping meals and then eating large ones can worsen symptoms.
Fibre. Many people do well with gradually more fibre from vegetables, fruit, oats and legumes; in IBS, some types of fibre are better tolerated than others, so increase slowly.
Triggers vary. Caffeine, alcohol, fatty meals and spicy foods bother some people and not others.
Specialist diets need support. A low-FODMAP diet for IBS is meant to be short-term and guided by a dietitian, with foods reintroduced afterward.
Don't over-restrict. Cutting out many foods without guidance can harm nutrition and increase food worry.
For microbes, probiotics and fermented foods, see our gut-brain axis guide.
Myths about the gut-brain connection
"If it's stress-related, it isn't real." Stress changes gut movement, sensitivity and secretions through real nerve and hormone pathways [1].
"Gut symptoms always mean something is damaged." Disorders of gut-brain interaction cause real symptoms without visible damage on tests [5]. Red-flag symptoms still need checking.
"Probiotics fix everything." Effects depend on the strain and the person, and evidence for mood is limited [2].
"Therapy for IBS means my doctor thinks I'm imagining it." CBT and gut-directed hypnotherapy target gut-brain signalling and are evidence-based IBS treatments [4].
Living with a sensitive gut: the questions people ask next
Why do I get diarrhea when I'm anxious?
Stress hormones can speed up the movement of the lower gut and increase fluid in the bowel. It's a common, normal reaction, but if it happens often, talk to a doctor.
Can stress cause stomach pain without anything being wrong?
Stress can make the gut more sensitive, so normal stretching feels painful. That's a real process, not imagined pain. A doctor can rule out other causes.
Can anxiety cause nausea?
Yes. Stress can slow stomach emptying and change signals from the gut, causing nausea or loss of appetite.
Do probiotics help the gut-brain connection?
Some probiotics help some IBS symptoms, but results vary by strain and person, and evidence for mood is limited. See our gut-brain axis guide.
Is IBS a mental health condition?
No. IBS is a disorder of gut-brain interaction. Stress and mood can affect it, and it can affect mood, but it's a gut condition with real physical symptoms.
Can improving my gut improve my anxiety?
Treating gut symptoms can ease the stress they cause, and in long-term studies gut disorders predicted later anxiety [3]. But anxiety has many causes and may need its own treatment.
Living well with a sensitive gut
A sensitive gut often comes with a lot of worry: where's the nearest bathroom, will this meal cause a flare, will I have to cancel plans again. That worry is understandable — and it can also keep the gut-brain loop running. Small steps can help: planning ahead so you feel more in control, telling a trusted friend or colleague what helps, and noticing the days that go well, not just the bad ones.
It's also worth remembering that symptoms often move in waves. A rough week doesn't mean you're back at square one. Looking at your diary over a month, rather than day by day, usually gives a more accurate and more hopeful picture.
If gut symptoms make you avoid work, travel or social life, or if you're cutting out more and more foods, talk to your doctor about a referral to a gastroenterologist, a dietitian or a therapist who specializes in gut-brain therapies. These specialists work with exactly this kind of problem every day.
Gut-brain therapies: what to expect
Cognitive behavioural therapy for IBS usually runs for several weeks and focuses on how thoughts, behaviours and stress affect gut symptoms — for example, reducing avoidance and worry about bathrooms or food. Gut-directed hypnotherapy uses relaxation and guided imagery focused on the gut, often over six to twelve sessions, and is available in some places through apps as well as in person [4]. Neither means your symptoms are imagined; both aim to calm the signals between gut and brain.
A quick reset when your stomach reacts to stress
Pause, put a hand on your belly and take five slow breaths with long exhales. Loosen tight clothing, sip some water and, if you can, walk for a few minutes. These steps won't fix a gut disorder, but they can take the edge off a stress-triggered flare.
When to see a doctor
Blood in your stool, black or tarry stools, or vomiting blood.
Unexplained weight loss, fever or night sweats.
Severe or worsening abdominal pain.
Difficulty swallowing or persistent vomiting.
New bowel changes after age 45, or a family history of bowel cancer, celiac disease or inflammatory bowel disease.
Gut symptoms or anxiety that affect your daily life.
How to bring this up with your doctor
What to bring. A two-week symptom diary: pain, bloating, bowel habits, meals, stress, sleep and your cycle. Notes on what helps. Trends in sleep, resting heart rate and HRV, if you track them.
Questions to ask. Which tests do I need to rule out other causes? Could this be IBS or another disorder of gut-brain interaction? Would CBT, gut-directed hypnotherapy or a dietitian help? Which medicines might help my symptoms?
What to say. For example: "Whenever I'm stressed, I get cramps and diarrhea, and lately it happens even on calm days. It's affecting my work. What could be going on, and what can help?"
How Welltory helps — and what it cannot do
See how stress shows up in your body. A phone-camera reading measures heart rate and HRV and shows a nervous system snapshot: how activated your nervous system is and how easily it settles.
Find your patterns. With an Apple Watch or Oura ring, Welltory spots stress episodes, asks "What happened?", and after a few weeks My Patterns shows which situations most often come before stress and which before recovery. Welltory is available in English on iPhone; the best experience is with an Apple Watch or Oura ring. Spanish and other languages are coming soon.
Bring it to your appointment. Tag what was going on — meals, gut symptoms, stress, poor sleep, your cycle — each time Welltory asks "What happened?". A few weeks of trends and tagged episodes give your doctor a concrete picture instead of a vague description.
What it is, and what it is not. Welltory is a general wellness product, not a medical device. It does not diagnose IBS or any gut or mental health condition, and it does not measure gut function.
How we made it
We based this guide on reviews of gut-brain communication and the microbiota-gut-brain axis, the Rome IV definition of disorders of gut-brain interaction, a 12-year population study on the direction of the gut-brain link, a network meta-analysis of psychological therapies for IBS, and studies on the vagus nerve in gut disorders. Search questions came from what people in the United States most often ask about the gut-brain connection.
Made with AI tools, then edited and fact-checked by the Welltory team. See our Editorial & AI policy.
Jane Smorodnikova, co-founder of Welltory, built the methodology behind how we read physiological data.
Written by Tatsiana Yashyna.


Discounts for blog readers: up to 36% off
See what affects your energy, stress, sleep, and daily state with Welltory
This article is for general education and is not medical or psychological advice. If you have thoughts of harming yourself, talk to a clinician — in the US you can call or text 988. Chest pain, fainting or severe symptoms need urgent care.
Was this helpful?
Ask AI for a summary of page
Written by Jane Smorodnikova
Written by Tatsiana Yashyna
References
- Mayer EA. Gut feelings: the emerging biology of gut–brain communication. Nature Reviews Neuroscience 2011;12(8):453–466. https://doi.org/10.1038/nrn3071
- Cryan JF, O'Riordan KJ, Cowan CSM, et al. The microbiota-gut-brain axis. Physiological Reviews 2019;99(4):1877–2013. https://doi.org/10.1152/physrev.00018.2018
- Koloski NA, Jones M, Kalantar J, et al. The brain–gut pathway in functional gastrointestinal disorders is bidirectional: a 12-year prospective population-based study. Gut 2012;61(9):1284–1290. https://doi.org/10.1136/gutjnl-2011-300474
- Black CJ, Thakur ER, Houghton LA, et al. Efficacy of psychological therapies for irritable bowel syndrome: systematic review and network meta-analysis. Gut 2020;69(8):1441–1451. https://doi.org/10.1136/gutjnl-2020-321191
- Drossman DA. Functional gastrointestinal disorders: history, pathophysiology, clinical features and Rome IV. Gastroenterology 2016;150(6):1262–1279. https://doi.org/10.1053/j.gastro.2016.02.032
- Bonaz B, Bazin T, Pellissier S. The vagus nerve at the interface of the microbiota-gut-brain axis. Frontiers in Neuroscience 2018;12:49. https://doi.org/10.3389/fnins.2018.00049
- Pellissier S, Dantzer C, Mondillon L, et al. Relationship between vagal tone, cortisol, TNF-alpha, epinephrine and negative affects in Crohn's disease and irritable bowel syndrome. PLOS ONE 2014;9(9):e105328. https://doi.org/10.1371/journal.pone.0105328





