Medicina em FocoBook an appointment

Medicina em Foco · MEDICAL ARTICLE

Heartburn that will not go away? It may be time for an endoscopy.

A guide to knowing when treatment and monitoring are enough, and when it is time to investigate what is behind the burning sensation.

Dr. Sabrina FigueiredoCRM-SP 203753 · RQE 99224

Dr. Daniel AlvarengaCRM-SP 172589 · RQE 87827 · RQE 87828 · RQE 99372

Book via WhatsApp
Dr. Sabrina Figueiredo at the center of a mandala of people
Dr. Sabrina FigueiredoGastroenterology
Dr. Daniel Alvarenga at the center of a mandala of people
Dr. Daniel AlvarengaEndoscopy · Gastroenterology

10 min read · Published on November 17, 2026 · Medically reviewed on November 17, 2026 by Dr. Sabrina Figueiredo and Dr. Daniel Alvarenga

In this article
  1. Frequent heartburn: what is happening in your body?
  2. When does heartburn need investigation?
  3. Can taking medication every day on your own hide the problem?
  4. H. pylori: the bacterium most people do not feel, and why it matters
  5. What else can endoscopy show in someone with heartburn?
  6. How endoscopy works at Instituto Medicina em Foco
  7. What happens after the results?
Quick response. Heartburn without warning signs is usually treated first with medication, without an exam. But endoscopy is indicated when heartburn does not improve with treatment, returns whenever medication is stopped, or comes with warning signs such as difficulty swallowing, weight loss, anemia, vomiting, or bleeding. During endoscopy, the doctor can also test for H. pylori, a very common bacterium linked to gastritis, ulcers, and stomach cancer.
Doctor and patient talking during a consultation, with mandala geometry in the background
Dr. Sabrina Figueiredo
Dr. Sabrina FigueiredoCRM-SP 203753 · RQE 99224

Frequent heartburn: what is happening in your body?

Heartburn is a burning sensation that rises from the stomach to the chest and is a typical symptom of reflux.

Heartburn is a burning sensation behind the breastbone that rises toward the neck. Sometimes it comes with regurgitation: stomach contents rise to the mouth, often with a sour or bitter taste. It is a typical symptom of reflux, which happens when stomach contents flow back into the esophagus, the tube that carries food from the mouth to the stomach.

Occasional reflux is common. The problem is when it becomes routine: you start eating with the burning sensation in mind, wake up at night because of it, or only feel well when you take medication almost every day.

Many people come to the office at this point. They started with an occasional pill, moved to one a day, and when they try to stop, the heartburn returns. When heartburn does not improve with over-the-counter medication or changes in habits, it is time to talk with a doctor instead of continuing on autopilot. To understand the mechanism in detail, we have a page about gastroesophageal reflux.

When does heartburn need investigation?

Symptom duration, ongoing medication use, age, and warning signs help determine when to investigate.

Not all heartburn needs endoscopy right away. When there are no warning signs, the American reflux guideline recommends starting with 8 weeks of an acid-reducing medication under a doctor's guidance. In most people, symptoms improve with treatment.

The same guideline recommends endoscopy when heartburn does not improve enough after those 8 weeks or returns when medication is stopped. For people with upper abdominal discomfort, known as dyspepsia, the American and Canadian guideline suggests endoscopy starting at age 60. Those at higher risk, such as people with a family history of stomach cancer, may have the exam earlier. In Brazil, the Brazilian H. pylori Consensus recommends endoscopy with biopsy starting at age 40 for people with dyspepsia.

There are also what are called warning signs. They do not mean you have something serious, but they make seeing a doctor more urgent:

1Difficulty or pain when swallowing.
2Unexplained weight loss.
3Anemia found on a blood test.
4Persistent vomiting.
5Bleeding: vomit with blood or a coffee-ground appearance, or black stools.

