← Back to blog
10 min read

H. pylori Breath Test: How to Prepare

Dr. Pedro Yelamo Vera
Medical Review

Medically Reviewed by Dr. Pedro Yelamo Vera, MD

Licensed Physician No. 484814280 · Official Medical College of Bizkaia (Spain)Last reviewed: 31 October 2026

5.0 on Google29 reviews

How to prepare for the H. pylori breath test: when to stop omeprazole, antibiotics and bismuth, how long to fast, what happens and how to get one in Spain.

A male doctor calmly explains H. pylori breath test preparation to a female patient in a bright, modern clinic room.
Need help now?

You don't have to figure this out alone

Dr. Pedro Yelamo Vera is an independent, bilingual GP licensed in Spain. Book a 15-minute video consultation in English or Spanish for €50, with a private electronic prescription issued under Spanish law when clinically appropriate.

Book a Video Consultation

To prepare for an H. pylori breath test, stop proton pump inhibitors such as omeprazole two weeks before. Leave four weeks after any antibiotics or bismuth. Do not eat, drink or smoke for six to eight hours before, as your lab asks. These steps stop a false negative result, which would hide an infection that is there.

TL;DR
  • The breath test is a simple, accurate test for H. pylori. It is also used to check that treatment worked.
  • Stop omeprazole and similar stomach protectors 2 weeks before. If a doctor prescribed them, ask that doctor first.
  • Leave 4 weeks after antibiotics or bismuth medicines.
  • Fast for 6 to 8 hours, with no smoking. Follow your own lab's sheet.
  • A check after treatment is done at least 4 weeks after you finish it.

Dr. Pedro Yelamo Vera is a GP licensed in Spain (Colegiado No. 484814280).

For a medical emergency, call 112 or go to the nearest local emergency department. Do not wait for a video consultation or an online reply.

What is the H. pylori breath test?

H. pylori is a germ that can live in the lining of the stomach. It can cause gastritis and stomach ulcers. Many people carry it with no symptoms at all.

The germ breaks down urea, a simple substance. The test uses this. You breathe into a tube, swallow a drink or tablet with marked urea, and breathe again later. If the germ is there, the second sample holds more of the marked carbon dioxide, MedlinePlus explains.

In Spain it is called the prueba del aliento or test del aliento con urea marcada. The usual version uses urea marked with carbon-13. The Spanish family doctors' society, SEMERGEN, calls it the test of choice both to diagnose the infection and to check it has gone.

Which medicines do I need to stop before the test?

Some medicines quieten the germ without killing it. The test can then read negative while the infection is still there. That is why they must be stopped first.

  • Proton pump inhibitors (PPIs): omeprazole, esomeprazole, lansoprazole, pantoprazole and rabeprazole. Stop them 2 weeks before. NICE sets this 2-week gap because it makes the test more accurate.
  • Antibiotics for any infection: leave 4 weeks since the last dose, says NICE.
  • Bismuth medicines: 4 weeks, according to SEMERGEN and the public Hospital Severo Ochoa leaflet in Madrid.
  • H2 blockers such as famotidine: the Madrid leaflet asks for 2 weeks. Some UK labs only ask you to skip them on the morning of the test.
  • Antacids such as sodium bicarbonate: the Madrid leaflet asks for 24 hours.

Sources do not all agree on the gaps. The MedlinePlus encyclopedia gives up to 2 weeks for antibiotics and bismuth. NICE and Spanish guidance give 4. When in doubt, use the longer gap, or ask the lab doing your test.

Is it safe to stop omeprazole before the test?

If a doctor prescribed it, ask the doctor who prescribed it before you stop. This matters most if it protects your stomach, for example after a bleeding ulcer, or alongside aspirin, anti-inflammatories or blood thinners. Sometimes the test is planned another way.

If you bought it yourself for heartburn, the burning may come back for a while during the gap.

If the burning comes back during the gap, a plain antacid can help until the day before. Read more in our guides to omeprazole in Spain and Nexium (esomeprazole).

Do I need to fast for the H. pylori breath test?

Yes. Rules vary a little between labs:

  • The Frimley Health NHS leaflet asks for nothing to eat or drink for 6 hours.
  • The Hospital Severo Ochoa leaflet asks for 8 hours with no food, drink or smoking.

Follow the sheet from your own lab. Bring a list of your medicines. Some test tablets contain lactose, so tell the lab if you are intolerant.

What happens on the day?

The test is simple and painless. Most people need no one to come with them.

  • You breathe into a tube or bag to give a first sample.
  • You take the test drink or tablet. Some labs also give a lemon-flavoured drink.
  • You wait quietly. You then give a second breath sample, often about 30 minutes later.

The whole visit takes about 30 to 40 minutes. You can go back to work afterwards. MedlinePlus says breath and stool tests have no known risks.

Need an H. pylori test, or not sure how to stop your stomach medicine before it?

You can book a video visit with a GP licensed in Spain, in English or Spanish. He goes through your symptoms and medicines, explains the preparation step by step, and helps you plan the test and the next steps.

How do I get an H. pylori breath test in Spain?

Through the public system, start with your family doctor (médico de familia) at your centro de salud. SEMERGEN notes that testing and treatment are available from primary care. The doctor gives you a request form (volante). The test is then booked at a health centre or hospital lab. SEMERGEN notes that the breath test is not available in every health area.

