Stomach and liver

How Is GERD Diagnosed? Endoscopy, pH Tests and What to Expect

Most people are diagnosed from their symptoms and history, but some need tests such as endoscopy or pH monitoring. This article explains when and how.

3 min readUpdated 2 official sources

Dr. Ambed MishraGroup CEO, Scientist and Chief Medical Officer (CMO)Dr. Ambed Mishra

Educational information only, not medical advice. Always ask a qualified doctor about your own health. In an emergency call 112 (India) or 911 (the United States). Read the full disclaimer.

On this page
  1. Starting with symptoms and history
  2. When are tests recommended?
  3. Upper GI endoscopy
  4. Esophageal pH monitoring
  5. Possible risks of endoscopy
  6. When to see a doctor
  7. Common questions
  8. Sources
  9. About the author

If you have heartburn that keeps coming back, you may wonder whether you will need an endoscopy or other scans. For many people, the answer is no. This article explains how doctors usually reach a diagnosis and when extra tests are used, based on information from the US National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK).

Starting with symptoms and history

According to NIDDK, doctors usually diagnose gastroesophageal reflux (GER) and gastroesophageal reflux disease (GERD) from your symptoms and medical history. In many cases the doctor may suggest medicine and lifestyle changes first, without any testing. Being able to describe your symptoms clearly helps, for example when they happen, what seems to set them off and what you have already tried.

NIDDK says tests may be advised when:

  • A complication of GERD is suspected
  • Another condition could be causing similar symptoms
  • Symptoms do not improve with treatment

Your doctor may also refer you to a gastroenterologist, a doctor who specialises in the digestive system.

Upper GI endoscopy

In an upper GI endoscopy, a doctor passes a flexible tube with a camera on the end through the mouth to look at the food pipe, stomach and the first part of the small intestine (the duodenum). NIDDK explains that this test can check for complications or for other causes of your symptoms. The doctor may also take small tissue samples (biopsies), which a pathologist later examines under a microscope.

Some practical points from NIDDK's page on the test:

  • You will usually be asked not to eat or drink for up to 8 hours beforehand, or to follow the specific instructions you are given.
  • Tell the doctor about all your medicines, vitamins and supplements, including aspirin, NSAIDs and blood thinners. Some may need to be adjusted or paused, but only on your doctor's advice.
  • You may get a sedative through a vein, and a throat spray or gargle may be used to reduce gagging.
  • The test usually takes 10 to 20 minutes, and you will normally stay about an hour while the sedative wears off.
  • Arrange for someone to take you home, because you cannot drive after sedation.

Esophageal pH monitoring

NIDDK describes pH monitoring as the most accurate way to detect stomach acid in the food pipe. There are two main kinds:

  • Catheter monitoring: a thin tube is passed through the nose into the food pipe to measure acid and non-acid reflux.
  • Capsule monitoring: during an endoscopy, a small wireless capsule is attached to the lining of the food pipe to measure acid reflux.

The person wears a monitor that records their diet, sleep and symptoms alongside the readings. Doctors use this test to confirm GERD or to check whether treatment is working.

Possible risks of endoscopy

NIDDK says the overall risk of upper GI endoscopy is low. Possible problems include a reaction to the sedative, bleeding, and, rarely, a hole (perforation) in the lining of the digestive tract. Bleeding is usually minor and stops by itself.

When to see a doctor

See a doctor if you suspect GERD or your symptoms continue despite over-the-counter medicines or lifestyle changes. NIDDK also lists warning signs that need prompt attention: chest pain, loss of appetite, repeated vomiting, trouble or pain with swallowing, vomit that contains blood or looks like coffee grounds, black or bloody stools, and unexplained weight loss.

After an endoscopy, NIDDK advises seeking care right away for trouble breathing, worsening swallowing problems or throat pain, vomiting blood, worsening chest or belly pain, black or bloody stools, or fever.

In an emergency, call your local emergency number (112 in India, 911 in the United States).

Common questions

Do I need an endoscopy for heartburn?

Not always. NIDDK says doctors usually diagnose GERD from symptoms and history, and tests are recommended mainly when a complication is suspected, another condition is possible, or treatment is not helping.

What is esophageal pH monitoring?

NIDDK calls it the most accurate way to detect stomach acid in the food pipe. It uses either a thin tube through the nose or a small wireless capsule placed during endoscopy.

How long does an upper endoscopy take?

NIDDK says it usually takes 10 to 20 minutes, and people normally stay about an hour afterwards while any sedative wears off.

Is upper endoscopy safe?

NIDDK describes the overall risk as low. Possible risks include a sedative reaction, bleeding and, rarely, a perforation of the digestive tract lining.

