Stomach Ulcers and H. pylori: How PPI Treatment Works
Stomach ulcers, H. pylori and NSAID damage explained — the symptoms, how they’re tested and treated, and where the PPI fits in.
Part of the Complete Acid Reflux Guide.
Key fact: Most stomach ulcers are caused by H. pylori infection or anti-inflammatory painkillers — not stress or spicy food. Treating the cause, with a PPI to reduce acid and let the ulcer heal, cures the great majority.
Get Indigestion & Reflux Treatment Online
Our GPhC-registered pharmacist independent prescribers can assess your symptoms in a short online consultation and recommend the right next step, including when you need to see your GP. If your consultation isn’t approved, you’ll get a full refund.
Start Your Consultation →Stomach ulcer symptoms
A peptic ulcer — an open sore in the stomach (gastric) or upper small intestine (duodenal) — most often announces itself as a burning or gnawing pain in the upper abdomen. The pattern is a clue: duodenal ulcer pain often comes between meals or at night and eases with food, while gastric ulcer pain can be brought on by eating. Around it you may notice:
- Bloating, wind or a feeling of fullness after modest meals
- Nausea, and sometimes heartburn or an acidic taste
- Loss of appetite or slight weight loss
- Pain that wakes you in the early hours
Seek emergency help (999 or A&E) for signs of a bleeding or perforated ulcer: vomiting blood or material like coffee grounds, black tarry stools, sudden severe or spreading abdominal pain, faintness, or a rapid heartbeat. These are surgical emergencies.
Peptic ulcer disease and how it’s treated
The old belief that ulcers come from stress and spicy food is largely a myth — the two dominant causes are H. pylori infection and long-term use of NSAIDs (ibuprofen, naproxen, aspirin, diclofenac). Treatment therefore has two parts: remove the cause, and reduce acid with a PPI so the ulcer can heal. NICE sets clear course lengths:
| Situation | Typical PPI course |
|---|---|
| Duodenal ulcer (no H. pylori, no NSAID) | 4 weeks full-dose PPI |
| Gastric ulcer (no H. pylori, no NSAID) | 8 weeks full-dose PPI |
| NSAID-associated ulcer | 8 weeks PPI — and stop/switch the NSAID if possible |
| H. pylori-positive ulcer | 7-day triple therapy, then further PPI where appropriate |
NSAID-induced ulcers
Anti-inflammatory painkillers cause ulcers by stripping away the prostaglandins that maintain the stomach’s protective mucus — ulcers are found in up to 1 in 4 long-term NSAID users who have an endoscopy, with older adults most at risk. If an NSAID ulcer is found, the NSAID should ideally be stopped or switched, and a full-dose PPI given for 8 weeks. Where NSAIDs must continue, a PPI is co-prescribed for protection. NICE advises considering this protection for anyone taking regular NSAIDs who is 65 or over, has a previous ulcer, or also takes anticoagulants, antiplatelets, steroids or SSRIs.
H. pylori: testing and triple therapy
Helicobacter pylori is a bacterium that colonises the stomach lining and drives most peptic ulcers worldwide. Clearing it heals ulcers, stops them recurring, and reduces long-term stomach cancer risk.
Getting tested in the UK
- Urea breath test — drink a solution, breathe into a bag; accurate and widely used
- Stool antigen test — equally reliable, done on a sample at home
- Where — via your GP, and through some pharmacies
- Prepare correctly — stop PPIs for 2 weeks and antibiotics for 4 weeks beforehand, or you may get a false negative
Triple therapy (first-line eradication)
| Regimen | Components (all twice daily) | Duration |
|---|---|---|
| Standard | PPI + amoxicillin 1g + clarithromycin 500mg | 7 days |
| Penicillin-allergic | PPI + metronidazole 400mg + clarithromycin 500mg | 7 days |
| Second-line | Depends on the first course; may include bismuth-based quadruple therapy | 7–14 days |
Eradication is confirmed with a breath or stool test at least 4 weeks after finishing — a blood antibody test cannot confirm cure, as antibodies stay raised for months.
What triple therapy is actually like to take
Knowing what to expect helps people finish the course — which is what makes it work. It is seven days of three medicines twice a day: swallow a lot of tablets, morning and evening. Side effects are common but usually tolerable: a metallic or bitter taste, nausea, loose stools, and tiredness. Two practical points matter most:
If your regimen contains metronidazole, avoid all alcohol during the course and for 48 hours after the last dose — the combination causes severe flushing, nausea and vomiting. And finish the full seven days even if you feel better: stopping early lets surviving bacteria develop resistance, making the next attempt harder.
PPIs for reflux, choosing a PPI and long-term use
The same PPIs are used for reflux and GORD, where treatment steps down to the lowest dose that works; that is covered in our acid reflux and GORD guide, and stopping safely in our stopping PPIs guide. NICE treats the PPIs as equivalent at equivalent doses, so the choice usually comes down to interactions and formulation; see omeprazole vs lansoprazole vs esomeprazole. Long-term use should be reviewed at least once a year; side effects and switching are in our PPI side effects and switching guide.
Treat Ulcers and Reflux Properly
Complete a short online consultation and our pharmacist independent prescribers will assess your symptoms and recommend the right treatment. Approved before 3pm, Mon–Fri? Dispatched same day. Choose Tracked 48, Tracked 24 or Special Delivery guaranteed by 1pm next working day.
Start Your Consultation →Frequently Asked Questions
What are the warning signs of a stomach ulcer?
The classic sign is a burning or gnawing pain in the upper abdomen, often between meals or at night, sometimes eased or worsened by eating. Others include bloating, feeling full quickly, nausea and heartburn. The signs that need urgent attention are vomiting blood or material like coffee grounds, black tarry stools, sudden severe pain, or unexplained weight loss — these can mean a bleeding or perforated ulcer and are a 999 or A&E situation.
How do I get tested for H. pylori in the UK?
Two accurate tests are used: a urea breath test (you drink a solution and breathe into a bag) and a stool antigen test. Both are available through your GP, and testing kits are also offered by some pharmacies. You need to be off PPIs for two weeks and antibiotics for four weeks before testing, or the result can be falsely negative. A blood antibody test is not used to confirm eradication, as antibodies stay raised for months.
What is H. pylori triple therapy actually like to take?
It is a 7-day course of a PPI plus two antibiotics, all twice daily. Most people manage it, but side effects are common: a metallic taste, nausea, loose stools and tiredness. If your regimen contains metronidazole, you must avoid all alcohol during the course and for 48 hours after, as the combination causes severe flushing and vomiting. Finishing the full week matters — stopping early risks the infection surviving and becoming resistant.
Can you treat H. pylori without antibiotics?
No — H. pylori is a bacterial infection, and clearing it reliably requires antibiotics, always combined with a PPI. Diet, probiotics and remedies like manuka honey may ease symptoms or support the gut, but they do not eradicate the bacterium, and leaving it untreated risks ongoing ulcers and, over many years, a raised stomach cancer risk. Proper eradication is the only dependable cure.
How do I know if my ulcer is healing?
The main sign is that the pain settles — usually within a week or two of starting a PPI, with full healing over 4 to 8 weeks. For gastric ulcers, and where H. pylori was involved, a follow-up test (and sometimes a repeat endoscopy) confirms healing and eradication. Do not assume healing from symptom relief alone if your clinician has arranged follow-up; ulcers can improve symptomatically while still needing the full course.
Treatment from Access Doctor
Access Doctor’s pharmacist independent prescribers can assess your symptoms and prescribe PPI treatment for reflux and ulcer-related conditions following a short online consultation, with discreet UK delivery.
Acid Reflux · Rx
Omeprazole
The UK’s most prescribed PPI — first-line for ulcers and GORD.
View product →Acid Reflux · Rx
Lansoprazole
A comparable PPI, including an orodispersible option.
View product →Acid Reflux · Rx
Esomeprazole
A refined form of omeprazole; 40mg is used to heal an inflamed oesophagus.
View product →Consultation
Acid Reflux Treatment
Not sure which is right? Start a consultation and we’ll advise.
Start consultation →References
- National Institute for Health and Care Excellence. Gastro-oesophageal reflux disease and dyspepsia in adults (CG184). Updated 2023. nice.org.uk
- National Institute for Health and Care Excellence. Helicobacter pylori: eradication in adults with a confirmed peptic ulcer. NICE CKS. 2023. cks.nice.org.uk
- NHS. Stomach ulcer. 2022. nhs.uk
- Scally B, Emberson JR, Spata E et al. Effects of gastroprotective co-prescription with NSAIDs on the risk of adverse gastrointestinal outcomes. Lancet. 2018. pubmed.ncbi.nlm.nih.gov
- Freedberg DE, Kim LS, Yang YX. The risks and benefits of long-term use of proton pump inhibitors: expert review. Annals of Internal Medicine. 2017. pubmed.ncbi.nlm.nih.gov
Medical disclaimer: This article is for informational purposes only and does not constitute medical advice. Always consult a qualified healthcare professional for diagnosis and treatment. In a medical emergency, call 999.


