Upper GI Endoscopy
Procedure
(Upper Gastrointestinal Endoscopy; Esophagogastroduodenoscopy [EGD])
Definition
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.
Copyright © 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:
- Smoking, alcohol use disorder, or drug use
- Long term health issues such as diabetes or obesity
- Bleeding disorders
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
Anesthesia
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.
American Gastroenterological Association
American Society for Gastrointestinal Endoscopy
CANADIAN RESOURCES:
Canadian Digestive Health Foundation
Health Canada
American Gastroenterological Association
American Society for Gastrointestinal Endoscopy
CANADIAN RESOURCES:
Canadian Digestive Health Foundation
Health Canada
References
- Understanding upper endoscopy. American Society for Gastrointestinal Endoscopy website. Available at: https://www.asge.org/list-pages/patient-informations/understanding-upper-endoscopy.
- Upper endoscopy. EBSCO DynaMed website. Available at: https://www.dynamed.com/procedure/upper-endoscopy.
- Upper GI endoscopy. National Institute of Diabetes and Digestive and Kidney Diseases website. Available at: https://www.niddk.nih.gov/health-information/diagnostic-tests/upper-gi-endoscopy.
- 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.
(C) Copyright 2023 EBSCO Information Services
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.
To send comments or feedback to our Editorial Team regarding the content please email us at healthlibrarysupport@ebsco.com.