H. pylori: 5 Facts If Stomach Cancer Runs in Your Family
H. pylori is the infection most closely tied to stomach cancer. Who should be tested, what treatment involves, and which symptoms mean call a doctor today.

When a parent, a sibling, or a child has had stomach cancer, the useful question is not "am I doomed too" — it is "what is actually modifiable here." One of the few honest answers is a bacterium: Helicobacter pylori. The National Cancer Institute describes it as a spiral-shaped organism that grows in the mucus layer coating the inside of the stomach, and the World Health Organization's International Agency for Research on Cancer classified it as a human carcinogen back in 1994. Most people who carry it never get cancer. But it is the single infection most tightly linked to stomach cancer, it is testable, and it is treatable. Here are five things worth understanding before you bring it up with a doctor.
How One Bacterium Ends Up Driving Cancer Risk
Stomach acid kills most bacteria. H. pylori survives by neutralizing the acidity of its immediate surroundings, burrowing into the mucus layer, and attaching to the cells lining the stomach wall — which also keeps it out of reach of the immune cells that gather nearby. The result is a chronic, low-grade inflammation that, in most infected people, becomes a long-lasting gastritis. In a subset of people that inflammation progresses: atrophic gastritis, then changes in the stomach lining, and eventually gastric adenocarcinoma. That progression takes decades, which is exactly why it goes unnoticed. Chronic infection is also behind gastric MALT lymphoma, a rare stomach lymphoma that grows out of years of immune stimulation in the stomach lining rather than out of that same cascade.
It is also extremely common. The CDC estimates that about two-thirds of the world's population carries the bacterium. In the United States, prevalence has always varied sharply by group — in 1999–2000 it was roughly 21% among non-Hispanic White adults, 52% among non-Hispanic Black adults, and 64% among Mexican Americans. In 2021, the National Toxicology Program added chronic H. pylori infection to its Report on Carcinogens.
Where the Infection Actually Comes From
This is where a lot of folk wisdom goes wrong. According to the NCI, H. pylori spreads person to person through oral contact with stool, saliva, or vomit, and in most populations it is first acquired during childhood — not in adulthood, and not from any single dramatic exposure. Infection is more likely in children living in poverty, in crowded housing, and in areas with poor sanitation. NIDDK is blunt that researchers are still studying exactly how people become infected, and adds that food or water contaminated with an infected person's saliva, stool, or vomit can carry it too.
The practical takeaway is not a hygiene ritual you should adopt tomorrow. It is that a family that shares a household often shares an infection acquired long ago — which is part of why stomach cancer clusters in families, alongside genetics. The NCI lists a first-degree relative with stomach cancer as a risk factor in its own right.
Ask Who Should Actually Be Tested — Not Everyone Should
This is the part most articles get wrong, and it matters. The CDC's position, as summarized by the NCI, is that people with an active gastric or duodenal ulcer, or a documented history of ulcers, should be tested for H. pylori and treated if infected. Testing and treatment are also recommended after surgery for early gastric cancer or low-grade gastric MALT lymphoma. But most experts agree the available evidence does not support widespread testing and eradication in the general U.S. population — and unnecessary treatment may be feeding the rise in antibiotic-resistant H. pylori in this country.
Family history sits in between. The NCI notes that eradication treatment has been shown to reduce stomach cancer risk in people at increased risk because of family history. So a first-degree relative with stomach cancer is a genuine reason to raise testing with your doctor — it is not a reason to order a test on your own and treat yourself. If testing is appropriate, these are the options NIDDK lists:
- Urea breath test — you swallow labeled urea, then breathe into a container; the labeled carbon shows up if the bacteria are converting it.
- Stool test — checks a stool sample for the bacteria.
- Blood test — looks for signs of infection.
- Upper GI endoscopy with biopsy — a camera on a flexible tube, with small tissue samples taken from the stomach lining for a pathologist to examine.
Treatment is a combination, not a single pill: two or more antibiotics plus a proton pump inhibitor, and in some cases bismuth subsalicylate. Two details do most of the work. First, take every dose to the end — stopping early lets surviving bacteria develop resistance. Second, get retested: NIDDK advises confirming the infection is gone at least 4 weeks after you finish the antibiotics, because first-line treatment does not always succeed. In the long-running Shandong trial the NCI cites, two weeks of eradication treatment cut gastric cancer incidence by nearly half compared with placebo over 22 years of follow-up — in a Chinese county where stomach cancer rates are very high, not in a general U.S. population.
Cut the Risks That Stack on Top of the Infection
H. pylori does not act alone, and the two biggest co-factors are ones you can move. On smoking, the NCI is specific: people who smoke have a higher risk of stomach cancer than nonsmokers, smoking also makes treatment for H. pylori infection less effective, and people who stop smoking lower their stomach cancer risk over time. That is a rare case where quitting improves both the cancer math and the odds the antibiotics work.
On food, the NCI's guidance is modest and worth taking literally: a diet low in fruits and vegetables, or high in salted, smoked, or poorly preserved foods, may raise stomach cancer risk. High intake of salt and processed meat in particular is associated with increased risk — possibly by making it easier for H. pylori to colonize the stomach in the first place. No supplement has an equivalent evidence base here, and none is a substitute for eradication treatment.
Know Which Symptoms Mean Call Today
Chronic H. pylori infection is usually silent, and early stomach cancer often is too — which is why symptoms are a poor screening tool. Indigestion, upper abdominal pain between the navel and breastbone, feeling full too soon, nausea, and bloating are common and usually not cancer. But NIDDK lists specific symptoms that mean you should call or see a doctor right away, because they can signal a bleeding or perforated ulcer:
- Black or tarry stool, or red or maroon blood mixed with stool
- Red blood in vomit, or vomit that looks like coffee grounds
- Sudden, sharp, or severe abdominal pain that does not go away
- Feeling dizzy or fainting, a rapid pulse, or other signs of shock
- A clear change in or worsening of ongoing stomach symptoms
If any of those appear suddenly and severely — heavy bleeding, fainting, unrelenting pain — call 911 or go to an emergency department rather than waiting for an appointment. Unexplained weight loss or trouble swallowing also deserve a prompt visit, not a wait-and-see.
One Note for Your Next Visit
H. pylori is not a reason to panic and it is not a reason to self-test. It is a reason to have one specific conversation. Here is the small thing to do this week: write down which relatives had stomach cancer or stomach ulcers, and roughly what age they were diagnosed, and bring that single note to your next primary care visit. That one piece of family history is what decides whether testing makes sense for you — and it is the thing doctors almost never have on hand. This article is general information, not medical advice; testing and treatment decisions belong with your clinician.
Related articles
3 min read3 viewsNighttime Heartburn? Blame Coffee, Soda, and Fried Food
Coffee, soda, and late-night fried food can raise stomach acid and pressure, triggering heartburn. Here's the science and simple swaps that actually help.
4 min read1 viewsConstipation: 3 Everyday Habits That Quietly Make It Worse
Refined staples, a cheese-heavy plate and a sudden fiber jump each slow things down. Here is what US guidance and a 2021 trial actually found.
4 min read0 views