About authorship and review dates
Publication, literature-search, and editorial-change dates describe different activities. They do not by themselves establish a completed medical review. Check the article-specific reviewer, scope, and completion date where documented. Independent specialty review is not implied unless a reviewer is explicitly identified. Review process and specialty boundaries

Upper belly pain can come from a stomach ulcer, but symptoms alone cannot tell you. The most useful next step is often a medication review and testing for Helicobacter pylori (H. pylori), a stomach infection. Some people need an upper endoscopy to look directly at the lining. Treatment works best when it addresses the cause as well as stomach acid.[1] [2] [3]
For U.S. adults and families • Gastroenterology & Hepatology • Educational information, not a personal diagnosis.
Illustration: educational artwork; not a patient photograph, endoscopic image, or diagnostic test.
Key takeaways
- An ulcer is a sore in the stomach or the first part of the small intestine. Burning pain is possible, but some ulcers cause no pain.[1]
- H. pylori and anti-inflammatory pain medicines such as ibuprofen, naproxen, and aspirin are leading causes.[1] [4]
- A breath or stool test checks for active infection; endoscopy can identify an ulcer and obtain tissue samples.[3]
- Antibiotic treatment requires a follow-up test even if you feel better.[2]
- Vomiting blood, black tarry stools, fainting, or sudden severe abdominal pain needs emergency evaluation.[1] [4]
What this guide helps you decide
Could your symptoms fit an ulcer? Would an infection test or endoscopy be more useful? If an ulcer is found, how do treatment and follow-up prevent another episode? This guide covers adult stomach and duodenal ulcers, not mouth sores or ulcerative colitis.
What is a stomach ulcer?
A gastric ulcer is an open sore in the stomach lining. A duodenal ulcer occurs just beyond the stomach, in the first part of the small intestine. Together, they are called peptic ulcers. Acid can damage tissue when its protective defenses are weakened.[4]
Discomfort may feel dull or burning between the breastbone and belly button. It may occur at night, improve after food, or worsen with eating. Nausea and early fullness can occur too. These patterns overlap with other conditions; a meal-related pattern does not reliably identify the ulcer’s location.[1] [4]
Reflux, functional indigestion, gallbladder problems, and other illnesses can also cause upper abdominal symptoms. Persistent discomfort deserves an assessment rather than repeated self-treatment. See our guides to acid reflux and GERD and gallstones and gallbladder attacks.
When should you get help?
Arrange prompt medical advice for worsening or recurrent pain, repeated vomiting, unexplained weight loss, trouble swallowing, or possible anemia. Slow bleeding can cause tiredness or shortness of breath without obvious blood. These signs require evaluation; they do not by themselves mean cancer.[4] [5]
What causes ulcers—and who is at higher risk?
H. pylori can persist in the stomach for years. Many infected people feel well, but infection can cause ulcers and raises the risk of certain stomach cancers. Treating confirmed infection is important, even when the pain is mild.[2]
Nonsteroidal anti-inflammatory drugs (NSAIDs) weaken the lining’s protection. Risk rises with higher doses, prolonged use, combining NSAIDs, or having H. pylori at the same time. Bring a list of prescription drugs, pain relievers, aspirin-containing combination products, and supplements to your visit.[1] [3]
Do not independently stop prescribed aspirin, antiplatelet medicines, or anticoagulants. Their benefits and bleeding risks need an individualized plan. Suspected active bleeding requires urgent care rather than an at-home medication experiment.
Which tests might you need?
| Test | What it answers | What it cannot tell you |
|---|---|---|
| Urea breath test or stool antigen test | Is there an active H. pylori infection? | A positive test does not prove that an ulcer exists. |
| Upper endoscopy (EGD), sometimes with biopsy | Is there an ulcer or another visible problem? Tissue can be checked for infection or abnormal cells. | A normal examination does not explain every cause of discomfort. |
| Blood count and, when appropriate, iron studies | Is bleeding causing anemia or iron deficiency? | These tests do not locate an ulcer. |
Testing is chosen after reviewing symptoms, medicines, and medical history. Breath and stool testing are different from a blood antibody test: antibodies may remain positive after infection has cleared, so they cannot confirm cure.[2] [3]
Who may start with an infection test?
For adults younger than 60 with ongoing indigestion and no warning features or additional cancer risk, the ACG/CAG guideline recommends noninvasive H. pylori testing and treatment if positive. If negative, or if symptoms remain after treatment, a clinician may recommend a trial of acid suppression.[5]
When is endoscopy more useful?
The guideline suggests endoscopy for new dyspepsia at age 60 or older. Earlier evaluation may be appropriate with warning symptoms, a family history of stomach cancer, or childhood in a region with higher gastric cancer rates. In younger adults, alarm features are assessed individually; age is not a reason to ignore them.[2] [5]
For EGD, a flexible camera passes through the mouth into the upper digestive tract. Follow the facility’s fasting and medication instructions and arrange a ride if you receive sedation. Serious complications are uncommon but include bleeding, a tear in the digestive tract, and reactions to sedation.[3] [10]
How are ulcers treated?
| Situation | Usual approach | Important follow-up |
|---|---|---|
| Confirmed H. pylori | A prescribed combination of infection treatment and acid suppression | Complete the regimen and confirm eradication. |
| NSAID-associated ulcer | Review whether the NSAID can be stopped or changed; use an acid-suppressing medicine | If NSAIDs remain necessary, discuss ongoing protection. |
| Bleeding or another complication | Hospital assessment, sometimes endoscopic treatment, a radiology procedure, or surgery | Plan to prevent recurrent bleeding and address the cause. |
Proton pump inhibitors (PPIs), such as omeprazole, reduce acid so tissue can heal. A clinician sets the dose and duration according to the ulcer and your other medicines. Symptom relief may come before healing is complete. Repeated over-the-counter treatment should not replace evaluation of persistent symptoms.[4] [6]
Why the antibiotic combination matters
The 2024 ACG guideline prefers 14-day optimized bismuth quadruple therapy when antibiotic susceptibility is unknown. It combines a PPI, bismuth, tetracycline, and metronidazole. Other options include rifabutin-based triple therapy or vonoprazan–amoxicillin dual therapy in suitable patients without penicillin allergy.[2]
Clarithromycin- or levofloxacin-containing regimens should not be chosen blindly when resistance is unknown. Previous antibiotics, allergies, interactions, cost, and the ability to follow a complex schedule affect the choice. Do not assemble a regimen from leftover antibiotics.[2]
Ask for a written dosing schedule and instructions for missed doses or side effects. Nausea and diarrhea can make treatment difficult. Contact the prescriber about significant side effects; seek urgent help for breathing difficulty or swelling suggesting a serious allergy. Tell the team if you are pregnant, may become pregnant, or have kidney or liver disease before treatment is selected.
Feeling better is not the same as a negative test
Everyone treated for H. pylori should have a test of cure. Usually this is a breath or stool test at least 4 weeks after antibiotics are finished. Antibiotics and bismuth should be avoided for at least 4 weeks before testing, and PPIs or potassium-competitive acid blockers are generally held for 2 weeks. These medicines can produce a falsely negative result.[2]
Arrange the pause with your clinician, especially after bleeding or with a large ulcer. Ask whether an H2 blocker or antacid is appropriate during the break and follow the testing center’s instructions. If infection persists, another treatment is selected based on what you already took and, when available, resistance testing.[2]
Does a stomach ulcer need another endoscopy?
Sometimes. A gastric ulcer may need biopsy because a cancer can resemble an ulcer. Repeat endoscopy is particularly important if the appearance is suspicious, the cause is uncertain, symptoms persist, or initial biopsy was not possible. An ulcer that remains unhealed after roughly 8–12 weeks of treatment may need repeat biopsy. Follow-up is individualized; a healed uncomplicated duodenal ulcer usually does not need routine surveillance.[7]
Food, stress, and everyday choices
No special “ulcer diet” has been shown to cure peptic ulcers. You do not need to blame yourself for eating spicy food. Avoid foods or drinks that reliably aggravate your own symptoms, but do not substitute a restrictive diet, milk, or supplements for treatment of infection or medication-related injury. Quitting smoking supports healing.[6] [8]
For daily life, keep a brief symptom and medicine record: when pain occurs, what you took, and whether stool color changed. Bring it to follow-up. Bismuth and iron can darken stool, but do not assume new tarry stool or weakness is harmless.[4]
A practical next-step plan
- Check for emergency signs. Bleeding symptoms or sudden severe pain come first.
- Book an assessment for persistent discomfort. Bring all medication labels and prior ulcer or infection test results.
- Choose the right test with your clinician. Infection testing and endoscopy answer different questions.
- Treat the cause and protect healing. Ask how long each medicine should continue.
- Close the loop. Schedule the test of cure and any indicated repeat endoscopy; report persistent or returning symptoms.[2] [3] [6] [7]
Questions people often ask
Does upper belly pain always mean an ulcer?
No. Neither the pain pattern nor relief from an antacid establishes the diagnosis. Your history and selected tests matter.[3] [4]
Can an ulcer occur without pain?
Yes. Sometimes bleeding or anemia is the first clue. Our iron-deficiency anemia guide explains why finding the source matters.[1] [4]
Can I skip the follow-up test if I feel normal?
No. Symptoms do not reliably show whether H. pylori has cleared.[2]
Will I need surgery?
Most ulcers are managed with medicines and treatment of the cause. Surgery is reserved for selected complications or ulcers that fail to heal.[6]
What remains uncertain?
There is no universally best antibiotic regimen for every person. Resistance patterns and access differ, and some guideline recommendations rely on limited evidence or expert consensus. A U.S./European randomized trial supported vonoprazan-based options, but it compared them with lansoprazole-based clarithromycin triple therapy—not with optimized bismuth quadruple therapy. It therefore cannot prove superiority over every modern regimen.[2] [9]
Endoscopy decisions also depend on individual risk. This guide cannot determine the source of one person’s abdominal pain or whether a particular ulcer has healed.
Conclusion
Stomach ulcers are one possible explanation for upper belly pain. Testing for the cause, reviewing medicines, and completing treatment are more useful than guessing from symptoms alone. Confirming H. pylori cure and following the recommended endoscopy plan complete the process. Bleeding symptoms or sudden severe pain require urgent medical care.
References
- National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Symptoms & Causes of Peptic Ulcers (Stomach or Duodenal Ulcers). Reviewed September 2022. Official source.
- Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024;119(9):1730–1753. doi:10.14309/ajg.0000000000002968. PubMed. Guideline full text.
- NIDDK. Diagnosis of Peptic Ulcers (Stomach or Duodenal Ulcers). Reviewed September 2022. Official source.
- American College of Gastroenterology. Peptic Ulcer Disease. Patient resource; updated by Ami J. Panara, MD, June 2024. Official source.
- Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N. ACG and CAG Clinical Guideline: Management of Dyspepsia. Am J Gastroenterol. 2017;112(7):988–1013. doi:10.1038/ajg.2017.154. PubMed. Official full text.
- NIDDK. Treatment for Peptic Ulcers (Stomach or Duodenal Ulcers). Reviewed September 2022. Official source.
- ASGE Standards of Practice Committee. The role of endoscopy in the management of patients with peptic ulcer disease. Gastrointest Endosc. 2010;71(4):663–668. Official guideline PDF. Older guidance used specifically for individualized ulcer biopsy and follow-up.
- NIDDK. Eating, Diet, & Nutrition for Peptic Ulcers (Stomach or Duodenal Ulcers). Reviewed September 2022. Official source.
- Chey WD, Mégraud F, Laine L, López LJ, Hunt BJ, Howden CW. Vonoprazan Triple and Dual Therapy for Helicobacter pylori Infection in the United States and Europe: Randomized Clinical Trial. Gastroenterology. 2022;163(3):608–619. doi:10.1053/j.gastro.2022.05.055. PubMed.
- American College of Gastroenterology. Upper GI Endoscopy (EGD). Patient information. Official source. Accessed October 8, 2026.
Article transparency
Author: Hyo Cheul Park, MD. Dr. Park graduated from Chonnam National University College of Medicine, completed postgraduate surgical training at Gwangju Christian Hospital, and obtained board certification in general surgery in the Republic of Korea. He is the clinical author and editor of MedEvidence Global.
Literature search and source verification: October 8, 2026. Main guidance: ACG H. pylori guideline (2024); ACG/CAG dyspepsia guideline (2017); ASGE peptic ulcer endoscopy guideline (2010, focused follow-up recommendations). Official patient resources and the cited trial report were also consulted.
Conflicts of interest: An article-specific author declaration has not been provided. Funding: Article-specific funding information has not been provided. Publication date: October 8, 2026. Next review: Within 12 months, or sooner after important guideline or safety changes.
Medical disclaimer: This article provides general education and does not replace individualized diagnosis, treatment, or emergency care.