Overview
Ulcer pain is often burning, between meals or at night, and may improve or worsen with food.
NSAIDs, aspirin, H. pylori, alcohol, and smoking raise the risk.
When to get medical care
Causes
Causes include peptic ulcers, gastritis, indigestion, reflux, and, rarely, stomach cancer.
OwieClear has pages on 4 conditions that can cause burning or gnawing stomach pain. Each shows how soon to get care.
Common causes
- Gastritis or stomach ulcerSee a doctor if it doesn't get better
Irritation of the stomach lining, or an open sore in the stomach or upper small intestine.
- Zollinger-Ellison syndromeSee a doctor if it doesn't get better
Rare tumors that make too much gastrin, a hormone that triggers lots of stomach acid.
Less likely causes
- Marginal zone lymphoma (including MALT lymphoma)See a doctor if it doesn't get better
A group of slow-growing B-cell lymphomas.
- Pancreatic neuroendocrine tumor (islet cell tumor)See a doctor if it doesn't get better
A tumor of the hormone-making cells of the pancreas, different from the more common pancreatic cancer.
What you can do at home
- Avoid NSAIDs and aspirin.
- Limit alcohol
- Don't smoke.
Medicines
Acid reducers and antibiotics for H. pylori heal ulcers.
At the doctor
Tests check for H. pylori.
Questions you may be asked
- Pain pattern
- NSAID use
- Black stools
The exam
A belly exam.
Tests
- H. pylori test
- Endoscopy
Prevention
Protect your stomach.
- Limit NSAIDs
- Don't smoke
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.