The goals of treatment are pain relief, healing of the ulcer, and prevention of complications. Treatment can also help prevent recurrence of the ulcer. You will probably take the antibiotics for 1 to 2 weeks. You may take medicine to decrease acid for at least 6 weeks. Sometimes medicine needs to be taken for 6 to 12 months to prevent new ulcers.
Duodenal ulcers respond well to treatment but they can recur.
You can help reduce the chance that an ulcer will recur by taking your medications. These complications may require surgery. Follow the full treatment prescribed by your health care provider. Keep your follow-up appointments. Avoid drugs that cause stomach inflammation, such as aspirin, ibuprofen, and naproxen.