Our Services
Medical Information
Helpful Resources
Published on: 9/12/2026
Loose stools that linger after a stomach bug are often caused by temporary post-infectious lactose intolerance, since the virus damages the intestinal lining cells that produce lactase, making milk and dairy harder to digest for days to weeks. Coffee can worsen it too, because caffeine speeds up gut motility and stimulates the colon, giving your still-healing gut less time to absorb water. Other contributors include disrupted gut bacteria, bile acid malabsorption, and post-infectious IBS, and recovery timelines and warning signs vary, so there are several important factors to consider below.
Because "normal" recovery and red flags like blood in stool, fever, dehydration, unexplained weight loss, or symptoms lasting more than two weeks can look similar at first, it helps to check your specific pattern rather than guess. Take a free, instant, online symptom check to see which explanation best fits your symptoms and understand whether simple diet changes are enough or it is time to see a doctor.
Last reviewed for medical accuracy: 09/12/2026
Recovering from a stomach bug can feel like a victory—until your poop stays loose whenever you drink milk or coffee. This lingering diarrhea is surprisingly common. Here’s what’s going on and how to help your gut get back on track.
A stomach bug (viral gastroenteritis) inflames your stomach and intestines. Common culprits include norovirus and rotavirus. Symptoms usually last 1–3 days, but your digestive tract can take weeks to fully recover.
During the infection, you may experience:
Even after the virus clears, your gut lining and microbes need time to heal. That’s why certain foods and drinks can still trigger loose stools.
After a stomach bug, some people develop temporary lactose intolerance because the infection damages the tiny finger-like projections (villi) in the small intestine. These villi produce lactase, the enzyme that breaks down lactose (milk sugar). When lactase levels drop, lactose stays in your gut and draws water into the stool, causing diarrhea.
Key points:
Coffee stimulates your colon through:
Even in healthy people, coffee can loosen stools. In a gut still healing, this effect is amplified.
Microscopic Damage to the Gut
Gut Microbiota Imbalance
Post-Infectious Irritable Bowel Syndrome (PI-IBS)
Stress and Anxiety
Follow a BRAT-style approach (Bananas, Rice, Applesauce, Toast) for 1–2 days, then slowly reintroduce:
Most people improve within 2–4 weeks. However, talk to a healthcare professional if you experience:
For a quick check of your symptoms, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It’s a simple first step to decide if you need urgent care.
Recovering from a stomach bug can be frustrating, especially when seemingly harmless drinks like milk or coffee still upset your gut. This is often due to temporary lactose intolerance, sensitivity to coffee’s stimulatory effects, and an unsettled gut microbiome. By staying hydrated, tweaking your diet, and reintroducing dairy and caffeine gradually, most people see steady improvement.
If loose stools persist beyond a month or you develop any concerning symptoms, be sure to speak to a doctor for personalized advice. Your gut has been through a lot—give it time, the right nutrition, and professional support when needed.
(References)
* Toca MDC, Fernández A, Orsi M, Tabacco O, Vinderola G. Lactose intolerance: myths and facts. An update. Arch Argent Pediatr. 2022 Feb;120(1):59-66. doi: 10.5546/aap.2022.eng.59. Epub 2021 Dec 17. PMID: 35068123.
* Vandenplas Y. Lactose intolerance. Asia Pac J Clin Nutr. 2015;24 Suppl 1:S9-13. doi: 10.6133/apjcn.2015.24.s1.02. PMID: 26715083.
* Gryboski JD. Chronic diarrhea. Curr Probl Pediatr. 1979 Mar;9(5):1-52. doi: 10.1016/s0045-9380(79)80017-1. PMID: 436445; PMCID: PMC7131527.
* Leis R, de Castro MJ, de Lamas C, Picáns R, Couce ML. Effects of Prebiotic and Probiotic Supplementation on Lactase Deficiency and Lactose Intolerance: A Systematic Review of Controlled Trials. Nutrients. 2020 May 20;12(5). doi: 10.3390/nu12051487. Epub 2020 May 20. PMID: 32443748; PMCID: PMC7284493.
* Moctezuma-Velázquez C, Aguirre-Valadez J. [Gastrointestinal and hepatic diseases]. Gac Med Mex. 2016 Sep;152 Suppl 1:74-83. PMID: 27603892.
* Martínez JC, Lavrut J, Slullitel P. [Classification of food allergy: generalities]. Rev Alerg Mex. 2023 Dec 31;70(4):222-224. doi: 10.29262/ram.v70i4.1330. Epub 2023 Dec 31. PMID: 38506860.
* Coello-Ramírez P, Gutierres-Topete G, Lifshitz F. Pneumatosis intestinalis. Am J Dis Child. 1970 Jul;120(1):3-9. doi: 10.1001/archpedi.1970.02100060037002. PMID: 4912427.
* Hogue G, Adams R. Lower Gastrointestinal Conditions: Malabsorption Syndromes. FP Essent. 2019 Aug;483:20-24. PMID: 31411845.
* Fajardo LF, Leal H, Victoria F, González CE. [Milk intolerance in Colombian children, its prevalence and relation to lactose malabsorption]. Arch Latinoam Nutr. 1979 Sep;29(3):329-39. PMID: 120706.
* Maffei HV, Metz G, Bampoe V, Shiner M, Herman S, Brook CG. Lactose intolerance, detected by the hydrogen breath test, in infants and children with chronic diarrhoea. Arch Dis Child. 1977 Oct;52(10):766-71. doi: 10.1136/adc.52.10.766. PMID: 931422; PMCID: PMC1544801.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.