Skip to main content

Digestive health

H pylori infection: symptoms, causes and treatment

H pylori (Helicobacter pylori) is a common stomach bacterium. Guts UK says up to 2 in 5 people in the UK carry it and 8 to 9 in 10 have no problems. It can cause indigestion, gastritis and stomach or duodenal ulcers. A breath or stool test finds it, and a course of antibiotics with an acid-reducing tablet clears it.

Last checked: 2026-10-18

Key facts

At a glance.

  • What it is

    Guts UK says H. pylori are a group of bacteria that live in the sticky mucus lining the stomach. The infection always causes some inflammation of the stomach lining (gastritis).

  • How common

    Guts UK says up to 2 in 5 people in the UK have H. pylori in their stomach, and that it does not cause any problems for 8 to 9 out of 10 people. It is becoming less common in the UK.

  • Main symptoms

    Guts UK lists belly pain (often a gnawing ache), feeling sick, bloating and burping. The NHS says the main symptom of a stomach ulcer is upper tummy pain, which may feel like burning and is often worse at night.

  • Contagious?

    Guts UK says it is not completely clear how it passes between people, but a faeco-oral route is usually proposed. It is almost always caught in childhood, mostly within families from parents to children, and catching it as an adult is very rare.

  • Tests

    The NHS lists a breath test, a poo sample test or a blood test. Guts UK says breath and stool tests are as accurate as each other, and that they can be inaccurate after recent antibiotics or acid-blocking medicines.

  • Treatment

    Guts UK says treatment is a combination of 3 to 4 tablets: one to cut stomach acid and the others antibiotics. Two-week triple therapy is now recognised as more effective than one week.

What is H pylori infection?

H. pylori are bacteria that live in the sticky mucus that lines the stomach. Guts UK describes the infection as fairly common: up to 2 in 5 people in the UK have it, and in people with learning difficulties it can be present in 9 out of 10. For 8 to 9 out of 10 people it causes no problems at all.

Guts UK explains that the infection always causes inflammation of the stomach lining, called gastritis, which usually starts in the lower part of the stomach. Gastritis has other causes too, including smoking and medicines such as aspirin and anti-inflammatory painkillers like ibuprofen or naproxen.

The NHS lists H pylori, alongside regular use of anti-inflammatory painkillers, as one of the two main causes of stomach ulcers.

What are the symptoms of H pylori infection?

Most people have no symptoms. When there are symptoms, Guts UK lists belly pain, which is often a gnawing ache, feeling sick (nausea), belly bloating and burping (belching). Not all of these need to be present. Indigestion is one of the main symptoms the infection can cause, but Guts UK stresses that in the majority of people with indigestion it is caused by something else, most commonly a condition called functional dyspepsia.

If an ulcer has formed, the NHS says the main symptom is tummy pain that is usually in the upper part of the tummy, may feel like burning and is often worse at night. Other symptoms include indigestion, heartburn, bloating and feeling or being sick.

  • Gnawing or burning pain in the upper tummy.

  • Nausea, bloating and burping.

  • Indigestion or heartburn that does not settle.

  • Black, sticky poo or vomiting blood, which are signs of a bleeding ulcer and need emergency care (see below).

How is H pylori treated?

Guts UK says all doctors agree that people with H. pylori should have treatment, and that where H. pylori is found it should always be treated to reduce the risk of complications. Treatment is a combination of 3 to 4 different tablets: one to cut down the amount of acid in the stomach and the others antibiotics. The combination is what makes it work.

Guts UK says that traditionally one-week triple therapy (three drugs) was used, but two-week triple therapy is now recognised as more effective. It adds that a newer medicine containing two antibiotics and bismuth is available in the UK, taken for ten days with an acid-reducing drug.

The NHS says treatment for a stomach ulcer depends on the cause and may include antibiotics to treat H pylori and medicines to reduce stomach acid, such as proton pump inhibitors. It says treatment usually lasts from 1 week to 2 months depending on what is causing the ulcer.

Treatment is much more successful if the whole course is taken exactly as prescribed, according to Guts UK. Your doctor will encourage you to continue unless side effects become unpleasant. Do not stop without speaking to them.

Side effects of H pylori treatment

