Is H. Pylori Contagious? Yes—Here’s How It Spreads

H. pylori spreads through close contact and contaminated food or water, often in childhood. Learn how transmission happens and how to lower your risk.

H. pylori is contagious. It passes from person to person, primarily through oral-oral and fecal-oral contact, and it can also travel through contaminated water. More than half the world’s population carries this stomach bacterium, and most people pick it up in early childhood from close family members. The story of how it spreads, though, is more complicated than a simple cold or flu, and the practical steps you can take to reduce transmission are worth understanding.

How H. Pylori Passes Between People

Researchers have identified several transmission routes. The bacterium has been found in saliva, dental plaque, and vomit, which points to mouth-to-mouth and stomach-to-mouth pathways. The oral cavity appears to serve as a reservoir where the bacterium can linger and potentially recolonize the stomach even after treatment. Sharing utensils, pre-chewing food for children, and kissing are all plausible ways the bacterium moves between mouths.

The fecal-oral route is equally important, and probably the dominant pathway in regions with poor sanitation. A large U.S. population study found that people who tested positive for H. pylori were about twice as likely to also carry antibodies to hepatitis A, a virus spread almost exclusively by the fecal-oral route. That strong overlap suggests H. pylori travels the same way. In practice, this means contaminated hands, unwashed food, and sewage-tainted water can all carry the bacterium from one person’s gut to another’s mouth.

A less obvious route is through vomit. Researchers isolated H. pylori from the vomit of young children, and in one case an 18-month-old girl who had the bacterium detected in her vomit later showed signs of a new active infection, suggesting she caught it during a vomiting episode. This matters in daycare settings and households with young kids, where stomach bugs and cleanup go hand in hand.

Mother-to-Child and Household Spread

If you want to know where most people first encounter H. pylori, the answer is at home, and most often from their mother. Genetic fingerprinting studies have matched the exact bacterial strains in children to those carried by their mothers, confirming that mother-to-child transmission is the most common pathway within families. Multiple studies from Japan have reinforced this pattern, though father-to-child and sibling-to-sibling transmission also occurs.

The acquisition often happens very early. A prospective study of Israeli Arab infants found the average age of H. pylori infection was around 14 months. In a study of children in a high-prevalence community, over half were already infected at the start of the study, and nearly all remained infected years later at follow-up. Once H. pylori establishes itself in a young child’s stomach, it tends to stay for life unless treated with antibiotics.

The intimacy of the mother-child relationship makes it a perfect transmission corridor: sharing food, wiping faces, cleaning up after illness. In cultures where mothers pre-chew food for infants, the risk is even higher. This isn’t about blame; it is simply a reflection of how closely caregivers and small children interact during the years the child’s immune system is still developing.

Water and the Environment

Person-to-person contact is the main story, but water acts as a secondary reservoir. Reviews of the evidence from multiple countries have found H. pylori in municipal water, well water, rivers, and other environmental sources around the world. One study in western Iran even detected viable H. pylori in treated tap water. In developing countries, contaminated water combined with overcrowding and poor sanitation is considered a major driver of the high infection rates.

H. pylori has a survival trick in water that complicates things. Within a few days of entering freshwater, the bacterium stops being detectable by standard culture methods. But it does not die. Lab experiments have shown that these cells remain alive and metabolically active despite being unculturable, a state researchers call “viable but nonculturable.” Studies in natural streams have confirmed the same pattern: the bacterium persists in water even though it cannot be grown in a petri dish. Whether these dormant bacteria can still infect a new host is debated, but the fact that they hang around at all means water sources deserve attention.

Who Is Most at Risk

Socioeconomic conditions are among the strongest predictors of H. pylori infection. A Japanese cross-sectional study found a clear gradient: the odds of infection dropped steadily as socioeconomic status rose, and they climbed with the number of siblings a person grew up with. More siblings usually means more crowding in childhood, more shared objects, and more opportunities for the bacterium to jump between hosts.

A systematic review and meta-analysis looking at social determinants found that household overcrowding and job instability were both tied to higher infection rates. An urban study analyzing nearly 20,000 biopsies showed that H. pylori positivity varied dramatically by neighborhood, ranging from about 11% to 39% depending on local unemployment rates and household size.

The pattern is consistent worldwide: the more crowded and resource-poor the living conditions during childhood, the higher the chance of picking up H. pylori. Because most infections are acquired before age five, the conditions of your early years matter more than where you live now. Someone who grew up in a crowded household with untreated water can carry the bacterium into adulthood even if they later move to a place with excellent sanitation.

Can Your Partner Reinfect You After Treatment

This is one of the most common worries people have after finishing H. pylori treatment: if your partner still carries it, will you just get it back? The answer, somewhat reassuringly, is that adult reinfection from a partner appears to be uncommon. One study followed treated patients for a year and found a reinfection rate of about 7% per year. Among the patients whose spouses were also infected, over 92% stayed clear of the bacterium, and having an infected partner did not significantly predict reinfection in the statistical analysis.

Another trial tested whether treating both partners at the same time improved outcomes. It did not. Eradication success rates were essentially the same whether the infected partner was treated simultaneously or not. That said, spousal transmission is not impossible. Molecular fingerprinting has confirmed at least a handful of cases where reinfected patients carried the exact same H. pylori strain as their spouse. It happens, just not often enough to justify routinely treating both partners as a standard approach.

