VitMode

Stomach and Duodenal Ulcer: Symptoms, Causes, Diagnosis and Treatment

A stomach or duodenal ulcer is a defect in the lining caused most often by Helicobacter pylori infection or by non-steroidal anti-inflammatory drugs, including aspirin. It presents as pain or burning in the upper abdomen, but may also be silent until complications: bleeding or perforation. We explain how diagnosis works (gastroscopy, H. pylori testing), what eradication and proton pump inhibitors achieve according to Cochrane reviews and meta-analyses, and which symptoms mean urgent help.

Redakcja VitMode — Żywienie, suplementy i treningthe VitMode editorial team, no individual bylinesPublished13 min read
How this article was made
Author
Redakcja VitMode — Żywienie, suplementy i trening — the VitMode editorial team, no individual bylines
Method
Prepared from primary sources: clinical trials, meta-analyses and guidelines. We describe study findings separately from our interpretation.
Source verification
Cited PubMed papers are automatically checked for a matching identifier, title and publication year.
Medical review
none — this article has not been reviewed by a physician
Last updated

The content is educational and does not replace medical advice. Read the full editorial process

Table of contents

What is a stomach or duodenal ulcer and where does it come from?

A peptic ulcer develops when the balance between factors damaging the lining (hydrochloric acid, pepsin, bacteria, drugs) and protective mechanisms (mucus, bicarbonate, blood supply, cell renewal) is upset. A review published in The Lancet noted that the disease has become considerably less common than twenty years ago — thanks to the falling prevalence of H. pylori infection and widespread use of potent acid-suppressing drugs — but that its management has become harder because of growing antibiotic resistance of the bacteria and the widespread use of antithrombotic therapy in an ageing population.

A Cochrane review reminds us that peptic ulcer disease is the cause of dyspepsia in about 10% of people, and that H. pylori accompanies 95% of duodenal ulcers and 70% of gastric ulcers. On the other hand, a proportion of ulcers is associated with neither H. pylori nor NSAIDs and poses a separate diagnostic challenge. In this article we discuss symptoms, diagnosis and treatment, with particular attention to people taking aspirin and painkillers. We write about the infection itself in a separate article on Helicobacter pylori symptoms and treatment.

What are the symptoms of a stomach and duodenal ulcer?

The commonest symptom is pain or burning in the epigastrium, the upper abdomen below the breastbone. Classically, the pain of a duodenal ulcer appears when fasting or at night and eases after eating, whereas the pain of a gastric ulcer more often worsens after a meal. These patterns are only a guide, however: in many people the symptoms cannot be told apart from functional dyspepsia (which we cover in a separate article), and some ulcers, especially in older people taking NSAIDs, cause no pain at all.

Other symptoms are fullness and early satiety, nausea, bloating, belching and heartburn. Note that the symptoms typical of an ulcer are not specific: they do not allow a certain diagnosis without endoscopy, which is one reason why gastroscopy is recommended for people with alarm features or of older age. Sometimes the first sign is only a complication — gastrointestinal bleeding.

SituationTypical symptomsWhat to do
Uncomplicated ulcerPain or burning in the upper abdomen, fullness, nausea; duodenal pain more often fasting or at nightMedical consultation, H. pylori test, possibly gastroscopy
BleedingBlack, tarry stools (melaena), vomiting blood or ‘coffee grounds’, weakness, dizziness, pallorUrgent medical help, often hospital
PerforationSudden, very severe abdominal pain, rigid abdomen, need to keep still, sweatingCall an ambulance immediately
Gastric outlet obstructionRepeated vomiting of undigested food, fullness, weight lossUrgent medical consultation
‘Silent’ ulcerNo pain; iron-deficiency anaemia, weaknessThe result may prompt gastroscopy
Symptoms of an ulcer and its complications

What causes an ulcer: H. pylori, NSAIDs and other causes

The first cause is infection with Helicobacter pylori. The bacterium colonises the gastric lining, causes chronic inflammation and disturbs defence mechanisms, which favours the formation of an ulcer, especially in the duodenum. The infection is now formally recognised as an infectious disease, and the Maastricht VI/Florence consensus (2022) recommends in principle treating all infected people, stressing the problem of rising antibiotic resistance and the need to choose effective regimens.

The second cause is non-steroidal anti-inflammatory drugs such as ibuprofen, diclofenac, naproxen or ketoprofen, and aspirin, including the low doses used in cardiology. They inhibit the synthesis of prostaglandins that protect the lining. The risk is especially significant in older people, those with a history of ulcer and those taking anticoagulant or antiplatelet drugs at the same time. Importantly, the two main causes act together: H. pylori in people taking low-dose aspirin increases the risk of upper gastrointestinal bleeding.

