Our Services
Medical Information
Helpful Resources
Published on: 9/15/2026
Yes, untreated H. pylori infection can progress to peptic ulcers that bleed and, in a small percentage of cases, to stomach cancer, because the bacteria cause long-term inflammation, tissue damage, and changes to the stomach lining. Warning signs of a bleeding ulcer include black or tarry stools, vomiting blood or material that looks like coffee grounds, sudden severe stomach pain, dizziness, and unexplained fatigue from anemia. Cancer risk depends on several factors, including how long the infection has gone untreated, bacterial strain, family history, smoking, diet, and whether gastritis has already advanced, and testing plus antibiotic treatment greatly reduces that risk. There are important details, risk factors, and red flag symptoms to consider, so see below to understand more before deciding how urgently to act.
If you have ongoing stomach pain, indigestion, nausea, or any of the bleeding signs described, the smartest next step is understanding whether your symptoms point to H. pylori, an ulcer, or something else that needs prompt evaluation, since a simple breath, stool, or blood test and a course of antibiotics can stop this progression early. Take a free, instant, online symptom check to clarify what may be driving your symptoms, learn which questions to raise with a clinician, and see how soon you should be seen.
Last reviewed for medical accuracy: 09/14/2026
Can untreated H. pylori turn into stomach cancer or an ulcer that bleeds?
Helicobacter pylori (H. pylori) is a common bacterial infection of the stomach lining. In many people it causes few or no symptoms, but when left untreated it can lead to serious complications such as bleeding ulcers and, over many years, an increased risk of gastric (stomach) cancer. Below, we explain how H. pylori behaves, what h pylori symptoms to watch for, and when to seek medical advice.
What Is H. pylori?
H. pylori is a spiral-shaped bacterium that settles in the protective mucus layer of the stomach. It’s estimated to infect half of the world’s population—often acquired in childhood. In most cases it coexists harmlessly, but in others it triggers inflammation (gastritis) and damages the stomach lining.
Common h pylori symptoms
Many people with H. pylori have no symptoms. When the infection does cause problems, you may notice:
• Abdominal discomfort or a burning sensation (“heartburn”)
• Bloating and feeling full after small meals
• Nausea or occasional vomiting
• Loss of appetite or unintended weight loss
• Belching more than usual
These symptoms are vague and overlap with other digestive issues. If they persist for more than a few weeks, it’s wise to investigate further.
How Untreated H. pylori Leads to Ulcers
An ulcer is an open sore in the stomach (gastric ulcer) or the first part of the small intestine (duodenal ulcer). Here’s how H. pylori contributes:
• Mucosal damage: The bacterium weakens the protective mucus, exposing the lining to stomach acid.
• Inflammation: Chronic gastritis from H. pylori inflames the stomach wall, making it more susceptible to sores.
• Acid imbalance: Some strains of H. pylori increase stomach acid production, further eroding tissue.
When an ulcer forms, you may have:
• Sharp or gnawing pain in the upper abdomen, often worse at night or between meals
• Dark, tarry stools (a sign of bleeding)
• Vomiting blood or material that looks like coffee grounds
A bleeding ulcer is a medical emergency. Prompt treatment can stop the bleed, prevent serious anemia, and avoid complications such as perforation (a hole in the stomach wall).
Can H. pylori Turn into Stomach Cancer?
Long-term H. pylori infection is a well-established risk factor for gastric cancer. The progression can take decades:
Not everyone with H. pylori follows this path, and multiple factors influence risk:
• Strain virulence: Certain bacterial strains carry toxins that increase damage.
• Genetics: Family history and individual immune response matter.
• Diet and environment: High salt intake, smoking, and certain preservatives can raise risk.
Early detection and eradication of H. pylori greatly reduce the chance of cancer developing.
Who Is at Higher Risk?
While H. pylori is widespread, some groups face greater dangers if untreated:
• Older adults with longstanding infection
• People with a family history of gastric cancer
• Those who smoke, drink heavily, or consume a high-salt diet
• Individuals with persistent or severe digestive symptoms
Testing and Diagnosis
If you have ongoing stomach discomfort or risk factors for ulcer or cancer, your doctor may recommend:
• Breath test (urea breath test): Noninvasive, detects active H. pylori infection.
• Stool antigen test: Looks for H. pylori proteins in a stool sample.
• Blood antibody test: Less common—can’t distinguish past from current infection.
• Endoscopy with biopsy: Direct visualization and tissue sampling, used for complicated cases.
It’s reasonable to start with noninvasive tests and reserve endoscopy for when alarm symptoms appear.
When to Seek Help
Persistent or worsening symptoms warrant medical attention. Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker to get personalized guidance before your visit:
free, online symptom check, using the doctor approved Ubie Symptom Checker
Contact a healthcare provider promptly if you experience:
• Sudden, severe abdominal pain
• Vomiting blood or material resembling coffee grounds
• Black, tarry stools
• Unexplained weight loss and persistent nausea
• Difficulty swallowing or feeling full quickly
Treating H. pylori Infection
Eradicating H. pylori typically involves a combination of:
• Two antibiotics (to reduce resistance risk)
• A proton pump inhibitor (PPI) to lower stomach acid and promote healing
Common regimens last 10–14 days. Adhering to the full course and avoiding alcohol or smoking during treatment improves success. After therapy, your doctor may repeat a breath or stool test to confirm eradication.
Preventing Reinfection and Complications
While there’s no vaccine, you can lower your chances of acquiring or re-acquiring H. pylori by:
• Washing hands thoroughly, especially after bathroom use and before eating
• Drinking water from safe, treated sources
• Avoiding unclean or undercooked foods in high-risk regions
• Limiting NSAID (ibuprofen, naproxen) use if you’re prone to ulcers—ask your doctor about alternatives
Regular follow-up is key if you’ve had ulcers, bleeding, or precancerous changes.
Key Takeaways
• H. pylori often causes little or no discomfort, yet some people develop persistent h pylori symptoms such as abdominal pain and bloating.
• Left untreated, H. pylori can cause bleeding ulcers—which may present with dark stools or vomiting blood—and over many years raise the risk of stomach cancer.
• Noninvasive breath or stool tests can confirm infection; an endoscopy is reserved for complicated cases.
• Treatment with two antibiotics plus a PPI for 10–14 days is highly effective; follow-up testing ensures eradication.
• Practice good hygiene, avoid unsafe foods and water, and discuss NSAID use with your doctor to reduce relapse.
• If you have serious or worsening symptoms, speak to a doctor without delay.
This information is meant to inform—not replace—the advice of your healthcare provider. If you experience any life-threatening or serious signs such as severe pain, bleeding, or rapid weight loss, seek immediate medical care. Always speak to a doctor about concerns related to H. pylori, ulcers, or stomach cancer.
(References)
* Fennerty MB. Helicobacter pylori. Arch Intern Med. 1994 Apr 11;154(7):721-7. PMID: 8147675.
* Axon AT. Helicobacter pylori infection. J Antimicrob Chemother. 1993 Jul;32 Suppl A:61-8. doi: 10.1093/jac/32.suppl_a.61. PMID: 8407699.
* Wu JC, Sung JJ. Ulcer and gastritis. Endoscopy. 2002 Feb;34(2):104-10. doi: 10.1055/s-2002-19843. PMID: 11822005.
* Passaro DJ, Chosy EJ, Parsonnet J. Helicobacter pylori: consensus and controversy. Clin Infect Dis. 2002 Aug 1;35(3):298-304. doi: 10.1086/341245. Epub 2002 Jul 8. PMID: 12115096.
* Ramakrishnan K, Salinas RC. Peptic ulcer disease. Am Fam Physician. 2007 Oct 1;76(7):1005-12. PMID: 17956071.
* Lanza FL, Chan FK, Quigley EM, Practice Parameters Committee of the American College of Gastroenterology. Guidelines for prevention of NSAID-related ulcer complications. Am J Gastroenterol. 2009 Mar;104(3):728-38. doi: 10.1038/ajg.2009.115. Epub 2009 Feb 24. PMID: 19240698.
* Vannarath S, Vilaichone RK, Rasachak B, Mairiang P, Yamaoka Y, Shiota S, Binh TT, Mahachai V. Virulence genes of Helicobacter pylori in gastritis, peptic ulcer and gastric cancer in Laos. Asian Pac J Cancer Prev. 2014;15(20):9027-31. doi: 10.7314/apjcp.2014.15.20.9027. PMID: 25374247.
* Abadi AT, Kusters JG. Management of Helicobacter pylori infections. BMC Gastroenterol. 2016 Aug 12;16(1):94. doi: 10.1186/s12876-016-0496-2. Epub 2016 Aug 12. PMID: 27520775; PMCID: PMC4983046.
* Cho J, Prashar A, Jones NL, Moss SF. Helicobacter pylori Infection. Gastroenterol Clin North Am. 2021 Jun;50(2):261-282. doi: 10.1016/j.gtc.2021.02.001. PMID: 34024441.
* Sugano K, Suzuki C, Ota M, Iwakiri R. Gastric cancer risk after Helicobacter pylori eradication in gastritis and peptic ulcer: a retrospective cohort study in Japan. BMC Gastroenterol. 2025 Jul 1;25(1):463. doi: 10.1186/s12876-025-04034-3. Epub 2025 Jul 1. PMID: 40596880; PMCID: PMC12211893.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.