Skip to main content

Stomach and digestion

Helicobacter pylori (H. pylori): symptoms, testing and treatment

Helicobacter pylori (H. pylori) is a common stomach bacterium that usually causes no problems but can lead to gastritis, stomach or duodenal ulcers and, rarely, stomach cancer. Symptoms include gnawing tummy pain, nausea, bloating and burping. It is diagnosed by a breath or stool test and treated with a short course of two antibiotics plus an acid-reducing tablet.

Last checked: 2026-10-11

Key facts

At a glance.

  • What it is

    A group of bacteria that live in the sticky mucus lining the stomach, says Guts UK.

  • How common

    Guts UK says up to 2 in 5 people in the UK have H. pylori, and it causes no problems for 8 to 9 out of 10 of them.

  • Symptoms

    Gnawing belly pain, nausea, bloating and burping, according to Guts UK. Many people have no symptoms at all.

  • Ulcers

    Guts UK says about 3 in 20 people with H. pylori have ulcers of the stomach or duodenum.

  • How you catch it

    Usually in childhood, within families, probably by a faeco-oral route. Guts UK says catching it as an adult is very rare.

  • Tests

    A urea breath test, a stool antigen test or a biopsy during gastroscopy. Antibiotics in the last month or acid blockers in the last 2 weeks can make tests unreliable.

  • Treatment

    A combination of tablets: one that cuts stomach acid and antibiotics, taken for 10 days to 2 weeks, says Guts UK.

  • Check it worked

    Re-testing is advised because treatment does not always clear the bacteria; Guts UK says wait at least one month after finishing.

What is Helicobacter pylori (H. pylori)?

H. pylori is a group of bacteria that live in the sticky mucus that lines the stomach. 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.

H. pylori are spiral-shaped bacteria that live in the sticky mucus lining the stomach. Guts UK explains that the infection always causes some inflammation of the stomach lining, usually starting in the lower part of the stomach, the antrum, and sometimes spreading to the whole stomach. For most people this inflammation causes no symptoms and is never noticed.

Because of what it can lead to in a minority of people (gastritis, peptic ulcers and, very rarely after decades, stomach cancer), Guts UK says that where H. pylori is found it should always be treated to reduce the risk of complications.

Helicobacter pylori symptoms

Guts UK lists belly pain (often a gnawing ache), feeling sick, belly bloating and burping as symptoms of H. pylori gastritis, noting that not all might be present. Indigestion is the symptom most associated with the infection, but Guts UK stresses that in the majority of people with indigestion the cause is something else, most commonly functional dyspepsia, and that people can have both without one causing the other.

Ulcers are the best-known complication. The NHS says the main symptom of a stomach ulcer is tummy pain that is usually in the upper tummy, may feel like burning and is often worse at night, along with indigestion, heartburn, bloating and feeling or being sick. Guts UK says about 3 in 20 people with H. pylori have ulcers, and that ulcers occasionally bleed or perforate.

Guts UK says a very small number of people with long-standing, untreated infection may develop stomach cancer, after decades, with between 1 and 3 people out of 100 affected. Cancer Research UK lists H. pylori infection among the factors that increase the risk of stomach cancer. Symptoms that raise suspicion include being sick, unintentional weight loss, difficulty or pain on swallowing and a low iron level in the blood, which need urgent assessment.

  • Urgent GP appointment or NHS 111 (NHS, for a suspected stomach ulcer): tummy pain that is getting worse or does not go away, loss of appetite, feeling full after a very small amount of food, losing weight without trying, a lump in the tummy, painful or difficult swallowing, keeping being sick, or feeling tired all the time.

  • 999 or A&E (NHS): vomiting bright red blood or vomit that looks like ground coffee, blood in your poo or poo that is black, sticky and very smelly, severe tummy pain, a tummy that is painful to touch, or sudden chest pain.

What causes H. pylori infection and how does it spread?

Guts UK says it is not completely clear how H. pylori passes from one person to another, 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 go on to 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 yet mature enough to repel the infection, and that transmission usually occurs within families, mostly from parents to children. It stays in the stomach unless it is treated with specific antibiotics. The infection is becoming less common in the UK, acquiring it as an adult is very rare, and once it has been treated and cured, getting infected again is very unusual.

It happens more often in people with learning disabilities, where Guts UK says it can be present in 9 out of 10 people.

How is H. pylori tested for?

Guts UK and NHS inform describe the same main options. A urea breath test involves drinking a solution containing urea and giving breath samples before and after; H. pylori break the urea down and the change is detected. A stool antigen test looks for bacterial proteins in a small stool sample and Guts UK says it is as accurate as the breath test. Blood antibody tests have largely been replaced, according to NHS inform.

An endoscopy (gastroscopy) lets a doctor look at the stomach and take a small biopsy that can be tested for the bacteria. Guts UK says that in people with indigestion and no alarm features, doctors now usually test for H. pylori first rather than going straight to endoscopy, but that anyone with unintentional weight loss, persistent vomiting or swallowing difficulty still needs endoscopy.

Results can be misleading if you have taken certain medicines. NICE CKS and Guts UK say that tests should not be done if you have taken antibiotics in the past 4 weeks or a proton pump inhibitor in the last 2 weeks. Tell the person arranging the test what you take, and do not stop prescribed medicines without asking.

