Give you medicine to help heal the ulcer. Give you medicine to cure the H. pylori infection. There are three kinds of ulcer medicines. The first kind reduces the amount of acid the stomach makes. This medicine heals ulcers in the duodenum in 6 to 8 weeks.
Stomach ulcers take a little longer to heal.
You would take these medicines for 8 to 12 weeks if you have a stomach ulcer. A second kind of medicine blocks the stomach's ability to make acid. This medicine helps heal duodenal ulcers in 4 weeks. It helps heal stomach ulcers in 6 to 8 weeks. A third kind of medicine coats the ulcer.