How Anxiety Can Affect Your Digestive System (and How to Deal)

"There's quite a bit of evidence that anxiety, worry, and stress can play a major role when it comes to gastrointestinal function," says Ashkan Farhadi, MD, a gastroenterologist at MemorialCare Orange Coast Medical Center in Fountain Valley, California.
Anxiety can impact digestive motility (movement of food through the digestive tract) — either by processing food too fast, leading to diarrhea, or processing it too slowly, prompting constipation, says Dr. Farhadi. It can also increase inflammation, potentially causing or worsening digestive issues, he says. That's why recognizing the role of anxiety and working to reduce its effect can benefit not just your brain, but also your gut.
What’s the Link Between Anxiety and Digestion?
Because the messaging process is bidirectional (meaning it goes both ways), it's possible that anxiety originating in the mind can negatively affect the digestive system, and inflammation or exacerbation of gut symptoms could be a source of anxiety as well, says Farhadi.
"Many times, it's difficult to know which came first, the anxiety or the gastrointestinal difficulties, because they affect each other so much," he says. "Because of that, focusing on habits that reduce anxiety while also supporting gut health tends to be useful."
How to Deal if Anxiety Is Wreaking Havoc on Your Gut
When anxiety affects the gut, it can result in a number of symptoms, says Rudolph Bedford, MD, a gastroenterologist at Providence Saint John's Health Center in Santa Monica, California. They can include bloating, gas, abdominal pain, loss of appetite, tightness (feeling like your stomach is "in knots"), diarrhea, and constipation, he says.
Get Regular Physical Activity
When it comes to a tactic that eases both body and mind, physical activity should be at the top of the list, says Dr. Bedford.
"Exercise has been shown to be beneficial in many ways for both gut function and mental health," he says. "It can boost the immune system, lower inflammation, and affect sleep. All of those play a part in both your gastrointestinal system and your anxiety level."
Focus on Quality Sleep
Eat a Mediterranean Diet
- An emphasis on fruits, vegetables, whole grains, beans, nuts, and seeds
- Olive oil as a primary fat source
- Limited consumption of added sugars, sugary beverages, sodium, highly processed foods, refined carbohydrates, saturated fats, and processed meats
- Sticking to low-fat or fat-free dairy products
Talk With a Mental Health Professional
- Anxiety that impairs your ability to function
- Reactions that aren’t in line with situations (overreacting)
- An inability to control your anxious thoughts
- Generalized anxiety disorder (GAD)
- Social anxiety disorder
- Panic disorder
- Separation anxiety disorder
- Agoraphobia, or fear and avoidance of certain places or situations
- Specific phobias, or fears
- Selective mutism, or declining to speak in situations that cause anxiety or fear
"Addressing the potential root of your anxiety is an important aspect of managing your mental health as well as anything that might be going on with your gastrointestinal health," says Farhadi.
Connecting with a therapist, social worker, psychologist, or psychiatrist can be a helpful starting point in getting the support you need, he says.
Get Evaluated for Underlying Conditions
If you've been trying lifestyle changes that include getting more physical activity, improving sleep quality, and eating a healthy diet but you're still struggling with anxiety and gut issues, it can be helpful to check in with your health provider to see if there may be an undiagnosed condition in play, says Bedford.
"You may think your digestive problems are a result of anxiety, when in actuality they might be connected to something else like inflammatory bowel disease or another condition like irritable bowel syndrome," he says. "Often, if those conditions are managed effectively, it can improve mental health and mood as well."
Talk to your doctor about the situation, especially if symptoms have worsened over time.
The Takeaway
- Anxiety can worsen certain digestive conditions and gastrointestinal symptoms.
- Supporting gut health while easing anxiety can help both the body and mind function better.
- Some strategies for reducing anxiety's effect on the gut include regular exercise, healthy eating, and mental health support; it’s also important to look into other possible causes for your health concerns.
Resources We Trust
- Mayo Clinic: Anxiety Disorders: Symptoms & Causes
- Cleveland Clinic: What Is the Gut-Brain Connection?
- Harvard Health Publishing: The Gut-Brain Connection
- Johns Hopkins Medicine: The Brain-Gut Connection
- University of Chicago Medicine: Stress-Related Stomach Pain: When to See a Doctor
- Anxiety Disorders: Symptoms & Causes. Mayo Clinic. July 29, 2025.
- The Gut-Brain Connection. Harvard Health Publishing. July 18, 2023.
- The Gut-Brain Connection. Cleveland Clinic. September 20, 2023.
- Stress-Related Stomach Pain: When to See a Doctor. University of Chicago Medicine. January 4, 2024.
- Storer B et al. Global Prevalence of Anxiety in Gastroenterology and Hepatology Outpatients: A Systematic Review and Meta-Analysis. Current Gastroenterology Reports. February 27, 2025.
- Lin Y et al. The Effects of Physical Exercise on Anxiety Symptoms of College Students. Frontiers in Psychology. March 29, 2023.
- Al-Beltagi M et al. Exploring the Gut-Exercise Link: A Systematic Review of Gastrointestinal Disorders in Physical Activity. World Journal of Gastroenterology. June 14, 2025.
- Bard L et al. The Gut-Brain Connection: How Stress and Sleep Impact Your Gut. Society of Behavioral Medicine. July 24, 2025.
- Wang X et al. Association Between Sleep Duration and Anxiety in US Adults: A Nationally Representative Cross-Sectional Study. Psychology Research and Behavior Management. May 21, 2025.
- Adopt Good Sleep Habits. Harvard Medical School.
- Daley SF et al. Mediterranean Diet. StatPearls. January 10, 2026.
- What Is the Mediterranean Diet? American Heart Association. May 2024.
- Mediterranean Diet and Inflammation: Foods That Soothe Chronic Pain. Mayo Clinic. August 18, 2025.
- Radkhah N et al. The Effect of Mediterranean Diet Instructions on Depression, Anxiety, Stress, and Anthropometric Indices. Preventive Medicine Reports. December 2023.
- Melguizo-Ibáñez E et al. Mediterranean Diet Adherence on Self-Concept and Anxiety as a Function of Weekly Physical Activity. Frontiers in Nutrition. July 18, 2023.
- Any Anxiety Disorder. National Institute of Mental Health.
- Anxiety Disorders. Cleveland Clinic. July 3, 2024.

Yuying Luo, MD
Medical Reviewer
Yuying Luo, MD, is an assistant professor of medicine at Mount Sinai West and Morningside in New York City. She aims to deliver evidence-based, patient-centered, and holistic care ...

Elizabeth Millard
Author
Elizabeth Millard is a Minnesota-based freelance health writer. Her work has appeared in national outlets and medical institutions including Time, Women‘s Health, Self, Runner‘s Wo...