Can Depression and Anxiety Cause Stomach Problems?

Yes, depression and anxiety can directly cause stomach problems. The brain and the digestive system are in constant two-way communication, and when one is disrupted, the other follows. People with anxiety or depression commonly experience nausea, cramping, bloating, diarrhea, constipation, and generalized stomach pain that doesn’t improve with standard GI treatments. The CDC lists unexplained stomach problems as a recognized symptom of both conditions.

How Your Brain Controls Your Gut

Your digestive system has its own nervous system, sometimes called the “second brain,” containing hundreds of millions of nerve cells that operate semi-independently from your brain. But the two systems are deeply linked through what researchers call the gut-brain axis: a network of nerve signals, hormones, and immune messengers that run in both directions between your head and your stomach.

The vagus nerve is the primary highway in this system. It carries an extensive range of signals from the digestive organs to the brain and back again. Most of that traffic is actually flowing upward, with your gut sending sensory information to the brain rather than the other way around. When you feel stressed or anxious, your sympathetic nervous system (the “fight or flight” system) reduces blood flow to the gut and slows intestinal activity, redirecting resources to the heart and muscles. This is useful if you’re running from danger. It’s much less useful if the stress is chronic.

When stress activates the brain’s alarm system, the hypothalamus triggers a hormonal cascade that ultimately floods the body with cortisol. Cortisol affects the gut in multiple ways: it changes how fast food moves through your digestive tract, alters the protective mucus lining of your intestines, and shifts the composition of your gut bacteria. The result is a digestive system that’s physically different from the one you’d have in a calm, rested state.

What Stress Does to Digestion

Research on stress and gut motility shows a consistent pattern. Stress slows the stomach down while speeding up the colon. Specifically, it inhibits gastric emptying (food sits in your stomach longer, causing fullness and nausea) and stimulates colonic motility (food rushes through the large intestine, causing cramping and diarrhea). It also increases sensitivity to colorectal distension, meaning normal amounts of gas or stool that you wouldn’t usually notice start to feel painful.

These effects happen through the autonomic nervous system, not just through cortisol. Even in animal studies where researchers removed the adrenal glands (eliminating cortisol entirely), the stomach still slowed down under stress. This means the nerve connections alone are enough to cause digestive symptoms, independent of stress hormones.

The Serotonin Connection

About 90% of the body’s serotonin, the chemical most associated with mood regulation, is actually produced in the gastrointestinal tract. Only 1 to 2% is made by neurons in the brain. Serotonin in the gut helps regulate how food moves through the intestines, how much fluid the lining secretes, and how sensitive the gut nerves are to pain. When serotonin signaling is disrupted, as it is in both depression and many digestive disorders, both mood and digestion suffer simultaneously.

This shared chemistry helps explain why medications that target serotonin can affect both mood and gut function, and why depression and stomach problems so often appear together rather than one simply causing the other.

IBS, Functional Dyspepsia, and Mental Health

The overlap between digestive disorders and mental health conditions is striking. People with irritable bowel syndrome have a threefold higher risk of anxiety and depression compared to people without it. In one large meta-analysis, 39% of people with IBS had anxiety symptoms and 29% had depression symptoms. Nearly a quarter (23%) had both at the same time.

Functional dyspepsia, a condition defined by chronic upper stomach discomfort, fullness after meals, and burning without any identifiable physical cause, shows the same pattern. A large global study using standardized diagnostic criteria found that meeting the symptom threshold for functional dyspepsia was significantly associated with anxiety and depression, lower quality of life, and more frequent visits to healthcare providers. The condition is more common in women and younger adults, both groups with higher rates of psychological distress.

The relationship runs in both directions. Depression changes the bacterial environment in the gut, and an altered gut environment can worsen mood. When researchers transplanted fecal bacteria from depressed human patients into rats, those rats developed depressed behavior. The gut wasn’t just responding to the brain’s distress; it was capable of transmitting it.

How Gut Bacteria Shift With Mood Disorders

