Most stomach pain with diarrhea comes from a short-lived cause, like a stomach virus, something you ate, or stress, and clears up within a few days with the right home care. The priority is staying hydrated, calming your gut, and eating in a way that doesn’t make things worse. Here’s what actually works.
Why You Have Both Symptoms at Once
Stomach pain and diarrhea tend to travel together because they share the same triggers. The most common is viral gastroenteritis, often called the stomach flu, where a virus inflames the lining of your intestines and causes cramping, loose stools, and sometimes vomiting. Bacterial infections from contaminated food work similarly. In both cases, your gut speeds up its contractions to flush out the irritant, which is what causes the cramping and urgency.
Food intolerance is another frequent culprit. Dairy, wheat, beans, cabbage, and carbonated drinks are well-known offenders, especially if you have irritable bowel syndrome. Stress also plays a significant role. People with IBS experience worse and more frequent symptoms during stressful periods because of the close connection between the brain and the gut. Even people without IBS can get stress-related stomach upset. If your symptoms keep returning, it’s worth tracking whether they line up with specific foods or high-pressure moments in your life.
Hydration Comes First
Diarrhea pulls water and electrolytes out of your body fast. Plain water alone isn’t ideal because it doesn’t replace the sodium and glucose your intestines need to absorb fluid efficiently. A simple oral rehydration solution works better, and you can make one at home: mix 4 cups of water with half a teaspoon of table salt and 2 tablespoons of sugar. Sip it steadily rather than gulping it down, especially if you’re also nauseous.
Sports drinks are an alternative but typically contain more sugar than you need. For children, watch hydration closely. An infant who hasn’t had a wet diaper in six hours, or a child with a dry mouth and no tears when crying, needs medical attention for dehydration.
Using Heat for Cramps
A heating pad or hot water bottle on your abdomen is one of the simplest ways to ease gut cramps. This isn’t just a comfort trick. Research from University College London found that heat above 40°C (104°F) activates specific heat receptors in the skin that block the pain signals coming from distressed organs like the bowel. Those pain signals fire when tissue is stretched or blood flow is temporarily reduced, which is exactly what happens during intestinal cramping. Place the heating pad over the area that hurts most, with a cloth layer between it and your skin, for 15 to 20 minutes at a time.
Over-the-Counter Options
Two medications dominate the pharmacy shelf for diarrhea. Loperamide (the active ingredient in Imodium) slows gut contractions, giving your intestines more time to absorb water. It’s effective for acute, nonspecific diarrhea at doses up to 8 mg per day for adults. Bismuth subsalicylate (Pepto-Bismol) takes a different approach, coating the stomach lining and reducing inflammation. It also has mild antibacterial properties, which makes it a reasonable choice if you suspect a food-borne cause.
Loperamide tends to stop diarrhea faster, but it’s not appropriate for every situation. If you have a high fever or bloody stools, slowing your gut down can trap the infection inside. In those cases, skip the loperamide and see a doctor. For straightforward stomach bugs or traveler’s diarrhea without alarming symptoms, either medication can shorten your misery.
What to Eat (and What to Skip)
The old advice to stick strictly to bananas, rice, applesauce, and toast (the BRAT diet) has fallen out of favor. The American Academy of Pediatrics no longer recommends it for children because it’s too low in nutrients and can actually slow gut recovery if followed for more than 24 hours. The same logic applies to adults.
Instead, eat as tolerated. Start with small, bland portions and expand as your stomach allows. Good early choices include plain rice, broth-based soups, cooked potatoes, crackers, and lean chicken. Avoid dairy, fried foods, high-fiber vegetables, caffeine, and alcohol until your stools normalize. The goal is to give your gut calories and nutrients without overwhelming it, not to restrict yourself to four foods.
Probiotics and Peppermint Oil
Certain probiotics can meaningfully shorten a bout of diarrhea. A yeast-based probiotic called Saccharomyces boulardii has the strongest evidence. In a meta-analysis of six randomized trials, people who took it recovered about 1.6 days faster than those who didn’t. Look for it by name on the label, as not all probiotic strains have the same effect on diarrhea. It’s available over the counter in most pharmacies.
For the pain side of things, peppermint oil in enteric-coated capsules can relax the smooth muscle in your intestinal wall. The coating matters because it prevents the oil from dissolving in your stomach (which can cause heartburn) and delivers it to the intestines where it’s needed. A typical adult dose is 0.2 to 0.4 mL of oil three times daily. This is especially helpful if your pain is the crampy, spasmy type rather than a constant ache, and it’s a well-studied option for people with IBS-related pain.
Signs That Need Medical Attention
Most episodes resolve on their own, but certain symptoms mean something more serious is happening. Get medical care if you experience any of the following:
- Blood in your stool or vomit
- Fever above 104°F (40°C)
- Inability to keep liquids down for 24 hours
- Vomiting or diarrhea lasting more than two days
- Signs of dehydration: excessive thirst, very dark urine or almost no urine, dizziness, or severe weakness
- Severe abdominal pain that doesn’t improve with rest or basic treatment
For children, the thresholds are lower. A fever of 102°F (38.9°C) or higher, bloody diarrhea, unusual tiredness or irritability, or any signs of dehydration warrant a call to the pediatrician. In infants, a sunken soft spot on the head is a clear dehydration warning.