What Vitamins Help With Diarrhea—and What to Avoid

Zinc is the single most effective micronutrient for reducing the duration and severity of diarrhea, and it’s the only one formally recommended by the World Health Organization for that purpose. Beyond zinc, vitamins A and D play supporting roles in gut health and recovery, while other vitamins matter mainly because diarrhea depletes them. Knowing which nutrients to prioritize, and which supplements to avoid, can make a real difference in how quickly you bounce back.

Zinc: The Most Proven Option

Zinc isn’t technically a vitamin (it’s a mineral), but it’s the nutrient most commonly searched alongside diarrhea for good reason. It shortens the duration of diarrheal episodes and reduces stool frequency, and it’s the cornerstone of the WHO’s treatment guidelines for childhood diarrhea. The recommended dose for children is 20 mg per day for 10 to 14 days, or 10 mg per day for infants under six months.

Zinc works by strengthening the intestinal lining and supporting immune cells that fight off the infection causing the diarrhea in the first place. It also helps the gut absorb water and electrolytes more efficiently. For adults, there’s no equivalent WHO guideline, but many clinicians suggest a short course of 20 to 40 mg daily during an acute episode. Taking zinc on a completely empty stomach can cause nausea, so pairing it with a small amount of food helps.

Vitamin A and Gut Lining Repair

Vitamin A is essential for maintaining the cells that line your intestines. When levels are low, those cells lose their ability to function as a barrier. In animal studies, vitamin A deficiency caused severe diarrhea and allowed bacteria to cross through the intestinal wall into other organs, including the kidneys. The composition of gut bacteria influenced how badly things went, meaning people with an already-disrupted microbiome were hit hardest.

This matters most in populations where vitamin A deficiency is common, particularly young children in low-income countries, where supplementation programs have measurably reduced diarrhea-related deaths. For adults in well-nourished populations, outright deficiency is rare, but anyone with a condition that impairs fat absorption (like celiac disease or Crohn’s) can quietly become deficient. If you’re dealing with chronic or recurrent diarrhea and haven’t had your vitamin A levels checked, it’s worth asking about.

Vitamin D and the Intestinal Barrier

Vitamin D does something specific and important in the gut: it promotes the production of tight junction proteins, the molecular “zippers” that seal the gaps between intestinal cells. When those junctions break down, the gut becomes permeable. Bacterial toxins slip through, triggering inflammation that makes diarrhea worse and harder to resolve.

Vitamin D preserves these tight junctions, prevents intestinal cell death, and helps regulate the immune cells embedded in the gut lining. It also influences the diversity of your gut microbiome. Low vitamin D levels have been linked to a higher risk of intestinal diseases broadly, and correcting a deficiency can reduce the kind of chronic, low-grade gut inflammation that keeps diarrhea cycling. Since vitamin D deficiency is extremely common (especially in northern latitudes and among people who spend most of their time indoors), this is one of the more actionable items on the list. A simple blood test can tell you where you stand.

Vitamin B3 (Niacin) Deficiency and Diarrhea

Severe niacin deficiency causes pellagra, classically described as the “three Ds”: dermatitis, dementia, and diarrhea. The diarrhea is typically watery, though it can occasionally become bloody. It happens because niacin deficiency triggers widespread inflammation in the gastrointestinal tract, eventually leading to chronic gastritis and damage to the mucosal lining.

Full-blown pellagra is uncommon in developed countries, but it still occurs in people with alcohol use disorder, severely restricted diets, or conditions that impair niacin absorption. If chronic diarrhea comes alongside a rough, sun-sensitive skin rash and cognitive changes, niacin deficiency is a strong possibility. The diarrhea resolves once niacin levels are restored.

Vitamin B12: Depleted by Chronic Diarrhea

This one works in reverse. Vitamin B12 doesn’t treat diarrhea, but prolonged diarrhea can drain your B12 stores. B12 is absorbed in the lower part of the small intestine, and any disease process that damages that area, whether inflammatory bowel disease, celiac disease, or chronic infections, can impair absorption significantly. Studies in patients with chronic diarrhea have found highly prevalent below-normal B12 levels, even when no obvious risk factors for deficiency were present.

B12 deficiency develops slowly but has serious consequences: fatigue, nerve damage, memory problems, and anemia. If you’ve been dealing with diarrhea lasting more than a few weeks, getting your B12 level tested is a reasonable step, especially since the deficiency is easy to correct with supplements or injections once identified.

Folic Acid: Not Helpful for Diarrhea

Folic acid sometimes comes up in discussions about gut recovery because it’s involved in cell growth and tissue repair. However, two randomized controlled trials evaluated folic acid as a treatment for both acute and persistent diarrhea and found no beneficial effect. It’s not recommended as a therapy for diarrheal illness.

Supplements That Can Make Diarrhea Worse

Some of the supplements people take for general health are common culprits behind unexplained diarrhea. Magnesium is the biggest offender. Supplemental doses above 350 mg per day frequently cause abdominal cramping and loose stools. In one study, 18 out of 50 participants developed diarrhea on a moderate magnesium oxide supplement, and six had to drop out entirely because of it. The mechanism is straightforward: unabsorbed magnesium draws water into the intestines through osmosis, producing watery stool. Magnesium oxide and magnesium chloride are the worst forms for this; magnesium glycinate tends to be gentler.

High-dose vitamin C can do the same thing. The tolerable upper limit is 2,000 mg per day, and doses above that commonly cause osmotic diarrhea. Even doses below that threshold bother some people. If you’re taking vitamin C supplements and experiencing loose stools, cutting the dose is the first thing to try.

Why Rehydration Matters Alongside Vitamins

No vitamin will help much if you’re dehydrated, and diarrhea causes dehydration fast. Oral rehydration solutions work because of a specific transporter in the intestinal lining that moves sodium and glucose into cells together, pulling water along with them. Each cycle of this transporter carries roughly 260 water molecules into the body. Collectively, these transporters can move about 5 liters of water per day across the intestinal lining when glucose and sodium are present in the right proportions.

This is why sipping a proper oral rehydration solution (or even a rough home version of water with a small amount of salt and sugar) is more effective than drinking plain water during a diarrheal episode. The vitamins and minerals discussed above work best in a body that’s adequately hydrated, so rehydration comes first, and nutrient repletion follows.