H. pylori can persist for decades—often for life—if it is not treated, because the bacterium burrows into the stomach's protective mucus layer and the immune system rarely clears it. Most infections are acquired in childhood and stay silent for years. It does not reliably go away on its own. Spontaneous clearance happens, but it is uncommon and unpredictable, and it is more likely late in life as the stomach lining changes. Antibiotic treatment cures most infections, though success depends heavily on which drugs are used and whether the full course is completed.
The persistence mechanism
Helicobacter pylori survives by occupying a niche that few organisms can tolerate. The stomach lumen is acidic enough to kill most bacteria within minutes, so H. pylori does not live there. It lives in and under the mucus layer that coats the stomach lining, where the pH is far closer to neutral. This physical shelter is the first reason the infection lasts.
The bacterium also neutralizes acid locally. It produces urease, an enzyme that splits urea into ammonia and carbon dioxide. The ammonia buffers the immediate surroundings, creating a small alkaline pocket around each bacterium. This lets H. pylori sit at the surface of the stomach's epithelial cells without being dissolved by acid.
Attachment matters as much as chemistry. H. pylori binds to specific receptors on gastric epithelial cells, which keeps it from being swept away by mucus turnover and peristalsis. Once attached, it injects proteins that alter the host cell's behavior and dampen local immune signaling.
The immune response itself becomes part of the problem. H. pylori triggers inflammation, but it also recruits and modulates immune cells in ways that suppress effective clearance. The result is a chronic, low-grade inflammatory state that persists for years. In plain terms, the bacterium builds a fortified camp, changes the local chemistry, and talks the immune system into a stalemate.
How long infection actually lasts
In the absence of treatment, H. pylori infection is best described as chronic. The organism is typically acquired in childhood, and once established it usually remains for life. Studies that followed infected people before eradication therapy was common found persistence measured in decades, not months.
Spontaneous clearance does occur. It is more common in children than adults, and it appears more likely in older adults whose stomach lining has thinned or undergone metaplasia—changes that make the niche less hospitable. Even so, no reliable rule predicts who clears the infection.
Reinfection after successful treatment is uncommon in adults in developed countries. When it happens, it is often difficult to distinguish true reinfection from recrudescence—the regrowth of a small number of bacteria that survived treatment.
Timeline of infection and treatment
| Stage | Typical timing | What is happening |
|---|---|---|
| Acquisition | Childhood, often before age 10 | Bacteria establish in gastric mucus |
| Chronic phase | Years to decades | Persistent inflammation, usually no symptoms |
| Transmission risk | Throughout infection | Spread via saliva, vomit, or fecal contamination |
| Treatment course | 10 to 14 days | Multi-drug regimen aims to eradicate the organism |
| Test-of-cure | 4 or more weeks after treatment | Confirms whether bacteria are gone |
| Successful eradication | After confirmed negative test | Infection cleared; reinfection risk low in adults |
| Failed treatment | Detected at test-of-cure | Requires a different regimen |
Why "gone" is rarely automatic
The immune system plays a limited role in clearing H. pylori. Antibodies against the bacterium are produced, but they do not eliminate it. The chronic inflammation H. pylori causes is partly a failure of immune resolution, not a sign of successful attack.
Gastric acid is a double-edged factor. Low acid production can allow the bacterium to spread more freely, while high acid can worsen injury in the duodenum. Neither reliably clears the infection.
Some people carry H. pylori with no symptoms for life, and their stomach lining shows only mild inflammation. Others develop ulcers, gastritis, or, over many years, gastric cancer. The difference lies in bacterial strain, host genetics, and environmental factors such as smoking and diet. None of these factors reliably triggers spontaneous clearance.
Edge cases and professional caveats
H. pylori can be eradicated, but cure is not guaranteed by treatment alone. Success depends on the regimen, the duration, adherence, and local antibiotic resistance patterns. In regions with high clarithromycin resistance, standard triple therapy cures fewer than 70 percent of cases in some settings. When treatment fails, clinicians usually switch to a different antibiotic combination or add a proton pump inhibitor with a different backbone.
The counterintuitive point: a negative antibody blood test does not prove the infection is gone. Antibodies can persist for months or years after eradication. Confirmation requires a stool antigen test or a urea breath test, performed at least four weeks after antibiotics and off acid-suppressing drugs for a suitable interval.
Some infections are not treated at all. In older adults with significant comorbidity, or in people with no symptoms and no risk factors, clinicians may weigh treatment benefits against antibiotic side effects and resistance. This is a judgment call, not a universal rule.
Red-flag warnings: Vomiting blood or black, tarry stools—possible bleeding ulcer. Sudden, severe, or persistent abdominal pain, especially after eating. Unexplained weight loss or difficulty swallowing. A new diagnosis of anemia with stomach symptoms. A family history of gastric cancer combined with persistent indigestion.
These warrant prompt medical evaluation, not self-treatment.
Practical actions and thresholds
Testing is the first concrete step. A urea breath test or stool antigen test can confirm active infection. Serology is not recommended for confirming cure because it cannot distinguish past from current infection.
Treatment is typically a 10- to 14-day course combining acid suppression with two or more antibiotics. The exact regimen should come from a clinician who knows local resistance patterns. Completing the full course matters; partial courses increase the chance of failure and resistance.
Test-of-cure should happen at least four weeks after treatment ends. Acid-suppressing drugs should be stopped for about two weeks before testing, because they can suppress the bacterium enough to produce a false negative.
Household members may be tested when one person is infected, especially in settings where transmission is likely. H. pylori spreads through saliva and fecal contamination, so shared utensils and poor sanitation increase risk.
Cost is not a reliable guide to success. The cheapest regimen is not always the most effective, and a failed course adds expense and resistance. In the United States, generic regimens are often affordable, but prices vary widely and change over time; the right question is which regimen has the best local cure rate, not which is cheapest.
What this means for duration and cure
H. pylori does not behave like a short-lived infection. Untreated, it usually persists for life. Treatment can cure it, but cure must be confirmed with the right test at the right time. Spontaneous clearance is real but uncommon and cannot be predicted. The practical takeaway: if infection is confirmed and treatment is indicated, complete the course and confirm eradication rather than assuming the bacterium has gone away.
Limits of what can be concluded: exact spontaneous clearance rates vary by population and are not well established for any individual. Treatment success rates depend on local resistance data that change over time. No article can substitute for a clinician who can test, prescribe, and verify cure.
Comparison: testing and confirmation approaches
| Approach | What it detects | Best use | Limitation |
|---|---|---|---|
| Urea breath test | Active infection | Diagnosis and test-of-cure | Requires fasting and off acid suppression |
| Stool antigen test | Active infection | Diagnosis and test-of-cure | Less reliable in some settings |
| Antibody blood test | Past or current exposure | Initial screening only | Cannot confirm cure |
| Endoscopy with biopsy | Active infection plus tissue injury | When alarm symptoms or ulcer suspected | Invasive and costly |
| Culture | Viable organism and resistance | Guiding therapy after failures | Slow and not widely available |
The bottom line: H. pylori lasts for decades without treatment and does not reliably clear on its own. It can be cured, but cure requires the right regimen and a properly timed confirmatory test.