1. Home
  2. UK
  3. Treatment

Why is omeprazole used to treat H. pylori?

Written by the HpyloriTest.com editorial team. Updated on .

Key facts

  • Omeprazole reduces stomach acid. It's taken along with antibiotics to treat H. pylori (NHS).
  • It can affect an H. pylori test. Ask your GP before stopping it, then leave 2 weeks before you test (UK guidance for GPs).
  • Our stool antigen test checks for H. pylori at home, in 10 minutes.

What kind of medicine is it?

A proton pump inhibitor (PPI). Lansoprazole, pantoprazole and esomeprazole are others (UK guidance for GPs).

How is it taken in H. pylori treatment?

Twice a day, with two antibiotics (UK guidance for GPs). More in how H. pylori is treated.

Does omeprazole clear H. pylori?

No. The antibiotics do that. Omeprazole treats stomach ulcers, heartburn and reflux as well (NHS).

What if you take omeprazole and want to test?

Ask your GP before stopping it. If you buy it without a prescription, the NHS says not to take it for more than 2 weeks without seeing a GP (NHS).

How to do the home test

  1. Catch a poo sample and dip the end of the sampling stick into it.
  2. Put the stick back in the tube, then stir and turn it for about 10 seconds.
  3. Squeeze 2 drops into the round sample hole on the test.
  4. Lay the test flat and read it at 10 minutes.

Our step-by-step guide and video show each stage.

Before you test

Ask your GP before stopping a PPI such as omeprazole or lansoprazole. If they agree, stop it 2 weeks before you test. Test at least 4 weeks after your last dose of antibiotics (UK guidance for GPs), and never cut a course of antibiotics short.

What your result means

  • C and T lines: H. pylori detected. Take your result to your GP to talk about treatment.
  • C line only: not detected.
  • No C line: the test didn't work. Use a new test.

When to see a GP instead

See a GP straight away, instead of testing at home, if you have:

  • trouble swallowing
  • weight loss you can't explain
  • vomiting that keeps coming back

If you're vomiting blood or passing black poo, call 999.

Frequently asked questions

Can I drink alcohol with omeprazole?

It's best to avoid alcohol, as it can make your stomach produce more acid (NHS).

Test at home today

One stool antigen test with everything you need. Your result in 10 minutes, delivered to the UK.

$49.00

Sources

  1. NHS. About omeprazole. Page last reviewed 17 September 2025. www.nhs.uk/medicines/omeprazole/about-omeprazole/
  2. Public Health England (now UK Health Security Agency). Test and treat for Helicobacter pylori (HP) in dyspepsia: quick reference guide for primary care. August 2019. assets.publishing.service.gov.uk/media/5d6ceea740f0b607c946aa65/HP_Quick_Reference_Guide_v18.0_August_2019_change_highlighted.pdf
  3. NHS. Stomach ulcer. Page last reviewed 12 August 2025. www.nhs.uk/conditions/stomach-ulcer/

First published November 2026.

How to test for H. pylori at home (39 sec)