Skip to main content
        
        U.S. flag
                An official website of the United States government
                    Here’s how you know
                Here’s how you know**Official websites use .gov**
                        
                        A **.gov** website belongs to an official government organization in the United States.
            **Secure .gov websites use HTTPS**
                        
                        A **lock** (
                        Locked padlock icon
                        ) or **https://** means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.Search
    Menu

        Search for Information from NIDDK
            
            Entire Site
                Research & Funding
                Health Information
                News
                About NIDDKSearch

Home
            Research & Funding
                                Expand Research & Funding
                                Current Funding Opportunities
                                                    Research Programs & Contacts
                                                    Human Subjects Research
                                                    Funding Process
                                            Research Training & Career Development
                                                    Funded Grants & Grant History
                                                    Research Resources
                                            Research at NIDDK
                                                    Technology Advancement & Transfer
                                                    Meetings & Workshops
                        Health Information
                                Expand Health Information
                                Health Topics
                                                                                                    Diabetes
                                                    Digestive Diseases
                                                    Kidney Disease
                                                    Weight Management
                                                    Liver Disease
                                                    Urologic Diseases
                                                    Endocrine Diseases
                                                    Diet & Nutrition
                                                    Blood Diseases
                                                    Diagnostic Tests
                                            La información de la salud en español
                                                    Health Statistics
                                                    Healthy Moments Radio Broadcast
                                                    Clinical Trials
                                            For Health Professionals
                                                    Diabetes Discoveries & Practice Blog
                                                    Community Health & Outreach
                        News
                                Expand News
                                News Archive
                                                    For Reporters
                                            Meetings & Workshops
                                                    Media Library
                                            Follow Us
                        About NIDDK
                                Expand About NIDDK
                                Meet the Director
                                                    Offices & Divisions
                                                    Staff Directory
                                                    Budget & Legislative Information
                                            Advisory & Coordinating Committees
                                                    Strategic Plans & Reports
                                                    Research Areas
                                                    FAQs
                                            Jobs at NIDDK
                                                    Visit Us
                                                    Contact Us Home
                    Health Information
                    Diagnostic Tests
                    Upper GI Endoscopy

    Related Topics
    English
        English
                Español
        Diagnostic Tests
        A1C Test & Diabetes
                A1C Test & Race/Ethnicity
                Colonoscopy
                Cystoscopy & Ureteroscopy
                Endoscopic Retrograde Cholangiopancreatography (ERCP)
                Flexible Sigmoidoscopy
                Kidney Biopsy
                Liver Biopsy
                Lower GI Series
                Prostate Tests
                Thyroid Tests
                Upper GI Endoscopy
                Upper GI Series
                Urinary Tract Imaging
                Urodynamic Testing
                Virtual ColonoscopyUpper GI Endoscopy
**On this page:**
What is upper GI endoscopy?
    Does upper GI endoscopy have another name?
    Why do doctors use upper GI endoscopy?
    How do I prepare for an upper GI endoscopy?
    How do doctors perform an upper GI endoscopy?
    What should I expect after an upper GI endoscopy?
    What are some risks of upper GI endoscopy?
    Seek care right awayWhat is upper GI endoscopy?
Upper gastrointestinal (GI) endoscopy is a procedure in which a doctor uses an endoscope—a flexible tube with a camera—to see the lining, or inside surface, of your upper GI tract.
Does upper GI endoscopy have another name?
Doctors may also call the procedure endoscopy, upper endoscopy, or esophagogastroduodenoscopy (EGD).
Why do doctors use upper GI endoscopy?
Doctors use upper GI endoscopy to help diagnose and treat symptoms and conditions that affect the esophagus, stomach, and the first part of your small intestine, or duodenum.
Upper GI endoscopy can be used to
find the cause of unexplained symptoms, such as ongoing pain or heartburn,  vomiting, or problems swallowing
    identify diseases and health conditions, such as gastroesophageal reflux disease, celiac disease, or cancer and Barrett’s esophagus
    remove polyps or other growths
    treat bleeding from ulcers and other conditions
    perform certain weight-loss proceduresHow do I prepare for an upper GI endoscopy?
To prepare for an upper GI endoscopy, you will need to talk with your doctor, arrange for a ride home, and not eat or drink before the procedure.
Talk with your doctor
Talk with your doctor about your medical history. Your medical history includes any current or past health problems, allergies, or symptoms. Talk with your doctor about all prescription and over-the-counter medicines, vitamins, and supplements you take, including
aspirin or medicines that contain aspirin
    medicines for arthritis, diabetes, or blood pressure
    blood thinners
    iron supplements
    nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen and naproxenA woman talking with her doctor in a medical office.Before upper GI endoscopy, talk with your doctor about your medical history.
