CONDITIONS · HEALTH
Gastric ulcer: symptoms, causes, treatment, and which doctor to see
A gastric ulcer is a sore in the inner stomach wall that may be caused by Helicobacter pylori or the use of anti-inflammatory drugs. A gastroenterologist investigates and treats it, and upper endoscopy (EGD) confirms the diagnosis.
Stomach pain that keeps returning deserves attention, and understanding what may be behind it is the first step toward treatment.
Book a consultationWhat it is
The stomach has protective mechanisms that defend its wall from the acid it produces. When this protection weakens, acid begins damaging the organ's wall and creates a sore: a gastric ulcer, also called a stomach ulcer. When the sore is at the beginning of the intestine, just after the stomach, it is called a duodenal ulcer; together, they make up peptic ulcer disease.
The most common symptom is pain in the upper central abdomen, but many people with ulcers have no symptoms at all. The main complications are bleeding, perforation of the stomach wall, and narrowing of the stomach outlet.
Ulcers can be treated: acid-reducing medications are the foundation of treatment, and addressing the cause helps prevent recurrence. During endoscopy, the doctor may collect biopsies to confirm H. pylori infection.
Symptoms
- Pain in the pit of the stomach (upper central abdomen)
- Feeling full soon after eating a small amount
- Nausea, queasiness, or vomiting
- Abdominal bloating
- Weight loss
Causes
The main causes are Helicobacter pylori infection and certain medications, such as acetylsalicylic acid (aspirin) and nonsteroidal anti-inflammatory drugs. An ulcer develops when factors that damage the stomach wall, such as acid, H. pylori, anti-inflammatory drugs, smoking, and alcohol, overcome its defenses.
Among people taking anti-inflammatory drugs, the risk of ulcers and complications is higher at older ages, in those with previous ulcers, and in those also taking aspirin, antiplatelet drugs, anticoagulants, or corticosteroids.
When to see a doctor
- Upper abdominal pain, which in some cases is caused by an ulcer
- Stomach symptoms in someone who frequently uses anti-inflammatory drugs
- Weight loss or vomiting that does not stop
- You have had an ulcer or H. pylori and symptoms have returned
When to go to the emergency room
- Vomiting blood: go to the emergency department or call SAMU (Brazil's emergency medical service) at 192
- Black, tarry stools
- Sudden abdominal pain, which may be a sign of perforation
- Vomiting that does not stop
In an emergency, call 192 (SAMU, Brazil's emergency medical service) or go to the nearest emergency room.
How it is diagnosed
Upper endoscopy (EGD) confirms an ulcer by allowing direct visualization of the sore. During the test, the doctor may remove small samples for a pathology exam (biopsy): some newly discovered stomach ulcers are actually cancer, and most of these cases are identified by biopsy during the first endoscopy.
When bleeding is suspected, blood tests such as a complete blood count measure hemoglobin and hematocrit. For stomach ulcers, the doctor usually repeats endoscopy after treatment to confirm healing.
Tests that help
Upper endoscopy (EGD)
Starting at R$ 590.00 (≈ US$ 103, estimated) Estimated value in US dollars at the tourist exchange rate, updated daily; payment is made in Brazilian reais.
Pathology examination (biopsy)
Starting at R$ 149.90 (≈ US$ 27, estimated)
Complete blood count
Starting at R$ 11.63 (≈ US$ 3, estimated)
Self-pay prices updated on November 17, 2026. Your doctor determines which tests make sense for your case.
Treatment
Treatment combines medications that reduce acid production, such as proton pump inhibitors, with treatment of the cause. If H. pylori is present, treatment is given to eliminate it, greatly reducing the chance that the ulcer will return.
If the cause is an anti-inflammatory drug, the doctor considers stopping it, switching it, or protecting the stomach while it is needed. Quitting smoking is also part of treatment because smoking interferes with healing.
Complications are treated before the ulcer itself: bleeding is treated through endoscopy and, if that does not resolve it, through surgery or interventional radiology; perforation and narrowing are treated with surgery or medical treatment. The plan is individualized and decided during the consultation; do not use antacids or anti-inflammatory drugs on your own to mask pain.
Prevention
- Avoid anti-inflammatory drugs and aspirin without medical guidance, especially if you have had an ulcer
- Treat H. pylori infection when diagnosed
- Do not smoke
- Reduce alcohol consumption
- Use stomach protection when your doctor recommends it if you need ongoing anti-inflammatory medication
Which specialist to see
Gastroenterology · CRM-SP 203753
Endoscopy · Gastroenterology · CRM-SP 172589
Endoscopy · CRM-SP 31530
Gastroenterology · Endoscopy · CRM-SP 61953
Endoscopy · Nutrition Medicine · Gastroenterology · CRM-SP 185442
Gastroenterology · CRM-SP 142970
Frequently asked questions
Can a stomach ulcer be cured?
Yes, in most cases it heals with treatment. Eliminating H. pylori and avoiding anti-inflammatory drugs greatly reduces the chance of recurrence.
Are ulcers contagious?
The bacterium H. pylori, which can cause an ulcer, can spread from one person to another within the same family.
Which doctor treats stomach ulcers?
A gastroenterologist investigates and treats it. Endoscopy, performed by an endoscopist, confirms the ulcer and collects a biopsy.
Are gastritis and ulcers the same thing?
No. An ulcer is a sore that breaks through the protective barrier of the stomach wall and reaches a deeper layer. H. pylori can cause both chronic gastritis and ulcers.
Can an ulcer turn into cancer?
Most stomach ulcers are benign, but some newly discovered ulcers turn out to be cancer. That is why, for stomach ulcers, a biopsy during the first endoscopy can help establish the diagnosis, and the need for follow-up endoscopy is assessed case by case.
How long does an ulcer take to heal?
With acid-reducing medications, most ulcers heal within 4 weeks; stomach ulcers larger than 2 cm may need 8 weeks. The doctor determines treatment duration and whether follow-up endoscopy is needed.
Can an online consultation help?
It helps with initial guidance, symptom assessment, reviewing tests, and monitoring treatment. Endoscopy, biopsy, and physical examinations take place in person. Signs of bleeding require emergency care, not an online consultation.
Where we see patients
References
- Zetner D, Roost I, Rosenberg J, Andresen K. Prophylactic transarterial embolization in patients with bleeding peptic ulcers following endoscopic control of bleeding. Cochrane Database Syst Rev. 2025.
- Sharma RP, Nathani RR. Gastric Ulcer. StatPearls (NCBI Bookshelf). 2026.
- Kim SH. Peptic Ulcer Disease. Korean J Helicobacter Up Gastrointest Res. 2025.
- Kavitt RT, Lipowska AM, Anyane-Yeboa A, Gralnek IM. Diagnosis and Treatment of Peptic Ulcer Disease. Am J Med. 2019.
- Vakil N. Peptic Ulcer Disease: A Review. JAMA. 2024.
- Narayanan M, Reddy KM, Marsicano E. Peptic Ulcer Disease and Helicobacter pylori infection. Mo Med. 2018.
- Almadi MA, Lu Y, Alali AA, Barkun AN. Peptic ulcer disease. Lancet. 2024.
- Joo MK, Park CH, Kim JS, et al.; Korean College of Helicobacter and Upper Gastrointestinal Research. Clinical Guidelines for Drug-Related Peptic Ulcer, 2020 Revised Edition. Gut Liver. 2020.
- Tarasconi A, Coccolini F, Biffl WL, et al. Perforated and bleeding peptic ulcer: WSES guidelines. World J Emerg Surg. 2020.
- Yang LS, Hartley I, Thompson AJ, et al. Evaluation of Endoscopic Practices and Outcomes in Follow-up of Gastric Ulcers. J Clin Gastroenterol. 2022.
- Kamada T, Satoh K, Itoh T, et al.; Japanese Society of Gastroenterology. Evidence-based clinical practice guidelines for peptic ulcer disease 2020. J Gastroenterol. 2021.
- Kuna L, Jakab J, Smolic R, et al. Peptic Ulcer Disease: A Brief Review of Conventional Therapy and Herbal Treatment Options. J Clin Med. 2019.
- Ding SZ. Global whole family based-Helicobacter pylori eradication strategy to prevent its related diseases and gastric cancer. World J Gastroenterol. 2020.
- Wang M, Chen Y, Yang M, Zhang K, Wang W. Endoscopic biopsy strategies for gastric ulcers: an updated systematic review. BMJ Open. 2026.
This content is informational and does not replace a consultation.
Updated on