People with depression and anxiety have measurably different populations of gut bacteria compared to healthy individuals. Several patterns show up repeatedly in research. People with depression tend to have lower levels of bacteria from the genera Coprococcus, Dialister, and Faecalibacterium, all of which produce short-chain fatty acids that help maintain the intestinal lining and reduce inflammation. Meanwhile, bacteria associated with inflammation, such as Eggerthella and certain Proteobacteria, tend to be elevated.

In people who have both IBS and anxiety or depression, the bacterial shifts are even more pronounced. Bacteroides, Prevotella, and Proteobacteria are more prevalent than in healthy individuals. This microbial imbalance, known as dysbiosis, is associated with increased intestinal permeability, sometimes described as “leaky gut.” When the intestinal barrier becomes more permeable, bacterial byproducts can enter the bloodstream and trigger low-grade systemic inflammation, which in turn can affect brain function through the vagus nerve and the immune system.

Some of these gut bacteria produce neurotransmitters directly. Certain strains produce GABA (the brain’s main calming chemical), histamine, and other compounds that stimulate intestinal nerves and, through the vagus nerve, influence the central nervous system. Lactobacillus and Bifidobacterium species have been found to reduce depression symptoms in both animal and human studies.

Why Standard GI Treatments May Not Work

If anxiety or depression is driving your stomach symptoms, treatments aimed only at the gut often fall short. Antacids won’t fix cramping caused by stress-accelerated colonic motility. Anti-nausea medication won’t address the slowed gastric emptying triggered by your nervous system. This is why unexplained stomach problems that don’t respond to conventional treatment are considered a hallmark of underlying depression or anxiety.

The most effective approaches tend to address both the brain and the gut. Cognitive behavioral therapy designed specifically for IBS has strong evidence behind it. A systematic review and network meta-analysis published in The Lancet Gastroenterology & Hepatology found that CBT reduced the likelihood of IBS symptoms persisting by about 35% compared to a waitlist control, based on nine trials involving over 1,100 patients. Minimal-contact CBT, which requires less therapist time, performed even better, cutting the risk of ongoing symptoms by 45%. For patients with symptoms that hadn’t responded to other treatments, group CBT cut the risk of persistent symptoms in half.

Gut-directed hypnotherapy is another option with solid evidence. It uses targeted relaxation and visualization to reduce the gut’s sensitivity to stress signals, and it works through many of the same nerve pathways that cause the problem in the first place.

Treatments That Target Both Systems

Low-dose antidepressants are sometimes prescribed specifically for gut symptoms, at dosages below what would be used for depression itself. Tricyclic antidepressants at doses of 25 to 125 mg per day, well below the standard psychiatric range, produce at least a moderate improvement in more than 85% of IBS patients in clinical use. Doctors typically start at very low doses (10 mg per day) and increase gradually, since people with sensitive guts often react strongly to medication side effects.

Addressing vagal tone, the baseline activity level of the vagus nerve, is another angle. Higher vagal tone is associated with better stress regulation and calmer gut function. Practices that increase vagal tone, including slow breathing exercises, meditation, and yoga, have been shown to help with both mood and anxiety symptoms and may help break the cycle of brain-gut distress.

Probiotic supplementation, particularly strains of Lactobacillus and Bifidobacterium, has shown promise for both mood and digestive symptoms, though research is still working out which strains, doses, and combinations are most effective. Dietary changes that reduce gut inflammation and support microbial diversity, such as increasing fiber intake and reducing highly processed foods, address the problem from the gut side of the axis.

Recognizing the Pattern

The stomach problems linked to anxiety and depression can look like almost any digestive complaint: nausea, bloating, diarrhea, constipation, abdominal pain, early fullness after eating, or a burning sensation in the upper stomach. What distinguishes them is the pattern. They tend to worsen during periods of high stress or low mood. They may shift between different symptoms rather than sticking to one. And they persist despite normal test results and standard treatments.

If your stomach has been giving you trouble and your doctor hasn’t found a clear physical cause, the connection to your mental health is worth exploring. The gut-brain axis means these aren’t “imaginary” symptoms or “just stress.” They’re the predictable, measurable, physical consequence of a nervous system under pressure, and they respond to treatment once the right target is identified.