You can take most of your medicines as usual. However, you may need to adjust or stop some medicines for a short time before your upper GI endoscopy. Sometimes, your doctor may ask you to stop any blood thinners you are taking to decrease the chance of a problem with the procedure. Talk with your doctor about the specific medicines you take and if you need to change the routine you follow when taking your medicines before the procedure.
Before your procedure, make plans for your recovery. For safety reasons, arrange for a ride home after the procedure, as the sedatives or anesthesia need time to wear off before you drive.
Do not eat or drink before the procedure
To see your upper GI tract clearly, your doctor may ask you not to eat or drink for up to 8 hours before the procedure.1 Some people may be given additional instructions. Talk with your doctor about specific instructions.
How do doctors perform an upper GI endoscopy?
A doctor performs an upper GI endoscopy in a hospital or outpatient center.
Before the procedure, you will likely be given a sedative or a medicine to help you stay relaxed and comfortable during the procedure. A health care professional will place an intravenous (IV) needle in your arm or hand to give you the sedative. In some cases, you may not need a sedative.
A health care professional may also give you a liquid medicine to gargle or a spray medicine to numb your throat. These medicines can help prevent you from gagging during the procedure.
During the procedure, you’ll be asked to lie on your side on an exam table. The doctor will carefully pass the endoscope down your esophagus and into your stomach and duodenum. The endoscope can fill your stomach and duodenum with air, making the organs easier to see. A small camera mounted on the endoscope will send a video image to a monitor. The doctor will closely examine the lining of your upper GI tract on the monitor.
During the upper GI endoscopy, the doctor may
take small samples of tissue, cells, or fluid in your upper GI tract for testing. The doctor will pass small tweezers through the endoscope to take the samples, and you will not feel it.
    stop any bleeding.
    perform other procedures, such as opening up narrow sections of the esophagus.The upper GI endoscopy typically takes between 10 to 20 minutes.1The endoscope does not interfere with your breathing. Many people fall asleep during the procedure.
What should I expect after an upper GI endoscopy?
After an upper GI endoscopy, the sedatives take time to wear off. You can expect to stay at the hospital or outpatient center for about an hour after the procedure.1 Some people may need to stay at the hospital overnight.2 You may experience bloating, nausea, or a sore throat for a short time.
After the sedatives wear off, a health care professional will give you—or a friend or family member who is with you—instructions on how to care for yourself when you are home. You should follow all instructions. Because you won’t be able to drive after the procedure, you’ll need your prearranged ride home.
Some results from an upper GI endoscopy are available right away. Your doctor may share these results with you or, if you choose, with your friend or family member.
If your doctor took samples of tissue, cells, or fluid during the procedure, a pathologist will examine the samples. These results can take a few days or longer to come back. A health care professional will call you or schedule an appointment to go over the results.
What are some risks of upper GI endoscopy?
The risks from an upper GI endoscopy are low. Risks may include3
a reaction to the sedative, including breathing or heart problems
    a perforation, or hole, in the lining of your upper GI tract
    bleedingBleeding is typically minor and stops without treatment. Your doctor can treat a reaction to a sedative with medicines or IV fluids during or after the procedure. Serious problems, such as perforation, are rare. Your doctor may need to perform surgery to treat some complications.
Seek care right away
If you have any of the following symptoms after an upper GI endoscopy, seek medical care right away
problems breathing
    problems swallowing or throat pain that gets worse
    vomiting—particularly if your vomit is bloody or looks like coffee grounds
    pain in your chest or abdomen that gets worse
    bloody or black, tar-colored stool
    feverReferences
[1] Cohen J. Patient education: upper endoscopy (beyond the basics). UpToDate. Updated October 19, 2022. Accessed June 7, 2023. www.uptodate.com/contents/upper-endoscopy-beyond-the-basics
[2] Balzora S. Upper GI endoscopy (EGD). American College of Gastroenterology. Published September 2018. Accessed June 7, 2023. https://gi.org/topics/upper-gi-endoscopy-egd
[3] Waddingham W, Kamran U, Kumar B, Trudgill NJ, Tsiamoulos ZP, Banks M. Complications of diagnostic upper gastrointestinal endoscopy: common and rare—recognition, assessment and management. *BMJ Open Gastroenterology*. 2022;9(1):e000688. doi:10.1136/bmjgast-2021-000688        Last Reviewed October 2023
Sharethis page

Print
    Facebook
    X
    Email
    
    More Options
    
    WhatsApp
    LinkedIn
    Reddit
    Pinterest
    
    Copy Link
                
                This content is provided as a service of the National Institute of Diabetes and Digestive and Kidney Diseases
(NIDDK), part of the National Institutes of Health. NIDDK translates and disseminates research findings to increase knowledge and understanding about health and disease among patients, health professionals, and the public. Content produced by NIDDK is carefully reviewed by NIDDK scientists and other experts.
    NIDDK would like to thank:
Nicholas J. Shaheen, M.D., University of North Carolina School of Medicine Contact Us
**Hours:** 8:30 a.m. to 5 p.m. ET, Monday - Friday**Email:** healthinfo@niddk.nih.gov**Phone:** +1-800-860-8747**TTY:** +711
Chat
Live Chat Available8:30 a.m - 5 p.m. ETMonday - Friday
Follow Us
LinkedIn
X
Facebook
YouTube
InstagramNIH... Turning Discovery Into Health ®
Privacy Policy
    Freedom of Information Act
    Accessibility
    Disclaimers
    Copyright
    Vulnerability Disclosure Policy
Site Map
    For Staff Only
    Get Email Updates
U.S. Department of Health and Human Services
    National Institutes of Health