Guts UK says most people have no side effects from treatment, but some notice minor problems. These can include a strange taste in the mouth, a feeling of sickness and a headache.

With one specific antibiotic that is often used, metronidazole, you should avoid alcohol. Check the leaflet in your pack and ask a pharmacist if unsure.

How is H pylori diagnosed?

The NHS says that if a GP thinks you might have a stomach ulcer they may arrange tests including a breath test, a poo sample test or a blood test, and you may be referred for a gastroscopy. Guts UK describes each test.

Tests for H pylori (Guts UK and NHS)
TestHow it worksPoints to know
Breath testYou take a drink or tablet containing urea, and breath samples are taken before and afterAlso used to check the infection has cleared, at least one month after treatment finishes
Stool (poo) testA small sample is analysed for H. pylori proteinsGuts UK says stool tests are as accurate as breath tests, and can also confirm the infection has cleared
Gastroscopy with biopsyA camera on a thin tube passes through the mouth into the stomach, and a tiny piece of lining can be testedUsually an outpatient procedure taking under 15 minutes; throat spray or sedation can be offered
Blood testListed by the NHS among tests a GP may arrangeGuts UK does not describe it in its leaflet

Medicines that can spoil the test

Guts UK says tests for H. pylori may not be accurate if you have had antibiotics for any reason within the last month, or have taken proton pump inhibitors (acid blockers) in the last two weeks. These include esomeprazole, lansoprazole, omeprazole, pantoprazole and rabeprazole. Your doctor will ask you not to have the test if other medicines would give a misleading result, so tell them what you take, but do not stop any medicine without advice.

Checking the infection has gone

Guts UK says it is important to check after treatment whether the infection has cleared, because treatment does not always get rid of the bacteria. A breath or stool test is used, at least one month after the course finishes. If the result is still positive, further treatment is possible.

It adds that when symptoms are due to an ulcer and H. pylori is treated, most people recover without further complications. For people without an ulcer, some see a significant reduction in symptoms, but the benefit may take 12 months to appear. If symptoms continue, ask about other causes such as functional dyspepsia.

How is H pylori caught and is it contagious?

Guts UK says it is not completely clear exactly how H. pylori is passed from person to person, but a faeco-oral route is usually proposed, in which bacteria in poo move from one person to another person's mouth. It is also unclear why only some people with the infection develop symptoms or complications such as ulcers.

Guts UK says people who have H. pylori almost always catch it in childhood, when the immune system is not mature enough to repel it, usually within families and mostly from parents to children. It stays in the stomach unless treated with specific antibiotics. Becoming infected as an adult is very rare, and once treated and cured, getting infected again is very unusual.

Ulcers, bleeding and stomach cancer

Guts UK says inflammation from H. pylori can cause ulcers of the stomach or the first part of the small bowel (the duodenum), called peptic ulcers, and that about 3 in 20 people with H. pylori have ulcers. Ulcers can occasionally bleed or burst (perforate). The NHS lists bleeding, iron deficiency anaemia, a hole in the stomach causing peritonitis and an increased risk of stomach cancer from untreated H pylori infection as complications of an untreated ulcer.

Guts UK says a very small number of people with long-standing infection may develop stomach cancer, after decades of untreated infection, and gives the figure as between 1 and 3 in 100 people. Symptoms that raise suspicion include vomiting, unintentional weight loss, difficulty or pain swallowing and a low iron level. It says most people will not have stomach cancer, but getting diagnosed sooner is beneficial.

Guts UK recommends that first-degree relatives (parents, siblings or children) of people with stomach cancer be tested for H. pylori. Discuss this with your GP if it applies to you.

When to get urgent help

The NHS stomach ulcer page sets out when to seek help for ulcer symptoms, which include those caused by H pylori.

  • See a GP if you have indigestion that does not go away with treatment, or tummy pain that keeps coming back.

  • Ask for an urgent GP appointment or call NHS 111 if tummy pain is getting worse or does not go away, you have lost your appetite, feel full after a very small amount of food, have lost weight without trying, feel a lump in your tummy, find it painful or difficult to swallow, keep being sick or feel tired all the time.

  • Call 999 or go to A&E if you vomit bright red blood or vomit that looks like ground coffee, your poo has blood in it or is black, sticky and very smelly, you have severe tummy pain, your tummy is painful to touch, or you have sudden chest pain. Do not drive yourself.

