Omeprazole for stomach ulcers: doses, duration and follow-up
Summary
Omeprazole heals most stomach and duodenal ulcers within 4 to 8 weeks at 20-40 mg daily. If H. pylori is found, a 7-day course of omeprazole plus two antibiotics is essential to stop the ulcer returning. Complete the full course even when symptoms settle, and seek urgent help for black stools, vomiting blood or sudden severe pain.
How omeprazole heals stomach ulcers
A peptic ulcer is a break in the lining of the stomach (gastric ulcer) or the first part of the small intestine (duodenal ulcer).
Two causes account for the great majority of cases: infection with Helicobacter pylori, a bacterium that lives in the stomach lining, and regular use of NSAIDs such as ibuprofen, naproxen, diclofenac or aspirin.
Omeprazole is a proton pump inhibitor (PPI).
It blocks the enzyme system in the stomach's acid-producing cells - the proton pumps - and, taken once daily, reduces acid secretion by around 80%, keeping the stomach contents less acidic for most of the day.
Less acid means the ulcer crater is no longer being chemically irritated, which allows the mucosa to repair itself. Acid suppression does not kill H.
pylori or reverse NSAID damage on its own; it creates the conditions in which healing can take place.
- healing the ulcer with omeprazole for a defined period, and
- removing the cause - eradicating H. pylori with antibiotics, or stopping or reviewing NSAID use
Healing rates with omeprazole are high. In clinical studies, around 90% of duodenal ulcers heal within four weeks, and a similar proportion of gastric ulcers within eight weeks.
Symptoms often improve within days, but the ulcer itself takes weeks to close - which is why finishing the full course matters even when you feel better.
Doses and treatment duration
The dose and length of omeprazole treatment depend on where the ulcer is and what caused it. The regimens below follow the BNF; your own prescription may differ and always takes precedence.
Duodenal ulcer:
- 20 mg once daily for 4 weeks
- continued to 8 weeks if healing is incomplete
- 40 mg once daily can be used in refractory cases
Gastric (stomach) ulcer:
- 20 mg once daily for 8 weeks
- 40 mg once daily in refractory cases
NSAID-associated ulcer:
- 20 mg once daily for 4 to 8 weeks
- the NSAID should be stopped where possible; if it must continue, omeprazole is usually continued alongside it
How to take it: swallow the capsule whole with water, ideally 30 to 60 minutes before breakfast.
PPIs work best when taken before a meal, because they inactivate proton pumps that are actively secreting acid.
Do not crush or chew the capsules; dispersible formulations exist if swallowing is difficult.
A few practical points. Do not stop early because the pain has settled - symptom relief comes well before the ulcer has actually healed.
If you miss a dose, take the next one as scheduled rather than doubling up.
Higher doses and longer courses should only be used under medical supervision, since prolonged acid suppression carries its own considerations, covered in our article on long-term omeprazole use.
H. pylori: triple therapy explained
If testing shows H. pylori infection - usually by a stool antigen test or urea breath test - eradication therapy is essential.
Without it, ulcers recur in the majority of patients once the PPI is stopped; after successful eradication, recurrence falls to a few per cent.
Standard UK first-line treatment is triple therapy for 7 days:
- omeprazole 20-40 mg twice daily, plus
- amoxicillin 1 g twice daily, plus
- clarithromycin 500 mg twice daily or metronidazole 400 mg twice daily
For people allergic to penicillin, clarithromycin and metronidazole are combined instead of amoxicillin.
The choice between antibiotics also takes account of any courses you have had recently, because previous exposure increases the chance of bacterial resistance.
Tips for getting through the week:
- take both daily doses roughly 12 hours apart - missed doses are the main reason eradication fails
- avoid alcohol completely if the course includes metronidazole; the combination causes flushing, headache and vomiting
- mild nausea, a metallic taste and looser stools are common and settle when the course ends
After eradication therapy, omeprazole alone is usually continued to complete ulcer healing - typically to a total of 4 weeks for duodenal ulcers or 8 weeks for gastric ulcers.
In ulcer patients, re-testing is then recommended to confirm the infection has cleared: no sooner than 4 weeks after the antibiotics finish, and ideally 2 weeks after stopping the PPI, to avoid a falsely negative result.
Preventing ulcers when you need NSAIDs
NSAIDs - ibuprofen, naproxen, diclofenac and aspirin among them - damage the stomach lining in two ways: directly, and by blocking the prostaglandins that maintain the mucosa's protective barrier.
The risk of an NSAID ulcer rises with age, dose and duration of use.
Gastroprotection with omeprazole 20 mg once daily is recommended for people who need ongoing NSAID treatment and are at higher risk, including those who:
- are aged 65 or over
- have a history of peptic ulcer or gastrointestinal bleeding
- take other medicines that increase bleeding risk - anticoagulants such as warfarin or apixaban, antiplatelets such as clopidogrel or low-dose aspirin, corticosteroids, or SSRIs
- have a serious medical condition such as heart failure or diabetes
- need high-dose or long-term NSAID treatment
In practice this means taking omeprazole every day for as long as you take the NSAID - not just when your stomach feels unsettled. The protection stops when the PPI stops.
It is also worth asking whether the NSAID itself is still needed. Paracetamol or topical NSAID gels are reasonable alternatives for many musculoskeletal problems and avoid the issue entirely.
One caution: PPIs protect the stomach and duodenum, but they do not prevent NSAID damage further along the small bowel. The safest NSAID dose is the lowest one for the shortest time.
If you develop new indigestion, black stools or unexplained tiredness while on an NSAID, stop it and contact your GP promptly.
Follow-up: checking the ulcer has healed
Follow-up differs between gastric and duodenal ulcers, and it is worth understanding why.
Gastric ulcers: repeat endoscopy is standard. A small proportion of stomach ulcers are not benign - an ulcerated gastric cancer can look identical to a simple ulcer at the first examination.
For this reason, UK practice is to repeat the gastroscopy 6 to 8 weeks after starting treatment, to confirm the ulcer has fully healed and to take biopsies if it has not.
Do not skip this appointment, even if you feel completely well.
Duodenal ulcers: no routine re-scope. Cancer in the duodenum is rare, so a duodenal ulcer that responds to treatment does not normally need endoscopic follow-up.
Persistent or recurrent symptoms are investigated instead.
Confirming H. pylori eradication. If you had triple therapy for an ulcer, re-testing with a urea breath test or stool antigen test is recommended.
Timing matters: at least 4 weeks after finishing antibiotics and ideally 2 weeks off the PPI, otherwise the result can be falsely reassuring.
Blood tests. If the ulcer bled or you were anaemic at diagnosis, your GP will usually re-check a full blood count and iron levels once treatment is complete.
What if the ulcer has not healed? Options include extending omeprazole at a higher dose, re-checking for H.
pylori, reviewing hidden NSAID or aspirin use, and biopsy review. Smoking notably slows ulcer healing - stopping is one of the most effective things you can do for yourself.
Alarm symptoms you should never ignore
Ulcers can bleed, perforate or cause obstruction, and these complications can develop even while you are on treatment. Knowing the warning signs matters.
Call 999 or go to A&E immediately if you have:
- vomiting blood - either fresh red blood or material resembling coffee grounds
- black, tarry, foul-smelling stools (melaena), which indicate digested blood
- sudden, severe abdominal pain with a rigid, board-like abdomen - possible perforation
- collapse, cold clammy skin or a racing heart alongside abdominal symptoms
Contact your GP urgently if you notice:
- increasing tiredness, breathlessness on exertion or pale skin - possible anaemia from slow, hidden blood loss
- repeated vomiting, or vomiting food eaten many hours earlier - possible obstruction
- difficulty swallowing, or food sticking on the way down
- unintentional weight loss
- pain that wakes you at night despite taking omeprazole correctly
Iron deficiency anaemia in particular can be the only sign of a slowly bleeding ulcer - there may be no black stools and little pain.
It typically shows up on a blood test as low haemoglobin and low ferritin.
A practical note: if you take aspirin, clopidogrel or an anticoagulant and develop any sign of bleeding, say so immediately when seeking help - it changes both the urgency and the treatment.
Never stop heart medication on your own initiative; that decision belongs with the treating doctor, made quickly but deliberately.
FAQ
How long does omeprazole take to heal a stomach ulcer?
Symptoms often ease within a few days, but the ulcer itself needs longer: around 90% of duodenal ulcers heal within 4 weeks and most gastric ulcers within 8 weeks of daily treatment.
Complete the full prescribed course even if you feel well, and attend any follow-up endoscopy for a gastric ulcer.
What dose of omeprazole is used for ulcers?
Typically 20 mg once daily - for 4 weeks in duodenal ulcers and 8 weeks in gastric ulcers, following BNF guidance. The dose can be increased to 40 mg for ulcers that are slow to heal. For H.
pylori eradication, omeprazole is taken twice daily for 7 days alongside two antibiotics.
Do I need antibiotics as well as omeprazole?
Only if you test positive for H. pylori, which causes most ulcers not related to NSAIDs.
Eradicating the infection with a 7-day course of two antibiotics plus omeprazole greatly reduces the chance of the ulcer returning.
NSAID-related ulcers without infection are treated with omeprazole alone.
Can I take omeprazole with ibuprofen to protect my stomach?
If you genuinely need an ongoing NSAID and have risk factors - age over 65, a previous ulcer, or blood-thinning medicines - omeprazole 20 mg daily is recommended alongside it.
Take it every day the NSAID continues. Ask your GP or pharmacist whether the NSAID is still necessary at all.
Is a stomach ulcer ever a sign of cancer?
Rarely, a gastric ulcer can be malignant, which is why stomach ulcers are usually re-examined by endoscopy 6 to 8 weeks after treatment starts - to confirm healing and take biopsies if needed.
Duodenal ulcers carry virtually no cancer risk and do not need routine re-examination.
Sources
Related articles
Omeprazole dosage: the right dose for your condition
For most uses, the standard adult dose of omeprazole is 20 mg once a day. A higher dose of 40 mg is used for Zollinger-Ellison syndrome, severe oesophagitis and eradication therapy. Treatment lasts from 2 to 8 weeks, depending on the condition. Always take omeprazole 30 minutes before a meal.
OverviewOmeprazole and gallstones: what it can and cannot do
Omeprazole lowers stomach acid but has no effect on gallstones, which form in the gallbladder from cholesterol or bile pigments. Because indigestion and biliary colic feel similar, gallstones are sometimes missed in people taking a PPI. If severe upper abdominal pain keeps returning despite omeprazole, ask your GP about an ultrasound scan.
long-termLong-term omeprazole use: risks, monitoring and safe withdrawal
Long-term omeprazole use (beyond 8 weeks) is associated with small but clinically meaningful risks including bone fractures, hypomagnesaemia, vitamin B12 deficiency and Clostridioides difficile infection. NICE recommends regular review and stepping down to the lowest effective dose. For many patients, gradual withdrawal is both possible and advisable.
side-effectsOmeprazole side effects: what every patient should know
Omeprazole is generally well tolerated, but common side effects include headache, nausea, diarrhoea and abdominal pain. Long-term use carries a small increased risk of bone fractures, hypomagnesaemia and Clostridioides difficile infection. Most short-term side effects resolve within the first week of treatment.
pregnancyOmeprazole in pregnancy: what the evidence says
Omeprazole is not known to be harmful in pregnancy, and the BNF states it can be used if clinically indicated. Large observational studies have not shown an increased risk of major birth defects. However, non-pharmacological measures and antacids should be tried first. If a PPI is needed, omeprazole has the most safety data in pregnancy.
nhs-infoOmeprazole: NHS prescribing information and patient guidance
Omeprazole is available on NHS prescription and over the counter at a lower dose (10 mg). It is one of the most commonly prescribed medicines in the UK, with over 30 million prescriptions annually. NICE recommends it as first-line PPI therapy for GORD, peptic ulcers and H. pylori eradication.
OverviewStopping omeprazole: how to come off it without rebound heartburn
Stopping omeprazole abruptly often causes rebound acid hypersecretion: heartburn that temporarily returns worse than before, usually for one to two weeks. Tapering gradually - halving the dose, moving to alternate days, then stepping down to antacids or alginates - makes stopping easier. People with Barrett's oesophagus or severe oesophagitis should not stop without medical advice.
OverviewOmeprazole over the counter: what you can buy in the UK and when you need a prescription
In the UK, omeprazole 20mg is available from pharmacies without a prescription as a pharmacy (P) medicine, licensed for short-term relief of heartburn and acid reflux in adults. It is intended for courses of up to 14 days at a time, with a maximum of about four weeks before seeking medical advice. Higher doses, long-term treatment and use in children remain prescription only.
OverviewOmeprazole and blood pressure: what the evidence actually shows
Omeprazole does not raise blood pressure directly, and hypertension is not a recognised side effect. Two indirect issues matter for heart patients: prolonged use can lower magnesium, especially alongside diuretics, and omeprazole weakens the antiplatelet drug clopidogrel. Review long-term use with your GP rather than stopping on your own.
Dr. Ross Elledge
Consultant Surgeon · Oral & Maxillofacial Surgery
Verified Healthcare Professional
