Anxiety causes stomach pain because your brain and your gut are directly wired together through a major nerve highway, and when your brain senses threat, it sends signals that physically change how your stomach works. This isn’t imaginary pain or “all in your head.” The discomfort you feel during anxiety is a real, measurable change in how your digestive system functions, driven by stress hormones and nerve signals that can increase stomach acid, alter muscle contractions, and redirect blood flow away from your gut.
Your Brain and Gut Share a Direct Line
The vagus nerve is the longest nerve in your body, running from your brainstem all the way down to your intestines. It acts as a two-way communication cable between your brain and your digestive system. When the emotional centers of your brain, including the regions that process fear and threat, become activated during anxiety, they send signals down through the vagus nerve directly to the muscles and nerves lining your stomach and upper intestine.
Your gut has its own nervous system, sometimes called the “second brain,” containing hundreds of millions of nerve cells embedded in the walls of your digestive tract. These neurons control everything from the churning motion that moves food along to the release of digestive enzymes. When stress signals arrive from above, this local nervous system responds immediately, changing how your stomach contracts, how much acid it produces, and how quickly (or slowly) food moves through.
This is why anxiety-related stomach pain can feel so different from person to person. Some people get sharp cramps. Others feel a dull, heavy nausea, or a sensation of their stomach “dropping.” The specific symptoms depend on which gut functions get disrupted by the stress signals your brain is sending.
What Stress Hormones Do to Your Digestion
When anxiety kicks off your fight-or-flight response, your body floods with cortisol and adrenaline. These hormones are designed to prepare you for physical danger, which means they prioritize muscles, heart, and lungs over everything else. Digestion becomes a low priority. Blood flow gets redirected away from your digestive organs and toward your limbs, starving your gut of the oxygen and resources it needs to function normally.
Cortisol specifically increases stomach acid production. If you’ve ever noticed a burning or gnawing sensation in your stomach during a stressful period, that’s excess acid irritating your stomach lining without enough food to absorb it. At the same time, stress hormones can either speed up or slow down the muscle contractions that move food through your intestines. This is why anxiety can cause diarrhea in some people and constipation in others, sometimes alternating between the two. The slowing of digestion in your stomach can also create that uncomfortable feeling of fullness, bloating, or food just sitting there like a brick.
Why Chronic Anxiety Makes It Worse
A single anxious episode can give you a stomachache that resolves once you calm down. But ongoing anxiety creates a feedback loop that can make gut problems progressively worse over time. Research published in the Proceedings of the National Academy of Sciences found that the gut bacteria of people with social anxiety disorder are measurably different from those without it, and that these bacterial changes alone can alter immune function and stress hormone regulation. When researchers transferred gut bacteria from people with social anxiety into animals, the recipients developed heightened fear responses along with changes in immune signaling and brain inflammation markers.
This means the relationship between anxiety and stomach problems runs in both directions. Anxiety disrupts your gut, and a disrupted gut sends signals back to your brain that can intensify anxiety. Chronic stress can even weaken the barrier that protects your brain from inflammatory molecules in your bloodstream, potentially making you more sensitive to stress over time. The longer this cycle runs, the more entrenched both the anxiety and the digestive symptoms can become.
Common Patterns of Anxiety-Related Stomach Pain
Anxiety stomach pain tends to follow certain patterns that distinguish it from other causes. It usually shows up during or just before a stressful situation: a presentation, a social event, a period of worry. It often comes with other anxiety symptoms like a racing heart, shallow breathing, sweaty palms, or muscle tension. The pain frequently localizes in the upper abdomen or around the navel, though it can be more diffuse.
You might notice:
- Nausea without vomiting, especially in the morning or before events
- Cramping or churning that eases once the stressful situation passes
- Loss of appetite during anxious periods, followed by normal hunger when you’re calm
- Bloating and gas that doesn’t seem connected to what you ate
- Urgency to use the bathroom right before something stressful
People who deal with this regularly sometimes develop anticipatory anxiety about the stomach pain itself, worrying that their gut will act up in a situation where it would be embarrassing. This creates yet another layer of the anxiety-gut cycle.
How to Calm Your Stomach During Anxiety
The fastest way to interrupt the stress signal reaching your gut is to activate the same nerve that’s causing the problem. Diaphragmatic breathing, where you breathe deeply into your belly rather than shallowly into your chest, directly stimulates the vagus nerve and triggers your body’s relaxation response. This shifts your nervous system from fight-or-flight mode back toward its rest-and-digest state, which is exactly what it sounds like: the mode where your body prioritizes normal digestive function.
To practice this, place one hand on your chest and one on your belly. Breathe in slowly through your nose for about four seconds, letting your belly push outward while your chest stays relatively still. Exhale slowly for six to eight seconds. Even two or three minutes of this can produce a noticeable shift in stomach discomfort. Johns Hopkins Medicine notes that diaphragmatic breathing can help manage symptoms of irritable bowel syndrome, anxiety, and chronic pain.
Beyond breathing, regular physical activity helps regulate the stress hormone cycle that disrupts digestion. Eating smaller, more frequent meals during high-anxiety periods puts less demand on a gut that’s already operating with reduced blood flow. Avoiding caffeine and alcohol when you’re anxious is also practical, since both increase stomach acid production on top of what stress hormones are already doing. For people whose anxiety-related gut symptoms are frequent or severe, treating the anxiety itself, through therapy, lifestyle changes, or medication, often resolves the stomach problems more effectively than targeting the gut alone.
Signs Your Stomach Pain Isn’t From Anxiety
While anxiety is a very common cause of stomach pain, certain symptoms suggest something else is going on and shouldn’t be attributed to stress. Pay attention if your stomach pain comes with fever, unexplained weight loss, blood in your stool or vomit, or vomit that looks like coffee grounds. Black, tarry stools are another signal that something beyond anxiety needs attention. Pain that is sudden, severe, and getting worse, especially if it radiates to your back, groin, or legs, requires immediate medical evaluation.
Anxiety-related stomach pain also shouldn’t wake you from sleep. If your pain consistently disrupts your sleep or occurs completely independent of any identifiable stress, it’s worth investigating other causes. The key distinction is pattern: anxiety stomach pain tracks with your emotional state, worsening during stress and improving during calm. Pain that follows its own schedule, regardless of how you’re feeling emotionally, likely has a different origin.