What Is a Stomach Breath Test and How Does It Work?

A breath test for the stomach is a simple, non-invasive diagnostic tool that detects specific gases in your exhaled breath to identify stomach and digestive conditions. The most common types check for H. pylori infection (a bacterium that causes ulcers and gastritis), small intestinal bacterial overgrowth (SIBO), and the inability to digest certain sugars like lactose or fructose. Rather than requiring blood draws or invasive scopes, these tests work by having you drink a test solution and then breathe into collection tubes at timed intervals.

Conditions a Breath Test Can Detect

There are three main categories of digestive problems that breath tests diagnose. The first is H. pylori infection, a bacterial infection in the stomach lining that causes ulcers, chronic gastritis, and increases the risk of stomach cancer. The second is SIBO, a condition where abnormally large numbers of bacteria colonize the small intestine, leading to bloating, gas, diarrhea, and abdominal pain. The third is carbohydrate malabsorption, where your body can’t properly break down specific sugars.

Lactose intolerance is the most commonly tested sugar malabsorption, but breath tests can also diagnose problems digesting fructose (found in fruit and many processed foods), sucrose, and sorbitol. Beyond these three categories, a specialized version of the test can measure how quickly or slowly food moves through your small intestine, which helps evaluate motility disorders.

How the H. Pylori Breath Test Works

H. pylori bacteria survive in stomach acid by producing large amounts of an enzyme called urease. This enzyme breaks down urea (a natural compound in the body) into ammonia and carbon dioxide. The urea breath test exploits this chemistry by having you swallow a small capsule or drink containing urea that’s been tagged with a special, non-radioactive carbon marker called carbon-13.

If H. pylori is living in your stomach, the bacteria’s urease will break down the tagged urea, releasing carbon dioxide that carries the carbon-13 marker. That carbon dioxide gets absorbed into your bloodstream, travels to your lungs, and comes out in your breath. A lab then measures whether your breath samples contain elevated levels of carbon-13. High levels confirm the bacteria are present and active.

This test is remarkably accurate. A large meta-analysis found the carbon-13 urea breath test has 97% sensitivity and 96% specificity, meaning it catches nearly all true infections and very rarely flags a false positive. That makes it one of the most reliable non-invasive tests in gastroenterology. It’s also completely safe for children and during pregnancy because the carbon-13 isotope is non-radioactive.

How Hydrogen and Methane Breath Tests Work

The breath tests for SIBO and sugar malabsorption rely on a different principle. Your human cells don’t produce hydrogen or methane gas. Only bacteria do. So when bacteria in your gut ferment undigested carbohydrates, they release hydrogen and methane that get absorbed into your blood, travel to your lungs, and show up in your breath.

For a SIBO test, you drink a solution containing either glucose or lactulose (a synthetic sugar). If bacteria are overgrown in your small intestine, they’ll start fermenting that sugar earlier than expected, producing a detectable rise in hydrogen or methane before the solution even reaches your large intestine. For lactose or fructose intolerance testing, you drink a measured dose of the specific sugar, typically 35 grams dissolved in water. If your body can’t break it down properly, bacteria will ferment the undigested sugar and your breath hydrogen or methane levels will spike.

What to Expect During the Test

The H. pylori breath test is the quickest version. You provide a baseline breath sample, swallow the test solution, then wait about 15 to 20 minutes before giving a second breath sample. The whole process takes roughly 30 minutes.

Hydrogen and methane breath tests for SIBO or sugar malabsorption take longer. After providing a baseline sample and drinking the test solution, you blow into collection tubes every 15 to 20 minutes for a total of about 2 to 3 hours. You’ll typically sit in a waiting area during this time. The test itself is painless, though some people experience bloating, gas, or cramping from the test solution, particularly if they do have the condition being tested for.

How to Prepare

Preparation matters because certain medications and foods can interfere with results. For the H. pylori breath test, you need to stop taking antibiotics, proton pump inhibitors (common acid-reducing medications like omeprazole and lansoprazole), and bismuth-based products like Pepto-Bismol at least two weeks before the test. Any of these can suppress the bacteria enough to produce a false-negative result, making it look like you’re infection-free when you’re not.

For hydrogen and methane breath tests, you’ll generally follow a low-fermentable-carbohydrate diet for 24 hours before the test. This means avoiding beans, high-fiber foods, certain fruits, and other foods that could raise your baseline gas levels. You’ll also need to fast overnight, usually for at least 8 to 12 hours before the appointment. Your doctor’s office will provide specific dietary instructions, as protocols can vary slightly between clinics.

On the morning of the test, avoid smoking, vigorous exercise, and chewing gum, as all of these can affect the breath readings.

Why Doctors Choose Breath Tests Over Other Options

H. pylori can also be detected through stool tests, blood antibody tests, or biopsies taken during an endoscopy. But the breath test has a distinct advantage: it confirms active, current infection. Blood antibody tests can remain positive long after an infection has been treated, making them unreliable for confirming whether treatment worked. The breath test is also the preferred method for checking whether H. pylori has been successfully eradicated after a course of treatment.

For SIBO and carbohydrate malabsorption, breath testing is essentially the only practical non-invasive option. The alternative for SIBO diagnosis involves aspirating fluid directly from the small intestine during an endoscopy, which is expensive, invasive, and not widely available. Breath testing offers a way to screen for these conditions in a regular office visit without sedation, needles, or significant discomfort.

Limitations to Be Aware Of

Breath tests are useful screening tools, but they aren’t perfect. Hydrogen breath tests for SIBO can miss infections in people who primarily produce methane rather than hydrogen. Newer testing protocols measure both gases simultaneously to address this gap, but not all labs do this routinely.

False negatives on the H. pylori test almost always trace back to recent use of antibiotics, acid suppressors, or bismuth products. If you’ve taken any of these within the two-week window, the test should be postponed. Timing also matters on the other end: if you’re being retested after H. pylori treatment, most guidelines recommend waiting at least four weeks after finishing antibiotics to allow any surviving bacteria to regrow to detectable levels.

For sugar malabsorption tests, symptom tracking during the test itself can be just as informative as the gas readings. If you develop significant bloating, cramps, or diarrhea after drinking the lactose or fructose solution, that clinical response adds context to the numerical results.