For most cases of stomach pain with diarrhea, a combination of an anti-diarrheal medication and something to calm intestinal cramping will provide the fastest relief. What works best depends on whether your main problem is the diarrhea itself, the pain, or both, and whether the cause is a stomach bug, something you ate, or an ongoing condition like irritable bowel syndrome.
Over-the-Counter Options for Diarrhea
Loperamide (sold as Imodium) is the most widely used anti-diarrheal for adults. It works by slowing the movement of your intestines, giving your body more time to absorb water from stool. The typical approach is to take two tablets or capsules after your first loose bowel movement, then one tablet after each additional loose stool. The over-the-counter limit is four tablets in 24 hours.
Bismuth subsalicylate (Pepto-Bismol, Kaopectate) treats both diarrhea and stomach discomfort at the same time, making it a good choice when you’re dealing with cramping, nausea, and loose stools together. It coats the lining of your stomach and intestines while also reducing inflammation. One important caution: bismuth subsalicylate contains a compound related to aspirin. If you’re allergic to aspirin, pregnant, or taking blood thinners, skip it. It should also not be given to children under 16 because of the risk of Reye’s syndrome, a rare but serious condition linked to aspirin-type compounds during viral illnesses.
If your diarrhea is bloody, comes with a high fever, or started after recent antibiotic use, avoid loperamide. Slowing your gut down when your body is trying to flush out a bacterial infection can make things worse.
What Helps With the Stomach Pain
Stomach pain during a bout of diarrhea usually comes from intestinal spasms, the rapid, forceful contractions your gut makes as it pushes contents through too quickly. Different remedies target this in different ways.
Peppermint oil capsules relax the smooth muscle in your intestinal wall, which directly eases cramping. The NHS recognizes peppermint oil as an effective treatment for the painful spasms associated with IBS, and it works on the same type of cramping that accompanies acute diarrhea. Enteric-coated capsules are best because they dissolve in your intestines rather than your stomach, reducing the chance of heartburn.
Antispasmodic medications work through several different mechanisms. Some block the nerve signals that trigger gut contractions, while others prevent calcium from entering the muscle cells that line your intestines. These are typically prescription medications, so if your pain is severe enough that over-the-counter options aren’t cutting it, that’s a conversation worth having with your doctor.
Simple heat can also help. A heating pad or hot water bottle on your abdomen relaxes the muscles from the outside and can take the edge off cramping while you wait for medication to kick in.
Probiotics That Shorten Recovery
Certain probiotic strains can speed up how quickly you recover from acute diarrhea. Lactobacillus rhamnosus GG (often labeled as LGG) has the strongest evidence. In a comparative trial, LGG reduced the duration of diarrhea by roughly 19 hours compared to no probiotic treatment, a statistically significant difference. Saccharomyces boulardii, a yeast-based probiotic commonly sold for digestive issues, did not show a significant reduction in the same study.
Probiotics aren’t a quick fix for your current symptoms, but starting them early in a diarrheal illness can mean you’re back to normal a day sooner. Look for products that list specific strains on the label rather than vague “probiotic blend” descriptions.
What to Eat (and What to Skip)
You’ve probably heard of the BRAT diet: bananas, rice, applesauce, and toast. It’s been standard advice for decades, but current nutritional guidance has moved away from it. The BRAT diet provides roughly 300 fewer calories per day than a normal diet and is extremely low in protein, fat, fiber, vitamin A, vitamin B12, and calcium. Sticking to it for more than a day or two can actually slow your recovery by depriving your body of the nutrients it needs to heal.
The better approach is to eat your normal diet as soon as you can tolerate it. Focus on balanced meals with all three macronutrients: carbohydrates, protein, and fat. If your stomach is too unsettled for a full meal, start with small portions and work up. Breastfed infants should continue nursing, and formula-fed babies should stay on their regular formula at full strength.
What genuinely helps is avoiding things that make diarrhea worse: caffeine, alcohol, very greasy or fried foods, and high-sugar drinks like juice or soda. These can all pull more water into your intestines or speed up gut motility.
Staying Hydrated Matters More Than You Think
Diarrhea pulls water and electrolytes out of your body fast, and dehydration is the main reason a simple stomach bug can turn into something more serious. Drink water throughout the day, but plain water alone doesn’t replace the sodium and potassium you’re losing. Oral rehydration solutions (sold as Pedialyte or store-brand equivalents) are designed specifically for this. Broth, coconut water, and diluted sports drinks also help.
Watch for signs that dehydration is getting ahead of you: dark yellow urine, peeing much less than normal, dizziness when you stand up, unusual tiredness or confusion, and a fast heart rate. In children, look for fewer wet diapers than usual, no tears when crying, or unusual drowsiness. These signs mean you need medical attention, not just more fluids at home.
A Note on Children
Over-the-counter anti-diarrheal medications are not recommended for children under 2 and can be harmful even in older kids. The American Academy of Pediatrics advises checking with your child’s doctor before giving any anti-diarrheal medicine at any age. For young children, the priority is maintaining hydration with an oral rehydration solution and continuing to offer their normal foods as tolerated.
Choosing the Right Approach
If diarrhea is your main complaint with mild cramping, loperamide will likely do the job. If you have stomach pain, nausea, and diarrhea together, bismuth subsalicylate covers more ground. For cramping that feels like your gut is twisting, peppermint oil capsules are worth trying alongside whichever anti-diarrheal you choose. Adding an LGG probiotic from the start can shave time off your recovery.
Most acute diarrhea resolves within two to three days. If yours lasts longer than that, contains blood, comes with a fever over 102°F (39°C), or involves signs of dehydration that aren’t improving with fluids, those are signals that something beyond a standard stomach bug may be going on.

