Stomach Cancer Causes, Risk Factors, and Prevention

Stomach cancer often develops slowly, sometimes after long-term changes in the stomach lining. While there is no single known cause, certain infections, lifestyle habits, and genetic changes can increase your risk.

What causes stomach cancer?

Stomach cancer doesn’t have a single known cause, but several factors can raise or lower your risk. Often it's not clear exactly how these factors might affect how cells in the stomach become cancer cells.

Risk factors for stomach cancer include:

  • Age, sex, race/ethnicity, and geography
  • Body weight, diet, tobacco and alcohol use, and other lifestyle factors
  • Family history and inherited conditions
  • Past medical history, including certain infections and other conditions
  • Certain occupations

Precancerous changes in the stomach

Some types of changes in the inner lining of the stomach might lead to stomach cancer.

Atrophic gastritis: In this condition, there are fewer gland cells in the stomach lining than normal. There is also inflammation, in which the stomach cells are damaged by cells of the immune system.

Atrophic gastritis often is caused by infection with H pylori bacteria (see Risk Factors for Stomach Cancer). It can also be caused by a reaction known as autoimmune gastritis, in which a person’s immune system attacks the cells lining the stomach.

Some people with this condition go on to develop other stomach problems, including pernicious anemia, intestinal metaplasia, dysplasia, and stomach cancer.

Intestinal metaplasia: In this condition, the cells that normally line the inside of the stomach are replaced by cells that look like the cells that usually line the intestine. People with this condition often have chronic atrophic gastritis as well. This can also be related to H pylori infection.

Dysplasia: Both atrophic gastritis and intestinal metaplasia can lead to having too few gland cells in the stomach, which would normally secrete substances that help protect the cells in the inner lining. Damage to the DNA (genes) inside these cells can sometimes lead to dysplasia, in which the cells become larger and look very abnormal, more like cancer cells. In some cases, dysplasia can then progress to stomach cancer.

Changes in genes (DNA) in stomach cancer cells

It’s not always clear why these changes develop in stomach cells, but researchers have learned how some stomach cancers form. For instance:

  • H pylori bacteria, particularly certain subtypes, can convert substances in some foods into chemicals that cause DNA changes in the cells lining the stomach. This may help explain why certain foods such as preserved meats increase a person’s risk for stomach cancer.
  • On the other hand, some foods that might lower stomach cancer risk, such as fruits and vegetables, contain antioxidants (like vitamins A and C) that can block substances that damage a cell’s DNA.

How gene changes (mutations) can lead to cancer

Genes are pieces of DNA inside each cell that carry instructions for how the cell works. Certain genes help control when our cells grow, divide to make new cells, or repair mistakes in DNA. They also cause cells to die when they’re supposed to. If these genes aren’t working properly, it can lead to cells growing out of control.

Cancer develops when changes (mutations) in certain genes lead to abnormal cell growth. To learn more, see Genes and Cancer.

Inherited versus acquired gene mutations

Some people inherit a gene mutation from a parent that increases their stomach cancer risk. But inherited mutations are thought to cause only a small percentage of stomach cancers.

Most of the gene changes that lead to stomach cancer happen during a person’s lifetime. Some of these acquired mutations might be caused by risk factors such as H pylori infection or tobacco use. But some gene changes may just be random events that sometimes happen inside cells, without having an outside cause.


Can stomach cancer be prevented?

There is no sure way to prevent stomach cancer, but there are things you can do to help lower your risk.

Diet, nutrition, body weight, physical activity, and alcohol use

Having excess body weight (overweight or obesity) increases the risk of some types of stomach cancer, so getting to and staying at a healthy weight might lower your risk.

Getting regular physical activity might also help lower your risk of stomach cancer.

Aside from possible effects on stomach cancer risk, staying at a healthy weight and being active may also lower your risk of several other cancers and health problems.

A diet that includes plenty of fresh fruits and vegetables probably also lowers stomach cancer risk. Citrus fruits (such as oranges, lemons, and grapefruit) may be especially helpful, but be aware that grapefruit and grapefruit juice can change the blood levels of certain drugs you take. Talk to your health care team about this before adding grapefruit to your diet.

The American Cancer Society recommends that you follow a healthy eating pattern, which includes a variety of colorful fruits and vegetables and whole grains, and avoids or limits red and processed meats, sugar-sweetened beverages, and highly processed foods.

