Explainer

Peptic ulcer risk factors: H. pylori, NSAIDs and other causes

A peptic ulcer is a sore on the lining of your stomach or duodenum. Here is what the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) and MedlinePlus say about who is more likely to get one, the less common causes, and the symptoms that need a doctor right away.

Last reviewed: By the uncovermyrisk.com editorial team Educational only, not medical advice.

What a peptic ulcer is

A peptic ulcer is a sore on the lining of your stomach or duodenum, the first part of your small intestine (NIDDK) (MedlinePlus). Peptic ulcers are sometimes called stomach ulcers, duodenal ulcers, or peptic ulcer disease (NIDDK). Researchers estimate that about 1% to 6% of people in the United States have peptic ulcers (NIDDK).

Peptic ulcers happen when the acids that help you digest food damage the walls of the stomach or duodenum (MedlinePlus).

The two most common causes

Infection with the bacteria Helicobacter pylori (H. pylori) and taking nonsteroidal anti-inflammatory drugs (NSAIDs), such as aspirin, ibuprofen and naproxen, are the two most common causes of peptic ulcers (NIDDK).

H. pylori infection

H. pylori infection is a common cause of peptic ulcers. Researchers are still studying how people become infected. The bacteria may spread from person to person through contact with an infected person's vomit, stool or saliva, and food or water contaminated with them may also spread the bacteria (NIDDK). To see if you have an H. pylori infection, your doctor will test your blood, breath or stool (MedlinePlus).

Long-term H. pylori infection is also a major risk factor for stomach cancer; see stomach cancer risk factors.

NSAIDs

NSAIDs relieve pain, but they also make the stomach lining more prone to damage and ulcers, and some types of NSAIDs are more likely to cause ulcers than others (NIDDK). You have a higher chance of developing a peptic ulcer due to NSAIDs if you take (NIDDK):

Other risk factors

People also are more likely to develop peptic ulcers if they (NIDDK):

Stress and spicy foods do not cause ulcers, but can make them worse (MedlinePlus).

NSAIDs can also cause GERD or make it worse; see GERD risk factors (NIDDK).

Less common causes

Other causes of peptic ulcers are uncommon or rare (NIDDK). They include:

In rare cases, doctors cannot find the cause; they may call these idiopathic peptic ulcers (NIDDK).

Symptoms

Peptic ulcers may cause symptoms of indigestion. Common symptoms include (NIDDK):

Abdominal pain is the most common symptom. The pain may be dull or burning and may come and go over time; for some people it occurs when the stomach is empty or at night and goes away for a short time after they eat, while for others eating makes it worse (NIDDK). Many people who have peptic ulcers do not have any symptoms until an ulcer leads to complications (NIDDK).

Symptoms that need a doctor right away

Peptic ulcers can lead to complications such as bleeding, a hole (perforation) in the wall of the stomach or duodenum, penetration into a nearby organ, or a blockage that stops food from moving from the stomach into the duodenum (NIDDK). Call or see your doctor right away if you have symptoms that could be caused by a complication (NIDDK):

Treatment

Peptic ulcers will get worse if not treated. Treatment may include medicines to reduce stomach acids or antibiotics to kill H. pylori. Antacids and milk cannot heal peptic ulcers. Not smoking and avoiding alcohol can help, and you may need surgery if your ulcers do not heal (MedlinePlus).

Common questions

Do stress or spicy foods cause ulcers?

No. Stress and spicy foods do not cause ulcers, but they can make them worse (MedlinePlus).

Can aspirin or ibuprofen cause an ulcer?

Yes. Aspirin and ibuprofen are NSAIDs, and taking NSAIDs is one of the two most common causes of peptic ulcers (NIDDK).

Can you have an ulcer without symptoms?

Yes. Many people who have peptic ulcers do not have any symptoms, and may not develop symptoms until an ulcer leads to complications (NIDDK).

Sources

  1. National Institute of Diabetes and Digestive and Kidney Diseases (NIH). Definition and Facts for Peptic Ulcers (Stomach or Duodenal Ulcers). Health information page, last reviewed September 2022, accessed November 7, 2026. www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/definition-facts
  2. National Institute of Diabetes and Digestive and Kidney Diseases (NIH). Symptoms and Causes of Peptic Ulcers (Stomach or Duodenal Ulcers). Health information page, last reviewed September 2022, accessed November 7, 2026. www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/symptoms-causes
  3. MedlinePlus (National Library of Medicine). Peptic Ulcer. Health topic page, last updated January 25, 2024, accessed November 7, 2026. medlineplus.gov/pepticulcer.html
  4. National Institute of Diabetes and Digestive and Kidney Diseases (NIH). Symptoms and Causes of GER and GERD (Acid Reflux in Adults). Health information page, last reviewed July 2020, accessed November 7, 2026. www.niddk.nih.gov/health-information/digestive-diseases/acid-reflux-ger-gerd-adults/symptoms-causes

Written and maintained by the uncovermyrisk.com editorial team. We do not have a medical reviewer; every claim links to its primary source above. Last reviewed: 2026-11-07. Spotted an error? See About.