Other causes are rarer: tobacco smoking (promotes ulcers and delays healing), severe general illness, certain infections, conditions with excessive acid secretion (for example Zollinger-Ellison syndrome) and Crohn’s disease. The Lancet review notes that ulcers unrelated to H. pylori or NSAIDs need special diagnostic attention. Neither coffee, nor spicy food, nor stress on its own is considered a main cause of ulcers, although they may worsen the symptoms felt; we write about coffee on an empty stomach separately.

How is an ulcer diagnosed? Gastroscopy and the H. pylori test

Diagnosis of an ulcer rests on endoscopic examination of the upper gastrointestinal tract (gastroscopy), during which the doctor assesses the lining and can take biopsies. In a gastric ulcer, biopsies are especially important because they make it possible to exclude a malignant lesion that looks like an ulcer. After treatment of a gastric ulcer, doctors often order a follow-up examination to confirm healing — the decision is individual. We describe the procedure, its preparation and risks in the knowledge base entry on gastroscopy.

Independently of gastroscopy, a test for H. pylori is done: a urea breath test, a stool antigen test or examination of a biopsy. In practice it is stressed that certain drugs can falsify results — this applies especially to proton pump inhibitors and to antibiotics taken shortly before the test, so whether they should be stopped beforehand is for the doctor, not the patient, to decide. A positive result is an indication for eradication therapy, and its success is usually confirmed with another test after the course ends.

When is gastroscopy necessary? It depends on age and symptoms. Dyspepsia guidelines propose gastroscopy for people from age 60 with new symptoms, and in younger people an H. pylori test as the first step. Regardless of age, the examination is indicated with bleeding, anaemia, weight loss, difficulty swallowing and persistent vomiting. If trouble swallowing is the main problem, we recommend our article on dysphagia.

How is an ulcer treated? H. pylori eradication and proton pump inhibitors

Treatment rests on three pillars: removing the cause, suppressing acid secretion and avoiding harmful factors. The cause is most often H. pylori — in which case an eradication regimen of several drugs is used (a and antibiotics, usually for 10–14 days, chosen according to local resistance), and with NSAIDs, stopping or changing the painkiller if possible. The best-documented effect of eradication is reduced ulcer relapse.

Proton pump inhibitors (PPIs) speed ulcer healing. In a large meta-analysis of randomised trials (849 trials, more than 142,000 participants), gastroprotectant drugs increased healing of endoscopic ulcers (odds ratio 3.49), with PPIs more effective (5.22) than prostaglandin analogues and H2 blockers. In prevention, these drugs reduced the development of endoscopic ulcers (OR 0.27) and upper gastrointestinal bleeding (OR 0.40), with the largest reduction in bleeding given by PPIs (OR 0.21). The authors caution that the results may have overestimated the benefit because of small-study bias.

How long should a PPI be taken? The duration depends on the ulcer’s location, cause and complications; in practice it is usually weeks (often 4–8), and the decision on length of therapy and dose rests with the doctor. After treatment ends there is usually no need to take a PPI indefinitely, provided the cause has been removed and the patient is not taking drugs risky for the stomach. Long-term PPI use without a clear indication carries possible adverse effects — we write about lowered magnesium and vitamin B12 in a separate article and in the knowledge base entry on PPIs.

Check your profile

Not sure which supplements actually make sense for you?

Answer a few short questions about your lifestyle, diet, sleep, and goals. VitMode will build your profile and show supplements worth considering — with reasoning and evidence strength.

Takes about 2 minutesBased on scientific evidence

Recommendations take your answers and the strength of the scientific evidence into account. A supplement's popularity has no bearing on whether it gets recommended.

Aspirin and NSAIDs: how to protect the stomach when the drug cannot be stopped?

Many patients take NSAIDs or aspirin out of necessity — for rheumatic disease, chronic pain, after a heart attack or stroke. Stopping aspirin yourself after a heart attack or stroke can be dangerous, so the decision to change treatment belongs to the doctor. In such situations the protective strategy is to add a proton pump inhibitor and, in infected people, to treat H. pylori.

A bleeding ulcer: how to recognise it and how is it treated?

Bleeding is the commonest dangerous complication of an ulcer. It shows as black, tarry stools, vomiting blood or matter resembling coffee grounds, weakness, pallor, palpitations and dizziness. This is a life-threatening condition needing immediate medical help, not home treatment.

