Is H. pylori Genetic? Here’s the Latest Insight

Explore the genetic factors influencing H. pylori, including strain variation, transmission patterns, and host susceptibility in disease outcomes.

H. pylori is a bacterium, not a heritable trait, so you cannot inherit the infection itself through your DNA. But genetics play a surprisingly large role in who gets infected, how severely the body reacts, and whether the infection leads to serious disease. A landmark twin study found that identical twins share H. pylori infection status far more often than fraternal twins, suggesting a substantial genetic influence on susceptibility. The story gets more layered from there: your immune genes shape how well you fight off the bacterium, the bacterium’s own genes determine how aggressively it behaves inside your stomach, and thousands of years of co-evolution between humans and H. pylori have left traces in both genomes that still affect disease risk today.

Twin Studies and the Heritability of Susceptibility

The clearest evidence that genetics matter comes from studies of twins. In a well-known study of Swedish twins, the concordance rate for H. pylori infection was 81% among identical twins compared with 63% among fraternal twins. Even when the researchers looked only at twins raised in separate households, the pattern held: 82% concordance for identical twins versus 66% for fraternal twins raised apart. That last detail is important because it helps separate genes from shared childhood environment. If family clustering were purely about drinking from the same water or sharing utensils, twins raised apart should look no different from unrelated people. They don’t. An early review of these twin data estimated the heritability of acquiring H. pylori at roughly 0.66, meaning about two-thirds of the variation in who gets infected can be attributed to genetic factors.

That does not mean environment is unimportant. Crowded living conditions, poor sanitation, and exposure during early childhood remain the dominant drivers of H. pylori prevalence worldwide. But among people sharing similar environmental exposures, genetic differences explain much of why some individuals become chronically colonized and others clear the bacterium or never pick it up at all.

Which Human Genes Influence Infection Risk

Several categories of human genes have been linked to H. pylori susceptibility. The best-replicated findings involve genes related to immune recognition and blood-group antigens.

Toll-Like Receptor Genes

Toll-like receptors are proteins on cell surfaces that detect invading microbes and trigger an immune response. A large genome-wide association study identified the TLR locus on chromosome 4 as strongly associated with H. pylori status, with a single variant (rs10004195) conferring about a 30% change in the odds of being seropositive. A systematic review and meta-analysis of TLR gene variants confirmed that certain genotypes in TLR4 and TLR10 significantly raise infection risk, with one TLR4 variant roughly doubling the odds and another TLR4 variant increasing them more than fourfold in specific genetic models. Not all TLR variants raise risk, though. One variant in TLR4 (rs10759932) was associated with about a 50% reduction in susceptibility in a Turkish study population. A cross-sectional study in Thailand also found that a TLR1 variant and a TLR10 variant each independently raised risk by roughly 80%.

HLA and Immune-Presentation Genes

A recent genome-wide association study identified 78 significant variants in the HLA class II region linked to H. pylori infection. Three specific HLA alleles were associated with increased risk, and one (DQB1*05:02) appeared protective. The researchers showed that some of the risk-associated HLA molecules bind strongly to key H. pylori proteins, offering a plausible explanation for why those variants raise susceptibility: the immune system’s ability to present bacterial fragments and mount a defense literally depends on which HLA versions you carry. The same GWAS that identified TLR associations also flagged the FCGR2A locus, which encodes a receptor involved in antibody-mediated immune responses.

Blood Group and Secretor Status

H. pylori attaches to the stomach lining using adhesins that grab onto sugar molecules decorating the mucosal surface. Two of the most studied adhesins, called BabA and SabA, bind to blood-group-related antigens and sialylated Lewis antigens respectively. Whether you secrete these blood-group sugars into your mucus (a trait determined by the FUT2 gene) affects how densely the bacterium colonizes your stomach. In rhesus monkey experiments, animals that were strong secretors had lower bacterial density and less inflammation, while standard secretors showed heavier colonization and more gastritis. In humans, a study of Yemeni patients found a significant association between ABO blood group, secretor status, and H. pylori infection, with the O blood group and the secretor phenotype being particularly prevalent among infected individuals. An older British study, however, found no significant link between secretor status and H. pylori infection itself, though non-secretor status independently raised the risk of gastroduodenal disease. The picture, in other words, varies by population and study design. What seems consistent is that blood-group biology shapes the interaction between human mucosa and the bacterium in some way, even if the exact contribution to infection risk versus disease severity is still debated.

