Stomach pain paired with diarrhea is one of the most common reasons people search for medical advice, and the vast majority of episodes trace back to infections, food reactions, or stress. Most bouts resolve within a few days without treatment. But the combination can also be an early sign of chronic conditions like inflammatory bowel disease or celiac disease, and in rare cases it signals a surgical emergency. Knowing what is likely causing your symptoms and which warning signs demand prompt attention can save you both unnecessary worry and dangerous delay.
The Most Common Cause: Infections
When stomach pain and diarrhea hit suddenly, an infection is the likeliest explanation. Viruses like norovirus and rotavirus are responsible for the bulk of acute gastroenteritis worldwide. Bacterial food poisoning from organisms like Staphylococcus aureus tends to come on fast, often within hours of eating contaminated food, with nausea and violent vomiting that may or may not be accompanied by diarrhea. These episodes are usually self-limiting, meaning they clear up on their own, and only occasionally require hospitalization.1PubMed Central. Food poisoning and Staphylococcus aureus enterotoxins
Bacterial infections from Salmonella, Campylobacter, or pathogenic E. coli strains tend to cause more prolonged illness, sometimes with bloody stools and fever. These are commonly acquired through undercooked poultry, contaminated produce, or untreated water. Parasitic infections, while less common in high-income countries, are a significant cause of persistent diarrhea in travelers and in certain regions. A study from a tertiary care hospital in North India found protozoan parasites, primarily Entamoeba histolytica and Giardia lamblia, in about one in ten adults with chronic diarrhea.2PubMed Central. Parasitic causes of persistent/chronic diarrhea in adults attending the tertiary care hospital, North India Giardia in particular is worth knowing about if you hike or travel internationally, since it thrives in freshwater sources and causes greasy, foul-smelling diarrhea that can drag on for weeks if untreated.
Food Intolerances and Malabsorption
If your symptoms recur in a pattern tied to eating but you never develop a fever, a food intolerance is a strong possibility. Lactose intolerance is the best-known example: without enough of the enzyme that breaks down milk sugar, undigested lactose pulls water into the small intestine by osmotic force and then gets fermented by gut bacteria, producing gas, bloating, cramps, and diarrhea. The same basic mechanism applies to a broader category of poorly absorbed carbohydrates known collectively as FODMAPs. These short-chain sugars, found in foods like onions, garlic, wheat, apples, and certain sweeteners, draw water into the intestine and deliver easily fermented material to the colon, where bacterial fermentation causes distension and pain.3PubMed. How do FODMAPs work?4PubMed. Evidence-based dietary management of functional gastrointestinal symptoms: The FODMAP approach
Celiac disease sits in a different category, though its symptoms overlap. It is an autoimmune condition triggered by gluten in genetically predisposed people, and it affects roughly 1% of the general population. In young children, the classic presentation includes chronic diarrhea, poor growth, and a bloated abdomen, but in adults the symptoms are often subtler and may include fatigue, iron-deficiency anemia, or joint pain alongside intermittent gut trouble.5JAMA Pediatrics. Celiac Disease: A Review Unlike a simple food intolerance, celiac disease causes actual damage to the intestinal lining, which is why diagnosis matters even when symptoms seem mild.
Irritable Bowel Syndrome
IBS is the most common condition referred to gastroenterologists and is defined by recurring abdominal pain linked to changes in bowel habits, whether diarrhea, constipation, or both.6PubMed Central. The Role of Visceral Hypersensitivity in Irritable Bowel Syndrome: Pharmacological Targets and Novel Treatments What makes IBS frustrating is that standard tests come back normal. There is no visible inflammation, no infection, and no structural problem. The issue appears to be a heightened sensitivity of the nerves in the gut wall. People with the diarrhea-predominant form of IBS have measurably lower thresholds for sensing distension in the rectum and colon compared to healthy controls, meaning normal amounts of gas or stool trigger pain signals that other people would not feel.7PubMed Central. Altered profiles of fecal metabolites correlate with visceral hypersensitivity and may contribute to symptom severity of diarrhea-predominant irritable bowel syndrome
Research has also found that levels of a nerve growth factor called BDNF are elevated in the intestinal lining of people with diarrhea-predominant IBS, and that these levels correlate with the severity of abdominal pain.8PubMed Central. Increased expression of brain-derived neurotrophic factor is correlated with visceral hypersensitivity in patients with diarrhea-predominant irritable bowel syndrome In practical terms, this means IBS is not “all in your head,” but neither is it a disease you can see on a scan. A low-FODMAP diet, stress management, and targeted medications remain the main tools for managing it.
Inflammatory Bowel Disease
Crohn’s disease and ulcerative colitis are the two major forms of inflammatory bowel disease, and both can cause abdominal pain and diarrhea that persist for weeks or months. Unlike IBS, these conditions involve real, measurable inflammation of the intestinal wall, and the diarrhea in ulcerative colitis often contains blood or mucus.9PubMed Central. Inflammatory bowel disease: clinical aspects and treatments Abdominal pain is one of the most common and burdensome symptoms across both conditions.10PubMed Central. Abdominal Pain in Inflammatory Bowel Disease: An Evidence-Based, Multidisciplinary Review
The diarrhea in ulcerative colitis is driven primarily by inflammation, while in Crohn’s disease both inflammatory and non-inflammatory mechanisms contribute. Crohn’s can affect any part of the digestive tract, and when it involves the lower small intestine it may interfere with bile acid absorption, producing watery diarrhea even in areas where inflammation is not severe.11PubMed. Mechanisms of diarrhea in inflammatory bowel diseases If you have persistent diarrhea lasting more than four weeks, especially with blood, unexplained weight loss, or fevers, IBD is one of the conditions your doctor will want to rule out.
One useful screening tool is fecal calprotectin, a protein released by white blood cells in the gut. A stool test measuring calprotectin can help distinguish IBD from IBS with a high degree of confidence. A normal result makes IBD very unlikely, which can spare you from an unnecessary colonoscopy.12PubMed Central. Fecal Calprotectin for the Diagnosis and Management of Inflammatory Bowel Diseases
Medications That Cause Gut Trouble
Two categories of common medications deserve special attention. The first is nonsteroidal anti-inflammatory drugs like ibuprofen and naproxen. These work by blocking enzymes involved in inflammation, but those same enzymes also help protect the stomach lining. Regular NSAID use can cause mucosal injury throughout the entire gastrointestinal tract, ranging from mild stomach discomfort to ulceration and bleeding.13PubMed Central. Effects of Non-steroidal Anti-inflammatory Drugs (NSAIDs) and Gastroprotective NSAIDs on the Gastrointestinal Tract: A Narrative Review Roughly 1 to 2% of NSAID users experience a serious gastrointestinal complication during treatment, a number that climbs with higher doses, longer use, and older age.14PubMed Central. Nonsteroidal anti-inflammatory drugs and upper and lower gastrointestinal mucosal damage If you are taking an NSAID daily for joint pain or headaches and start developing stomach pain or loose stools, the medication itself is a prime suspect.
The second major culprit is antibiotics. Antibiotic-associated diarrhea is one of the most common side effects of antibiotic use, and while most cases are mild, a subset are caused by Clostridioides difficile, a bacterium that can flourish when antibiotics wipe out competing gut flora.15PubMed Central. Clostridium difficile infection and antibiotic-associated diarrhoea C. difficile infection ranges from nuisance-level diarrhea to life-threatening colitis. Risk factors include not just antibiotic exposure but also prolonged stays in healthcare settings, older age, immune-suppressing conditions, and use of proton pump inhibitors.16PubMed Central. Clostridium difficile associated infection, diarrhea and colitis If you develop watery diarrhea during or shortly after a course of antibiotics, especially with fever or severe cramps, ask your doctor about testing for C. difficile rather than assuming it will pass.
Stress and the Gut-Brain Connection
You have probably noticed that anxiety or emotional stress can send you running to the bathroom. This is not coincidence or weakness. The gut has its own vast nervous system, and it communicates constantly with the brain. Both acute and chronic stress can alter how the gut moves, how much fluid it secretes, and how sensitive its nerves are to stimulation. Chronic stress is associated with widespread changes in gut function that may increase susceptibility to gastrointestinal disorders and infection.17PubMed Central. The impact of acute and chronic stress on gastrointestinal physiology and function: a microbiota-gut-brain axis perspective This helps explain why IBS symptoms often flare during periods of high stress, and why anxiety disorders and gut disorders so frequently travel together. It also means that for some people, managing their mental health is one of the most effective things they can do for their digestion.
When Pain Might Be Appendicitis
One of the trickiest situations is telling the difference between simple gastroenteritis and early appendicitis, because both can start with abdominal pain and diarrhea. The classic teaching is that appendicitis pain starts vaguely around the navel and migrates to the lower right abdomen, but in practice, especially in children, diarrhea can be present early and muddy the picture. Research has identified several features that help distinguish the two: in appendicitis, the first pain tends to be persistent and is not fully relieved by having a bowel movement, whereas in gastroenteritis, the cramping pain comes in waves and eases after defecation.18JAMA Surgery. Diagnosis of Acute Appendicitis in the Presence of Diarrhea Localized tenderness in the right lower abdomen, especially combined with elevated inflammatory markers, strongly favors appendicitis over a stomach bug.19PubMed Central. Making a Decision between Acute Appendicitis and Acute Gastroenteritis
The practical takeaway: if your pain is getting worse rather than better, has settled into one spot on the right side, and walking or coughing makes it sharper, get evaluated promptly. Appendicitis that is caught early is a straightforward surgery. Appendicitis that is missed can lead to a rupture and a much more dangerous situation.
How to Handle Mild Episodes at Home
For the garden-variety stomach bug or food reaction, the main risk is dehydration, not the illness itself. The intestine has a built-in rescue mechanism: even when diarrhea is severe, the sodium-glucose transport system in the gut lining usually keeps working. This is the principle behind oral rehydration solutions, which use a specific balance of salt and sugar to pull water back into your body through the intestinal wall.20PubMed. The use of oral rehydration solutions in children and adults Plain water helps, but if you are losing a lot of fluid, an oral rehydration solution or something with electrolytes will rehydrate you faster. The ratio of sodium to glucose matters for how effectively the fluid gets absorbed.21PubMed. Principles and Practice of Oral Rehydration
As for eating, the old advice to fast or stick to clear liquids for days turns out to be overly cautious. Research in children recovering from acute gastroenteritis has shown that early refeeding with a lactose-free formula improved nutritional recovery and may actually help the intestinal lining heal faster.22PubMed. Refeeding during recovery from acute diarrhea The same principle applies broadly: once your nausea subsides, eating bland, easily digestible food is better than waiting. Avoid dairy if you suspect lactose intolerance is worsening the diarrhea, but otherwise resume a normal diet as soon as you can tolerate it.
Certain probiotic strains have shown benefit in shortening bouts of acute gastroenteritis. The most studied include Lactobacillus rhamnosus GG, Lactobacillus reuteri, and Saccharomyces boulardii.23PubMed Central. Efficacy of the Probiotic Probiotical Confirmed in Acute Gastroenteritis Not all probiotic products contain these specific strains at effective doses, so grabbing a random yogurt off the shelf is not the same thing. If you want to try probiotics, look for products listing one of those strains on the label.
Children and Dehydration
Kids deserve a separate mention because they dehydrate faster than adults and cannot always communicate how they are feeling. The three most reliable clinical signs that a child has reached a concerning level of dehydration are delayed capillary refill (press the fingernail and see how quickly the pink color returns), poor skin turgor (skin that stays tented when pinched), and an abnormal breathing pattern.24PubMed. The management of children with gastroenteritis and dehydration in the emergency department A child who is producing fewer wet diapers, has no tears when crying, or seems unusually sleepy or irritable should be seen by a doctor that day. For young infants, the threshold is even lower: any significant diarrhea in a baby under six months warrants medical advice rather than a wait-and-see approach.
Less Common Causes Worth Knowing About
If the usual suspects have been ruled out and symptoms keep coming back, doctors start thinking about less common possibilities. Ischemic colitis, where blood flow to part of the colon drops enough to cause inflammation and damage, is one example. Most clinicians associate it with elderly patients who have cardiovascular disease, but it can occur in younger people with different risk factors, making diagnosis tricky. While the majority of patients respond to conservative management, roughly 20% require surgery, and outcomes in surgical cases carry high complication rates.25PubMed Central. Ischemic colitis.
Neuroendocrine tumors, though rare, are another cause of otherwise unexplained chronic diarrhea. These tumors can secrete hormones that directly stimulate the gut to produce excess fluid. At least eight different types of hormone-secreting tumors have been identified as causes of chronic diarrhea, including carcinoid syndrome and VIPomas.26PubMed. Overview of chronic diarrhea caused by functional neuroendocrine neoplasms In practice, these diagnoses are made after common causes have been systematically excluded, and they are worth mentioning mainly so that people with long-standing, undiagnosed symptoms know that the diagnostic workup can go deeper than standard blood tests and stool cultures. Diarrhea from neuroendocrine tumors can also result from treatments like surgery that cause pancreatic insufficiency or shortened bowel length, adding complexity to management even after the underlying tumor is found.27PubMed Central. Differential Diagnosis and Management of Diarrhea in Patients with Neuroendocrine Tumors
When to Get Medical Help
Most stomach pain and diarrhea episodes resolve without any medical intervention. But there are specific situations where waiting it out is the wrong call. You should seek care if you notice any of the following:
- Blood in stool: Visible blood or black, tarry stools suggest bleeding somewhere in the GI tract and need evaluation.
- High fever: A temperature above 101.3°F (38.5°C) with diarrhea points toward a bacterial infection that may need targeted treatment.
- Severe dehydration signs: Dizziness on standing, very dark urine, dry mouth, or rapid heartbeat mean your fluid losses are outpacing what you are replacing.
- Persistent pain in one location: Diffuse, crampy pain that comes and goes is typical of gastroenteritis. Pain that settles in one area and gets steadily worse could indicate appendicitis, diverticulitis, or another surgical condition.
- Symptoms lasting beyond a week: A viral stomach bug should improve within three to five days. Diarrhea that stretches past seven days may reflect a parasitic infection, an inflammatory condition, or something else that requires testing.
- Recent antibiotic use: Diarrhea starting during or within a few weeks of finishing antibiotics, especially if watery and frequent, warrants testing for C. difficile.
- Recent travel: Diarrhea persisting after travel to areas with limited water sanitation may be parasitic and requires stool testing.
The core of initial management for any diarrheal illness is a careful assessment for dehydration and risk of complications. In an emergency setting, doctors use the clinical history and physical exam to gauge severity before ordering tests or imaging. For most people at home, the practical version of this is: track how much you are drinking, watch the color of your urine, and pay attention to whether your pain is improving or worsening over the first 24 to 48 hours. Improvement means your body is handling it. Worsening means something else may be going on, and that is the signal to stop managing at home and get help.