The 2021 American College of Gastroenterology (ACG) guideline suggests endoscopy within 24 hours of presentation and endoscopic therapy for ulcers with active bleeding or a non-bleeding visible vessel. After successful haemostasis it recommends high-dose PPI therapy — continuously or intermittently — for three days, followed by an oral PPI twice daily for the first two weeks after endoscopy. It also suggests a red-cell transfusion threshold of 7 g/dL haemoglobin in hospitalised patients and the possibility of outpatient care for very-low-risk people (Glasgow-Blatchford score 0–1). These are recommendations for doctors and hospitals, not a self-treatment manual.

In the gastroprotectant , among patients with acute upper gastrointestinal bleeding these drugs reduced the risk of further bleeding ( 0.68), blood transfusion (0.75) and surgery (0.72), without significantly reducing mortality. This shows that drug therapy helps limit complications but does not replace prompt medical help.

Myth: “An ulcer comes from stress, spicy food and coffee”

Myth

A stomach ulcer is the result of stress, spicy seasonings and drinking coffee, and the treatment is a bland diet and protective drugs.

Fact

The main causes of ulcer are H. pylori infection and non-steroidal anti-inflammatory drugs, including aspirin. Eradicating H. pylori reduces duodenal ulcer relapse from about 64% to about 13% compared with no treatment (Cochrane data), which shows that removing the cause is what is key, not merely avoiding certain foods. Food and stress may worsen the symptoms felt, but they do not replace causal treatment.

A second common myth is the belief that once the pain goes away with a protective drug, the ulcer is cured. Pain relief does not mean healing or removal of the cause, and relapse is highly likely if the bacterium is not eliminated. That is why, after eradication therapy, its success is usually confirmed with a follow-up test.

When to see a doctor urgently? Red flags and the limits of this article

Summary and our editorial recommendation

IssueWhat was shownStrength of evidence
Eradication of H. pylori and duodenal ulcer relapse12.9% versus 64.4% without treatment (RR 0.20), Cochrane 2016Very low quality, large effect
Eradication and duodenal ulcer healing12.4% versus 18.7% not healed versus ulcer-healing drug alone (RR 0.66)Low quality
Eradication and gastric ulcer healingDifferences imprecise (RR 1.23)Very low quality
PPIs in chronic NSAID usersRR 0.29 for new ulcers, Cochrane 2025Moderate quality
H. pylori in low-dose aspirin usersBleeding OR 2.32 with infection (Ng 2018)Moderate — case-control studies
PPIs after bleeding is controlledHigh dose for 3 days, then twice daily for 2 weeks (ACG 2021)GRADE guideline
Stomach and duodenal ulcer — what the evidence says

A stomach or duodenal ulcer is a disease in which establishing the cause matters as much as healing the defect. An H. pylori test and a review of painkillers and anticoagulants are the two most worthwhile steps. Eradication therapy and proton pump inhibitors are well documented, and the key to avoiding complications is a quick response to signs of bleeding.

An ulcer heals faster when what caused it is removed; a protective drug alone, without knowing the cause, postpones the problem rather than solving it.
VitMode editorial team

Frequently asked questions

Most often it is pain or burning in the upper abdomen, a feeling of fullness, nausea, early satiety and heartburn. The pain of a duodenal ulcer more often occurs when fasting or at night and eases after eating, whereas gastric ulcer pain worsens after a meal. The symptoms are not specific, though, and some ulcers cause no symptoms until a complication.

A gastric ulcer can be confused with a malignant lesion, which is why biopsies are taken during gastroscopy and a follow-up examination is often ordered after treatment. Chronic H. pylori infection is a risk factor for gastric cancer, hence the recommendation to treat the infection. Healing of an ulcer alone does not remove the need for medical assessment.

Treatment with proton pump inhibitors usually lasts weeks, often four to eight, and an H. pylori eradication regimen about 10–14 days. The exact time depends on the ulcer’s location, cause and complications, so the doctor decides. Healing of a gastric ulcer is sometimes confirmed with a follow-up examination.

Aspirin taken for cardiovascular reasons should not be stopped or changed on your own, because that can be dangerous. A doctor may advise adding a proton pump inhibitor, treating H. pylori or changing the antiplatelet strategy. With an active ulcer or bleeding the decision always rests with the treating doctor.

There is no evidence that a restrictive diet cures an ulcer; the basis of treatment is removing the cause (H. pylori, NSAIDs) and suppressing acid secretion. It is worth avoiding foods that worsen your own symptoms, as well as alcohol and tobacco, but diet does not replace treatment. We write about diet in reflux in a separate article.