Cytokine Gene Variants in Children

In children, variants in genes encoding inflammatory signaling molecules have been associated with H. pylori susceptibility. A study of pediatric patients found that specific variants in IL-6, TNF-α, and ACE gene polymorphisms each raised risk, and when two variant alleles were present together the odds of H. pylori infection roughly doubled. Since most H. pylori infections are acquired in childhood, these early-life genetic influences may help determine who becomes chronically colonized.

Family Transmission Is Real, but Not Purely Genetic

H. pylori clusters in families, and people often assume that means it is inherited. But the clustering reflects person-to-person transmission within households, not passage through the genome. The bacterium spreads through oral-oral or fecal-oral contact, and living with an infected family member raises your chances of picking it up. Reinfection rates increase when other family members remain infected.

Genetic fingerprinting of bacterial strains confirms this. When researchers sequenced H. pylori isolates from members of the same family, they found identical strain variants shared between parents and children that were absent in unrelated patients, directly demonstrating within-family transmission. A South African study added nuance: while transmission was significantly more frequent between close relatives and people sharing a household, a majority of the individuals studied could not be linked by transmission to anyone else in their family. So family members sometimes acquire the bacterium from outside the home as well.

The takeaway for families: sharing a household with someone who has H. pylori is a real risk factor, but it is an environmental exposure, not a genetic inheritance. Your genes influence whether you stay infected once exposed, but the bacterium itself travels through contact, not chromosomes.

The Bacterium Has Its Own Genetic Playbook

When people ask “is H. pylori genetic,” they sometimes mean whether the bacterium’s genetics matter for disease. They do, enormously. H. pylori is one of the most genetically diverse bacterial species known, driven by exceptionally high mutation and recombination rates. That diversity accumulates in a roughly clock-like fashion over years of infection.

Two bacterial genes get the most attention clinically: cagA and vacA. The cagA gene encodes a protein that the bacterium injects into stomach cells, where it hijacks cell signaling. The vacA gene produces a toxin that damages stomach lining cells. Different combinations of vacA subtypes (designated s1/s2 and m1/m2) carry different disease risk. In a Brazilian study of gastric cancer patients, about 80% of H. pylori-positive samples carried the cagA gene, and nearly all had the more virulent s1 form of vacA. In Egyptian patients, specific cagA and vacA combinations were associated with peptic ulcer disease. An Estonian study, however, found no clear differences in cagA or vacA genotype distribution between patients with perforated ulcer, uncomplicated ulcer, or chronic gastritis, illustrating that the link between bacterial genotype and clinical outcome is not uniform across populations.

Inside a single stomach, H. pylori does not sit still. Isolates taken from different stomach regions of the same person show location-specific evolution, with bacterial populations in the antrum evolving somewhat independently from those in the upper stomach. Migration between stomach regions happens, but the different chemical environments of these regions seem to push the bacteria toward niche-specific adaptation.

Co-Evolution Between Humans and H. pylori

H. pylori has been colonizing human stomachs for at least 100,000 years, and its population structure mirrors ancient human migrations out of Africa, through Central Asia, and across the Americas. Researchers have even used H. pylori strain differences to reconstruct Paleolithic migration routes, such as a bacterial lineage in Okinawa that appears to have diverged from other East Asian strains roughly 20,000 years ago, with its closest relatives found in Afghanistan and Nepal. Similarly, studies tracking H. pylori populations across Siberia and the Americas have confirmed that the bacterium’s geographic history faithfully reflects well-documented human migration events.

This long shared history has a medical consequence. When a human population and its local H. pylori strains have evolved together for millennia, they appear to have reached a rough equilibrium that moderates disease. But when that pairing is disrupted, gastric disease risk rises. A study of two Colombian populations found that in a coastal community where human and bacterial ancestries were well matched, gastric cancer rates were relatively low. In a mountain community where recent admixture had mismatched human and H. pylori genomes, rates were much higher. A review of the evidence concluded that the most useful models for predicting gastric disease risk consider the genetic variation of both the bacterium and the human host simultaneously, under a co-evolution framework.

