Peptic ulcers are open sores on the inner lining of the stomach and the upper part of the small intestine. The most common symptom of a peptic ulcer is stomach pain.
Peptic ulcers include:
The most common causes of peptic ulcers are infection with the germ Helicobacter pylori (H. pylori) and long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs). These include ibuprofen (Advil, Motrin IB, others) and naproxen sodium (Aleve).
Stress and spicy foods do not cause peptic ulcers. But they can make symptoms worse.

Peptic ulcers are open sores on the inner lining of the stomach and the upper part of the small intestine. A peptic ulcer in the stomach is called a gastric ulcer. A duodenal ulcer is a peptic ulcer that appears in the first part of the small intestine, called the duodenum.
Many people with peptic ulcers don't have symptoms. If there are symptoms, they may include:
Peptic ulcers can cause bleeding from the ulcer. Then symptoms might include:
See your healthcare professional if you're vomiting blood, having dark blood in stools or are feeling dizzy. Also see your healthcare professional if nonprescription antacids and acid blockers relieve your pain but the pain returns.
Peptic ulcers happen when acid in the organs that food travels through, called the digestive tract, eats away at the inner surface of the stomach or small intestine. The acid can create a painful open sore that may bleed.
Your digestive tract is coated with a mucous layer that most often protects against acid. But if the amount of acid increases or the amount of mucus decreases, you could develop an ulcer.
Common causes include:
Helicobacter pylori. This germ lives in the mucous layer that covers and protects tissues that line the stomach and small intestine. The H. pylori germ often causes no problems. But it can cause swelling and irritation, called inflammation, of the stomach's inner layer. When this happens, it can cause an ulcer.
It's not clear how H. pylori infection spreads. It may go from person to person by close contact, such as kissing. People also can contract H. pylori through food and water.
If you take NSAIDs, the following factors may increase your risk of peptic ulcers:
NSAIDs use. Taking high doses of NSAIDs or two or more NSAIDs increases the risk. So does taking NSAIDS with certain other medicines.
These include other pain relievers, steroids, blood thinners, certain antidepressants called selective serotonin reuptake inhibitors (SSRIs) and medicines to treat the bone-thinning disease osteoporosis. These include alendronate (Fosamax, Binosto) and risedronate (Actonel, Atelvia).
Factors that don't cause peptic ulcers but can make them worse include:
Untreated peptic ulcers can cause:
To help prevent peptic ulcers:
Take care with pain relievers. If you often use NSAIDs, which can increase your risk of peptic ulcer, take steps to reduce your risk of stomach problems. For instance, take pain relievers with meals.
Work with your healthcare professional to find the lowest dose that gives you pain relief. Don't drink alcohol with pain relievers. Together, they can increase your risk of stomach upset.
If you need an NSAID, you also may need to take other medicines to help protect your stomach. These include antacids, proton pump inhibitors, acid blockers or cytoprotective agents.
A class of NSAIDs called COX-2 inhibitors may be less likely to cause peptic ulcers. But these medicines may increase the risk of heart attack.