Diarrhea happens when your intestines can’t absorb water properly, either because something is irritating the gut lining, pulling extra water into the intestines, or speeding food through too quickly. The causes range from a virus you picked up at a restaurant to a medication you’ve been taking for a week. Most cases resolve on their own, but understanding what triggered yours helps you recover faster and avoid it next time.
What Actually Happens in Your Gut
Your intestines normally absorb the vast majority of the water that passes through them. Diarrhea occurs when that process breaks down, and it can break down in a few distinct ways.
The most common is infectious diarrhea: a virus, bacterium, or parasite damages the intestinal lining, which causes it to leak fluid and lose its ability to absorb water. This is what’s happening during food poisoning or a stomach bug. A second mechanism is osmotic diarrhea, where something in the gut is holding onto water and preventing it from being absorbed. Lactose in someone who’s lactose intolerant, or sugar alcohols in sugar-free candy, work this way. A third pathway is secretory diarrhea, where the intestinal cells actively pump water into the gut faster than the body can reabsorb it. Finally, anything that speeds up the transit of food through the intestines can cause diarrhea simply because there isn’t enough time for water to be absorbed, even if the intestinal lining is perfectly healthy.
Viruses, Bacteria, and Parasites
Infections are the single most common cause of acute diarrhea. The pathogens responsible spread through contaminated food, water, surfaces, or close contact with a sick person. In every case, you get infected by swallowing the organism, often from traces of fecal matter that made it onto hands, food, or water.
Norovirus is the most frequent culprit in adults. It’s extremely contagious and causes symptoms within 12 to 48 hours of exposure. Salmonella, often linked to undercooked poultry or eggs, hits within 6 to 48 hours. Staphylococcus aureus toxins in improperly stored food can trigger diarrhea in as little as one to six hours, which is the fastest onset of any common food pathogen. Campylobacter, another bacterial cause, takes longer: two to five days.
Parasites like Giardia tend to cause longer-lasting illness. You can pick up Giardia from untreated water in lakes or streams, swimming pools, or close contact with someone who’s infected. Swallowing just a few organisms is enough to get sick, and symptoms can persist for weeks without treatment. Cryptosporidium, another waterborne parasite, has an incubation period of 2 to 10 days.
If you’re trying to figure out which meal made you sick, the timeline helps. Symptoms within a few hours point to a toxin-producing bacterium like Staph or Clostridium perfringens (8 to 16 hours). Symptoms a day or two later suggest Salmonella, Shigella, or norovirus. If it’s been three to five days, Campylobacter or E. coli are more likely.
Food and Drink Triggers
Not all diarrhea comes from an infection. Certain foods and ingredients directly pull water into the intestines, triggering the osmotic type of diarrhea.
Lactose intolerance is one of the most widespread examples. If your body doesn’t produce enough of the enzyme that breaks down milk sugar, undigested lactose sits in the intestines and draws water in. The result is bloating, cramps, and loose stools after dairy.
Sugar alcohols, the sweeteners used in sugar-free gum, candy, protein bars, and diet drinks, work the same way. Ingredients like sorbitol, mannitol, and xylitol are poorly absorbed even in people with healthy guts. The effect is dose-dependent: a single piece of sugar-free gum probably won’t cause problems, but eating a handful of sugar-free candies can have a noticeable laxative effect. People with irritable bowel syndrome are especially sensitive, and combining multiple types of sugar alcohols at once increases malabsorption further.
Large amounts of caffeine, alcohol, and high-fructose foods can also speed up gut motility or draw water into the intestines, both of which lead to loose stools.
Medications, Especially Antibiotics
About 1 in 5 people who take antibiotics develop diarrhea as a side effect. Antibiotics kill the harmful bacteria causing your infection, but they also wipe out beneficial gut bacteria that help with digestion and keep harmful organisms in check. With those protective bacteria gone, the balance in the gut shifts. In some cases, a bacterium called C. difficile takes advantage of the disrupted environment and overgrows, causing more severe or prolonged diarrhea.
Antibiotics aren’t the only medications that cause this. Magnesium-containing antacids, certain blood pressure medications, chemotherapy drugs, and nonsteroidal anti-inflammatory drugs can all trigger diarrhea through different mechanisms. If your diarrhea started shortly after beginning a new medication, that’s a strong clue.
Chronic Conditions That Cause Ongoing Diarrhea
When diarrhea lasts four weeks or more, it’s classified as chronic, and the list of potential causes shifts. Short-term diarrhea is usually infectious or dietary. Chronic diarrhea more often points to an underlying condition.
Irritable bowel syndrome with diarrhea (IBS-D) is one of the most common diagnoses. It involves recurrent episodes of loose stools, often accompanied by abdominal pain that improves after a bowel movement. The gut itself isn’t damaged, but the signaling between the brain and the intestines is disrupted, leading to altered motility and sensitivity.
Inflammatory bowel disease, which includes Crohn’s disease and ulcerative colitis, involves actual inflammation and damage to the intestinal lining. This causes diarrhea through the inflammatory pathway, often with blood or mucus in the stool. Microscopic colitis, a related condition, causes chronic watery diarrhea but looks normal on standard imaging, requiring a biopsy to diagnose.
Celiac disease, an immune reaction to gluten, damages the absorptive lining of the small intestine and is another important cause of chronic diarrhea. Bile acid diarrhea, where excess bile acids reach the colon and trigger water secretion, is increasingly recognized as a treatable cause that’s often overlooked. Even chronic Giardia infection can cause weeks of watery diarrhea if not identified and treated.
How Diarrhea Spreads
Infectious diarrhea follows a fecal-oral route. That sounds graphic, but it’s simpler than it seems: an infected person doesn’t wash their hands thoroughly after using the bathroom, then touches food, a doorknob, or another surface. You touch that surface and then touch your mouth, and the cycle continues.
Contaminated water is the other major route. This includes untreated well water, lake or river water swallowed while swimming, and even recreational water like pools and splash pads where chlorine levels are insufficient. In childcare settings, diaper changes create frequent opportunities for transmission, which is why stomach bugs tear through daycares so effectively.
Prevention Basics
Handwashing with soap is the single most effective prevention measure. This matters most after using the bathroom, before eating, after changing diapers, and after contact with animals. For food safety, the key principles are keeping hot foods hot, cold foods cold, cooking meat to proper temperatures, and avoiding cross-contamination between raw meat and ready-to-eat foods.
When traveling to areas with uncertain water quality, stick to bottled or boiled water and avoid ice, raw vegetables washed in local water, and street food that’s been sitting at room temperature. Rotavirus vaccination has dramatically reduced diarrheal illness in infants and young children worldwide.
Warning Signs That Need Attention
Most diarrhea clears within a couple of days. But certain symptoms signal something more serious. Black or tarry stools, blood or pus in the stool, severe abdominal pain, high fever, or signs of dehydration (extreme thirst, dark urine, dizziness, lack of energy) all warrant prompt medical attention. For adults, diarrhea lasting more than two days or producing six or more loose stools per day is also a reason to get checked.
Children need closer monitoring. Any fever in an infant with diarrhea, refusal to drink fluids for more than a few hours, or diarrhea lasting more than one day in a child should prompt a call to the doctor. Infants under 12 months, premature babies, and children with existing health conditions are at higher risk for dangerous dehydration and need faster evaluation.