Doctors Note Logo

Published on: 9/15/2026

How do I stop stomach pain that comes in waves with diarrhea?

Cramping stomach pain that comes in waves with diarrhea is often caused by intestinal spasms from a stomach bug, food poisoning, IBS, or lactose intolerance, and relief usually starts with clear fluids or oral rehydration solution, small bland meals, a heating pad on the abdomen, and rest, while limiting caffeine, alcohol, dairy, and greasy or high-sugar foods. Anti-diarrheal medicine like loperamide can calm the waves in simple cases, but it should be avoided if you have bloody stools or a high fever, and there are several other important factors to consider before using it, as explained below. Warning signs that need prompt medical care include severe or one-sided pain, pain lasting more than 48 hours, blood in the stool, vomiting that prevents drinking, dizziness, no urination, or fever above 102°F. Because appendicitis, gallbladder attacks, C. difficile, and inflammatory bowel disease can mimic ordinary cramps, matching your exact pattern of symptoms matters more than treating the pain alone. If you want clarity fast, a free, instant, online symptom check can help you sort likely causes from urgent ones and show what step to take next, in just a few minutes and without an appointment.

Last reviewed for medical accuracy: 09/14/2026

answer background

Explanation

How to Stop Stomach Pain That Comes and Goes in Waves with Diarrhea

Experiencing stomach pain that comes and goes in waves with diarrhea can be both uncomfortable and disruptive to daily life. This pattern of cramping or spasms followed by loose stools often signals an underlying issue in your digestive tract. While most cases resolve with simple self-care, it’s important to be aware of when to seek medical attention. Below is a comprehensive, step-by-step guide to help you ease symptoms and identify when professional help is needed.

Common Causes

Understanding why you have stomach pain that comes and goes in waves with diarrhea helps guide effective treatment. Common triggers include:

  • Viral gastroenteritis (stomach flu): Often caused by norovirus or rotavirus, this leads to cold-like symptoms, recurrent cramping and watery diarrhea.
  • Food poisoning: Bacterial toxins (e.g., Salmonella, E. coli) cause sudden onset of intense cramps and frequent, sometimes bloody, diarrhea.
  • Irritable bowel syndrome (IBS): A functional disorder marked by wave-like cramps, bloating and either diarrhea-predominant (IBS-D) or constipation-predominant patterns.
  • Medications or supplements: Certain antibiotics, magnesium supplements or sugar alcohols (e.g., sorbitol) can disrupt gut flora and cause spasms plus diarrhea.
  • Food intolerances: Lactose, fructose or gluten intolerance may trigger intermittent abdominal pain and loose stools after consumption.
  • Inflammatory bowel disease (IBD): Crohn’s disease or ulcerative colitis typically present with more severe, persistent pain, urgent diarrhea and sometimes blood in the stool.
  • Stress and anxiety: The gut-brain connection can amplify normal digestive signals into noticeable waves of pain and change bowel habits.

Immediate Self-Care

For mild to moderate symptoms, start with these home-based strategies:

1. Stay Hydrated

Diarrhea can quickly deplete fluids and electrolytes. Aim to sip:

  • Clear broths or bouillon
  • Oral rehydration solutions (look for “electrolyte” on the label)
  • Coconut water (unsweetened)
  • Diluted sports drinks

Avoid caffeine, alcohol and high-sugar beverages, which may worsen diarrhea.

2. Eat a Gentle Diet

The BRAT diet (Bananas, Rice, Applesauce, Toast) is often recommended because it’s low-fiber and easy to digest. Expand as tolerated:

  • Plain boiled potatoes
  • Cooked carrots or squash
  • Lean poultry or white fish, steamed or baked
  • Low-fat yogurt with live cultures (probiotics)

Stay away from spicy, fatty, greasy or high-fiber foods until your bowels normalize.

3. Over-the-Counter Relief

