If you have a stomach ulcer, your treatment will depend on what caused it. With treatment, most ulcers heal in a month or two.
If your stomach ulcer is caused by an Helicobacter pylori (H. pylori) bacterial infection, a course of antibiotics and a medication called a proton pump inhibitor (PPI) is recommended.
This is also recommended if it's thought your stomach ulcer is caused by a combination of an H. pylori infection and non-steroidal anti-inflammatory drugs (NSAIDs).
If your stomach ulcer is just caused by taking NSAIDs, a course of PPI medication is recommended. Your use of NSAIDs will also be reviewed, and taking an alternative painkiller may be advised.
An alternative type of medication, known as H2-receptor antagonists, is occasionally used instead of PPIs, and sometimes you may be given additional medication called antacids to relieve your symptoms in the short term.
You may have a repeat gastroscopy after four to six weeks to check that the ulcer has healed.
There aren't any special lifestyle measures you need to take during treatment, but avoiding stress, alcohol, spicy foods and smoking may reduce your symptoms while your ulcer heals.