Does Pneumonia Give You Diarrhea or Is It the Meds?

Pneumonia can cause diarrhea, and it happens more often than most people realize. In one study of over 400 patients with invasive pneumococcal disease, 26% had gastrointestinal symptoms like diarrhea, nausea, vomiting, or abdominal pain. Some patients had gut symptoms as their only initial complaint, with no obvious respiratory signs at first.

But there’s a wrinkle: if you’re taking antibiotics for pneumonia, the medication itself is another common cause of loose stools. Sorting out whether diarrhea is coming from the infection or the treatment matters, because the two situations call for different responses.

Why a Lung Infection Affects Your Gut

Your lungs and your digestive system are more connected than they appear. Researchers call this the “gut-lung axis,” a two-way communication line where immune signals, bacteria, and their byproducts travel between the two organ systems through your bloodstream. When pneumonia triggers a strong immune response in your lungs, the inflammatory signals don’t stay local. They circulate throughout your body, disrupting the balance of bacteria in your intestines and provoking inflammation in the gut lining.

People with severe pneumonia often develop what’s called gut dysbiosis, a shift in the normal mix of intestinal bacteria. Healthy gut bacteria produce compounds from dietary fiber that help keep inflammation in check. When pneumonia throws that bacterial community off balance, the anti-inflammatory protection weakens, and the gut becomes more vulnerable to irritation. The result can be diarrhea, nausea, bloating, or cramping that seems unrelated to a lung problem but is actually driven by the same infection.

Certain Pneumonia Types Are More Likely to Cause It

Not all pneumonias are equal when it comes to gut symptoms. Some specific types are notorious for causing diarrhea alongside respiratory illness.

Legionnaires’ disease is one of the best-known examples. Caused by Legionella bacteria (often picked up from contaminated water systems), this form of pneumonia frequently involves the GI tract. Diarrhea, nausea, and vomiting are common enough with Legionnaires’ disease that doctors sometimes use these symptoms as a diagnostic clue to distinguish it from other pneumonias. Legionella accounts for roughly 2 to 9% of community-acquired pneumonia cases and can affect multiple organs beyond the lungs.

Mycoplasma pneumoniae, often called “walking pneumonia,” can also cause diarrhea, particularly in young children. The CDC notes that children under five with Mycoplasma infections may present with diarrhea, vomiting, sneezing, and watery eyes rather than the classic cough and fever that older kids and adults experience. This can make the infection tricky to identify in toddlers and preschoolers, since it looks more like a stomach bug than a lung infection.

Diarrhea From Antibiotics Is Even More Common

Here’s what complicates things: about 1 in 5 people who take antibiotics develop diarrhea as a side effect, regardless of what infection they’re treating. Since nearly all bacterial pneumonia is treated with antibiotics, many people end up with loose stools from the medication rather than (or in addition to) the infection itself.

Mild antibiotic-associated diarrhea typically starts within hours to a few days of beginning the prescription. It usually involves loose, watery stools without significant pain or fever, and it tends to resolve on its own once you finish the course of antibiotics or shortly after.

More serious antibiotic-associated diarrhea is a different story. It can begin days to even two months after starting the medication, and it’s usually caused by an overgrowth of a bacterium called C. difficile in the large intestine. Signs that diarrhea has crossed into this territory include frequent or severe episodes, lower belly pain and cramping, low fever, nausea, and loss of appetite. Stools that are bloody, black, or tarry, or diarrhea lasting more than two days with worsening symptoms, warrant a call to your doctor.

How to Tell the Difference

Timing is the most useful clue. Diarrhea that starts before you begin antibiotics, or at the very onset of your pneumonia illness, is more likely caused by the infection itself. Diarrhea that appears a few days into antibiotic treatment points more toward a medication side effect. In practice, both can overlap, especially if you started antibiotics quickly after symptoms began.

Diarrhea Can Signal More Serious Illness

For most people, diarrhea during pneumonia is uncomfortable but not dangerous. However, research suggests it’s worth paying attention to. A study of nearly 1,000 hospitalized pneumonia patients found that those who developed any gastrointestinal complication, with diarrhea being the most common at about 5%, had notably worse outcomes. Hospital stays averaged two days longer, and mortality was 21% among patients with GI complications compared to 13% among those without.

That doesn’t mean diarrhea itself makes pneumonia more deadly. It’s more likely a marker: when the body’s inflammatory response is intense enough to affect the gut, it signals a more severe overall illness. No single GI symptom alone predicted mortality in that study, but the pattern held when looking at gastrointestinal involvement as a group. Patients who developed GI complications in the first three days of hospitalization were also more likely to be readmitted within 30 days of discharge, with the majority of those readmissions related to infectious causes.

Managing Diarrhea During Pneumonia

Staying hydrated is the most important thing you can do. Pneumonia already increases your body’s fluid needs through fever and faster breathing, and diarrhea compounds the loss. Water, broth, and oral rehydration solutions all help replace what you’re losing.

If your diarrhea is mild and started after beginning antibiotics, it will likely improve on its own. Eating simple, bland foods and avoiding dairy, caffeine, and high-fiber foods can reduce symptoms in the short term. Probiotics may help restore gut bacteria during and after antibiotic use, though the evidence is stronger for prevention than for treatment once diarrhea has started.

If diarrhea is severe, worsening, or accompanied by fever, blood in the stool, or significant belly pain, that combination needs medical attention. Severe cases sometimes require stopping or switching the antibiotic, and C. difficile infections need their own targeted treatment.