Medicines can help manage both the pain and the diarrhea:

  • Loperamide (Imodium) slows down intestinal movement—use as directed, but avoid if you suspect food poisoning or C. difficile infection.
  • Bismuth subsalicylate (Pepto-Bismol) can ease cramping and reduce stool frequency.
  • Simethicone (Gas-X) may relieve trapped gas that contributes to wave-like discomfort.
  • Acetaminophen for cramp-related aches (avoid NSAIDs like ibuprofen if you have an upset stomach).

Always follow dosage instructions on the package and check with a pharmacist if you’re taking other medications.

Dietary and Lifestyle Modifications

When stomach pain that comes and goes in waves with diarrhea becomes recurrent, consider long-term changes:

  • Track trigger foods: Keep a food diary noting what you eat, symptom onset and severity. This helps identify intolerances.
  • Eat smaller, more frequent meals: Overloading your digestive system can provoke cramping.
  • Increase soluble fiber gradually (oats, psyllium fiber) to bulk stools without overstimulating the gut.
  • Limit artificial sweeteners like sorbitol, mannitol and xylitol, commonly found in sugar-free gum and candies.
  • Manage stress: Practices such as deep-breathing exercises, yoga or meditation can calm the gut-brain axis.
  • Probiotics: Strains like Lactobacillus rhamnosus GG and Bifidobacterium infantis may restore a healthy balance of gut bacteria.

When to Seek Medical Attention

Most cases improve within a few days of self-care. However, consult a healthcare provider promptly if you experience:

  • Severe dehydration (dizziness, rapid heartbeat, little to no urination)
  • High fever (over 102°F or 39°C)
  • Blood or black, tarry stools
  • Unrelenting pain that interferes with sleep or daily activities
  • Signs of shock (cold, clammy skin; faintness)
  • Diarrhea lasting more than 48–72 hours in adults, or 24 hours in young children
  • Recent travel to regions with increased risk of tropical infections

For a free, preliminary check of your symptoms, you can consider doing a free, online symptom check, using the doctor approved Ubie Symptom Checker. This tool can help you decide whether you need to seek medical care.

Possible Diagnostic Tests

If your doctor needs to investigate further, they may order:

  • Stool studies to look for bacterial pathogens, parasites or blood.
  • Blood tests to check for signs of inflammation (elevated CRP, ESR) or anemia.
  • Abdominal ultrasound or CT scan to rule out structural issues like gallstones or pancreatitis.
  • Endoscopy or colonoscopy with biopsy if inflammatory bowel disease, celiac disease or other chronic conditions are suspected.

Treating Underlying Conditions

Based on diagnosis, treatment may include:

  • Antibiotics for confirmed bacterial infections.
  • Antispasmodics (e.g., hyoscine butylbromide) for IBS-related cramps.
  • Immunosuppressive therapies (e.g., mesalamine, corticosteroids) for IBD.
  • Enzyme supplements (e.g., lactase) for lactose intolerance.
  • Gluten-free diet for celiac disease.

Your treatment plan will depend on test results and your overall health profile.

Prevention Tips

To reduce the chance of recurrent episodes:

  • Practice good hand hygiene—especially before eating and after using the bathroom.
  • Wash fruits and vegetables thoroughly.
  • Cook meats to safe internal temperatures.
  • Stay up to date with vaccines (e.g., rotavirus vaccine for infants).
  • Sanitize surfaces if someone in your household has diarrhea.
  • Travel wisely—avoid questionable street foods and untreated water sources.

When to Talk to Your Doctor

If you ever feel your condition might be serious or life threatening, don’t hesitate to reach out for professional help. Sudden, unremitting abdominal pain or severe dehydration can escalate quickly. Always:

  • Discuss any symptom that doesn’t improve with home care.
  • Inform your doctor about changes in bowel habits lasting more than a few days.
  • Mention any alarming signs such as weight loss, blood in stool or persistent fever.

Your health is paramount. Listen to your body and seek medical guidance when in doubt.


