
A peptic ulcer is a deeper break in the lining of the stomach or duodenum. Common causes include H. pylori infection and injury from certain anti-inflammatory pain medicines. It may cause recurrent upper-abdominal pain, burning, nausea or bloating, but some ulcers are first found after bleeding.
Pain before or after meals cannot identify the ulcer location by itself. Reflux, functional dyspepsia and other conditions can feel similar, so diagnosis relies on history, medicines, warning signs and appropriate tests.
Key points: Stomach and duodenal ulcers are both peptic ulcers. Care is not only about reducing acid; the cause, including H. pylori and anti-inflammatory pain medicines, must be addressed. Black stools, vomiting blood, fainting or sudden severe abdominal pain need urgent care.
What is a peptic ulcer, and how do stomach and duodenal ulcers differ?
The digestive lining has a protective barrier against acid and digestive fluids. When injury outweighs protection and extends into deeper tissue, an ulcer forms. It is called a gastric ulcer in the stomach and a duodenal ulcer at the start of the small bowel.
An ulcer is not the same as simple gastritis and is not merely ‘too much acid’. Its location and cause affect sampling, infection testing and follow-up.
What symptoms can a peptic ulcer cause, and can it be painless?
Common symptoms include upper-abdominal pain, burning or pressure, early fullness, discomfort after meals, nausea, vomiting, belching or appetite changes. Timing varies between people.
Some people have little pain and are diagnosed only after anaemia, black stools or another complication. Meal timing cannot reliably distinguish a stomach ulcer from a duodenal ulcer.
What causes peptic ulcers? Do stress and spicy food cause them?
The two leading causes are H. pylori infection and reduced lining protection from certain non-steroidal anti-inflammatory pain medicines. Duration of use, combined medicines, previous ulcer or bleeding, age and other illnesses affect risk.
Stress, coffee, tea, spicy or acidic food may worsen symptoms for some people, but they are usually not the underlying cause. Restricting food without checking infection or medicine risk can delay appropriate care.
How do ulcers, reflux and functional dyspepsia differ?
All three conditions can cause upper-abdominal discomfort, burning or bloating, and symptoms may overlap. A clinician uses the pattern, warning signs and appropriate testing rather than symptoms alone.
| Possible condition | Common pattern | Assessment focus |
|---|---|---|
| Peptic ulcer | Upper-abdominal pain or burning, nausea, early fullness; sometimes no symptoms | Infection, anti-inflammatory pain medicines, endoscopy findings and bleeding signs |
| Gastro-oesophageal reflux | Heartburn, acid regurgitation, worse when lying down or at night | Symptom pattern, triggers and swallowing warning signs |
| Functional dyspepsia | Post-meal fullness, early satiety, upper-abdominal pain or burning | Diagnosis after structural disease is excluded |
| Other upper-abdominal disease | Pain may spread to the back or right side, with fever or jaundice | Location, blood tests or imaging as appropriate |
Who may need endoscopy, and what can it show?

Endoscopy directly examines the oesophagus, stomach and duodenum for ulcers, bleeding or other lesions. Samples may be taken for H. pylori, abnormal cells or other changes.
Bleeding, difficulty swallowing, repeated vomiting, unintended weight loss, anaemia or worsening early fullness often make endoscopy a priority. Report all medicines, chronic conditions and allergies beforehand; do not stop prescribed medicines on your own.
How are peptic ulcers treated, and can treatment stop when pain improves?
Treatment supports healing and addresses the cause. A clinician may choose an acid-suppressing medicine class according to ulcer site, size, bleeding and medical history. Confirmed H. pylori requires an appropriate antibacterial course and later confirmation of eradication.
If an anti-inflammatory pain medicine is involved, the prescriber may stop or adjust it or add a stomach-protection strategy. Never stop antiplatelet or anticoagulant treatment without medical advice. Less pain does not prove that the lining has healed.
Must people with ulcers avoid coffee, chilli or fruit?
- Track foods that repeatedly worsen your own symptoms; there is no need to ban every acidic, spicy or caffeinated food or all fruit.
- Avoid smoking; alcohol may irritate the lining or raise bleeding risk.
- Do not use anti-inflammatory pain medicines long term or duplicate similar products without advice.
- Regular meals help some people, but small frequent meals are not mandatory for everyone.
- Complete the prescribed course and follow-up rather than relying on temporary symptom relief.
Sleep and stress management may support overall symptom control, but they do not replace infection, medicine or endoscopy assessment. Temporarily reduce a food that consistently causes symptoms and discuss the record at follow-up.
Which peptic-ulcer warning signs need urgent care?
- Vomiting fresh blood or coffee-ground material
- Black, sticky tar-like stools or dark-red blood
- Sudden persistent severe pain, a rigid abdomen or marked tenderness
- Dizziness, fainting, fast heartbeat, cold sweat or severe weakness
- Persistent vomiting, inability to keep fluids down, chest pain or breathing difficulty
These may indicate bleeding, perforation or circulatory instability and should not wait for a routine appointment. Recurrent pain, loss of appetite, weight loss, swallowing difficulty or anaemia also needs prompt assessment.
Why can a peptic ulcer return, and what follow-up is needed?
Common reasons for recurrence include persistent H. pylori, renewed exposure to a medicine that injures the lining, smoking or an unrecognised cause. After H. pylori treatment, eradication usually needs confirmation at the appropriate time.
If an ulcer does not heal as expected, returns, or biopsy findings need review, repeat endoscopy or other tests may be advised. Visit internal medicine and gastroenterology for individual assessment or browse the health education library.
Health Education References
- NIDDK: Symptoms and causes of peptic ulcers
- NIDDK: Treatment for peptic ulcers
- American College of Gastroenterology: Peptic Ulcer Disease
- NHS: Stomach ulcer
A stomach ulcer is one type of peptic ulcer; another common type is a duodenal ulcer. Location and cause affect testing and follow-up.
No. Some people have little pain and are diagnosed after anaemia, black stools or bleeding.
Not reliably. The relationship varies and similar pain may come from reflux, dyspepsia or other disease.
Temporary relief can mask infection, medicine injury or another lesion. Recurrent symptoms or warning signs need assessment.
Not necessarily. They may worsen symptoms for some people but are usually not the underlying cause. Track your own response.
It depends on site, cause, bleeding and biopsy results. H. pylori treatment usually needs a test of eradication, and some stomach ulcers need repeat endoscopy.
Doctor’s advice: pain relief does not prove that an ulcer has healed
Do not rely only on food restriction or self-treatment for recurrent upper-abdominal pain. Infection, anti-inflammatory pain medicines and bleeding risk should be reviewed. Black stools, vomiting blood, fainting or sudden severe pain require urgent care.
See gastroenterology assessment Browse digestive-health guides
This article provides general health education and cannot replace an in-person diagnosis. Testing, treatment and follow-up require individual clinician assessment.
Internal Medicine and Gastroenterology Team
