A peptic ulcer is a defect in the lining of the stomach or the first part of the small intestine, an area called the duodenum.
A peptic ulcer in the stomach is called a gastric ulcer. An ulcer in the duodenum is called a duodenal ulcer.