The short explanation
A gnawing or burning pain in the upper middle belly that comes on when the stomach is empty and eases after eating or with antacids can be a sign of a duodenal ulcer, a sore in the first part of the small intestine. It can also come from acid reflux, gastritis or indigestion without an ulcer. The two most common causes of ulcers are infection with Helicobacter pylori bacteria and regular use of anti-inflammatory painkillers. A doctor can test for H. pylori with a breath, stool or blood test, and may advise an endoscopy if you have warning signs or are older. Ulcers usually heal well with treatment once the cause is addressed.
What depends on your situation
The parts of this that change from person to person. Uncertainty is stated, not hidden.
- Smoking and heavy alcohol use slow ulcer healing and increase the chance of complications.
- Black stools, vomiting blood, weight loss, difficulty swallowing or persistent vomiting are warning signs that need urgent checks.
- Spicy food and stress do not cause ulcers on their own, though they can make symptoms feel worse.
What this answer cannot determine
The boundary of online education. These need a clinician who can see you.
- This cannot confirm whether you have an ulcer. That needs tests and sometimes an endoscopy.
Questions for your clinician
Take these with you. You can add any of them to an appointment card.
- Could this be an ulcer or acidity?
- Should I be tested for H. pylori?
- Do I need an endoscopy?
- Should I avoid any painkillers?
When to seek help
Clinician-approved guidance for this topic. When in doubt, being seen is never the wrong choice.
Emergency — call 112 now
- Call 112 if you vomit blood or coffee-ground material, pass black stools, or have sudden severe belly pain.
Book an appointment soon
- See a doctor within a few days for persistent upper belly pain.
Raise it at a routine appointment
- Book a routine review if pain keeps returning despite changes.
Sources
The evidence this explanation is built on.
- Stomach ulcer NHS
- Peptic ulcers (stomach ulcers) National Institute of Diabetes and Digestive and Kidney Diseases (NIH)
- Helicobacter pylori infections MedlinePlus (NIH)
Who wrote and reviewed this
Every AskHim answer names its author. A clinically reviewed answer also names the clinician who signed it off — if no clinician is named below, it has not been clinically reviewed.
- Author
- AskHim Editorial (AI-assisted)
- Clinical reviewer
- Nobody yet No clinician has signed this answer off. That is what the “Editorially reviewed” badge means, and why it does not say “Clinically reviewed”. It was written and checked by AskHim’s editorial team against the sources listed above, and it is queued for a clinician who works in this area.
- Review status
- Editorially reviewed
- Last reviewed
- Last reviewed 11 November 2026
- Version
- 1
Correction history
Substantive changes are listed, not quietly edited away.
No corrections have been made since this answer was first published.
Did this answer your question?
Whatever you choose is filed against this version of the answer, never against you, and it is never shown as a count.
“Explain more simply” asks which part was hard to follow, so the author knows what to rewrite. “My question is different” tells the editorial team this answer missed your point, then lets you ask your own question privately. Nothing about you is sent with either.
Saving, following up and reporting are all private. Nothing you do on this page is visible to other readers or to the doctor who wrote it, unless you ask a question.