Digestive health
Stomach Pain and Diarrhea Together: What It Could Mean and What to Do
Stomach pain combined with diarrhea is usually temporary — most often a gut infection, something you ate, or stress — and settles within a few days. Stay hydrated and watch for warning signs: severe pain that localizes to one spot, blood in the stool, or high fever needs same-day medical attention. Appendicitis can initially present with abdominal pain and loose stools before the classic right lower quadrant localization develops.
Talk to a clinician
Nina Osei, NP — Nurse Practitioner
checkups, refills & skin. Gale can match you with a licensed clinician for a visit.
Find care →Why do stomach pain and diarrhea happen together?
The gut is a long, coordinated muscle. When something irritates it — a virus, a bacterium, a certain food, or stress — the lining becomes inflamed and the muscle contracts more forcefully and frequently than usual. That produces cramping and pain. The same irritation disrupts how efficiently the colon absorbs water from stool, producing loose or watery stools. In most cases, the cramps and the diarrhea share the same root cause.
What is the most likely cause?
Viral gastroenteritis (a stomach virus) is the most common cause. It typically arrives suddenly, may come with nausea or vomiting, and resolves within one to three days 1Ref 1Centers for Disease Control and Prevention (2023).Travelers' Diarrhea — CDC Yellow Book 2024.Viral gastroenteritis as most common sudden-diarrhea cause; bacterial causes (Salmonella, Campylobacter, E. coli) producing fever and bloody diarrhea; C. difficile risk after antibiotic use; management principles.
Food poisoning or food intolerance often begins within hours of a specific meal. Multiple people who ate the same food may be ill. Certain foods (dairy, high-fat, caffeine) can reliably trigger symptoms in people with intolerances.
Bacterial infections (such as Salmonella, Campylobacter, or certain strains of E. coli) are less common but important to identify. They tend to produce higher fever, bloodier diarrhea, and more severe cramps, and often follow travel or exposure to undercooked poultry or contaminated water 1Ref 1Centers for Disease Control and Prevention (2023).Travelers' Diarrhea — CDC Yellow Book 2024.Viral gastroenteritis as most common sudden-diarrhea cause; bacterial causes (Salmonella, Campylobacter, E. coli) producing fever and bloody diarrhea; C. difficile risk after antibiotic use; management principles.
Irritable bowel syndrome (IBS) is a common cause of recurrent cramping with diarrhea when symptoms have been present for months, are reliably triggered by stress or specific foods, and improve after a bowel movement — with no blood in stool and no fever 2Ref 2Lacy BE, Pimentel M, Brenner DM, Chey WD, Keefer LA, Long MD, Moshiree B (2021).ACG Clinical Guideline: Management of Irritable Bowel Syndrome.IBS as a common cause of recurrent abdominal cramping with diarrhea, stress and food triggers, improvement after bowel movement, absence of blood in stool.
Inflammatory bowel disease (Crohn's or ulcerative colitis) should be considered when the pattern is chronic, involves blood or mucus in stool, weight loss, nighttime symptoms, or family history.
Medication side effects — particularly from antibiotics, NSAIDs, or metformin — are frequently overlooked 3Ref 3MedlinePlus / U.S. National Library of Medicine (2024).Metformin: MedlinePlus Drug Information.Medication side effects — metformin, NSAIDs, and antibiotics — as a frequently overlooked cause of GI symptoms including diarrhea and abdominal discomfort.
Appendicitis can initially present with abdominal pain and loose stools. The classic pattern is vague periumbilical pain that migrates to the lower right abdomen over hours, with worsening rather than improving pain, fever, and nausea 4Ref 4Moris D, Paulson EK, Pappas TN (2021).Diagnosis and Management of Acute Appendicitis in Adults: A Review.Appendicitis classic presentation: vague periumbilical pain migrating to right lower quadrant, anorexia, nausea, low-grade fever; can initially mimic GI illness with loose stools before localization. Any pain that localizes sharply and worsens over time should be evaluated urgently.
Is this an emergency? How to tell
Most gut pain with diarrhea is uncomfortable but not dangerous. The signals that change that calculation are:
- Severe, localizing pain — especially to the lower right abdomen or right upper abdomen
- Pain that is getting steadily worse rather than coming and going
- Blood in the stool or black, tarry stools
- High fever (above 102°F / 38.9°C)
- Abdomen that is hard, rigid, or board-like
- Signs of dehydration (no urination, extreme dizziness, confusion, rapid heartbeat)
Those patterns deserve same-day or emergency evaluation. If in doubt, it is safer to be seen and reassured than to wait at home.
What to do while you wait or recover
Hydration is the most important step. Oral rehydration solutions replace both fluids and electrolytes; plain water is better than nothing but does not fully do the job. Eat what you can tolerate — bland, easy-to-digest foods (rice, toast, boiled vegetables, bananas) are generally better than greasy or heavily spiced options. Small amounts frequently are easier on the gut than large meals.
Heat on the abdomen (a heating pad on low) can ease cramping. Avoid anti-diarrheal medications without clinician input if fever or blood in stool is present.
When to make an appointment, and how urgently
Call a clinician today if: symptoms are getting worse after 48 hours, you have a fever above 101°F, blood appears in the stool, you cannot keep fluids down, or you have a condition that suppresses your immune system.
A same-week appointment is reasonable if: symptoms are mild and slowly improving but still present after three to four days, or if this pattern has happened before and you want to understand why.
A telehealth visit can handle initial assessment for mild-to-moderate cases — a clinician can help decide whether labs, imaging, or an in-person exam is needed.
Children and older adults dehydrate faster than healthy adults; apply a lower threshold and contact a clinician sooner. If you have taken antibiotics in the past two months, mention this — antibiotic-associated diarrhea can indicate Clostridioides difficile (C. diff) infection, which requires specific treatment 1Ref 1Centers for Disease Control and Prevention (2023).Travelers' Diarrhea — CDC Yellow Book 2024.Viral gastroenteritis as most common sudden-diarrhea cause; bacterial causes (Salmonella, Campylobacter, E. coli) producing fever and bloody diarrhea; C. difficile risk after antibiotic use; management principles.
Common questions
How do I know if my stomach pain and diarrhea is food poisoning or a virus?
Food poisoning often begins within hours of a specific meal and may affect others who ate the same food. A stomach virus tends to spread person-to-person, often runs through households, and may take 24–48 hours to appear. In practice, the two are clinically similar and the distinction usually doesn't change how you manage either one at home. If symptoms are severe, prolonged, or bloody, a clinician can order stool testing.
When does stomach pain and diarrhea become an emergency?
Seek emergency care if pain is sudden, severe, and getting worse — especially if it localizes to the lower right or upper right abdomen, if the abdomen feels rigid, if there is blood in the stool, or if you have signs of severe dehydration such as confusion, a rapid heart rate, or no urine output. These patterns can indicate appendicitis, bowel obstruction, or severe infection.
Should I take an anti-diarrheal medication for stomach cramps and diarrhea?
Not necessarily, and sometimes no. Anti-diarrheal agents like loperamide are appropriate for uncomplicated, non-bloody diarrhea without fever. They should be avoided if there is blood in the stool, high fever, or if a bacterial infection is possible — slowing gut movement can worsen certain infections. Ask a pharmacist or clinician before using one.
Why do I keep getting stomach pain and diarrhea together?
A recurring pattern of cramping with diarrhea — especially if it responds to bowel movements and worsens with stress or certain foods — may fit irritable bowel syndrome, which is common and manageable. Recurring symptoms should be evaluated by a clinician rather than self-managed indefinitely, to rule out inflammatory bowel disease, celiac disease, and other treatable conditions.
Can stress actually cause stomach pain and diarrhea?
Yes. The gut and brain communicate directly through the gut-brain axis. Stress and anxiety can accelerate gut motility, increase pain sensitivity, and alter how the gut handles its contents. This is why bowel symptoms often worsen during stressful life events.
Talk to a clinician
Nina Osei, NP — Nurse Practitioner
checkups, refills & skin. Gale can match you with a licensed clinician for a visit.
Find care →When to seek care
- —Blood or black, tarry material in the stool
- —Sudden, severe abdominal pain — especially if rigid, board-like, or unrelenting
- —Pain localizing sharply to the lower right abdomen (possible appendicitis) or upper right abdomen (possible gallbladder)
- —High fever above 102°F / 38.9°C
- —Vomiting that prevents keeping any fluids down
- —Signs of dehydration: no urination, extreme dizziness, confusion, rapid heartbeat
- —Symptoms lasting more than three to four days without improvement
- —Significant unintentional weight loss alongside these symptoms
If abdominal pain is sudden, severe, and unrelenting — particularly if your abdomen feels rigid — or if you have signs of dehydration with inability to keep fluids down, call 911 or go to the nearest emergency department. Appendicitis and other surgical emergencies can present with abdominal pain and loose stools. Do not rely on this article to rule those out.
This article provides general health information only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified clinician about your specific symptoms.
References
- 1.Centers for Disease Control and Prevention (2023). Travelers' Diarrhea — CDC Yellow Book 2024. CDC Travelers' Health. link ✓Viral gastroenteritis as most common sudden-diarrhea cause; bacterial causes (Salmonella, Campylobacter, E. coli) producing fever and bloody diarrhea; C. difficile risk after antibiotic use; management principles
- 2.Lacy BE, Pimentel M, Brenner DM, Chey WD, Keefer LA, Long MD, Moshiree B (2021). ACG Clinical Guideline: Management of Irritable Bowel Syndrome. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000001036 ✓IBS as a common cause of recurrent abdominal cramping with diarrhea, stress and food triggers, improvement after bowel movement, absence of blood in stool
- 3.MedlinePlus / U.S. National Library of Medicine (2024). Metformin: MedlinePlus Drug Information. MedlinePlus / NLM. link ✓Medication side effects — metformin, NSAIDs, and antibiotics — as a frequently overlooked cause of GI symptoms including diarrhea and abdominal discomfort
- 4.Moris D, Paulson EK, Pappas TN (2021). Diagnosis and Management of Acute Appendicitis in Adults: A Review. JAMA. doi:10.1001/jama.2021.20502 ✓Appendicitis classic presentation: vague periumbilical pain migrating to right lower quadrant, anorexia, nausea, low-grade fever; can initially mimic GI illness with loose stools before localization
4 sources, numbered by first appearance. General health information, not medical advice — synthetic demonstration content.