You will need to take two antibiotics, as well as a proton pump inhibitor. The inhibitor will work to reduce acid production.

In general doctors suggest taking antacids at least an hour before, or two hours after, you take your prescribed medication. Easily accessible antacids include magnesium hydroxide, aluminum hydroxide, calcium carbonate, and sodium bicarbonate.

Patients with peptic ulcers should avoid diets rich in red meat, fried or fatty foods, and refined foods, such as flour or sugar. Be cautious of dairy foods with whole milk or cream. Spearmint, peppermint, and other minty foods seem to increase the production of stomach acid. Diets heavy in these foods can lead to further ulcer irritation and an increase in stomach acid.

The second recommendation is to avoid citrus and acidic foods and drinks. Highly acidic orange or lemon juice could irritate the ulcer and cause you pain. You should also be wary of tomato products, onions and garlic, and heavily seasoned food in general. [4] X Research source

Good sources of fiber are whole-wheat bread, pasta, and brown rice. Opt for limited amounts of lean meat, and limited low-fat dairy products. [6] X Research source There is no single recommended diet for those with an ulcer, so you should think about what food causes you irritation and discuss this with your doctor. [7] X Trustworthy Source Johns Hopkins Medicine Official resource database of the world-leading Johns Hopkins Hospital Go to source Eating foods rich in antioxidants (blueberries, cherries, tomatoes, squash, and bell peppers), flavonoids (apples, celery, cranberries, onions, garlic, and tea), B vitamins, and calcium (almonds, beans, whole grains, spinach, kale, and sea vegetables) may also help to reduce your symptoms. Continue to drink 6-8 glasses of water each day as part of your healthy diet.

Avoid eating anything at least two hours before you go to bed. [8] X Research source

Alcohol can also lead gastritis, an inflammation of the stomach, that can severely impact the amount of time it will take for an ulcer to heal.

It is thought that even decaffeinated coffee can increase stomach acid production. So it may be best to avoid even decaffeinated coffee.

Some research suggests that a formal stress reduction program with a class might be more effective for those with an ulcer than doing it at home alone.