scroll to top
Loading icon
Health Information Center
Press enter or spacebar to select a desired language.

Upper GI Endoscopy

  • Amy Scholten, MPH
Publication Type:


Upper GI Endoscopy

(Upper Gastrointestinal Endoscopy; Esophagogastroduodenoscopy [EGD])


An upper GI endoscopy is a test that lets the doctor see inside the throat, esophagus, and stomach. The upper part of the small intestines may also be checked. It is done with a flexible tube called an endoscope.

Upper GI Endoscopy

Nucleus factsheet image\\hgfiler01a\intellect\images\si55551738.jpgNULL13NULL2008-11-072533907396_43818Copyright © Nucleus Medical Media, Inc.

Reasons for Test

This procedure is done to help diagnose the causes of:

  • Unexplained belly pain
  • Severe heartburn
  • Lasting nausea and vomiting
  • Difficulty swallowing
  • Blood in stool or vomit
  • Abnormal x-ray or other tests of the digestive tract

An upper GI endoscopy may also be done to look for:

  • Ulcers
  • Tumors
  • Polyps
  • Abnormal narrowing
  • Swelling

Possible Complications

Problems are rare, but all procedures have some risk. The doctor will go over some problems that could happen, such as:

  • Excess bleeding
  • Problems from anesthesia
  • Infection
  • Damage to the esophagus, stomach, or intestine

Things that may raise the risk of problems are:

What to Expect

Prior to test

The care team may meet with you to talk about:

  • Anesthesia options
  • Any allergies you may have
  • Current medicines, herbs, and supplements that you take and whether you need to stop taking them before the procedure
  • Fasting before surgery, such as avoiding food or drink after midnight the night before
  • Whether you need a ride to and from the procedure


The doctor will give:

  • Medicine to numb the throat
  • A sedative—you will feel relaxed

Description of the Test

The endoscope will be put into the mouth. It will be passed through the esophagus and stomach until it reaches the small intestine. Images will be seen on a nearby monitor. Air may be passed through the scope. This helps the doctor view the area.

Tiny tools may be passed through the endoscope if they are needed. They can be used to take a sample of tissue for testing or do other procedures.

How Long Will It Take?

About 10 to 15 minutes

Will It Hurt?

Throat pain and bloating are common in the first few days. Medicine and self care can help.

Average Hospital Stay

Most people can go home the same day. If other procedures were done during the upper GI endoscopy, you may need to stay longer.

Post-procedure Care

At the Care Center

The staff may give you something to eat and drink.

At Home

It will take a few hours to recover. Most can resume their diet.

Problems to Look Out For

Call your doctor if you have:

  • Signs of infection, such as fever or chills
  • Severe belly pain
  • Hard, swollen belly
  • Black, tar-like stools or bloody stools
  • Vomiting blood
  • Symptoms that are new or are getting worse

If you think you have an emergency, call for medical help right away.





  • Understanding upper endoscopy. American Society for Gastrointestinal Endoscopy website. Available at:
  • Upper endoscopy. EBSCO DynaMed website. Available at:
  • Upper GI endoscopy. National Institute of Diabetes and Digestive and Kidney Diseases website. Available at:
  • Volkan, B., Bayrak, N.A., et al. Preparatory information reduces gastroscopy-related stress in children as confirmed by salivary cortisol. Saudi Journal of Gastroenterology, 2019; 25 (4): 262-267.
Last Updated:

This content is reviewed regularly and is updated when new and relevant evidence is made available. This information is neither intended nor implied to be a substitute for professional medical advice. Always seek the advice of your physician or other qualified health provider prior to starting any new treatment or with questions regarding a medical condition.