A peptic ulcer can cause burning pain below the breastbone. A gastric ulcer forms in the stomach lining, and a duodenal ulcer forms just beyond the stomach. Both can hurt in the same place. Finding out whether a stomach bacterium called Helicobacter pylori (H. pylori) or a pain medicine such as ibuprofen injured the lining helps your clinician choose treatment and prevent another ulcer.17
What does a peptic ulcer feel like?
Ulcer pain often feels like burning or gnawing in the upper middle of the belly. Some people wake with pain on an empty stomach and get brief relief after eating. Others feel worse after a meal, feel full after a few bites, or have nausea or bloating.8 Other digestive conditions can cause similar pain. Meal timing alone cannot tell you whether you have an ulcer or where it is. Sometimes bleeding is the first sign.78
Make an appointment if upper belly pain keeps returning. Ask for a prompt assessment if you keep vomiting, have trouble swallowing, lose weight without trying, or regularly feel full after a few bites. Tell the clinician when the pain started and whether it wakes you at night.114
What causes stomach and duodenal ulcers?
H. pylori can inflame the stomach lining.3 Most people with the infection have no symptoms, and upper belly discomfort alone cannot identify it.13 Nonsteroidal anti-inflammatory drugs (NSAIDs), including ibuprofen, naproxen and aspirin, can also weaken the lining’s protection against stomach acid. You can have H. pylori even if you regularly take an NSAID.78
Tell your clinician which pain medicines you take and ask whether you need an H. pylori test. Include over-the-counter medicines and prescribed aspirin. A photo of the package can help if you know the brand but are unsure of the ingredient.37
Which test can show a peptic ulcer?
| Test | What it checks | What the result means |
|---|---|---|
| Upper endoscopy | Is there an ulcer? | A clinician passes a flexible tube with a camera through the mouth to see the stomach and duodenum. During the exam, they can take a small tissue sample (a biopsy) or treat a bleeding vessel.27 |
| H. pylori stool antigen or urea breath test | Is H. pylori present now? | The stool test detects pieces of the bacterium. The breath test detects its activity. A positive result identifies infection. A camera exam shows whether there is an ulcer.37 |
| H. pylori antibody blood test | Has my immune system encountered H. pylori? | Antibodies can remain after the infection clears. If your result is positive, ask whether a breath or stool test would show if the infection is still there.3 |
| Complete blood count (CBC) and ferritin | Is my hemoglobin low, or are my iron stores running low? | Hemoglobin carries oxygen in red blood cells. A low level indicates anemia. Ferritin helps estimate stored iron. These tests can show the effects of blood loss, but a clinician needs other evidence to identify its cause.511 |
On your stool report
Look for “H. pylori antigen” on your stool report. If you have a gut microbiome report and the test name is unclear, the clinic can confirm whether it ordered a specific test for H. pylori.313
Which test usually comes first for unexplained indigestion?
Can a blood test show a bleeding ulcer?
With slow bleeding, iron deficiency can develop before blood is visible in the stool. Ferritin can fall while hemoglobin is still normal. If blood loss continues, hemoglobin can fall too, and you may feel tired or short of breath.57 Heavy menstrual bleeding can produce the same pattern. A clinician investigates the cause of unexplained iron-deficiency anemia. Inflammation can raise ferritin even when iron stores are low.5
An iron panel may also list serum iron, the iron circulating at the time of the draw. The result can vary with the time of day, recent meals and iron supplements.10
During a sudden bleed, you lose red blood cells and the fluid that carries them together. The concentration of hemoglobin can therefore look normal at first. Emergency clinicians also check pulse, blood pressure and symptoms.2 Bloody or coffee-ground vomit, black tarry stools, or red or maroon blood mixed into your stool need emergency care even if today’s hemoglobin looks normal.27
On your follow-up blood report
How is a peptic ulcer treated?
A proton pump inhibitor (PPI) reduces stomach acid and gives the sore time to heal.16 If H. pylori is present, antibiotics treat the infection. For adults receiving their first H. pylori treatment, the American College of Gastroenterology favors bismuth quadruple therapy when tests have not shown which antibiotics will work against the infection. It combines a PPI, bismuth and two antibiotics. Allergies and previous antibiotic use can affect the choice. Tell the prescriber if side effects make the course hard to finish.313
For an NSAID-related ulcer, the prescriber reviews whether you can stop the medicine, switch pain treatments or use continuing stomach protection.6 If you take prescribed aspirin after a heart attack or stroke, speak with the prescribing team before changing it. Interrupting aspirin can raise the risk of another heart attack or stroke. If an ulcer is actively bleeding, hospital clinicians can often stop the bleeding with a clip or heat during endoscopy.2
How will I know the ulcer has healed?
Pain can improve even when H. pylori is still present. A breath or stool test can confirm that treatment cleared the infection. If your clinician needs to check whether the ulcer itself has healed, they can look at the lining during endoscopy.3612
- 1Confirm that H. pylori has clearedAfter H. pylori treatment, the clinic arranges a test to confirm the infection has cleared, usually a breath or stool antigen test. For a reliable result, the clinic schedules it at least 4 weeks after the last antibiotic or bismuth and at least 2 weeks after the last PPI or vonoprazan, another acid-reducing medicine. The prescribing team plans any medicine pause, especially after a bleeding ulcer.3 A test taken during an ulcer bleed can miss H. pylori. If that first result was negative, the clinic should repeat the test after the bleed.2
- 2Ask whether a stomach ulcer needs another lookFor a gastric ulcer with H. pylori, UK guidance from NICE recommends repeat endoscopy “6 to 8 weeks after beginning treatment,” depending on the ulcer’s size.6 Your gastroenterologist uses the ulcer’s appearance, the biopsy results and any ongoing symptoms to decide whether and when you need another endoscopy.12
- 3Follow up on blood lossIf bleeding caused anemia, primary care can arrange your next blood count and iron studies. Ask when to repeat them based on the bleed and your recovery.5 A CBC alone usually needs no preparation. For an iron panel, ask the lab about fasting, timing and iron supplements.1011 If hemoglobin has fallen or ferritin is low, contact the clinician who ordered the tests to review the change. Report pain that persists or returns after treatment. Seek emergency care now for signs of active bleeding.567
Seek emergency care now for bloody or coffee-ground vomit, black tarry stools, red or maroon blood mixed into your stool, or sudden severe belly pain, even after a normal blood count. If you feel faint with possible bleeding, or someone collapses with signs of bleeding, call your local emergency number for an ambulance.[[2]][[7]][[14]]
Citations
- NSW Agency for Clinical Innovation, Emergency Care Institute. Peptic ulcer disease. Patient fact sheet, 2022.
- Barkun AN et al. Management of Nonvariceal Upper Gastrointestinal Bleeding: Guideline Recommendations From the International Consensus Group. Annals of Internal Medicine, 2019.
- Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology, 2024.
- Moayyedi P et al. ACG and CAG Clinical Guideline: Management of Dyspepsia. American Journal of Gastroenterology, 2017.
- Snook J et al. British Society of Gastroenterology guidelines for the management of iron deficiency anaemia in adults. Gut, 2021.
- National Institute for Health and Care Excellence. Gastro-oesophageal reflux disease and dyspepsia in adults: investigation and management. CG184, recommendations 1.7.1 to 1.7.9. Updated 2019.
- American College of Gastroenterology. Peptic ulcer disease.
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & causes of peptic ulcers (stomach or duodenal ulcers).
- National Institute of Diabetes and Digestive and Kidney Diseases. Eating, diet, & nutrition for peptic ulcers (stomach or duodenal ulcers).
- MedlinePlus Medical Encyclopedia. Serum iron test.
- MedlinePlus. Complete blood count (CBC).
- ASGE Standards of Practice Committee. The role of endoscopy in the management of patients with peptic ulcer disease. Gastrointestinal Endoscopy, 2010.
- American College of Gastroenterology. H. pylori.
- NHS. Stomach ulcer.
Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.




