The most common cause of peptic ulcers is an infection with H. pylori. Duodenal ulcers are more common with H. pylori than gastric ulcers. Peptic ulcers are slightly more common in men than in women.