H. pylori is contagious for as long as the bacteria lives in your body, and without treatment, that can mean the rest of your life. There is no defined window where the infection “burns out” on its own. You remain capable of spreading it until testing confirms the bacteria has been fully eradicated, which typically happens several weeks after completing a course of antibiotics.
Why There’s No Set Contagious Period
Unlike a cold or the flu, H. pylori doesn’t follow a predictable timeline of illness and recovery. Once it colonizes the stomach lining, it can persist for decades. Most people pick it up during childhood, often from parents or siblings, and carry it indefinitely unless treated. This means an untreated person is technically contagious for years or even a lifetime, though the actual risk of spreading it varies depending on circumstances.
The bacteria spreads primarily through saliva and through fecal contamination of food or water. Kissing, sharing utensils, and close household contact are the most common routes. The risk jumps dramatically when an infected person has a stomach illness. A CDC-funded household study in northern California found that living with an infected person who was vomiting raised the odds of catching H. pylori by more than six times compared to households without that exposure. About 75% of new infections in the study were linked to contact with a sick, infected household member.
Contagious Even Without Symptoms
Most people carrying H. pylori have no symptoms at all. Only a fraction develop ulcers, gastritis, or other noticeable problems. But symptom-free carriers still harbor live bacteria in their stomachs and saliva, which means they can still pass it to others. The northern California study tracked over 2,700 household members and found an overall annual infection rate of 7% among previously uninfected people living in the same home as a carrier. For children under two, that rate climbed to 21%.
So even if you feel perfectly fine, you can transmit H. pylori through ordinary close contact. The risk is lower than when you’re actively sick with vomiting or diarrhea, but it doesn’t drop to zero.
When You Stop Being Contagious After Treatment
Treatment typically involves 14 days of combination antibiotic therapy. During that two-week course, you are still considered contagious. The infection isn’t officially gone until a follow-up test confirms eradication, and current guidelines from the American College of Gastroenterology recommend waiting at least four weeks after finishing antibiotics before testing. You also need to be off stomach acid medications (proton pump inhibitors) for at least two weeks before the test, since those drugs can cause false negatives.
So from the day you start treatment, you’re looking at roughly six weeks minimum before you can confirm you’re no longer carrying the bacteria: two weeks of antibiotics, then a four-week waiting period before a breath test or stool test. First-line treatment regimens clear the infection about 90% of the time. If the first round fails, a second course with different antibiotics is typically needed, which extends the contagious window further.
How It Survives Outside the Body
H. pylori can also linger in the environment longer than you might expect. In refrigerated milk, the bacteria stays viable for 9 to 12 days. On refrigerated food, it survives 2 to 5 days. In water, a dormant form of the bacterium can persist for up to 26 months at refrigerator temperatures. These survival times help explain why contaminated water and food remain transmission routes, particularly in areas with limited sanitation.
Risk of Reinfection After Treatment
Once you’ve been successfully treated and confirmed clear, the chance of getting H. pylori again depends heavily on where you live. In Western countries, the annual reinfection rate is low, between 0.5% and 2% per year. In regions with higher overall prevalence, such as parts of South Asia, the rate can reach 13% per year. Even in high-prevalence areas like China, some studies have found reinfection rates close to just 1% annually.
If you live with someone who hasn’t been tested or treated, reinfection from that household member is a real possibility. This is one reason some clinicians recommend testing partners and close family members when one person is diagnosed, particularly if reinfection occurs after successful treatment.
Reducing Transmission at Home
While you’re infected or undergoing treatment, a few practical steps lower the chances of spreading H. pylori to people you live with:
- Avoid sharing utensils, cups, and toothbrushes. Saliva is the primary transmission route in households.
- Wash hands thoroughly after using the bathroom. Fecal-oral spread is the second major pathway.
- Be especially cautious during stomach illness. Vomiting while infected with H. pylori is the single biggest risk factor for household transmission.
- Keep young children’s risk in mind. Kids under two are infected at three times the rate of the general household population, likely because of closer physical contact and developing immune systems.
The bottom line is straightforward: you’re contagious from the moment you’re infected until a post-treatment test says the bacteria is gone. For someone who never gets treated, that means indefinitely. For someone on antibiotics, expect roughly six weeks from the start of treatment before you can confirm you’re in the clear.