More than half the people on earth carry a bacterium called Helicobacter pylori, or H. pylori, in their stomach lining, and most never find out[1]. It usually causes no symptoms and shows up on no test they would otherwise take. In a small share of cases the infection slowly damages the stomach lining over decades, and in a smaller share still, that damage turns into stomach cancer. Knowing how that process works, and how rare the worst outcome really is, gives you something to act on with your doctor instead of just worry about.
How the infection changes your stomach over time
Once H. pylori settles in, your immune system reacts and stays irritated, a condition doctors call chronic gastritis: ongoing inflammation of the stomach lining. In some people, especially those carrying more aggressive strains of the bacteria, that irritation can progress in stages over years, and each stage gives a doctor a chance to catch the process before it goes further.
Who faces higher risk
Carrying H. pylori doesn't tell your doctor much on its own. Some strains carry a gene called cagA that makes them more irritating to the stomach lining and more likely to push inflammation toward serious damage. Getting infected as a young child raises the odds too, since the infection then has decades to work.
Smoking, a diet heavy in salt cured or smoked foods, and growing up somewhere H. pylori and stomach cancer both run more common, including parts of East Asia, Eastern Europe, and Latin America, all add risk. Pernicious anemia, a condition where your body can't absorb enough vitamin B12 because your stomach lining isn't working normally, raises risk too, along with a family history of certain inherited stomach cancer syndromes.
None of these factors guarantee anything on their own. They help your doctor decide who might benefit from testing and treatment sooner rather than later.
Getting tested
Several reliable tests confirm an H. pylori infection. A urea breath test has you drink a labeled liquid, then breathe into a bag so a lab can detect a gas the bacteria produce. A stool antigen test checks a stool sample for pieces of the bacteria itself and works about as well.
Blood antibody tests can tell you if you've ever been exposed, but they stay positive long after an infection clears, so they can't confirm whether you're infected right now. If your doctor wants a closer look, an endoscopy threads a thin camera into your stomach and pulls a small tissue sample to check directly for the bacteria and any early changes in the lining.
Talk to your doctor about testing if you've had stomach pain lasting more than a week or two, a burning feeling between meals or at night that eases after you eat, or a parent or sibling who's had stomach cancer.
- Ask for a urea breath test or stool antigen test, not just a blood antibody test
- Skip antacids and antibiotics beforehand if your doctor tells you to, since both can throw off results
- If you test positive, finish every dose of your prescribed antibiotics, even once symptoms ease
- Book a follow up breath or stool test a few weeks after treatment ends to confirm the infection cleared
- Mention any family history of stomach cancer so your doctor can factor it into your testing and screening plan
Treating the infection
Once H. pylori is confirmed, treatment combines a proton pump inhibitor, a medication that lowers stomach acid, with two antibiotics, usually clarithromycin and amoxicillin, for one to two weeks. Doctors call this triple therapy[2]. The same bacterium is also the infection behind most stomach ulcers, so clearing it protects your stomach lining on more than one front.
Where the bacteria has grown resistant to common antibiotics, doctors often switch to quadruple therapy instead, adding bismuth, a stomach soothing compound found in some over the counter upset stomach medicines, along with different antibiotics.
A follow up breath or stool test a few weeks after you finish treatment confirms the infection cleared, since feeling better doesn't always mean it's gone. A large randomized trial in China found that treating H. pylori cut stomach cancer rates by close to half over twenty two years of follow up, and treatment works best the earlier you catch and clear the infection, before lasting changes to the stomach lining set in[3].
Why most people with H. pylori never get cancer
The World Health Organization classified H. pylori as a known human carcinogen back in 1994, a label that sounds alarming until you look at the actual numbers[3]. Most people who carry the bacteria for decades live out their whole lives with nothing worse than mild, stable gastritis. Strain differences, genetics, diet, and plain chance all influence which infections quietly stay put and which slowly progress.
Testing and treatment lower an already small risk further when they make sense for your situation. If stomach cancer runs in your family, or you've had stomach pain for more than a couple of weeks, ask your doctor about H. pylori testing at your next visit. If you've already been treated for stomach cancer, digestion after cancer treatment often needs its own adjustment period.
What to do with this
If you've had stomach pain, burning between meals, or unexplained nausea for more than two weeks, call your doctor's office and ask specifically for H. pylori testing. A breath or stool test is enough to start. If you test positive, take the full course of antibiotics even after you feel better, since stopping early is the most common reason treatment fails.