Find Information About:

Drugs & Supplements

Get information and reviews on prescription drugs, over-the-counter medications, vitamins, and supplements. Search by name or medical condition.

Pill Identifier

Pill Identifier

Having trouble identifying your pills?

Enter the shape, color, or imprint of your prescription or OTC drug. Our pill identification tool will display pictures that you can compare to your pill.

Get Started

My Medicine

Save your medicine, check interactions, sign up for FDA alerts, create family profiles and more.

Get Started

WebMD Health Experts and Community

Talk to health experts and other people like you in WebMD's Communities. It's a safe forum where you can create or participate in support groups and discussions about health topics that interest you.

  • Second Opinion

    Second Opinion

    Read expert perspectives on popular health topics.

  • Community


    Connect with people like you, and get expert guidance on living a healthy life.

Got a health question? Get answers provided by leading organizations, doctors, and experts.

Get Answers

Sign up to receive WebMD's award-winning content delivered to your inbox.

Sign Up

Heartburn/GERD Health Center

Select An Article

Upper Endoscopy for Diagnosing Heartburn and Reflux

Font Size

An upper endoscopy can be used to determine the cause of heartburn and is often performed as an outpatient procedure. Upper endoscopy uses a thin scope with a light and camera at its tip to look inside of the upper digestive system -- the esophagus, stomach, and the first part of the small intestine, called the duodenum. During endoscopy, certain procedures such as taking a small tissue sample (biopsy) for testing may be performed.

Sometimes, the procedure is done in emergencies in the hospital or emergency room to both identify and treat upper digestive system bleeding such as from an ulcer.

Recommended Related to Heartburn/GERD

Treating Heartburn With Surgery

For most people, heartburn is a treatable symptom. Frequent heartburn may indicate acid reflux or gastroesophageal reflux disease, also known as GERD. When treatment doesn't work and heartburn is severe despite lifestyle changes, surgery may be an option. It may also be an option if GERD causes other medical problems. Minimally invasive procedures using endoscopy are also available to treat acid reflux.

Read the Treating Heartburn With Surgery article > >

In addition to heartburn, the procedure may also be used to help evaluate:

Endoscopy can also help identify inflammation, ulcers, and tumors.

Upper endoscopy can be more accurate than X-rays or other imaging for detecting abnormal growths and for examining the inside of the upper digestive system.

What Should I Do Before an Upper Endoscopy?

Before the upper endoscopy, tell your doctor about any medications (including over-the-counter) or supplements you are taking and about any medical problems or special conditions you have. You may be asked to hold off on certain medications or supplements prior to the procedure or afterward.

Can I Eat or Drink Anything Before an Upper Endoscopy?

An upper endoscopy requires that you have an empty stomach before the procedure. Do not eat or drink anything for at least six hours before the procedure, or as directed by your doctor or nurse.

Talk to your doctor about any changes that may be needed to your regular medication regimen. Ask if necessary medications may be taken with a small sip of water.

I Have Diabetes. Can I Take Insulin the Day of my Upper Endoscopy?

If you have diabetes and use insulin, you must adjust the dosage of insulin the day of your upper endoscopy. Ask your doctor for details. Bring your diabetes medication if your doctor recommends that you take it after the procedure.

Will I Be Able to Drive Home Following my Upper Endoscopy?

No. You will need to bring a responsible adult with you to take you home after the endoscopy. You should not drive or operate machinery for the rest of the day of the procedure to ensure that the sedative effects have worn off.

Next Article:

Today on WebMD

Woman eating pizza
How it starts, and how to stop it.
man with indigestion
Get lifestyle and diet tips.
woman shopping for heartburn relief
Medication options.
man with heartburn
Symptoms of both.
digestive health
Heartburn or Heart Attack
Top 10 Heartburn Foods
Is it Heartburn or Gerd
digestive myths
Extreme Eats
graphic of esophageal area