When loose stools last longer than four weeks, two paths open up in the doctor's office. On the first, you are sent straight for an upper endoscopy to hunt for Helicobacter pylori in your stomach, with a promise that antibiotics will clear everything up. On the second, you start with blood and stool tests and then take a targeted look at your intestines. The first path sounds simpler: find a bug, take pills, problem solved. In practice, it wastes weeks and money, and often leaves you walking out of the pharmacy with an even more upset gut.
The H. pylori Detour: Why Antibiotics Miss the Target
In a single week, two patients with long-running diarrhea walked into a gastroenterologist's clinic with the exact same story: both had been sent for an upper endoscopy (EGD) to test for H. pylori, tested positive, and were promised the antibiotic course would normalize their stools. Both finished every pill. Their diarrhea never budged, and nobody had even suggested a colonoscopy.
It comes down to anatomy. Helicobacter pylori is a spiral bacterium that lives in the stomach lining and has nothing to do with your colon. According to the Maastricht VI Consensus (2022), it causes chronic gastritis, stomach and duodenal ulcers, rare gastric MALT lymphoma, and raises stomach cancer risk (a WHO Group 1 carcinogen). Chronic diarrhea is not on that list.
So where do stories of stools improving after antibiotics come from? Full eradication therapy runs 14 days and packs two broad-spectrum antibiotics, an acid reducer, and often bismuth. That heavy blast can accidentally knock back small intestinal bacterial overgrowth. Far more often, though, a strong antibiotic course disrupts healthy gut flora and triggers antibiotic-associated diarrhea. If loose stools worsen or drag on after treatment, doctors have to rule out Clostridioides difficile infection.
Treating H. pylori itself makes sense to prevent ulcers and stomach cancer. The mistake is blaming it for diarrhea and stopping the search in the intestines. If your doctor prescribed eradication for a real stomach reason, don't quit the course on your own — just investigate the chronic diarrhea separately.
When Upper Endoscopy Actually Matters for Diarrhea
Upper endoscopy (EGD) does have a precise job in chronic diarrhea, working on a clear "if-then" rule. If blood tests point toward celiac disease (an autoimmune reaction to gluten in wheat, rye, and barley), EGD becomes essential. Celiac disease damages tiny villi in the small intestine, blocking nutrient absorption and causing loose stools. During the procedure, doctors take painless, microscopic biopsies from the duodenum to check under a microscope.
According to British Society of Gastroenterology guidelines (BSG, 2018), duodenal biopsies are needed when celiac antibodies come back positive or when clear malabsorption appears despite negative blood tests (seronegative celiac accounts for 6.4–7% of cases). Biopsies can also catch rare small-bowel infections like giardiasis or Whipple's disease. In the two clinic cases mentioned earlier, doctors never even discussed duodenal biopsies — they only checked for H. pylori.
Where a Proper Workup Actually Starts
Both the AGA (2019) and BSG (2018) guidelines define chronic diarrhea as lasting four weeks or longer. When stools don't settle, testing starts with baseline blood and stool labs: tissue transglutaminase antibodies (tTG-IgA) plus total IgA for celiac disease; fecal calprotectin to screen for gut inflammation (doctors advise against relying only on blood ESR and CRP); stool PCR or antigen testing for Giardia, plus C. difficile after recent antibiotics; along with a complete blood count, ferritin, CRP, and TSH.
From there, the logic is direct. If calprotectin is elevated, "red flags" appear (blood in stool, weight loss, iron deficiency, nighttime diarrhea), or you are 45 or older, the next step is a colonoscopy with biopsies. Doctors sample tissue even when the lining looks healthy to the naked eye, because that is the only way to catch microscopic colitis — colon inflammation causing watery diarrhea that leaves no visible surface marks.
If labs and endoscopy come back clean, doctors check for bile acid diarrhea and functional conditions like IBS. Your exact plan belongs to an in-person exam, and bringing a few direct questions helps keep the workup on track.
Questions to ask your gastroenterologist
- If you recommend starting with an EGD for H. pylori, are we also planning to check my intestines (calprotectin, celiac labs, stool infections, and a colonoscopy with biopsies if needed)?
- Even if we find and treat H. pylori, what is our plan for finding the cause of the diarrhea itself?
- If an upper endoscopy is needed for my symptoms, will we take duodenal biopsies?