This matters practically for populations shaped by colonialism, slavery, and recent migration, where ancestral bacterial strains may no longer match the host’s immune background. It helps explain why gastric cancer rates vary so dramatically around the world in ways that sanitation and diet alone cannot account for.

How H. pylori Changes Your DNA

Beyond influencing who gets infected, genetics enters the picture in another way: H. pylori actively damages host cell DNA once it is established. The infection introduces double-strand breaks in the DNA of stomach lining cells. These are the most dangerous type of DNA damage because imprecise repair can introduce mutations. The damage requires direct bacterial contact with the cell surface and depends partly on bacterial adhesion through molecules like BabA.

The mechanisms behind this damage are being mapped out in increasing detail. The bacterium’s type IV secretion system injects molecules that trigger inflammatory signaling and DNA replication stress in host cells. One injected molecule, CagA, targets the tumor suppressor protein BRCA1, impairing the cell’s ability to repair double-strand breaks accurately. A 2025 study found that H. pylori infection depletes the building blocks cells need to replicate their DNA, creating additional replication stress that leads to breaks concentrated at specific genomic locations.

On top of the direct damage, H. pylori causes epigenetic changes. The infection silences tumor suppressor genes by adding chemical tags (methyl groups) to their DNA, effectively switching them off without altering the genetic code. This methylation-based silencing occurs in both cancerous and non-cancerous stomach tissue of infected people. Taken together, H. pylori does not just sit in the stomach passively; it rewrites the host’s genetic landscape in ways that accumulate cancer risk over decades of chronic infection.

When Host and Bacterial Genetics Collide in Cancer Risk

The intersection of human genetic variants and H. pylori infection is most visible in gastric cancer. A meta-analysis of 37 studies found that a common variant in the IL-1B gene (position 31) increased gastric cancer risk specifically in people who were also infected with H. pylori, but not in uninfected people. This is a textbook gene-environment interaction: the genetic variant alone is not enough, and the infection alone is not enough, but together they amplify risk.

The stakes can be dramatic when the human genetic vulnerability is severe. A study published in the New England Journal of Medicine found that people who carried both H. pylori infection and a harmful variant in a DNA-repair gene had a cumulative gastric cancer risk of about 45% by age 85, compared with roughly 14% for infected people without the repair-gene variant. That threefold difference underscores why some researchers argue that personalized cancer screening should take both infection status and host genotype into account.

Your Genes Can Affect Whether Treatment Works

Standard H. pylori treatment uses a proton pump inhibitor (PPI) to suppress stomach acid plus two or three antibiotics. The PPI component is metabolized primarily by a liver enzyme called CYP2C19, and people carry different versions of the gene encoding this enzyme. Individuals with gene variants that cause them to metabolize PPIs slowly end up with higher drug levels in their blood, which suppresses acid more effectively and gives the antibiotics a better environment to work in. Two such slow-metabolizer alleles have been associated with higher eradication success. Conversely, ultra-rapid metabolizers break down the PPI so quickly that it may not suppress acid enough for the antibiotics to do their job.

Beyond CYP2C19, variants in drug-transporter genes and inflammatory cytokine genes also influence treatment outcomes. The frequency of these variants differs across ethnic groups, which partly explains why the same antibiotic regimen can work well in one country and fail frequently in another. Some gastroenterologists are beginning to use CYP2C19 genotyping to choose the right PPI dose before starting treatment, though this approach is not yet standard practice everywhere.

H. pylori as a Map of Human History

Because H. pylori mutates fast and is transmitted almost exclusively between people in close contact, its genetic diversity acts as a surprisingly precise record of human population movements. Researchers have identified seven major bacterial populations whose geographic distributions correspond to ancestral human groups originating in Africa, Central Asia, and East Asia. The bacterium’s recombination rate is so high that unless you sample people living near each other, you rarely find direct clonal descent between strains. This rapid shuffling of genetic material, paradoxically, is what makes regional strain populations distinctive: local bacterial evolution tracks local human evolution closely enough to date migration events thousands of years in the past. It is one of the more unexpected intersections of microbiology and anthropology, and it only works because the bacterium and its human host have been inseparable companions for so long.