Privately, a doctor can request the test at a lab near you. A stool antigen test (antígeno en heces) is the main alternative. A blood antibody test is less reliable. It can stay positive after the germ has gone, so it is never used to check a cure.

Who should have the test?

Testing is not for everyone. SEMERGEN lists, among others:

  • People with a stomach or duodenal ulcer, now or in the past.
  • People under 55 with indigestion and no warning signs.
  • Close relatives of someone with stomach cancer.
  • People with iron-deficiency anaemia that has no other cause.

Children can have it too. Mayo Clinic says it suits children over 6 who can follow the steps. If you are pregnant or breastfeeding, tell your doctor before you book.

When should the test be repeated after treatment?

Treatment is a combination of medicines that needs a prescription. A check afterwards shows whether it worked. Mayo Clinic, SEMERGEN and the Public Health England guide all say to wait at least 4 weeks after finishing treatment. You also need the 2 weeks off PPIs again.

Practice differs here. In Spain, SEMERGEN advises checking that the germ has gone in everyone treated. In England, the Public Health England guide did not retest everyone routinely. The same guide calls the breath test the most accurate test. If your test is still positive, a different treatment is used.

When are stomach symptoms an emergency?

Call 112 or go to urgencias if you vomit blood or something like coffee grounds, pass black, sticky stools, have severe tummy pain, or your tummy is very painful to touch. These are warning signs listed by the NHS.

See a doctor today, without waiting, if you keep vomiting, lose weight without trying, find it hard to swallow, or feel a lump in your tummy. If you are over 55 and the indigestion is new, see a doctor soon too: SEMERGEN counts this as a warning sign. These signs may need a camera test (gastroscopia) rather than a breath test. For what stool colour can mean, see our stool colour guide.

Talking it through with a doctor by video

Dr. Yelamo is a GP licensed in Spain. He sees adults, children and pregnant patients by video, every day from 07:30 to 20:30 (Spain time). In the visit he will:

  • Ask about your symptoms, your medicines and any warning signs.
  • Explain which medicines to pause, for how long, and how to manage symptoms in the gap.
  • Tell you whether a breath test, a stool test or an in-person exam fits best.

He does not promise any test or prescription before the visit. Where clinically appropriate, following a genuine evaluation. Treatment and prescriptions are issued solely at the doctor's discretion based on evidence-based clinical guidelines.

A prescription is never guaranteed: it is issued only where clinically appropriate after a genuine evaluation, as a private electronic prescription under Spanish law. This service is for urgent, non-emergency care. In an emergency, call 112.

See how the Urgent Care video visit works. It lasts 15 minutes and costs €50.

This guide is general information. It does not replace a consultation with your doctor.

Frequently asked questions

How long before an H. pylori breath test should I stop omeprazole?

Two weeks. NICE sets this gap for omeprazole and other proton pump inhibitors because they can make the test falsely negative. If a doctor prescribed it, ask the doctor who prescribed it before stopping.

Can I take antibiotics before the breath test?

Leave four weeks after the last dose of any antibiotic, as NICE and Spanish guidance advise. Antibiotics can quieten the germ and hide the infection.

Can I drink water before the H. pylori breath test?

Usually not. Most labs ask for nothing to eat or drink for six to eight hours before. Follow the instructions from your own lab.

How long does the breath test take?

About 30 to 40 minutes, most of it waiting between the two breath samples. You can go back to work afterwards.

When should I repeat the test after treatment?

At least four weeks after finishing treatment, and after two weeks off proton pump inhibitors.

Is the breath test better than a blood test?

Usually, yes. A blood antibody test is less reliable and can stay positive after the germ has gone, so it is never used to check a cure.

Sources

Related guides

Medical Citations & Sources

This content is written and reviewed by a licensed physician with reference to the following official health authorities.

  1. World Health Organization (WHO)
  2. Spanish Ministry of Health (Ministerio de Sanidad)
  3. European Centre for Disease Prevention and Control (ECDC)
  4. NHS — Health A to Z
Dr. Pedro Yelamo Vera

Dr. Pedro Yelamo Vera

General Practitioner & Telemedicine Specialist · License No. 484814280

Every consultation takes place by secure video call at a time you choose, with no waiting rooms and no rushed appointments. From routine health concerns and medical certificates to second opinions on tests received abroad, my goal is to make quality healthcare simple, transparent, and genuinely accessible. You always know the full cost before you book, and you leave each consultation with a clear plan and the confidence that you have been properly heard.

About the doctor →
Urgent medical care by video consultation with Dr. Pedro Yelamo VeraEvery day · 07:30–20:30

One named doctor, from first call to follow-up

Book a secure 15-minute video consultation with Dr. Pedro Yelamo Vera for €50. Appointments every day, 07:30–20:30 (Spain time). For urgent, non-emergency care; in an emergency, call 112.

Book a Video Consultation

Related Guides

Your privacy, your choice

We use essential cookies to keep this site working. With your permission, we would also like to use analytics cookies to see which pages help patients most, and advertising cookies to measure our campaigns. You can change your choice at any time under “Cookie settings” at the bottom of every page. Cookie & Privacy Policy