The most characteristic signs are black, tarry stools and vomiting of blood or matter like coffee grounds, often with weakness, pallor, palpitations and dizziness. This is a life-threatening condition needing immediate medical help. Slower bleeding may show as iron-deficiency anaemia.

Yes, especially when the cause has not been removed: in H. pylori-infected people without eradication, duodenal ulcer relapse was very common in the Cochrane review (about 64% without treatment versus about 13% after eradication). Relapse is also possible with continued NSAID use without protection or with smoking. After eradication therapy it is worth confirming success with a follow-up test.

Sources (7)

Sources are numbered. PubMed items are automatically verified (identifier, title, year).

  1. 1Lanas and Chan 2017 — Peptic ulcer disease, LancetPubMed
  2. 2Ford et al. 2016 — Eradication therapy for peptic ulcer disease in H. pylori-positive people, CochranePubMed
  3. 3Ng and Yeomans 2018 — H. pylori infection and upper GI bleeding in low dose aspirin users, Med J AustPubMed
  4. 4Garegnani et al. 2025 — Proton pump inhibitors for the prevention of NSAID-induced ulcers and dyspepsia, CochranePubMed
  5. 5Scally et al. 2018 — Effects of gastroprotectant drugs for peptic ulcer disease: a meta-analysis, Lancet Gastroenterol HepatolPubMed
  6. 6Laine et al. 2021 — ACG Clinical Guideline: Upper Gastrointestinal and Ulcer Bleeding, Am J GastroenterolPubMed
  7. 7Malfertheiner et al. 2022 — Management of Helicobacter pylori infection: Maastricht VI/Florence consensus report, GutPubMed
VM

Redakcja VitMode — Żywienie, suplementy i trening

VitMode editorial team — no individual bylines; content based on primary sources

VitMode Editorial — Nutrition, Supplements and Training is the VitMode editorial team responsible for: nutrition, supplements, interactions and training. The team has no individual bylines — texts are prepared by VitMode editors from primary sources (clinical trials, meta-analyses, guidelines). Every cited PubMed paper is automatically checked for a matching identifier, title and publication year. The content is educational and does not replace medical advice. Factual errors can be reported in a comment under the post or through the contact form; corrections are made by the editorial team.

Explore the topic further

Related topics from the VitMode knowledge base — pick the area you care about.

This article

Stomach and Duodenal Ulcer: Symptoms, Causes, Diagnosis and Treatment

Diagnosis 4
Treatment 4
Nutrition and lifestyle 2
Related conditions 2
Research 4
Related topics 4

Your learning path

Path: Stomach and Duodenal Ulcer

0 of 5 read0%
  1. Learn the basics

  2. Understand possible causes

Progress is saved in this browser only.

Start the path
Tools for this topic

Your entries stay in your browser and are never sent anywhere. This is a notebook, not a diagnostic tool — it does not diagnose or recommend treatment. Discuss results with your doctor.

Questions readers often ask

Short answers from related articles — click to read more.

How does functional dyspepsia differ from ordinary stomach ache?

Functional dyspepsia is a chronic, recurrent syndrome of upper abdominal symptoms (pain, burning, fullness after meals, early satiety) lasting at least three months, with no organic cause after routine testing. Occasional stomach…

From the article: Functional Dyspepsia: Upper Abdominal Pain and Fullness Without an Ulcer — Symptoms, Rome IV Criteria and Treatment
What are the first symptoms of dysphagia?

Most often it is a feeling of food holding up behind the breastbone or in the throat, the need to wash down bites, coughing or choking while eating, and sometimes regurgitation. In oropharyngeal dysphagia there is also difficulty…

From the article: Difficulty Swallowing (Dysphagia): Causes, Tests and When to See a Doctor Urgently
Is frequent belching dangerous?

Belching itself is not associated with increased mortality, but it can significantly impair quality of life. It can become a concern when alarm features accompany it: weight loss, difficulty swallowing, vomiting, gastrointestinal…

From the article: Frequent Belching: Causes, When It Is a Belching Disorder and How It Is Treated
What are the commonest causes of chronic nausea?

The ones most often named are medicines and supplements (including metformin, iron, GLP-1 analogues), diseases of the stomach and upper gastrointestinal tract (gastroparesis, ulcer, reflux), hormonal and metabolic disorders (for…

From the article: Chronic Nausea: Causes (Stomach, Drugs, Hormones, Nervous System) and How It Is Diagnosed

Did not find your answer? Write to us — we do not give individual advice, but we can point to reliable sources. Ask the editors

Related knowledge base entries