What Can Anxiety Do to Your Stomach: Symptoms & Effects

Anxiety can cause nausea, cramping, loss of appetite, diarrhea, and a churning “butterflies” sensation, among other stomach problems. These aren’t imaginary. Your brain and gut are physically wired together through a major nerve pathway, and when anxiety fires up your stress response, your digestive system feels the impact almost immediately. For most people, these symptoms fade within a few hours once the anxiety trigger passes. But chronic anxiety can lead to lasting digestive changes that take longer to resolve.

Why Your Brain Controls Your Stomach

Your gut has its own nervous system, sometimes called the “second brain,” containing millions of nerve cells that manage digestion independently. But it stays in constant two-way communication with your actual brain through the vagus nerve, a long nerve that runs from your brainstem down to your abdomen. This connection means your emotional state directly influences how your stomach and intestines behave, and gut distress can loop back to worsen your mood.

When you feel anxious, your brain activates the fight-or-flight response. Your body interprets the anxiety as a physical threat and redirects blood flow away from your digestive organs toward your muscles, heart, and lungs. Digestion slows or temporarily stops. At the same time, your adrenal glands release cortisol and adrenaline, which further disrupt the normal rhythm of your gut. Even moderate stress, like speaking in front of a group, can slow digestion enough to cause abdominal pain.

The Serotonin Connection

About 95% of your body’s serotonin is produced in your intestines, not your brain. Serotonin is best known as a mood chemical, but in the gut it plays a hands-on role in controlling muscle contractions, fluid secretion, and sensation. When anxiety triggers a surge of serotonin release from cells lining the intestinal wall, it activates receptors on the vagus nerve. That signal travels up to the brainstem, which can trigger nausea and vomiting reflexes. This is the direct mechanism behind that wave of queasiness you feel during a panic attack or intense worry.

The same serotonin surge can also speed up or slow down the muscular contractions that move food through your intestines. That’s why anxiety can cause diarrhea in some people and constipation in others, sometimes alternating between the two.

Common Stomach Symptoms From Anxiety

The specific symptoms vary from person to person, but the most frequently reported include:

  • Nausea, sometimes with dry heaving, triggered by serotonin activating the vagus nerve
  • Stomach cramps or pain, caused by slowed digestion and changes in blood flow
  • Diarrhea or loose stools, from sped-up intestinal contractions
  • Loss of appetite, driven by cortisol and shifts in hunger hormones
  • Bloating and fullness, from food sitting in the stomach longer than normal
  • Acid reflux or heartburn, from increased gastric acid production under stress

During acute anxiety, like a panic attack, these symptoms typically resolve within a few hours once the stressful trigger passes. If stomach pain persists for more than a day after the anxiety has subsided, something else may be contributing.

Anxiety and Appetite Changes

Anxiety can push your appetite in either direction. During acute stress, the fight-or-flight response suppresses hunger because your body prioritizes survival over eating. But when stress becomes chronic, elevated cortisol levels increase the secretion of ghrelin, the hunger hormone produced primarily in the stomach. Higher ghrelin drives stronger cravings, particularly for calorie-dense foods, which is one reason prolonged anxiety can lead to weight gain.

Leptin, the hormone that signals fullness, normally keeps ghrelin in check. But chronic cortisol elevation can disrupt this balance. Some people lose weight during anxious periods because they can’t bring themselves to eat, while others find themselves eating compulsively. Both patterns trace back to the same hormonal disruption.

Irritable Bowel Syndrome and Anxiety

The overlap between anxiety and IBS is striking. IBS affects 5 to 10% of the global population, and people with IBS have a threefold higher risk of anxiety compared to those without it. In one large analysis, 39% of people with IBS also experienced anxiety symptoms. The relationship runs in both directions: longitudinal studies show that people with anxiety who don’t initially have gut problems tend to develop them over time, while people diagnosed with IBS who start without anxiety often develop it later.

This bidirectional pattern reinforces how tightly linked the gut and brain really are. It’s not that anxiety “causes” IBS or vice versa. They amplify each other through the same nerve pathways and chemical messengers.

Functional Dyspepsia

Some people with anxiety develop persistent upper stomach discomfort that doesn’t show up on any scan or scope. This is called functional dyspepsia, and it affects over 20% of the population. The symptoms include burning or pain in the upper abdomen, feeling uncomfortably full after eating small amounts, and early satiety where you can’t finish a regular meal. For a formal diagnosis, these symptoms need to be present for at least three months with no structural explanation found on imaging or endoscopy. Anxiety is one of the strongest drivers of functional dyspepsia, likely through its effects on gastric motility and visceral sensitivity.

Can Anxiety Actually Cause Ulcers?

For decades, doctors debated whether stress could cause stomach ulcers or just make existing ones worse. A large prospective study of a Danish population cohort found that psychological stress independently increases the risk of peptic ulcers, regardless of whether the person carries H. pylori bacteria or uses anti-inflammatory drugs like ibuprofen. Stress was an independent predictor of ulcer development, partly because it increases gastric acid production and partly because anxious people are more likely to smoke, drink, or skip meals, all of which raise ulcer risk further.

What Chronic Anxiety Does Over Time

When anxiety becomes a long-term condition rather than an occasional spike, the effects on your gut go deeper than symptoms you can feel. Research on adolescents experiencing high chronic stress found significantly lower diversity in their gut bacteria compared to less-stressed peers. Specifically, beneficial bacterial populations known to produce short-chain fatty acids, compounds that nourish the gut lining and reduce inflammation, were depleted. These included bacteria from the Faecalibacterium and Ruminococcus groups, both associated with healthy digestion.

Reduced microbial diversity matters because a less diverse gut microbiome is linked to increased inflammation, weakened immune function, and greater vulnerability to digestive disorders. The gut bacteria also produce neurotransmitters that influence mood, creating yet another feedback loop: chronic anxiety reduces gut bacterial health, which can then worsen anxiety symptoms.

How Long Stomach Symptoms Last

Acute anxiety-related stomach symptoms, the kind triggered by a specific event like an exam or a confrontation, typically resolve within a few hours once the situation passes. Your digestive system returns to normal as cortisol and adrenaline levels drop. If an upset stomach lasts more than a day after the anxiety has clearly subsided, something beyond stress may be involved.

Chronic anxiety is a different story. When the stress response stays activated for weeks or months, gut symptoms can become persistent and may not resolve on their own even during calmer periods. The gut microbiome changes, sensitivity to normal digestive sensations increases, and the gut-brain communication loop can essentially get stuck in a heightened state. Treating the anxiety itself, whether through therapy, lifestyle changes, or other approaches, is often the most effective path to resolving the stomach symptoms that come with it.