Fact sheet

H. pylori and Stomach Ulcers

A stomach bacterium that more than half the world carries. Most never notice, but it’s behind gastritis, many stomach ulcers and some stomach cancers.

Quick answer: H. pylori is a bacterium that lives in the stomach lining. Most people with it have no symptoms, but it can cause gastritis, stomach and duodenal ulcers, and raises the risk of stomach cancer. It’s found with a breath or stool test. Treatment is an acid-lowering medicine plus two antibiotics, and a later test can confirm it’s gone. Vomiting blood or black stools need emergency care.

How common. More than half the world’s population is infected. In Australia, about 3 in 10 adults are thought to carry it, with higher rates among Aboriginal and Torres Strait Islander peoples and in people from countries where it’s more common.

How you catch it. Usually in childhood, through close contact within families. Without treatment it usually stays for life.

What it can cause.

The other big cause of ulcers is anti-inflammatory medicines such as ibuprofen, naproxen and aspirin. Smoking adds to the risk.

Symptoms. Often none. Otherwise: burning upper tummy pain (often worse at night or when hungry), indigestion, bloating, burping, nausea or feeling full early. These overlap with reflux.

How it’s diagnosed.

Breath or stool testno PPI for 2 weeks, no antibiotics for 4Positiveacid-lowering PPI plus two antibioticsFinish the whole courseside effects are common but usually mildRetest if advisedat least 4 weeks after treatment
Test, treat, and sometimes retest. Local antibiotic choices vary by country.

Treatment

Experts now recommend treating everyone who tests positive. Antibiotic resistance is rising, so the exact combination depends on local guidelines and your past antibiotics.

  1. Step 1 · PrescriptionEradication therapyA proton pump inhibitor (such as omeprazole or esomeprazole) plus two antibiotics (often amoxicillin with clarithromycin or metronidazole), usually for 1 to 2 weeks.
    Works
    Clears the infection in most people and heals most ulcers
    Access
    GP prescription
    Watch for
    Diarrhoea, nausea and a metallic taste are common. Tell your doctor about penicillin allergy. Finish the whole course.
  2. Step 2 · PrescriptionAcid-lowering medicineA PPI may continue after antibiotics to let an ulcer heal. More in our PPIs guide.
    Works
    Heals ulcers and eases pain
    Access
    GP prescription
    Watch for
    Use the lowest dose for the shortest time needed.
  3. Step 3 · GPTest of cureA breath or stool test at least 4 weeks after finishing treatment, if your doctor advises it (always after an ulcer).
    Works
    Confirms the bacteria are gone
    Access
    GP; pathology
    Watch for
    Stop PPIs 2 weeks beforehand, as for the first test.
  4. Step 4 · SpecialistSecond-line treatmentA different antibiotic combination, sometimes with bismuth, if the first course fails.
    Works
    Clears most infections that survive the first course
    Access
    GP or gastroenterologist
    Watch for
    More tablets and more side effects; reinfection after successful treatment is uncommon.

If you need ongoing anti-inflammatory medicines, ask your doctor about protecting your stomach.

Save your money

Popular, heavily marketed or often asked about, but the evidence is weak or says no.

Living with it

See your GP if

Get urgent help if you vomit blood or something like coffee grounds, pass black, sticky stools, have sudden severe tummy pain, or feel faint: call 000 (Australia) or your local emergency number, or go to an emergency department. Don’t drive yourself.

Outlook. Treatment clears H. pylori in most people, heals most ulcers and lowers the long-term risk of stomach cancer. Once cleared, it rarely comes back.

Common questions

What are the symptoms of H. pylori?

Most people have none. When it causes gastritis or an ulcer: burning upper tummy pain, indigestion, bloating, burping, nausea or feeling full early.

How do you get H. pylori?

Usually in childhood, through close contact within families. The exact route isn’t fully known.

Can H. pylori go away on its own?

Rarely. Without treatment it usually stays in the stomach for life.

Is H. pylori contagious?

It can spread between people in close contact, mostly in childhood. Reinfection in adults after treatment is uncommon.

Why do I have to stop my PPI before the test?

PPIs suppress the bacteria and can make breath and stool tests falsely negative. Most guidelines advise 2 weeks off first.

Can H. pylori cause cancer?

It raises the risk of some stomach cancers. Treating it lowers that risk.

Evidence and more information

Updated 8 November 2026. General education, not personal medical advice. Treatment depends on your situation, so talk to your GP or specialist.