Important: please read

  • Educational information only. This article is general health education. It is not medical advice, diagnosis or treatment. Reading it does not create a doctor–patient relationship with MyDoctor or with anyone else.
  • Ask a qualified doctor. Always talk to a qualified, registered doctor about your own health. In India, that means a doctor registered with the National Medical Commission (NMC) or a State Medical Council. In the United States, a licensed physician. Elsewhere, a doctor licensed where you live.
  • Never ignore or delay professional advice because of something you read here. Do not start, stop or change any medicine or treatment without your doctor.
  • Emergencies: call 112 in India, 911 in the United States, or your local emergency number. Do not wait for an online answer.
  • No product is endorsed. MyDoctor does not recommend any brand, product or supplement in this article.
  • About the sources. This article summarizes, in our own words, information from the public health bodies named under Sources. Health knowledge changes, and this summary may not reflect the latest research or your personal situation.
  • Liability. To the extent permitted by law, MyDoctor (MODERNUS HEALTH TECHNOLOGIES PRIVATE LIMITED) accepts no liability for any decision made on the basis of this content.

Full disclaimer · Privacy and terms

Sources

  1. NIH NIDDK. Acid Reflux (GER & GERD) in Adults - NIDDK www.niddk.nih.gov
  2. NIH NIDDK. Upper GI Endoscopy - NIDDK www.niddk.nih.gov

MyDoctor, Modernus Health Technologies Private Limited. mydoctor.social Contact MyDoctor about queries or partnerships

Dr. Ambed Mishra
Group CEO, Scientist and Chief Medical Officer (CMO)

Dr. Ambed Mishra

  • Healthcare technology
  • AI in healthcare
  • Clinical science
  • Patient care
  • Hospital and clinic operations
  • United States and India healthcare
MyDoctormydoctor.social

MyDoctor and MODERN US HEALTH (MODERN US GROUP) · United States: Austin, Texas

Dr. Ambed Mishra is the Group CEO, Scientist and Chief Medical Officer of MyDoctor and MODERN US HEALTH (MODERN US GROUP). A clinician-scientist with two doctorates, specializing in Community Medicine and Psychiatry with hospital-based research, he brings more than 10 years of patient care in the United States and clinical research in India. He leads MyDoctor's strategy, growth and clinical science across the United States and India, building one Deep Tech platform that connects hospitals, clinics, doctors, pharmacists, nurses and patients.

Read full profile →

The author's office answers questions about articles, research, speaking and collaboration. It cannot give personal medical advice.

Share:WhatsAppLinkedInX

More from Stomach and liver

See all →
Stomach and liver

Coeliac disease and gluten: symptoms, testing and a gluten-free diet

Coeliac (celiac) disease is a lifelong immune condition triggered by gluten. This article explains symptoms, who is at risk, how it is diagnosed and how a gluten-free diet is used.

5 min read · 20 Oct 2026
Stomach and liver

Peptic ulcers and H. pylori: symptoms, causes and treatment

A peptic ulcer is a sore in the lining of the stomach or the first part of the small intestine. This article covers causes, symptoms, tests, treatment and the warning signs of ble…

5 min read · 20 Oct 2026
Stomach and liver

Constipation in adults: causes, self-care and when to see a doctor

Constipation means passing stool less often than usual or with difficulty. This article explains causes, everyday self-care, the role of laxatives and the warning signs that need …

5 min read · 20 Oct 2026
Stomach and liver

Hepatitis B: how it spreads, how it is tested and how to prevent it

Hepatitis B is a viral liver infection that can be short-term or lifelong. This article explains how it spreads, how it is tested for, how it is managed and how vaccination preven…

6 min read · 20 Oct 2026
Stomach and liver

Fatty liver disease (MASLD): causes, tests and lifestyle care

Fatty liver disease happens when too much fat builds up in the liver. This article explains MASLD, its risk factors, how it is found, and the lifestyle steps that support liver he…

5 min read · 20 Oct 2026
Stomach and liver

Irritable bowel syndrome (IBS): symptoms, tests and self-care

Irritable bowel syndrome (IBS) is a common gut condition with recurring belly pain and changes in bowel habits. This article explains symptoms, triggers, how it is diagnosed and e…

6 min read · 20 Oct 2026
Register freeGet the app
One question

Who are you?

Tap one to continue. We show the right plans, prices and wording for you. Change it any time from the top of the page.

For me and my family
Healthcare professionals
Organizations
Saved on this device only. One tap is enough.

Essential cookies run MyDoctor. With your OK we also count visits (pages, time, source, city) to improve it. We never sell your data. Privacy policy