Pneumonia causes diarrhea through several overlapping pathways: the body’s inflammatory response spills over from the lungs to the gut, certain viruses directly infect intestinal cells, antibiotics used to treat pneumonia disrupt gut bacteria, and the stress of serious illness weakens the intestinal lining. About 5% of hospitalized pneumonia patients develop diarrhea as a complication, and roughly 25% of people with certain types of atypical pneumonia experience gastrointestinal symptoms including diarrhea, nausea, and abdominal pain.
The Lung-Gut Axis
Your lungs and gut are more connected than most people realize. Researchers call this the “lung-gut axis,” a two-way communication system where inflammation in one organ can trigger inflammation in the other. When pneumonia takes hold in the lungs, immune cells flood the area and release signaling molecules like TNF-alpha and IL-6. These don’t stay confined to the chest. They circulate through the bloodstream and reach the intestines, where they provoke an inflammatory response that can speed up gut motility, pull water into the intestinal lining, and produce diarrhea.
In bacterial pneumonia caused by organisms like Klebsiella, for example, immune cells recruited to the lungs release TNF-alpha, which pulls specialized immune cells away from the gut wall and redirects them toward the infection site in the lungs. This reshuffling weakens the gut’s normal immune defenses and disrupts the balance of the intestinal environment.
How Viruses Directly Infect the Gut
Some viruses that cause pneumonia don’t limit themselves to the lungs. SARS-CoV-2 is the clearest example. The virus enters cells by latching onto a protein called ACE2, which is abundant on the surface of lung cells but also heavily expressed on the lining of the small intestine. This means the virus can infect gut cells directly, triggering local inflammation marked by immune cell invasion and the release of inflammatory compounds.
During one early SARS outbreak in a Hong Kong residential building, viral RNA was detected in the stool samples of 97% of patients, and 73% developed diarrhea. COVID-19 also increases the body’s production of serotonin, a chemical better known for its role in mood but that also regulates how fast your intestines move. Infected cells in the gut ramp up serotonin secretion, which speeds intestinal contractions and worsens inflammation, both of which contribute to loose stools.
Atypical Pneumonia and Digestive Symptoms
Mycoplasma pneumoniae, one of the most common causes of “walking pneumonia,” is particularly associated with gut symptoms. Gastrointestinal problems show up in roughly 25% of Mycoplasma cases, including diarrhea, nausea, vomiting, abdominal pain, and loss of appetite. These symptoms can appear alongside or even before the respiratory symptoms, which sometimes leads to initial misdiagnosis. The mechanism is thought to involve the systemic inflammatory response rather than direct gut infection, since Mycoplasma is not known to colonize the intestines.
Antibiotics and Disrupted Gut Bacteria
Many people with pneumonia develop diarrhea not from the infection itself but from the antibiotics used to treat it. Antibiotic-associated diarrhea happens because these drugs don’t selectively kill only the bacteria in your lungs. They also wipe out beneficial bacteria in your intestines, allowing opportunistic organisms to flourish and disrupting the normal digestive process. In hospitalized children with pneumonia, studies have found antibiotic-associated diarrhea rates in the range of 7 to 9%, though the specific antibiotic class didn’t significantly change the risk. Beta-lactam antibiotics, cephalosporins, and macrolides all carried comparable rates.
The timing can help you distinguish antibiotic-related diarrhea from infection-related diarrhea. If loose stools begin a few days after starting antibiotics rather than at the onset of illness, the medication is the more likely culprit.
Intestinal Barrier Breakdown
Severe pneumonia triggers a body-wide stress response that can compromise the intestinal barrier, sometimes called “leaky gut.” Under normal conditions, the cells lining your intestines are held together by tight junction proteins that control what passes through. During serious lung infections, circulating inflammatory signals weaken these junctions. Bacterial toxins from the gut, particularly a compound called LPS from certain bacteria, can then leak into the bloodstream, activating further immune pathways and creating a feedback loop of inflammation between the lungs and intestines.
This process also shifts the composition of gut bacteria. The normal, protective species decline while potentially harmful bacteria expand, a state called dysbiosis. The altered microbial environment produces different metabolic byproducts, irritates the intestinal lining, and contributes to diarrhea, bloating, and abdominal discomfort.
Children and Abdominal Symptoms
In children, pneumonia frequently presents with abdominal pain rather than the classic cough and fever that adults expect. Young children in particular may complain of a stomachache or have diarrhea before respiratory symptoms become obvious. Lower lobe pneumonia, where the infection sits near the base of the lungs close to the diaphragm, is especially likely to cause referred pain to the abdomen. This overlap means pediatric pneumonia is sometimes initially mistaken for a stomach bug or appendicitis.
What Diarrhea Signals About Severity
Diarrhea during pneumonia is worth paying attention to. In a study of non-critically ill pneumonia patients, diarrhea was the most common gastrointestinal complication at 5.2%. While diarrhea alone wasn’t a statistically significant predictor of death, the incidence was higher in patients who didn’t survive (7.2%) compared to those who did (4.9%). More importantly, having any gastrointestinal complication during pneumonia was independently associated with a 75% increase in the odds of dying and a longer hospital stay. The presence of GI symptoms generally reflects a more intense systemic inflammatory response, which tracks with worse outcomes overall.
For most people recovering from pneumonia at home, mild diarrhea is an uncomfortable but manageable side effect. Staying hydrated matters more than usual because you’re already losing fluid through fever and increased breathing. If diarrhea is severe, bloody, or persists after you finish antibiotics, that warrants medical attention, as it could indicate a secondary infection like C. difficile, which thrives when antibiotics have cleared out competing gut bacteria.