The reason adults seem less susceptible to reinfection than children probably has to do with both the immune system and the nature of contact. Children share saliva, put objects in their mouths, and have immature immune defenses. Adults interact differently and have had decades for their immune system to learn to recognize the bacterium, even if it cannot always eliminate it on its own.

Why H. Pylori Is Hard to Kill Once It Settles In

Part of what makes this bacterium such a successful human parasite is its ability to survive the extremely acidic environment of the stomach. H. pylori produces an enzyme called urease that breaks down the urea naturally present in gastric juice, generating ammonia. The ammonia neutralizes the acid immediately around the bacterium, creating a tiny pocket of tolerable pH that lets it burrow into the protective mucus layer lining the stomach wall. The bacterium also has a specialized channel that only opens when the surrounding pH drops too low, letting urea rush in precisely when the acid threat is greatest.

Once nestled in the mucus, H. pylori triggers a chronic immune response, but one that is never quite strong enough to clear it. The inflammation it causes is not an accident; it is part of the bacterium’s strategy. The resulting damage to the stomach lining creates the conditions behind most of the diseases associated with the infection.

What Happens If You Stay Infected

Most people carrying H. pylori will never know it. The majority remain asymptomatic for life. But the chronic inflammation it creates raises the risk of peptic ulcers, chronic gastritis, and stomach cancer. The World Health Organization classified H. pylori as a Group 1 carcinogen decades ago. The pathway from infection to cancer is slow, typically unfolding over many years as chronic gastritis gradually progresses to thinning of the stomach lining and eventually, in a small fraction of carriers, to malignancy.

Interestingly, there is a counter-narrative in the research literature. Some evidence suggests H. pylori may have a protective side, potentially regulating the broader gut microbiome and correlating with lower rates of certain allergic disorders, autoimmune conditions, and inflammatory bowel disease. H. pylori colonization significantly reshapes the stomach’s microbial environment, and those changes ripple further down the digestive tract. The question of whether universal eradication would be a net positive or would create new problems remains genuinely debated, though current guidelines lean toward treating symptomatic infections and those with high cancer risk.

Practical Prevention

There is no vaccine for H. pylori, and the prospect of one remains distant. Despite decades of research, the main bottleneck in vaccine development is getting the immune response to actually work at the stomach’s mucosal surface, an environment that has proven stubbornly difficult to target. So prevention, for now, comes down to hygiene and water quality.

Handwashing makes a measurable difference. Studies from multiple countries have found that people who wash their hands frequently have roughly half the odds of being infected compared with those who rarely do. Water source matters too. Drinking untreated well or river water is consistently linked to higher infection rates. In one study in Kazakhstan, people drinking river water had over 13 times the odds of infection compared with those on treated tap water, and overall infection rates in the population ranged from 56% among those with the best sanitation to 95% among those with the worst.

For families with young children, the practical takeaways include washing hands before preparing food, avoiding sharing utensils or pre-chewing food for infants, and ensuring drinking water is properly treated. None of these measures guarantee you will avoid H. pylori, but they significantly reduce the odds.

How Testing Works

If you are worried about having picked up H. pylori, testing is straightforward and does not necessarily require an endoscopy. The two most widely used non-invasive tests are the urea breath test and the stool antigen test, both of which detect an active, current infection rather than just past exposure. The breath test works by having you swallow a small amount of labeled urea; if H. pylori is present, its urease enzyme breaks down the urea in a way that produces a detectable marker in your breath. The stool test is cheaper and similarly accurate. Blood antibody tests exist but are less useful for confirming an active infection, since antibodies can linger for years after the bacterium is gone.

Both the breath test and the stool test can also be used to confirm that treatment worked, usually a few weeks after finishing antibiotics. This follow-up step is important because treatment failure is not rare, and you want to confirm the infection is actually cleared.

Antibiotic Resistance Is Changing the Treatment Landscape

Speaking of treatment failure, antibiotic resistance in H. pylori is a growing global concern. Clarithromycin, one of the most important antibiotics used in standard treatment regimens, now has resistance rates above 15% in most countries studied. Resistance patterns vary hugely by region and have been shifting over time, with some countries seeing rising multi-drug resistance while others have stabilized.

The practical implication for you is that first-line treatment needs to work. Failed initial therapy can breed further resistance, making subsequent attempts harder. Increasingly, experts are calling for antibiotic susceptibility testing before prescribing, rather than relying on one-size-fits-all regimens. If your doctor prescribes a standard triple therapy without asking about your prior antibiotic use or local resistance patterns, it may be worth raising the question.

A Bacterium That Maps Human Migration

H. pylori has been living in human stomachs for so long that its genetic diversity mirrors our own migrations. The bacterium co-evolved with us, passing from parent to child across thousands of generations, and its regional strains correspond closely to well-documented human population movements. Researchers have used H. pylori genomes to trace ancient migrations into Southeast Asia, identifying at least three distinct waves of human settlement reflected in different bacterial populations.

In the Japanese archipelago, unique strains found on Okinawa diverged from other East Asian strains roughly 20,000 years ago, and an even older lineage appears to trace back about 45,000 years to central Asia, suggesting it traveled across the Eurasian continent during the Paleolithic era. In a sense, the bacterium is a living fossil record of where our ancestors went and who they lived with. That deep co-evolutionary history may also help explain why H. pylori is so exquisitely adapted to the human stomach and so difficult to dislodge: it has had tens of thousands of years to perfect its relationship with us.