Most dairy products can make diarrhea worse, and major health organizations like the Mayo Clinic recommend avoiding them for a few days while symptoms last. The reason comes down to lactose, the natural sugar in milk, which becomes harder for your gut to break down when your intestines are irritated or inflamed. But not all dairy is equal here. Fermented and aged options like yogurt and hard cheese behave very differently from a glass of milk.
Why Your Gut Struggles With Milk During Diarrhea
Even if you normally digest dairy just fine, a bout of diarrhea can temporarily change that. The enzyme that breaks down lactose sits right at the tips of tiny finger-like projections lining your small intestine called villi. These tips are the most exposed, fragile part of the intestinal wall. When a stomach bug, food poisoning, or other illness damages that lining, the lactose-digesting enzyme is one of the first things to go. On top of that, your body replaces damaged cells with new, immature ones that don’t produce the enzyme efficiently yet.
The result is a temporary form of lactose intolerance. Lactose that would normally be broken down and absorbed instead passes whole into your colon, where it pulls extra water into the intestine through osmosis. Bacteria in the colon then ferment the undigested sugar, producing gas, bloating, cramping, and looser stools. In other words, drinking milk or eating ice cream while you already have diarrhea can layer a second type of diarrhea on top of the first.
Which Dairy Products Are Safer
The lactose content varies enormously across dairy products, and that’s what determines whether something will cause trouble.
A standard cup of milk contains roughly 12 grams of lactose, making it the most likely to aggravate symptoms. Soft cheeses and ice cream fall in a middle range. But hard, aged cheeses tell a completely different story. Parmesan, aged cheddar (12 months or older), and aged Gouda typically contain less than 0.1 grams of lactose per serving, which is effectively zero. Lab testing on Parmigiano-Reggiano shows it reaches naturally lactose-free status after just 48 hours of aging, with levels dropping below detectable limits by 12 months. If you’re recovering from diarrhea and want something dairy-based for calories or comfort, a small serving of aged cheese is unlikely to cause problems.
Yogurt occupies an interesting middle ground. While it still contains some lactose, the live bacterial cultures in yogurt partially digest it for you during fermentation. Probiotic-containing yogurt may actually help rather than hurt. A University of Maryland study found that yogurt containing the probiotic strain Bifidobacterium lactis BB-12 helped maintain healthy bacterial communities in the colon during antibiotic use. Subjects who ate the probiotic yogurt recovered their levels of acetate, a beneficial compound produced by gut bacteria, within 30 days, while the placebo group remained below normal. Starting probiotics early, before symptoms progress, appeared to give the best results.
Kefir, another fermented dairy drink, works similarly. Its bacterial cultures pre-digest a significant portion of the lactose during fermentation, and it delivers a diverse mix of probiotic strains.
The Exception: Breastfeeding Infants
If you’re a parent wondering whether to stop breastfeeding a baby with diarrhea, the answer from WHO and UNICEF is clear: keep breastfeeding. Their joint clinical guidelines state that breastfeeding should continue alongside oral rehydration, and that mothers should actually increase breastfeeding during a diarrheal episode and increase all feeding after it resolves. Breast milk provides fluids, calories, and immune factors that support recovery. This is one situation where dairy (in the form of breast milk) is actively recommended during diarrhea, not restricted.
A Practical Approach to Dairy and Recovery
For most adults and older children with acute diarrhea, the practical strategy is straightforward. During the worst of your symptoms, avoid high-lactose dairy: milk, soft cheese, cream, and ice cream. These are the products most likely to pull extra water into your intestines and worsen cramping and loose stools.
If you want dairy during recovery, choose options with minimal lactose. Aged cheeses like Parmesan and sharp cheddar (aged 12 months or more) are safe choices, with lactose levels so low they’re functionally zero. Plain yogurt with live active cultures is also a reasonable option and may support your gut’s recovery by replenishing beneficial bacteria.
Once your stools have returned to normal for a couple of days, you can start reintroducing higher-lactose products like milk. Your intestinal lining needs time to regenerate fully functioning cells, so jumping back to large servings of milk the moment diarrhea stops can sometimes trigger a brief return of symptoms. Start with small amounts and increase gradually over several days. Most people’s enzyme production bounces back within one to two weeks after the illness resolves, though a severe infection can extend that timeline.
When Dairy Intolerance Lingers
For some people, the temporary lactose intolerance triggered by a gut infection doesn’t resolve as quickly as expected. If you notice bloating, gas, or loose stools every time you drink milk for several weeks after your illness has cleared, the villi in your small intestine may still be healing. This is more common after prolonged infections or repeated bouts of gastroenteritis. Continuing to choose low-lactose dairy options during this period keeps you from aggravating your gut while it finishes repairing itself. If symptoms persist beyond six to eight weeks, it’s worth investigating whether you’ve developed a more lasting change in lactose tolerance, which can happen at any age independently of illness.