What can help while you are being treated?

The NHS suggests eating smaller meals, eating your evening meal 3 to 4 hours before bed, keeping to a healthy weight and taking steps to manage stress. It advises against taking anti-inflammatory painkillers such as ibuprofen without speaking to a doctor, against foods and drinks that trigger symptoms (which can include fatty or spicy foods, coffee and chocolate), and against smoking and drinking too much alcohol. Stopping or changing medicines that may be making symptoms worse can also be recommended. NHS inform adds that there is little evidence that stress or certain foods cause stomach ulcers, and that smoking can increase the risk of ulcers and make treatment less effective.

NHS and private pathways

On the NHS, a GP can arrange a breath, stool or blood test and prescribe treatment, and refers you for a gastroscopy if you have warning symptoms. Guts UK says people with indigestion plus other worrying symptoms, such as unintentional weight loss, persistent vomiting or food sticking when swallowing, will still need an endoscopy.

Private options generally mean a quicker breath or stool test, or private gastroscopy. Tell your GP about any private result so that treatment and the check afterwards are coordinated, and remember that antibiotics or acid blockers taken beforehand can make a test unreliable.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • What is H pylori?

    Guts UK says H. pylori are bacteria that live in the sticky mucus lining the stomach. Up to 2 in 5 people in the UK have them. For 8 to 9 out of 10 people the infection causes no problems, but it always causes some inflammation of the stomach lining and can lead to ulcers.

  • What are the symptoms of H pylori?

    Guts UK lists belly pain, often a gnawing ache, feeling sick, bloating and burping, though most people have no symptoms. The NHS says stomach ulcer pain is usually in the upper tummy, may feel like burning and is often worse at night. Most indigestion is caused by something other than H. pylori.

  • How do you treat H pylori?

    Guts UK says treatment is a combination of 3 to 4 tablets, one to reduce stomach acid and the others antibiotics. Two-week triple therapy is now recognised as more effective than one week, and a ten-day bismuth-containing option is also available in the UK. Taking the whole course exactly as prescribed matters.

  • How do you get H pylori?

    Guts UK says it is not completely clear, but passing from faeces to mouth is usually proposed. People almost always catch it in childhood, mostly within families from parents to children. Catching it as an adult is very rare, and getting infected again after being cured is very unusual.

  • Is H pylori contagious?

    Guts UK says it is passed between people, probably by the faeco-oral route, mostly within families and usually in childhood. It is becoming less common in the UK. Adults rarely catch it, and Guts UK recommends testing first-degree relatives of people with stomach cancer.

  • How is H pylori diagnosed?

    The NHS says a GP may arrange a breath test, a poo sample test or a blood test, and may refer you for a gastroscopy. Guts UK says breath and stool tests are equally accurate, and that antibiotics in the last month or acid-blocking medicines in the last two weeks can make a test unreliable.

  • What are the side effects of H pylori treatment?

    Guts UK says most people have no side effects, but some notice a strange taste in the mouth, feeling sick or a headache. If you are given the antibiotic metronidazole, you should avoid alcohol. Your doctor will encourage you to continue unless side effects become unpleasant, so tell them rather than stopping.

  • How do I know H pylori has gone?

    Guts UK says doctors should always check after treatment, using a breath or stool test at least one month after the course finishes. Treatment does not always work first time. If the result is still positive, further treatment is possible with a different combination of tablets.

  • Does H pylori cause stomach cancer?

    Guts UK says a very small number of people with long-standing infection may develop stomach cancer after decades, giving a figure of between 1 and 3 in 100. Most people will not. Warning symptoms include vomiting, unintentional weight loss, trouble swallowing and low iron, which should be investigated urgently.

  • What foods should I avoid with a stomach ulcer?

    The NHS says to avoid food and drink that triggers your symptoms, which can include fatty or spicy foods, coffee and chocolate, and to eat smaller meals and finish your evening meal 3 to 4 hours before bed. It also advises not smoking, limiting alcohol and not taking ibuprofen without speaking to a doctor.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-18, next review 2027-10-18.