Why Do I Have Diarrhea and Stomach Pain?

Diarrhea and stomach pain happening together usually means something is irritating or inflaming your digestive tract. The most common cause is a viral stomach bug, but the combination can also come from food intolerances, medication side effects, stress, or a chronic digestive condition. What separates a minor issue from something worth investigating is how long it lasts, how severe it is, and whether other symptoms show up alongside it.

How Your Gut Produces Pain and Diarrhea

Your intestines are lined with layers of muscle that contract in a steady rhythm, pushing food from your stomach to your rectum. When something disrupts that rhythm, the contractions can become stronger and longer than normal. Those spasms are what you feel as cramping. If they push food through too quickly, your body can’t absorb enough water, and you end up with loose or watery stool.

Pain also comes from stretching. When gas, excess fluid, or stool builds up and distends the intestinal wall, nerve endings in the gut signal discomfort. Some people have more sensitive nerve endings than others, meaning the same amount of gas that wouldn’t bother one person can be genuinely painful for someone else.

Stomach Bugs: The Most Likely Culprit

Viral gastroenteritis, often called the stomach flu, is the single most common cause of sudden diarrhea with abdominal cramping. Noroviruses and rotaviruses are the usual offenders. You pick them up from contaminated food, water, or close contact with someone who’s infected. Symptoms typically include diarrhea, belly cramps, nausea, vomiting, and sometimes fever.

Bacteria like Salmonella, Campylobacter, and E. coli can cause similar symptoms, often after eating undercooked meat, contaminated produce, or improperly stored food. Bacterial infections tend to produce more intense pain and may cause bloody stool, which viral infections rarely do. Parasites are less common but worth considering if you’ve been swimming in lakes, traveling internationally, or drinking untreated water.

Most stomach bugs resolve on their own within a few days. The biggest risk is dehydration from fluid loss, so steady sipping of water or an oral rehydration solution matters more than any specific food or medication during the acute phase.

Food Intolerances and Dietary Triggers

If your symptoms show up predictably after eating certain foods, a food intolerance is likely. Lactose intolerance is the classic example. When your body doesn’t produce enough of the enzyme that breaks down the sugar in dairy, that undigested sugar passes into your colon, where bacteria ferment it. The result is gas, bloating, cramps, and diarrhea, usually within a few hours of eating dairy.

Fructose, the sugar found in fruit, honey, and many sweetened drinks, can cause the same pattern when your small intestine can’t absorb it efficiently. So can sugar alcohols (the sweeteners in sugar-free gum and candy). The telltale sign of an intolerance is a clear link between a specific food and your symptoms. Keeping a simple food diary for a week or two often reveals the connection.

Medications, Especially Antibiotics

If you recently started a new medication, that may be your answer. Antibiotics are the most frequent offenders because they kill helpful bacteria in your gut along with the harmful ones. This disrupts the balance of your gut microbiome, weakening your body’s natural defenses and allowing problematic organisms to grow.

The most serious version of this is a C. diff infection, which the CDC identifies as a specific risk after antibiotic use. Symptoms include watery diarrhea (sometimes 10 or more times a day), stomach tenderness or pain, fever, nausea, and loss of appetite. If you’re on or recently finished antibiotics and your diarrhea is severe or persistent, that combination warrants a call to your doctor.

Irritable Bowel Syndrome

When diarrhea and stomach pain keep coming back over months without a clear infection or food trigger, IBS is one of the most common explanations. It’s diagnosed when you’ve had recurring abdominal pain at least one day per week for three months, and that pain is connected to bowel movements, changes in how often you go, or changes in stool consistency. Symptoms need to have started at least six months before diagnosis.

IBS isn’t about structural damage to the intestines. It involves abnormal muscle contractions and oversensitive nerves in the digestive tract. Small amounts of gas or stool that wouldn’t register for most people can trigger real pain. Stress, poor sleep, and certain foods (especially high-fat meals, caffeine, and alcohol) tend to make flares worse. IBS is manageable but rarely curable, and treatment focuses on identifying your personal triggers and adjusting your diet accordingly.

Inflammatory Bowel Disease

Crohn’s disease and ulcerative colitis are more serious conditions where the immune system attacks the digestive tract, causing chronic inflammation. They share some symptoms with IBS but involve visible damage to the intestinal lining.

Ulcerative colitis affects only the colon, starting at the rectum and extending upward in a continuous line. Its hallmark symptoms are bloody diarrhea, urgent need to use the bathroom, and a persistent feeling that you still need to go even after a bowel movement. Cramps and bleeding tend to center in the lower abdomen.

Crohn’s disease can affect any part of the digestive tract from mouth to anus, and it often skips areas, leaving patches of healthy tissue between inflamed spots. It typically causes belly pain with nonbloody diarrhea and unintended weight loss, especially when the small intestine is involved. Both conditions require medical diagnosis and ongoing treatment.

Warning Signs That Need Urgent Attention

Most episodes of diarrhea and stomach pain are uncomfortable but not dangerous. However, certain patterns signal something more serious:

  • Sudden, severe pain that doesn’t ease within 30 minutes
  • Blood in your stool or black, tarry stools
  • High fever above 101°F alongside diarrhea
  • Continuous vomiting that prevents you from keeping fluids down
  • Severe pain in the lower right abdomen, which may indicate appendicitis
  • Signs of dehydration like dizziness, dark urine, or no urination for several hours

The American College of Emergency Physicians specifically flags continuous, severe abdominal pain or pain accompanied by continuous vomiting as potentially life-threatening. Appendicitis, pancreatitis, and ectopic pregnancy can all start with abdominal pain and need rapid treatment.

What to Eat During Recovery

You may have heard of the BRAT diet (bananas, rice, applesauce, toast) as the go-to for diarrhea. It’s not harmful, but the CDC has noted it’s unnecessarily restrictive and provides suboptimal nutrition for a recovering gut. Withholding food for more than 24 hours actually slows recovery. Early feeding decreases intestinal damage caused by infection and shortens how long you feel sick.

Better guidance: eat your normal diet as tolerated, focusing on complex carbohydrates, lean meats, yogurt, fruits, and vegetables. Avoid foods high in simple sugars, including large amounts of juice, soda, and gelatin desserts, because the sugar can pull more water into your intestines and worsen diarrhea. Stay hydrated with water, broth, or oral rehydration solutions rather than sugary drinks.

When Testing Makes Sense

Most acute diarrhea doesn’t require lab testing because it resolves before results would come back. Testing becomes worthwhile when symptoms are severe (bloody stool, high fever, intense cramping), when diarrhea lasts longer than 14 days, when you’ve recently been hospitalized, when you’re immunocompromised, or after international travel. In those situations, a stool PCR panel can identify the specific virus, bacterium, or parasite responsible, allowing for targeted treatment instead of just waiting it out.