Drinking alcohol probably increases the risk of stomach cancer, so avoiding or limiting alcohol might lower your risk.

For more on diet, body weight, physical activity, and alcohol use, see the ?American Cancer Society Guideline for Diet and Physical Activity for Cancer Prevention.

Studies that have looked at other dietary factors, such as taking dietary supplements or drinking tea (particularly green tea) have not led to firm conclusions when it comes to lowering stomach cancer risk. Further research is needed in these areas.

Not smoking

Smoking can increase the risk of cancers of the upper stomach (the portion closest to the esophagus). Tobacco use increases the risk for many other types of cancer as well. If you don’t use tobacco, don’t start. If you already do and want help quitting, call the American Cancer Society at 1-800-227-2345.

Treating H pylori infection

It's not yet clear if people whose stomach linings are chronically infected with the H pylori bacteria but who do not have any symptoms should be treated with antibiotics. Some studies have suggested that giving antibiotics to people with H pylori infection might lower the number of precancerous lesions in the stomach and reduce the risk of developing stomach cancer. But not all studies have found this.

While it’s not yet clear if all people with H pylori infection should be treated, some research has shown that it might be helpful to test for H pylori and treat people who are at higher risk for stomach cancer, such as those with atrophic gastritis, intestinal metaplasia, or a family history of stomach cancer. Doctors also often recommend that household contacts of people who are known to have H pylori be tested for infection and treated, if needed.

If your doctor thinks you might have H pylori infection, there are several ways to test for this, including a breath test, a blood test, a stool test, and an endoscopy procedure, in which a biopsy is done. (See Tests for Stomach Cancer.)

Aspirin use

Regular use of aspirin or other non-steroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen or naproxen seems to lower the risk of stomach cancer. These medicines can also lower the risk of developing colon polyps and colon cancer. But they can also cause serious, and even life-threatening, internal bleeding and other potential health risks in some people, so talk with your doctor before taking any of these drugs regularly.

Most doctors consider any reduced cancer risk an added benefit for people who take these drugs for other reasons, such as to treat arthritis. But doctors do not routinely recommend taking NSAIDs specifically to prevent stomach or other cancers.

For people with inherited syndromes that increase stomach cancer risk

Formerly known as hereditary diffuse gastric cancer (HDGC), DGLBCS is a rare inherited condition in which people have a greatly increased risk of stomach cancer, which often develops at a fairly early age. DGLBCS is most often caused by an inherited mutation (change) in the CDH1 gene.

It's important to recognize people with this syndrome, because many people who have it will develop stomach cancer. Families with DGLBCS typically have 2 or more close relatives who develop stomach cancer (at least 1 of whom has the diffuse type), or at least 1 person who is diagnosed with diffuse stomach cancer before age 50. Some family members might also develop invasive lobular breast cancer.

Doctors often refer people who might have DGLBCS to a genetics professional, so they can discuss possibly getting genetic testing. If testing is done and shows a person has a mutation in the CDH1 gene, doctors often recommend they do 1 of 2 things:

  • Get a thorough upper endoscopy by an experienced gastroenterologist at least once a year to check for stomach cancer.
  • Have their stomach removed with a total gastrectomy, typically between the ages of 20 and 30, before cancer develops. However, this operation can lead to long-term quality-of-life issues, including changing the way a person eats.

It’s important to discuss your options thoroughly with your health care team, as each can have pros and cons. Surgery is more likely to be recommended if you meet certain criteria, such as having symptoms that might be from stomach cancer or abnormal findings on an upper endoscopy.

Some other hereditary cancer syndromes are also linked with an increased risk for stomach cancer, including Lynch syndrome, familial adenomatous polyposis (FAP), Li-Fraumeni syndrome, and Peutz-Jeghers syndrome. (See Stomach cancer risk factors, above).

In people with these syndromes, the risk of stomach cancer is not nearly as high as it is with DGLBCS, so removal of the stomach is not typically recommended. However, doctors might recommend these people get regular testing to try to find stomach cancer early.

side by side logos for American Cancer Society and American Society of Clinical Oncology

Developed by the American Cancer Society medical and editorial content team with medical review and contribution by the American Society of Clinical Oncology (ASCO).