Tests for H. pylori (Guts UK, NHS inform, NICE CKS)
TestHow it worksPoints to know
Urea breath testDrink a urea solution; breath samples show whether bacteria break it downUsed to diagnose and to confirm clearance; wait at least 1 month after treatment
Stool antigen testStool sample checked for bacterial proteinsAs accurate as breath test; also used to confirm clearance
Gastroscopy with biopsyCamera test; tissue tested for the bacteriaAlso looks for ulcers and other causes
Blood antibody testLooks for antibodies to the bacteriaLargely replaced by stool testing

How is H. pylori treated?

Guts UK says treatment consists of a combination of 3 to 4 different tablets, one to cut down the amount of acid in the stomach and the others antibiotics, and it is the combination that matters. One-week triple therapy was traditionally used, but 2-week triple therapy is now recognised as more effective. A newer medication containing two antibiotics and bismuth is available in the UK, and 10 days of it alongside an acid-reducing medicine is also a useful regimen.

NHS inform lists amoxicillin, clarithromycin and metronidazole among the antibiotics used. Most people have no side effects, but Guts UK says some notice a strange taste in the mouth, a feeling of sickness or a headache, and that with metronidazole you should avoid alcohol. Treatment is much more successful if the whole course is taken exactly as prescribed.

Treatment does not always clear the bacteria, so your doctor should check afterwards. Guts UK says the breath test needs to be done at least one month after treatment, and that if the result is still positive further treatment is possible. NICE CKS says routine re-testing is not offered in every case but may be considered in some circumstances, with second-line treatment offered if it is positive, so ask your clinician what is planned.

The NHS says treatment for a stomach ulcer usually lasts from 1 week to 2 months depending on the cause, and that you may need tests after treatment to make sure it has worked. If symptoms come back, speak to a GP.

Outlook: will symptoms go away after treatment?

Guts UK says treatment is usually very successful, although symptoms may take a little time to settle, and that if symptoms were due to an ulcer, most people recover without further complications. If there was no ulcer, some people see a significant reduction in symptoms and others do not, in which case other causes such as functional dyspepsia should be discussed. It says benefit may not be seen for 12 months.

Guts UK recommends testing for H. pylori in first-degree relatives of people with stomach cancer, which is something to raise with a GP if it applies to you. Clearing the bacteria greatly reduces the chance of ulcers coming back, because ulcers that once healed with acid-reducing medicine alone tended to return when treatment stopped.

NHS and private pathways

On the NHS, testing is usually arranged by a GP, either because of dyspepsia, ulcers or a history of stomach cancer in the family, with a breath or stool test and a prescription for eradication therapy. Endoscopy is arranged by hospital teams where alarm symptoms are present or treatment has failed.

Private H. pylori breath and stool tests are widely offered, and some people use them for peace of mind or speed. Whichever route you take, it is important that the test is done off acid-suppressing medicines and antibiotics for the periods stated above, that a positive result leads to treatment under a prescriber who knows your medical history and allergies, and that clearance is checked afterwards.

Frequently asked

Questions people ask.

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

  • What is H. pylori?

    H. pylori is a group of bacteria that live in the sticky mucus lining the stomach. Guts UK says up to 2 in 5 people in the UK have it, and it causes no problems for 8 to 9 out of 10 people.

  • What are the symptoms of H. pylori?

    Guts UK lists belly pain (often a gnawing ache), nausea, bloating and burping, although not all may be present and many people have no symptoms. Ulcers can cause upper tummy pain that is worse at night, as the NHS describes.

  • How do you catch H. pylori?

    It is not completely clear, but Guts UK says a faeco-oral route is usually proposed. Most people catch it in childhood, usually within families from parents to children. Catching it as an adult is very rare.

  • How is H. pylori diagnosed?

    By a urea breath test, a stool antigen test or a biopsy taken during a gastroscopy. Guts UK says the stool test is as accurate as the breath test. Tests may not be accurate after recent antibiotics or acid-blocking medicines.

  • Do I need to stop my medicines before an H. pylori test?

    Guts UK says tests may be unreliable if you have had antibiotics within a month or a proton pump inhibitor in the last two weeks. Do not stop prescribed medicines without asking the doctor arranging the test.

  • How is H. pylori treated?

    With a combination of tablets: one to cut stomach acid and antibiotics. Guts UK says 2-week triple therapy is now recognised as more effective than 1 week, and a 10-day regimen with two antibiotics and bismuth is also available.

  • Does H. pylori always need treating?

    Guts UK says treatment is recommended whenever H. pylori is found, even without an ulcer, to reduce the risk of complications, and that all doctors are agreed that people with H. pylori should have treatment.

  • Why do I need another test after treatment?

    Because treatment does not always clear the bacteria. Guts UK says your doctor should check, with a breath or stool test at least one month after finishing, and that further treatment is possible if it is still present.

  • Can H. pylori cause stomach cancer?

    In a small number of people, after decades of untreated infection. Guts UK puts it at between 1 and 3 people out of 100 and says most people will not develop stomach cancer. Cancer Research UK lists it as a risk factor.

  • Should my family be tested?

    Guts UK says H. pylori should be tested for in first-degree relatives of people with stomach cancer, meaning parents, siblings or children. Discuss this with your GP if it applies to you.

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-11, next review 2027-10-11.