How You Get H. Pylori: Causes and Risk Factors

H. pylori spreads from person to person, primarily through contact with vomit, stool, or saliva from someone who carries the bacteria. Most people pick it up during childhood, often from a family member, and carry it for life unless treated. Roughly half the world’s population is infected, making it one of the most common bacterial infections on the planet.

The Main Ways H. Pylori Spreads

There are three recognized transmission routes: fecal-oral (bacteria from stool reaching someone’s mouth), oral-oral (through saliva), and gastric-oral (through vomit). All three have strong biological and epidemiologic evidence behind them, but vomit turns out to be a surprisingly dominant pathway. A study tracking transmission within households found that exposure to vomit from an infected person explained more than 50% of all new infections and over 70% of the most clearly documented cases.

This makes sense biologically. The bacteria have been recovered most reliably from vomit and from stool during episodes of rapid gut transit, like diarrhea. When someone with H. pylori gets a stomach bug and vomits, the bacteria become airborne or land on surfaces, hands, and shared spaces. It works much like other stomach pathogens that spread through vomit or aerosolized vomit particles.

Saliva plays a role too. The mouth serves as a secondary reservoir for the bacteria outside the stomach, which is why sharing utensils, pre-chewing food for children, or kissing can transfer the infection. This oral-oral route is thought to be especially relevant in families where parents pass the bacteria to young children.

Why Childhood and Family Life Matter

Most H. pylori infections are acquired in childhood, typically before age 10. The household is the primary setting. Children live in close physical contact with caregivers, share food and drinks, and are regularly exposed when a parent or sibling gets sick with a stomach illness. The combination of close quarters, shared meals, and caregiving tasks like diaper changes creates repeated opportunities for transmission.

Known modifiable risk factors include inadequate sanitation, unhealthy hygiene practices, and having an infected family member. Once a child is infected, the bacteria typically persist in the stomach lining for decades. Adults can also acquire new infections, but the rate is much lower than in children, likely because adults have better hygiene habits and less intimate physical contact with others.

Contaminated Water and Food

H. pylori can spread through water that hasn’t been adequately treated. This is a major factor in developing countries where clean water infrastructure is limited. Infections are significantly more common in regions where people lack reliable access to treated water, and drinking boiled or properly purified water reduces the risk.

Food is another vehicle, particularly raw vegetables. A study of leafy greens in Spain found H. pylori on about 27% of lettuce samples, 10% of spinach, and 9% of chard. The contamination comes from irrigation water and soil contact during growing. The bacteria can even grow on lettuce stored at room temperature, increasing in number over several days. Proper refrigeration at 5°C slows this growth, and thorough washing before eating raw vegetables helps reduce the risk. The quality of irrigation water, postharvest handling, and storage temperature all influence whether the bacteria remain viable by the time produce reaches your plate.

How the Bacteria Survive Your Stomach

Your stomach produces hydrochloric acid strong enough to kill most bacteria, so how does H. pylori survive? It produces an enzyme that breaks down urea (a natural compound in stomach fluid) into ammonia, which neutralizes the acid in its immediate surroundings. This creates a small protective bubble of higher pH around the bacterium.

That same chemical trick also lets it move. For years, scientists assumed H. pylori used its corkscrew-shaped body and spinning flagella to drill through the thick mucus lining your stomach. That turns out to be wrong. Under acidic conditions, the bacteria wiggle in place but can’t actually move through the mucus gel. Instead, when they break down urea and raise the local pH, the mucus around them changes consistency and becomes liquid enough to swim through. Once the bacteria reach the stomach wall beneath the mucus layer, they attach to the cells there, establish a colony, and can trigger inflammation that leads to ulcers or other problems over time.

Practical Ways to Lower Your Risk

Hand hygiene is considered one of the most effective defenses. Washing your hands thoroughly after using the bathroom and before eating interrupts the fecal-oral route. This is especially important for caregivers changing diapers or cleaning up after a child who has been vomiting.

Other protective steps include:

  • Drinking safe water. If your water supply isn’t reliably treated, boiling water before drinking it reduces risk.
  • Washing raw produce. Rinse leafy greens thoroughly, and store them refrigerated rather than at room temperature.
  • Using separate serving utensils. In households where someone is infected, using individual plates and serving spoons limits oral-oral spread.
  • Maintaining good oral hygiene. Since the mouth acts as a reservoir for the bacteria, regular brushing and dental care may play a role in reducing transmission.
  • Cleaning up vomit carefully. Because vomit is a primary transmission vehicle, prompt and thorough cleanup with disinfectant matters, especially if anyone in the household carries H. pylori.

Crowded living conditions, shared sleeping spaces, and limited sanitation infrastructure all increase transmission rates. This is why H. pylori prevalence is substantially higher in developing nations. But the infection exists everywhere, and even in countries with modern plumbing, household spread remains the dominant route. If you’ve been diagnosed, your close family members have a higher likelihood of carrying it too.