Barbosa-Matos R, Córdova L, Schrader K, et al. Diffuse Gastric and Lobular Breast Cancer Syndrome. 2002 Nov 4 [Updated 2024 Oct 10]. In: Adam MP, Bick S, Mirzaa GM, et al, eds. GeneReviews? [Internet]. Seattle (WA): University of Washington, Seattle; 1993-2025. Accessed at https://www.ncbi.nlm.nih.gov/books/NBK1139/ on December 5, 2025.

Bosetti C, Santucci C, Gallus S, Martinetti M, LaVecchia C. Aspirin and the risk of colorectal and other digestive tract cancers: An updated meta-analysis through 2019. Ann Oncol. 2020;31(5):558-568.

Chan AOO, Wong BCY. Risk factors for gastric cancer. UpToDate. 2025. Accessed at https://www.uptodate.com/contents/ risk-factors-for-gastric-cancer on December 3, 2025.

Choi IJ, Kim CG, Lee JY, et al. Family history of gastric cancer and Helicobacter pylori treatment. N Engl J Med. 2020;382(5):427-436.

Dhalla F, da Silva SP, Lucas M, Travis S, Chapel H. Review of gastric cancer risk factors in patients with common variable immunodeficiency disorders, resulting in a proposal for a surveillance programme. Clin Exp Immunol. 2011;165:1?7.

Hebbard P, Schrader KA. Diffuse gastric and lobular breast cancer syndrome. UpToDate. 2025. Accessed at https://www.uptodate.com/contents/diffuse-gastric-and-lobular-breast-cancer-syndrome on December 5, 2025.

Ku GY, Ilson DH. Chapter 72: Cancer of the Stomach. In: Niederhuber JE, Armitage JO, Doroshow JH, Kastan MB, Tepper JE, eds. Abeloff’s Clinical Oncology. 6th ed. Philadelphia, Pa: Elsevier; 2020.

Lauwers G, Kumarasinghe P. Gastric cancer: Pathology and molecular pathogenesis. UpToDate. 2025. Accessed at https://www.uptodate.com/contents/gastric-cancer-pathology-and-molecular-pathogenesis on December 3, 2025.

Mahachai V, Graham DY, Odze RD. Gastric polyps. UpToDate. 2025. Accessed at https://www.uptodate.com/contents/gastric-polyps on December 5, 2025.

National Cancer Institute. SEER Cancer Stat Facts: Stomach Cancer. 2025. Accessed at https://seer.cancer.gov/statfacts/html/stomach.html on December 5, 2025.

National Cancer Institute. Stomach Cancer Causes and Risk Factors. 2025. Accessed at https://www.cancer.gov/types/stomach/causes-risk-factors on December 5, 2025.

National Cancer Institute. Stomach (Gastric) Cancer Prevention (PDQ?). 2025. Accessed at https://www.cancer.gov/types/stomach/hp/stomach-prevention-pdq on December 5, 2025.

National Comprehensive Cancer Network. NCCN Clinical Practice Guidelines in Oncology: Genetic/Familial High-Risk Assessment: Colorectal, Endometrial, and Gastric. Version 1.2025. Accessed at https://www.nccn.org on December 2, 2025.

Rock CL, Thomson C, Gansler T, et al. American Cancer Society guideline for diet and physical activity for cancer prevention. CA Cancer J Clin. 2020;70(4). Accessed at https://acsjournals.onlinelibrary.wiley.com/doi/full/10.3322/caac.21591 on December 5, 2025.

World Cancer Research Fund/American Institute for Cancer Research. Continuous Update Project Expert Report 2018. Diet, Nutrition, Physical Activity and Stomach Cancer. Accessed at https://www.aicr.org/wp-content/uploads/2020/01/stomach-cancer-report.pdf on December 5, 2025.

Yen T, Stanich PP, Axell L, et al. APC-Associated Polyposis Conditions. 1998 Dec 18 [Updated 2022 May 12]. In: Adam MP, Bick S, Mirzaa GM, et al, eds. GeneReviews? [Internet]. Seattle (WA): University of Washington, Seattle; 1993-2025. Accessed at from: https://www.ncbi.nlm.nih.gov/books/NBK1345/ on December 5, 2025.

Last Revised: February 27, 2026

American Cancer Society Emails

Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.