By following these guidelines, you can often stop stomach pain that comes and goes in waves with diarrhea and get back to feeling your best. Remember to stay hydrated, choose gentle foods, manage stress and use over-the-counter remedies as needed. If symptoms persist or worsen, it’s important to speak to a doctor promptly.

(References)

  • * Lee M, Hodges WG, Huggins TL, Lee EL. Eosinophilic gastroenteritis. South Med J. 1996 Feb;89(2):189-94. doi: 10.1097/00007611-199602000-00006. PMID: 8578348.

  • * Miehlke S, Verhaegh B, Tontini GE, Madisch A, Langner C, Münch A. Microscopic colitis: pathophysiology and clinical management. Lancet Gastroenterol Hepatol. 2019 Apr;4(4):305-314. doi: 10.1016/S2468-1253(19)30048-2. PMID: 30860066.

  • * Ahmad OF, Akbar A. Overview of microscopic colitis. Br J Hosp Med (Lond). 2020 Oct 2;81(10):1-7. doi: 10.12968/hmed.2020.0034. Epub 2020 Oct 6. PMID: 33135914.

  • * Sebastián Domingo JJ. Irritable bowel syndrome. Med Clin (Barc). 2022 Jan 21;158(2):76-81. doi: 10.1016/j.medcli.2021.04.029. Epub 2021 Jul 6. PMID: 34238582.

  • * Sapkota P, Gurung RB, Shrestha A, Paudel I, Shrestha P. Cronkhite-Canada Syndrome: A Case Report. JNMA J Nepal Med Assoc. 2022 May 5;60(249):473-477. doi: 10.31729/jnma.7407. Epub 2022 May 5. PMID: 35633239; PMCID: PMC9252220.

  • * Peng Y, Ma Y, Luo Z, Jiang Y, Xu Z, Yu R. Lactobacillus reuteri in digestive system diseases: focus on clinical trials and mechanisms. Front Cell Infect Microbiol. 2023;13:1254198. doi: 10.3389/fcimb.2023.1254198. Epub 2023 Aug 18. PMID: 37662007; PMCID: PMC10471993.

  • * Jasuja JK, Bub F, Veit J, Fofana HKM, Sacko M, Saye R, Chatigre JK, N'Goran EK, Yao JA, Khanal B, Koirala K, Bhattarai NR, Rijal S, von Müller L, Bottieau E, Boelaert M, Chappuis F, Polman K, Utzinger J, Becker SL. Multiplex PCR for bacterial, viral and protozoal pathogens in persistent diarrhoea or persistent abdominal pain in Côte d'Ivoire, Mali and Nepal. Sci Rep. 2024 May 13;14(1):10926. doi: 10.1038/s41598-024-60491-y. Epub 2024 May 13. PMID: 38740833; PMCID: PMC11091045.

  • * Yang JW, Qi LY, Yan SY, She YF, Li Y, Chi LL, Hu H, Wang LQ, Ji CC, Wu BQ, Fu ZT, Li SJ, Yang NN, Wang Y, Liu CZ. Efficacy of ACupuncTure in Irritable bOwel syNdrome (ACTION): A Multicenter Randomized Controlled Trial. Gastroenterology. 2025 Oct;169(5):958-969.e5. doi: 10.1053/j.gastro.2025.05.016. Epub 2025 May 27. PMID: 40441496.

  • * Greer KB, Sultan S. Irritable Bowel Syndrome. Ann Intern Med. 2025 Aug;178(8):ITC113-ITC128. doi: 10.7326/ANNALS-25-01965. Epub 2025 Aug 12. PMID: 40789179.

  • * Corsetti M, Shin A, Lacy BE, Cash BD, Simrén M, Schmulson MJ, Hou X, Lembo A. Bowel Disorders. Gastroenterology. 2026 May;170(6):1261-1282. doi: 10.1053/j.gastro.2026.02.003. Epub 2026 Feb 17. PMID: 41713703.

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.