Peptic ulcer symptoms, tests and treatment

How to recognize an emergency, what a positive H. pylori result means, and which follow-up tests can tell you whether treatment worked.

Written with AI, checked against its sourcesPublished November 30, 2026 · 7 min read
Ask AI about this pageChatGPTClaudePerplexity

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?

TestWhat it checksWhat the result means
Upper endoscopyIs 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 testIs 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 testHas 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 ferritinIs 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

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?

Breath or stool antigen testUsually under age 60
Who starts hereAdults under 60 with no warning signs and no increased risk of stomach cancer.
What to expectYour clinician can treat H. pylori if the result is positive.
Upper endoscopyUsually from age 60
Who starts hereAdults 60 or older with new or unexplained indigestion.
When it may come earlierA family history of stomach cancer or childhood in a country where it is common may prompt an earlier exam.
US and Canadian guidance for indigestion. Trouble swallowing, unexplained weight loss or anemia warrants individual assessment at any age.4 Signs of active bleeding need emergency care.7

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

How iron stores and hemoglobin can change with slow bleedingIllustrative
FerritinHemoglobin
Ferritin (ng/mL)Hemoglobin (g/dL)Before lossEarly lossOngoing lossRecoveryStores refill
Illustrative example. With slow bleeding, ferritin can fall while hemoglobin stays steady. After bleeding stops and iron is replaced, hemoglobin can return to its earlier level while iron stores are still low. The time between stages varies.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

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

  1. 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
  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
  3. 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
What can help

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
  1. NSW Agency for Clinical Innovation, Emergency Care Institute. Peptic ulcer disease. Patient fact sheet, 2022.
  2. Barkun AN et al. Management of Nonvariceal Upper Gastrointestinal Bleeding: Guideline Recommendations From the International Consensus Group. Annals of Internal Medicine, 2019.
  3. Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology, 2024.
  4. Moayyedi P et al. ACG and CAG Clinical Guideline: Management of Dyspepsia. American Journal of Gastroenterology, 2017.
  5. Snook J et al. British Society of Gastroenterology guidelines for the management of iron deficiency anaemia in adults. Gut, 2021.
  6. 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.
  7. American College of Gastroenterology. Peptic ulcer disease.
  8. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & causes of peptic ulcers (stomach or duodenal ulcers).
  9. National Institute of Diabetes and Digestive and Kidney Diseases. Eating, diet, & nutrition for peptic ulcers (stomach or duodenal ulcers).
  10. MedlinePlus Medical Encyclopedia. Serum iron test.
  11. MedlinePlus. Complete blood count (CBC).
  12. ASGE Standards of Practice Committee. The role of endoscopy in the management of patients with peptic ulcer disease. Gastrointestinal Endoscopy, 2010.
  13. American College of Gastroenterology. H. pylori.
  14. NHS. Stomach ulcer.

Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.

An everyday protocol, built from your answers

A starting set of our supplements for your goal, checked against what you take and made to order each month, with an app to log how you feel and keep your results in one place. You choose every pill.

  1. 01Tell us your goalSleep, stress, energy, heart. A few taps, no account.
  2. 02Get your starting setOur supplements for your goal, checked against what you take. You confirm every pill; made to order each month.
  3. 03Keep it going in the appLog how you feel, keep your results in one place, and LifeFrom AI to help you along.
From $62a month, delivery included · cancel anytime