Many people know Helicobacter pylori (H. pylori) as a stomach bacteria associated with ulcers, gastritis and abdominal discomfort. But there is another important reason why doctors take H. pylori infection seriously: long-term infection can increase the risk of stomach cancer.
This does not mean that everyone who has H. pylori will develop cancer. In fact, many people infected with the bacteria never develop stomach cancer. However, persistent infection can cause long-term inflammation and changes in the stomach lining that may, in some people, eventually contribute to cancer development.
What Is H. Pylori?
H. pylori is a type of bacteria that can live in the protective mucus lining of the stomach.
Unlike many bacteria, it can survive in the acidic environment of the stomach. It can attach itself to the stomach lining and cause inflammation.
H. pylori infection is common worldwide and is often acquired during childhood. The infection can remain in the stomach for years if it is not detected and treated.
Some people have no noticeable symptoms, while others may experience problems such as:
Upper abdominal discomfort
Bloating
Nausea
Frequent burping
Indigestion
Stomach pain
Peptic ulcers
However, these symptoms are not specific to H. pylori, so testing is needed to determine whether the bacteria is actually present.
Can H. Pylori Cause Stomach Cancer?
Yes, chronic H. pylori infection is a recognised cause and major risk factor for certain types of stomach cancer.
The International Agency for Research on Cancer (IARC), part of the World Health Organization, classifies H. pylori as a Group 1 carcinogen, meaning there is sufficient evidence that it can cause cancer in humans.
The National Cancer Institute also reports that long-term H. pylori infection can cause chronic inflammation of the stomach. Over time, this inflammation may lead to changes such as atrophic gastritis and other abnormalities of the stomach lining, increasing the possibility of gastric cancer in some people.
But Having H. Pylori Does Not Mean You Have Cancer
This is very important.
If you test positive for H. pylori, do not immediately conclude that you have stomach cancer.
H. pylori infection is common, while only a proportion of infected people develop cancer. Other factors also influence an individual’s risk, including family history, smoking, diet and other conditions affecting the stomach.
Therefore, a positive H. pylori result should be treated as an infection that needs appropriate medical attention—not as a cancer diagnosis.
How Can H. Pylori Increase Cancer Risk?
The process can happen gradually.
Persistent H. pylori infection can cause chronic inflammation of the stomach lining. Over many years, the inflammation can cause changes to the stomach tissue.
In some people, these changes can progress through stages such as chronic gastritis, atrophic gastritis and intestinal metaplasia before eventually developing into dysplasia and, in some cases, stomach cancer.
This is one reason doctors may recommend treating confirmed H. pylori infection rather than simply ignoring it.
Can Treating H. Pylori Reduce the Risk of Stomach Cancer?
Evidence suggests that eradicating H. pylori can reduce the risk of stomach cancer.
The National Cancer Institute reports that studies have found a reduction in gastric cancer among people who received treatment to eradicate H. pylori. A long-term clinical trial also found that treating the infection reduced stomach cancer incidence during extended follow-up.
In March 2026, an IARC working group also published recommendations concerning H. pylori “screen-and-treat” strategies as a way of preventing gastric cancer.
This does not mean that treating H. pylori eliminates someone’s entire risk of stomach cancer. A person’s overall risk can also depend on other factors.
How Is H. Pylori Diagnosed?
Doctors can test for H. pylori using several methods.
Common non-invasive tests include:
Urea Breath Test
The urea breath test can detect an active H. pylori infection by measuring changes produced when the bacteria breaks down urea.
Stool Antigen Test
A stool antigen test looks for evidence of H. pylori in a stool sample and can be used both for diagnosis and, in appropriate circumstances, to confirm that treatment has successfully cleared the infection.
Endoscopy and Biopsy
During an upper gastrointestinal endoscopy, a doctor can examine the stomach and may take small tissue samples for laboratory testing.
Endoscopy may be particularly useful when someone has concerning symptoms or other reasons for closer examination.
What About People With Persistent Stomach Symptoms?
Having persistent stomach discomfort does not automatically mean that someone has H. pylori or stomach cancer.
However, symptoms that continue, become worse or are accompanied by warning signs deserve medical attention.
Seek medical evaluation if you experience symptoms such as:
Unexplained weight loss
Persistent vomiting
Vomiting blood
Black or tarry stool
Difficulty swallowing
Persistent or worsening abdominal pain
Loss of appetite
Unexplained anaemia
Feeling unusually full after eating a small amount
These symptoms can have several causes, including conditions that are not cancer, but they should not simply be ignored.
Other Factors That Can Increase Stomach Cancer Risk
H. pylori is important, but it is not the only risk factor.
Other factors associated with stomach cancer include smoking, certain dietary patterns, family history, age and some inherited conditions. Diets high in salted, smoked or poorly preserved foods have also been associated with increased risk.
Smoking can also increase stomach cancer risk and may make H. pylori treatment less effective.
What Should You Do If You Test Positive for H. Pylori?
If a test confirms H. pylori infection, speak with a qualified healthcare professional about appropriate treatment.
H. pylori is usually treated with a combination of medicines, which may include antibiotics and acid-suppressing medication. The exact treatment depends on factors such as local antibiotic resistance, previous antibiotic exposure and the treatment recommendations being followed.
It is important to complete the prescribed treatment exactly as directed and follow up when your healthcare provider recommends testing to confirm eradication.
Do not randomly combine antibiotics or stop treatment once you start feeling better.
H. pylori can increase the risk of stomach cancer, particularly when the infection persists for a long time. But having H. pylori does not mean you have cancer.
The good news is that H. pylori can be detected and treated. Evidence indicates that eliminating the infection can reduce the risk of developing stomach cancer.
If you have persistent stomach symptoms, a history of ulcers, or concerns about H. pylori, speak with a healthcare professional about whether testing is appropriate.
Early attention to persistent stomach problems can help identify treatable conditions and, where appropriate, address risk factors before they cause more serious complications.
Health Disclaimer: This article is for general educational purposes and should not replace medical diagnosis or treatment. If you have concerning or persistent symptoms, consult a qualified healthcare professional.