Vomiting blood, vomit that looks like coffee grounds, or black, tarry stools require immediate care: go to the emergency department or call SAMU (Brazil's emergency medical service) at 192.

Can taking medication every day on your own hide the problem?

Medication relieves the burning sensation, but using it without medical follow-up may leave the cause undiagnosed.

Medications that reduce stomach acid, such as omeprazole and pantoprazole, are the most commonly prescribed for reflux, and for good reason. They treat symptoms effectively and can heal the lining of the esophagus in most people with reflux.

The issue is not the medication itself, but using it without follow-up. Because it heals inflammation in the esophagus effectively, esophagitis may go unnoticed if endoscopy is performed while taking it. It can also interfere with H. pylori tests, such as the urease test, when it is not stopped beforehand under medical guidance.

Another issue: if you need the medication every day for months, the right question is why. If heartburn returns whenever the medication is stopped, the guideline recommends endoscopy to understand the cause. Do not stop or change the medication on your own. Discuss your question with your doctor.

Not sure whether this applies to you?The team explains the options and schedules appointments through WhatsApp.
Chat on WhatsApp

H. pylori: the bacterium most people do not feel, and why it matters

H. pylori is a common bacterium in the stomach. Most people who have it do not feel anything, but it is the main known risk factor for gastric cancer.

Helicobacter pylori, or simply H. pylori, is a bacterium that lives in the stomach. It is present in more than 40% of the world's population. In Brazil, studies show that infection in adults has been decreasing, with differences between regions.

Most people become infected during childhood. The main route is fecal-oral, meaning contact with feces from someone who has the bacterium. Without treatment, it tends to remain in the stomach for life.

Most people with H. pylori do not feel anything. Even without symptoms, the bacterium causes inflammation of the stomach lining, called gastritis.

In 1994, the International Agency for Research on Cancer (IARC) classified H. pylori as a group 1 carcinogen. Today it is considered the main known risk factor for stomach cancer.

In nonhereditary stomach cancer, the process occurs in stages: it starts with chronic gastritis; with prolonged inflammation, atrophy may develop, when the stomach loses glands, along with intestinal metaplasia, when areas of the stomach develop cells resembling intestinal cells; and, in a smaller proportion of people, dysplasia and cancer. Endoscopy can show which stage the lining is at.

Now for the reassuring part. The vast majority of people infected with H. pylori will never have stomach cancer. Only about 1% to 3% of infected people are estimated to develop the disease. Risk also depends on other factors, such as a family history of stomach cancer, smoking, and too much salt in food.

During endoscopy, the doctor examines the lining and, when indicated, removes small pieces of tissue with thin forceps passed through the instrument, which is called a biopsy. One of these fragments may be used for the rapid urease test, which looks for urease, an enzyme from the bacterium, in the lining. The other samples go to the pathologist. Microscopic analysis is the reference method for confirming H. pylori and assessing the condition of the stomach lining.

Other tests exist, such as the breath test and stool testing. The advantage of endoscopy with biopsy is testing for the bacterium and assessing the lining in the same exam.

The Brazilian Consensus first-choice regimens combine antibiotics and an acid-reducing medication for 10 to 14 days, always by prescription. In studies involving people without symptoms, treating the bacterium reduced the risk of stomach cancer, with greater benefit in those who did not yet have premalignant changes such as atrophy and metaplasia. After treatment, the doctor may order another test to confirm that the bacterium has been eliminated. Symptoms and treatment are covered in detail on our page about H. pylori infection.

Some groups have more reason to be tested for the bacterium:

1People with a parent, sibling, or child with stomach cancer.
2People who have or have had a stomach or duodenal ulcer: treating the cause, such as H. pylori, helps reduce the chance of new ulcers.
3People with dyspepsia, which is pain or burning in the upper abdomen.
4People who will take anti-inflammatory medication or acetylsalicylic acid for a long time.
5People with iron deficiency anemia with no identified cause.
Geometric illustration of the digestive system surrounded by people in a circle

What else can endoscopy show in someone with heartburn?

Besides H. pylori, the exam looks for esophagitis, Barrett's esophagus, and ulcers, and a normal result is also helpful.

During upper endoscopy (EGD), a flexible tube with a camera passes through the esophagus, stomach, and beginning of the intestine, the duodenum. Preparation and exam options are explained on our upper endoscopy page.

In people with heartburn, the exam may show changes such as these:

1Erosive esophagitis: sores in the esophagus, a typical finding in reflux.
2Barrett's esophagus: a change in the esophagus linked to long-standing reflux; it requires follow-up because it is a lesion that can precede a type of esophageal cancer.
3Ulcer: a sore in the stomach or duodenum. The most common causes are H. pylori and anti-inflammatory medications.
4Hiatal hernia: when part of the stomach moves up into the chest; it may increase reflux or worsen symptoms.

The name Barrett's esophagus sounds frightening, but the yearly cancer risk for people with Barrett's is low. What changes is that they begin having follow-up endoscopies at intervals based on what the biopsies show. For stomach sores, see the page on gastric ulcer; for inflammation, see the gastritis page.

A normal result is also common: among people having endoscopy for heartburn, the most frequent finding is a normal lining. The doctor uses this result to decide the next step.

How endoscopy works at Instituto Medicina em Foco

There are four exam options, lasting about 15 minutes and requiring simple preparation.

At Instituto Medicina em Foco, endoscopy is performed in four versions: with sedation; with sedation, biopsy, and a urease test for H. pylori; with an anesthesiologist; and with an anesthesiologist, biopsy, and a urease test. Before the exam, talk with your doctor about your health: the doctor recommends the appropriate option.

The exam itself takes about 15 minutes. With sedation, many people doze during the procedure. Afterward, you spend some time in recovery until the sedative wears off. Because of the sedation, come with an adult companion to take you home, and do not drive after the exam.

This is the required preparation. Do not stop any ongoing medication without first talking with the doctor who prescribed it: the team provides individual guidance.

1Fast before the exam, without eating or drinking, for the exact time the team instructs.
2Report blood-thinning medications, such as acetylsalicylic acid: sometimes the doctor asks for adjustments before the exam.
3Report insulin or other diabetes medication use: the doctor will advise whether the dose needs adjustment before the exam.

What happens after the results?

The doctor reviews the images and biopsies together and explains the next step, which is determined individually.

Some imaging results may be available right after the exam. When a biopsy is taken, the pathologist's results may take a few days or longer.

With all the results available, the doctor explains what was found and determines the next step. This may involve, for example, adjusting medication to the lowest effective dose, always on an individual basis.

Some changes in habits help: losing excess weight and quitting smoking. If heartburn occurs at night, avoid late-night meals and raise the head of the bed.

Most importantly: in most people with reflux, symptoms improve with treatment. Investigating does not mean something serious has been found. It is a way to stop guessing and treat the actual cause.

Ongoing self-medication × investigation with endoscopy

Self-medicationInvestigation with endoscopy
What it addressesRelieves reflux symptoms in many peopleHelps identify the cause of persistent heartburn
What it missesChanges such as esophagitis and Barrett's esophagus, which endoscopy identifiesDoes not measure reflux throughout the day (pH monitoring does this)
EffortNo preparationFasting, medication adjustments, and a companion
CostOngoing medication expenseExam cost and half a day set aside
DrawbacksMay mask esophagitis until the examLow risks: reaction to the sedative, bleeding, and, rarely, perforation
When it makes senseAntacids only for mild symptoms; daily use only after talking with a doctorWarning signs or heartburn that does not improve with medication

Qualitative comparison made in November 2026, based on the American College of Gastroenterology reflux guideline (2022), the ACG/CAG dyspepsia guideline (2017), the V Brazilian H. pylori Consensus (2026), and NIDDK/NIH guidance on upper endoscopy. It does not include prices in reais, health plan coverage, or other tests such as breath testing or pH monitoring. Drawbacks of endoscopy include cost, preparation, sedation with a required companion, and complications, which are rare. The drawback of ongoing medication without evaluation is the risk of masking the cause. The doctor always determines whether it is indicated.

Cost and health plans

Self-pay starting atR$ 590.00 (≈ US$ 103, estimated) Estimated value in US dollars at the tourist exchange rate, updated daily; payment is made in Brazilian reais.

Price checked on November 17, 2026; subject to change. See how the exam works, its preparation, and the prices for each option.

Health plans: Abas, Bradesco, Mediservice, Omint. The team confirms coverage and payment terms before scheduling.

Book via WhatsApp

Frequently asked questions

Does endoscopy hurt?

With sedation, many people doze during the exam. Afterward, you may briefly have bloating, nausea, or a sore throat.

Do I need sedation or an anesthesiologist?

Most of the time, the exam is performed with a sedative to keep you relaxed and comfortable. Your doctor decides on the option together with you, based on your health and the reason for the exam.

Can I go alone?

No. Because of the sedation, you need someone to take you home, and you cannot drive after the exam.

How long does it take?

The exam takes about 15 minutes. Add time for arrival, preparation, and recovery from sedation; the team will tell you how much time to set aside.

Do I need to stop omeprazole before the exam?

It depends on the purpose of the exam. If it is to test for H. pylori, your doctor may ask you to stop the medication for at least 2 weeks beforehand because it can interfere with the test result. Otherwise, follow your doctor's instructions and do not stop it on your own.

Does my health plan cover it?

It depends on your plan. The team confirms coverage and the exam option before scheduling.

If I have H. pylori, will I get cancer?

Not necessarily: only about 1% to 3% of infected people develop stomach cancer. Treating the bacterium is associated with a significant reduction in stomach cancer cases.

Someone in my household has H. pylori. Should I get tested?

Transmission among people in the same household is common, especially from mother to child and between siblings. It is worth discussing this with your doctor. The recommendation to test for and treat the bacterium is clearer for parents, siblings, and children of someone who has had stomach cancer.

References

  1. Katz PO, Dunbar KB, Schnoll-Sussman FH, et al. ACG Clinical Guideline for the Diagnosis and Management of Gastroesophageal Reflux Disease. Am J Gastroenterol. 2022.
  2. Coelho LGV, Sanches BSF, Maguilnik I, et al. (Brazilian Study Group on H. pylori and Microbiota / FBG). Vth Brazilian Consensus Conference on Helicobacter pylori Infection. Arq Gastroenterol. 2026.
  3. NIDDK/NIH. Symptoms & Causes of GER & GERD (Acid Reflux in Adults). NIDDK. 2020.
  4. Moayyedi P, Lacy BE, Andrews CN, et al. ACG and CAG Clinical Guideline: Management of Dyspepsia. Am J Gastroenterol. 2017.
  5. NIDDK/NIH. Treatment for GER & GERD (Acid Reflux in Adults). NIDDK. 2020.
  6. Uotani T, Graham DY. Diagnosis of Helicobacter pylori using the rapid urease test. Ann Transl Med. 2015.
  7. Wroblewski LE, Peek RM Jr, Wilson KT. Helicobacter pylori and gastric cancer: factors that modulate disease risk. Clin Microbiol Rev. 2010.
  8. Umar Z, Tang JW, Marshall BJ, et al. Rapid diagnosis and precision treatment of Helicobacter pylori infection in clinical settings. Crit Rev Microbiol. 2025.
  9. Kumar S, Patel GK, Ghoshal UC. Helicobacter pylori-Induced Inflammation: Possible Factors Modulating the Risk of Gastric Cancer. Pathogens. 2021.
  10. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK/NIH). Upper GI Endoscopy. NIDDK. 2023.
  11. NIDDK/NIH. Diagnosis of Peptic Ulcers (Stomach or Duodenal Ulcers) — H. pylori tests. NIDDK. 2022.
  12. NIDDK/NIH. Treatment for Peptic Ulcers (Stomach or Duodenal Ulcers) — H. pylori infection. NIDDK. 2022.
  13. Hvid-Jensen F, Pedersen L, Drewes AM, et al. Incidence of adenocarcinoma among patients with Barrett's esophagus. N Engl J Med. 2011.
  14. Shaheen NJ, Falk GW, Iyer PG, et al. Diagnosis and Management of Barrett's Esophagus: An Updated ACG Guideline. Am J Gastroenterol. 2022.
  15. NIDDK/NIH. Symptoms & Causes of Peptic Ulcers (Stomach or Duodenal Ulcers). NIDDK. 2022.
  16. Ness-Jensen E, Hveem K, El-Serag H, Lagergren J. Lifestyle Intervention in Gastroesophageal Reflux Disease. Clin Gastroenterol Hepatol. 2016.

Where we see patients

Rua Frei Caneca, 1380, térreo (Edifício Crystal Tower), Consolação, São Paulo-SP, CEP 01307-000, Brasil

View on map

Book via WhatsApp

Read also

Informational content. Does not replace a medical consultation.

Chat on WhatsApp

Updated on