Doctors Note Logo

Published on: 7/15/2026

What could cause upper stomach pain with diarrhea?

Upper stomach pain with diarrhea is most commonly caused by a gut infection such as gastroenteritis (often called a "stomach bug"), or by inflammation in the stomach and intestines. Other possible causes include food poisoning, irritable bowel syndrome (IBS), inflammatory bowel disease (IBD), or a reaction to certain foods or medications. Symptoms typically include cramping, nausea, bloating, and loose or watery stools.

Because these symptoms can stem from many different conditions—some mild and self-limiting, others requiring medical attention—it's important to identify the likely cause early so you can take the right next steps. A free, instant, online symptom check can help you understand what may be driving your discomfort, when to see a doctor, and how to find relief faster. It takes just a few minutes and could save you unnecessary worry.

Reviewed for medical accuracy: 07/14/2026

answer background

Explanation

When you have pain in the upper part of your stomach along with diarrhea, it is likely that your digestive system is reacting to an irritant or infection.

One common reason for these symptoms is acute gastroenteritis, which is usually due to a virus or bacteria. This infection can make your stomach hurt and cause you to have diarrhea as your body tries to flush out the germs.

In some situations, such an infection can also lead to inflammation of the stomach lining (gastritis), which can add to the pain. Food poisoning from contaminated food or water is another possibility that might trigger both abdominal pain and loose stools. These conditions often come on quickly and can be accompanied by other symptoms like nausea, vomiting, or even a fever as your body fights off the infection.

Since these symptoms can be uncomfortable and sometimes lead to dehydration, it is important to drink plenty of fluids and use a free symptom checker to better understand what might be causing your discomfort and whether you should seek medical attention if the pain and diarrhea last too long or worsen.

(References)

  • Sherman R. Abdominal Pain. In: Walker HK, Hall WD, Hurst JW, editors. Clinical Methods: The History, Physical, and Laboratory Examinations. 3rd edition. Boston: Butterworths; 1990. Chapter 86. Available from: https://www.ncbi.nlm.nih.gov/books/NBK412/

  • Nemeth V, Pfleghaar N. Diarrhea. [Updated 2022 Nov 21]. In: StatPearls [Internet].

  • Patterson JW, Kashyap S, Dominique E. Acute Abdomen. [Updated 2023 Jul 10]. In: StatPearls [Internet].

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.