Dyspepsia and H. pylori
Dyspepsia is a symptom label, not a diagnosis. Look for the alarm features, stop the culprit drugs, then either a month of PPI or H. pylori test-and-treat, and refer when age plus a specific finding says so.

Case: burning, after meals
Mr Rahman is 41. For three months he’s had burning upper abdominal pain after meals, with bloating and early fullness. He takes ibuprofen most days for back pain. He hasn’t lost weight, swallows normally, isn’t vomiting, and his stools aren’t black.
Does he need an endoscopy? PPI or H. pylori testing first? And how is H. pylori treated?

Anatomy: the stomach and the bug
The stomach runs from the fundus and body to the antrum and pylorus, then the duodenum. Parietal cells, mostly in the body, secrete acid; a layer of mucus and bicarbonate protects the lining.
Helicobacter pylori is a Gram-negative spiral bacterium. It swims into the mucus with its flagella and survives acid using urease, which turns urea into ammonia and neutralises the acid around it. Its toxins and the host’s inflammatory response cause chronic gastritis.
| Where the infection sits | What follows |
|---|---|
| Mainly the antrum | Less somatostatin → more gastrin → more acid → duodenal ulcer |
| Throughout the body | Atrophic gastritis, less acid, higher gastric cancer risk |

Pathophysiology: what causes dyspepsia
Most people have no structural cause: after investigation, that’s functional dyspepsia. Other causes are peptic ulcer, reflux disease, H. pylori gastritis, drugs and, rarely, cancer.
H. pylori diseases: chronic gastritis, duodenal and gastric ulcers, gastric adenocarcinoma and gastric MALT lymphoma. Some MALT lymphomas regress after eradication alone.
In short: dyspepsia describes symptoms; the job is to find the few people with a serious cause and treat the rest simply.
Signs: history, alarms and who to scope
Ask about the pain, medicines (especially over-the-counter NSAIDs), smoking, alcohol, coffee, fatty food and weight. Remember that ACS, gallstones and acute pancreatitis (severe epigastric pain through to the back, with vomiting) can all present as upper abdominal pain.
Alarm features: difficulty swallowing, weight loss, haematemesis or melaena, anaemia, persistent vomiting, an upper abdominal mass.
| How fast | Who |
|---|---|
| Same day | Dyspepsia with a significant acute GI bleed |
| Urgent suspected cancer pathway | Dysphagia; 55 or over with weight loss and upper abdominal pain, reflux or dyspepsia; consider for an upper abdominal mass |
| Consider non-urgent direct-access endoscopy | 55 or over with treatment-resistant dyspepsia, upper abdominal pain with low Hb, or raised platelets or nausea/vomiting with other upper GI symptoms |
| Primary care first | Everyone else |
Tests: H. pylori
- Carbon-13 urea breath test: the patient drinks labelled urea; bacterial urease splits it and labelled CO₂ appears in the breath.
- Stool antigen test.
- Laboratory serology only if locally validated; it can’t confirm eradication because antibodies persist. Don’t use office-based serology.
Washout: no PPI for 2 weeks and no antibiotics for 4 weeks before a breath or stool test, or the result may be falsely negative.
At endoscopy: rapid urease test (ammonia raises the pH and changes an indicator’s colour), histology, and culture with sensitivities after treatment failure.
Retesting: not routine after test-and-treat for uncomplicated dyspepsia. Retest people with a peptic ulcer and H. pylori 6–8 weeks after starting treatment. Use the urea breath test to retest.
Options: treatment
- Lifestyle: healthy eating, weight loss, stop smoking; avoid triggers; raise the head of the bed and eat the main meal well before bed. Stop NSAIDs if possible.
- Full-dose PPI for 4 weeks, or H. pylori test-and-treat. If symptoms persist, try the other.
- Then the lowest effective PPI dose, used as needed; an H2 receptor antagonist if the PPI response is inadequate; annual review for long-term use.
| Situation | Eradication (7 days) |
|---|---|
| First-line | PPI + amoxicillin + clarithromycin or metronidazole, twice daily |
| Penicillin allergy | PPI + clarithromycin + metronidazole, twice daily |
| Penicillin allergy + previous clarithromycin | PPI + bismuth + metronidazole + tetracycline |
| Second-line | PPI + amoxicillin + whichever of clarithromycin or metronidazole wasn’t used |
| Previous clarithromycin and metronidazole | PPI + amoxicillin + tetracycline (or levofloxacin) |
| Failed second-line | Gastroenterology advice |
For example: omeprazole 20 mg, amoxicillin 1 g and clarithromycin 500 mg, all twice daily for 7 days. Choose the cheapest suitable regimen, account for previous clarithromycin or metronidazole, and stress adherence.
Exam answer vs current guidance
In older notes 55 or over with new-onset dyspepsia: urgent endoscopy.
Current UK guidance Urgent pathway for dysphagia, or 55 or over with weight loss plus symptoms; non-urgent endoscopy for treatment-resistant dyspepsia at 55 or over.
Nasties: not getting better
Functional dyspepsia (normal endoscopy): eradicate H. pylori if present; otherwise a low-dose PPI or H2RA for 4 weeks, then the lowest effective dose. Psychological therapies may help. Avoid long-term continuous antacids.
Gastroparesis: early satiety, bloating, nausea and vomiting from slow gastric emptying (diabetic autonomic neuropathy, surgery, drugs such as opioids, or idiopathic).
- Exclude gastric outlet obstruction with endoscopy or imaging.
- Gastric-emptying scintigraphy with a radiolabelled solid meal.
- Diet first: small, frequent, low-fat, low-fibre, softer or liquid meals.
- Specialist prokinetics: metoclopramide, domperidone or erythromycin.
Watch glucose in people on mealtime insulin, and involve nutrition specialists if weight is falling.
Don’t miss: a significant bleed, alarm features of cancer, ACS presenting as indigestion, and pancreatitis (including drug-induced, for example mesalazine).
Exam traps: back to Mr Rahman
No alarm features and under 55, so he’s managed in primary care. He stops ibuprofen, has a urea breath test after 2 weeks off PPIs (positive), and takes PPI + amoxicillin + clarithromycin for 7 days. He improves, so no routine retest.
- Dyspepsia is a symptom label, not a diagnosis.
- Age alone doesn’t trigger endoscopy.
- PPI for 4 weeks or test-and-treat, then swap.
- PPI off 2 weeks, antibiotics off 4 weeks before testing.
- Don’t use serology to check eradication.
- First-line: PPI + amoxicillin + clarithromycin or metronidazole, 7 days.
- Penicillin allergy: PPI + clarithromycin + metronidazole.
- Epigastric pain: think heart and pancreas too.
So: look for the alarms, stop the culprits, then test, treat and refer when needed.
High-yield summary
- Dyspepsia = recurrent epigastric pain, heartburn or acid regurgitation, with or without bloating, nausea or vomiting.
- Review drugs: NSAIDs, calcium channel blockers, nitrates, theophyllines, bisphosphonates, steroids. Think cardiac, biliary and pancreatic causes too.
- Urgent cancer pathway: dysphagia, or 55 or over with weight loss plus upper abdominal pain, reflux or dyspepsia. Non-urgent endoscopy: 55 or over with treatment-resistant dyspepsia (and other listed combinations). Age alone isn't enough.
- First step: full-dose PPI for 4 weeks or H. pylori test-and-treat; if symptoms persist, try the other.
- Test with a carbon-13 urea breath test or stool antigen. Stop PPIs for 2 weeks and avoid antibiotics for 4 weeks beforehand. Serology can't confirm eradication.
- First-line eradication: PPI + amoxicillin + clarithromycin or metronidazole, twice daily for 7 days. Penicillin allergy: PPI + clarithromycin + metronidazole.
- No routine retest after test-and-treat for uncomplicated dyspepsia; retest with a breath test when needed (peptic ulcer: at 6–8 weeks).
- H. pylori causes gastritis, peptic ulcers, gastric cancer and MALT lymphoma, some of which regresses after eradication.
Try five of its cards
Press Space to see the answer, then Space again if you knew it, 2 if it was hard or 1 to see it again: the same keys as Anki. In the app, spaced repetition decides when each card comes back.
Sources this lesson was checked against
- NICE CG184 Gastro-oesophageal reflux disease and dyspepsia in adults (2014, updated 2019)
- NICE NG12 Suspected cancer: recognition and referral (2015, amended 2025), upper GI recommendations
- NICE CKS Dyspepsia – unidentified cause
Facts are checked against the primary source before anything is drawn. How we check facts.
Educational content for medical students preparing for exams. Not medical advice. Always follow current local and national guidance. The patients in this lesson are invented.
next lessonPeptic ulcer disease and its complicationsGI-2.3 · Read now