When you have diarrhea, your intestines are pushing water out instead of absorbing it. Normally, your gut reabsorbs the vast majority of fluid that passes through it each day, but during a diarrheal episode, that balance flips. The result is loose or watery stools, often accompanied by cramping, urgency, and sometimes nausea. What’s happening inside your body is more complex than it feels, and understanding it helps explain why certain remedies work and when the situation becomes serious.
How Your Intestines Normally Handle Water
Your digestive system processes a surprising amount of liquid every day. Between the fluids you drink, saliva, stomach acid, bile, and other digestive juices, roughly 9 to 10 liters of fluid pass through your intestines in a 24-hour period. Under normal conditions, your small and large intestines reabsorb about 99% of that fluid, leaving only a small amount of water in your stool.
This absorption depends on a tightly regulated exchange of electrolytes, particularly sodium and chloride, across the intestinal lining. When those transport systems work correctly, water follows the electrolytes back into your body. Diarrhea happens when something disrupts that process, either by pulling extra water into the intestine or by causing the intestinal lining to actively pump fluid outward.
Why the Fluid Balance Breaks Down
Not all diarrhea works the same way. The two most common mechanisms are osmotic and secretory diarrhea, and they have different triggers.
Osmotic diarrhea occurs when too many unabsorbed particles sit in your intestine. These particles draw water into the gut by simple physics: fluid moves toward the higher concentration. This is what happens when you consume too much of a sugar alcohol (like sorbitol in sugar-free candy), when lactose goes undigested because of lactose intolerance, or when you take certain laxatives. A hallmark of osmotic diarrhea is that it stops when you stop eating the offending substance.
Secretory diarrhea is different. Here, the intestinal lining itself is actively pumping chloride and water into the gut lumen, often because a toxin from a virus or bacterium has hijacked the signaling pathways in your intestinal cells. This type continues even if you stop eating entirely, because the problem isn’t what you consumed. It’s your gut cells misbehaving. Infections like norovirus and cholera cause diarrhea this way.
A third type, inflammatory diarrhea, involves direct damage to the intestinal wall. Conditions like Crohn’s disease, ulcerative colitis, or invasive bacterial infections can cause the gut lining to become inflamed and leak blood, mucus, and fluid into the stool.
The Most Common Causes
Acute diarrhea, the kind that comes on suddenly and resolves within a few days, is overwhelmingly caused by infections. Viruses are the leading culprit. Norovirus is the most common cause of acute gastroenteritis across all age groups. Rotavirus, once a major threat to young children, has become less common in countries with routine vaccination but still circulates globally. In studies of people reporting gastroenteritis symptoms, about 22% tested positive for at least one viral pathogen, compared to only 8% of people without symptoms.
Bacterial causes like Salmonella, Campylobacter, and E. coli are less frequent overall but tend to cause more severe illness, sometimes with bloody stools and higher fevers. Food poisoning from bacterial toxins can trigger diarrhea within hours of eating contaminated food, though the illness itself is usually short-lived.
Non-infectious triggers include medications (especially antibiotics, which disrupt gut bacteria), food intolerances, artificial sweeteners, and stress. Chronic diarrhea lasting more than four weeks points toward conditions like irritable bowel syndrome, celiac disease, or inflammatory bowel disease.
What Your Body Loses
The biggest immediate concern with diarrhea is fluid and electrolyte loss. Each watery stool carries away water, sodium, potassium, chloride, and bicarbonate. Losing these electrolytes disrupts the chemical balance your muscles, nerves, and heart depend on. Potassium loss can cause muscle weakness and cramping. Sodium loss contributes to dizziness and confusion. The loss of bicarbonate can shift your blood’s acid-base balance, making it more acidic than normal.
In mild cases, your body compensates. In severe or prolonged cases, especially in young children and older adults, dehydration sets in quickly. Early signs include increased thirst, dry mouth, darker urine, and producing less urine than usual. More advanced dehydration shows up as dizziness when standing, a rapid heartbeat, and skin that stays “tented” when pinched rather than snapping back immediately. In infants, watch for no wet diapers for three or more hours, crying without tears, or unusual sleepiness.
What Helps You Recover
Replacing lost fluids is the single most important thing you can do. For most adults, this means drinking water, broth, and beverages with some salt and sugar. Oral rehydration solutions, available at pharmacies, are specifically formulated to replace the electrolyte mix your gut is losing. They work because your intestine can still absorb water when it’s paired with sodium and glucose, even during active diarrhea. Plain water alone doesn’t replace electrolytes, so mixing in some salty and slightly sweet fluids matters.
The old advice to eat only bananas, rice, applesauce, and toast (the BRAT diet) isn’t wrong, but it’s unnecessarily restrictive. Those foods are easy on the stomach, but there’s no research showing they speed recovery compared to a broader bland diet. Brothy soups, oatmeal, boiled potatoes, crackers, and plain cereals are equally gentle and provide more nutritional variety. Once your stomach settles, adding foods with more protein and nutrients, like cooked carrots, skinless chicken, eggs, or avocado, helps your body actually recover rather than just tolerate meals.
What to avoid while symptomatic: dairy (unless you know you tolerate it well), fatty or fried foods, caffeine, alcohol, and high-fiber raw vegetables. These can all worsen symptoms or irritate an already inflamed gut.
How Over-the-Counter Medications Work
The most widely used OTC diarrhea medication, loperamide, works by slowing the movement of food through your gut. When everything moves more slowly, your intestines have more time to pull water back out of the stool, making it firmer and reducing how often you need the bathroom. It’s effective for symptom relief during traveler’s diarrhea or viral gastroenteritis, but you should avoid it if you have a high fever or bloody stools, since slowing things down can trap harmful bacteria inside your gut longer.
Bismuth subsalicylate (the active ingredient in Pepto-Bismol) takes a different approach. It reduces inflammation in the intestinal lining and has mild antimicrobial properties. It can also reduce nausea and cramping. One harmless but surprising side effect: it turns your tongue and stool black temporarily.
Neither medication treats the underlying cause. They manage symptoms while your body fights off the infection or adjusts to whatever triggered the episode.
Signs That Need Medical Attention
Most diarrheal episodes resolve on their own within two to three days. Certain warning signs, though, suggest something more serious is happening. In adults, these include diarrhea lasting more than two days without improvement, signs of dehydration (severe thirst, very dark urine, dizziness, or little to no urination), severe abdominal or rectal pain, bloody or black stools, and fever above 102°F (39°C).
Children dehydrate faster than adults, so the timeline is shorter. A child whose diarrhea hasn’t improved within 24 hours, who has a fever above 102°F, who has bloody or black stools, or who shows signs of dehydration like a dry mouth, no tears, or unusual drowsiness needs prompt evaluation. For infants, three or more hours without a wet diaper is a specific red flag.

