Preparing for an H. pylori breath test mostly comes down to stopping certain medications on the right timeline and fasting for a short period before the appointment. The test itself is quick and painless, but skipping these preparation steps can produce a false negative, meaning the test says you’re clear when you actually have an active infection.
Medications to Stop Before the Test
The biggest preparation risk is taking a medication that temporarily suppresses H. pylori activity without eliminating it. The bacteria are still there, but they’re quiet enough that the test can’t detect them. Three categories of medications cause this problem, each with its own timeline.
Proton pump inhibitors (PPIs): Stop these at least 2 weeks before the test. Common PPIs include omeprazole (Prilosec), esomeprazole (Nexium), lansoprazole (Prevacid), and pantoprazole (Protonix). The American College of Gastroenterology also includes potassium-competitive acid blockers (PCABs) like vonoprazan in this 2-week hold.
Antibiotics: Any antibiotic, whether prescribed for H. pylori or something else entirely, should be finished at least 4 weeks before the test if you’re checking whether a previous treatment worked. If this is your first test for H. pylori, the standard recommendation is to be off antibiotics for at least 2 weeks.
Bismuth products: Pepto-Bismol and similar bismuth-containing medications need to be stopped at least 2 weeks before testing. Bismuth has direct antibacterial effects on H. pylori that can mask a positive result.
H2 blockers: Famotidine (Pepcid) and other histamine-2 receptor antagonists should be stopped 24 to 48 hours before the test. These carry a lower risk of interference than PPIs, and the ACG guidelines note that H2 blockers and basic antacids can actually be used as a bridge if you need some symptom relief during the 2-week PPI washout period.
Fasting and Lifestyle Restrictions
On the day of the test, fast for at least 1 hour beforehand. “Fasting” here means no food, no drinks, and no smoking. You should also avoid chewing gum or tobacco during that hour. Some testing centers ask for a longer fast (up to 6 hours), so follow whatever instruction your specific clinic gives you. If your appointment is early morning, the easiest approach is simply not eating breakfast until after the test.
What Happens During the Test
The whole appointment takes about 20 to 30 minutes. You’ll start by breathing into a collection bag to establish your baseline level of carbon dioxide. Then you’ll drink a small amount of liquid containing a special form of urea, a harmless compound that’s been labeled with a traceable carbon marker.
Here’s why this works: H. pylori produces large amounts of an enzyme called urease. If the bacteria are living in your stomach, that enzyme breaks down the labeled urea almost immediately. The breakdown products enter your bloodstream, travel to your lungs, and show up as labeled carbon dioxide in your breath. If H. pylori isn’t present, the urea passes through unchanged and your breath sample looks the same as your baseline.
After drinking the solution, you’ll sit quietly for about 15 minutes without eating, drinking, or smoking. Then you breathe into a second collection bag. The lab compares the two samples. That’s the entire test.
Carbon-13 vs. Carbon-14 Tests
Two versions of this test exist, and the difference is the type of carbon marker used. The Carbon-13 test uses a stable, non-radioactive isotope and is safe for anyone, including children and pregnant women. The Carbon-14 test uses a mildly radioactive isotope. The radiation dose is extremely small and requires no special precautions for adults or children as young as 3. For pregnant women, Carbon-14 testing is generally avoided unless the benefits clearly outweigh the risks, though the fetal radiation exposure falls well below levels considered harmful. If you were tested with Carbon-14 before knowing you were pregnant, there’s no cause for concern.
Quick Preparation Checklist
- 4 weeks before: Stop antibiotics if you’re retesting after H. pylori treatment (2 weeks if this is a first-time diagnostic test)
- 2 weeks before: Stop PPIs, PCABs, and bismuth products like Pepto-Bismol
- 1 to 2 days before: Stop H2 blockers like famotidine
- 1 hour before: No food, drinks, smoking, gum, or chewing tobacco
If you’re unsure whether a medication you take falls into one of these categories, call the office ordering the test before making any changes. Stopping a prescribed medication on the wrong timeline can cause unnecessary symptom flares, and your doctor may be able to suggest a bridging strategy that keeps you comfortable without compromising test accuracy.

