What Is an EGD?

Table of Contents
View All
Table of Contents

An esophagogastroduodenoscopy (EGD), often referred to as an upper endoscopy, is an invasive procedure that can help in evaluating and managing several conditions that involve the upper gastrointestinal (GI) tract—which is composed of the esophagus, stomach, and upper portion of the small intestine. Using the mouth and throat for access, a fiberoptic endoscope equipped with a camera is used to visualize your upper GI tract, obtain a biopsy, or treat gastrointestinal conditions.

what to expect during an EGD

 Verywell / Emily Roberts

What Is EGD?

An EGD can be an intervention, a diagnostic tool, or both. This procedure may be part of your medical care if your healthcare provider needs access to your upper GI tract's lumen, which is the inside of this continuous GI tube. Children and adults can have this procedure.

An EGD utilizes an endoscope that is advanced from the mouth down to the GI tract. The endoscope is thin and flexible, and it has a camera and microsurgical tools attached. The camera is used to view the inner lining of the lumen, and your healthcare provider might also take pictures or record a video of the region to help with diagnosis and future treatment planning. The surgical tools can be used to remove and repair defects and disease.

Your EGD may include one or more of the following components:

  • Esophagoscopy: Reaches inside of the esophagus
  • Gastroscopy: Extends to the inside of the stomach
  • Duodenoscopy: Accesses the inside of the duodenum, the first part of the small intestine

An EGD does not visualize the upper GI system from the outside and does not provide reliable information about the lungs, liver, spleen, or other nearby organs.


Your healthcare provider might recommend that you postpone having an upper endoscopy if you have an active pulmonary disease such as asthma, severe exacerbations of COPD or severe heart disease that make anesthesia difficult, or an infection in the nose, throat or pulmonary system, especially if the procedure is being done for diagnostic purposes. Cancer of the neck or oral cavity may hinder the scope's passage into the esophagus—but having cancer doesn't prevent one from undergoing a EGD.

Potential Risks

Generally, complications are mild and become apparent during the procedure or within a few days. An EGD may result in serious complications, but they are uncommon.

Abrasion or a tear of the inner lining of your esophagus, stomach, or small intestine can cause bleeding. This can heal on its own if the abrasion is small. If it is larger, it can cause blood loss and might need to be repaired during your EGD procedure or later on.

The intervention can also cause a puncture in your upper GI tract, which could lead to serious bleeding or a life-threatening gastric fluid leak that would require urgent repair.

Cardiac or respiratory effects of the anesthesia are also possible, especially for people who have severe underlying heart or lung disease.

Complications are more likely if you already have a major upper GI disorder prior to the procedure, such as a bleeding ulcer or a large tumor. Additionally, a therapeutic EGD causes more tissue disruption than a diagnostic EGD and is more likely to cause complications.

Purpose of an EGD

An EGD may be done for diagnostic or therapeutic reasons, depending on your condition.

Your healthcare provider may recommend an EGD if you have any of the following symptoms:

  • Swallowing difficulties (dysphagia)
  • Painful swallowing (odynophagia)
  • Excessive or persistent vomiting
  • Hematemesis (vomiting blood) or hemoptysis (coughing up blood)
  • Heartburn
  • Excessive or unusual burping
  • A bitter taste in your mouth
  • Indigestion
  • Abdominal pain
  • Chest pain
  • Weight loss
  • Unexplained anemia (low red blood cell function)

Visualizing the lumen can help identify their cause, which may be otherwise unclear based on presentation alone.

You may also need to have an EGD if you've already had an abdominal X-ray, ultrasound, or computed tomography (CT scan) suggesting an abnormality of your upper GI tract lumen. Typically, imaging tests can visualize the anatomic structure of the upper GI system and nearby organs, but they do not provide a view of the appearance of the inner lining itself. This makes an upper endoscopy a useful adjunct when used along with imaging tests.

EGD is also considered when the medical history and physical examination suggest the possibility of a lesion in the lumen that could not be well-visualized with a less invasive test (like an imaging test).

Additionally, if you've ingested a foreign body or a caustic substance, then EGD may be indicated.

As a diagnostic tool, EGD is also useful when it's the easiest and safest way to obtain a biopsy. During the procedure, your healthcare provider may collect one or more tissue samples so they can be examined under a microscope.

Conditions that may be diagnosed or treated with EGD include:

When being done for treatment purposes, your healthcare provider may do any of the following depending on the condition you have:

EGD has also been used in the treatment of severe obesity as one of the alternatives to other types of weight loss surgery. This procedure involves techniques such as reducing the size of the stomach using an endoscopic approach to place sutures rather than by using an abdominal incision.

How to Prepare

Before your EGD, your healthcare provider may order imaging tests ahead of time to help plan your procedure.


An EGD is typically done in an endoscopy suite, which is a special procedure room. It may be located in the hospital, a surgical center, or an outpatient clinic.

You should be prepared to spend several hours at your EGD appointment and to rest for the remainder of the day after your procedure.

What to Wear

You will need to change into a gown, so what you wear to the appointment won't affect your procedure. However, since you might feel a little bloated after your EGD, you may want to consider wearing clothes that are not restrictive on your abdominal area.

Food and Drink

You will be asked to stop eating and drinking for approximately eight hours prior to your EGD. You may be permitted to drink clear liquids up to five hours prior to your appointment, and your medical team will give you more detailed instructions if there are special considerations that you need to be aware of based on your specific condition.


If you are taking blood thinners, your healthcare provider may give you instructions to stop taking them for a few days before the test. And you might also be given instructions to adjust the dose of steroids or other anti-inflammatory medications that you might be taking.

Cost and Health Insurance

Your health insurance plan may require a pre-authorization to approve payment, and the facility where you will have the procedure will take care of that step.

You may have to pay a co-pay, and you can find out your portion of the cost from your health insurance company and the facility where you will have your procedure done.

If you are paying for your EGD out of pocket, you can expect the cost to range between $1,000 and $3,000.

What to Bring

You should bring your EGD order form that was given to you by your healthcare provider, your health insurance card, a form of personal identification, and a means to pay your portion.

Because you will need to have sedation for your EGD, you should make sure that you have someone who will drive you home after the procedure.

Pre-Op Lifestyle Changes

Your healthcare provider might advise dietary modifications for several weeks prior to your EGD. For example, you might be instructed to avoid gluten if there is a concern that you could have celiac disease.

What to Expect on the Day of Your EGD

When you check-in for your EGD, you will be asked to fill out some forms, including a consent form, authorization for payment, and a patient privacy form.

An EGD is usually performed by a gastroenterologist, a healthcare provider specialized in treating diseases of the gastrointestinal system. A nurse or technician will assist with the procedure.

Before the Procedure

Sometimes, there is a pre-operative area where you can change into a gown before your procedure. But often, patients do this in the procedure suite. If you have them, dentures or partial plates should be removed so the numbing medicine can reach all areas of the mouth and to avoid damage from the endoscope.

Your heart rate, blood pressure, respiratory rate, and oxygen level will be monitored throughout your procedure. You will have a pulse oximeter placed on your finger that measures oxygen saturation and pulse, and a blood pressure cuff will be placed on your arm.

You will need to have intravenous (IV) sedation as well as local numbing medicine administered to your throat to prevent discomfort and gagging.

A nurse will place an IV line in your hand or arm; you should feel an initial pinch, but no pain thereafter. The IV medication will then be injected, which will make you sleepy and relaxed. While the drug itself won't put you to sleep, it's not uncommon to fall asleep during this procedure.

Your throat will then be sprayed with the medicine, which will have a numbing effect for about 30 to 45 minutes.

You will be given a protective device to put into in your mouth to protect your teeth from the endoscope. You will then be positioned so that you lie on your left side.

During the Procedure

When you are adequately relaxed, you will be asked to swallow once or twice during the initial period of insertion of the endoscope. The tube will not interfere with your ability to breathe and is only mildly uncomfortable following the initial insertion.

You should not feel any discomfort during your EGD, and you shouldn't be able to feel any pain or notice incisions from techniques such as biopsy or tumor resection.

You may experience a feeling of fullness in your abdomen as the healthcare provider injects a moderate amount of air to expand your stomach, allowing for better visualization. Pictures or videos may be taken of the inside of your digestive tract to monitor abnormalities and for treatment planning.

A biopsy may be taken for examination. If so, you will have stitches placed in the wound to stop bleeding and hasten healing.

If you are having your EGD for treatment of a gastrointestinal condition, electrosurgical instruments attached to the endoscope will be used as planned.

You might have diagnostic and therapeutic aspects of your EGD. And your healthcare provider may decide on some therapeutic approaches during your procedure based on the observations made while you are having your EGD.

After the Procedure

After the endoscope is removed, your medical team will let you know that your procedure is complete. You may not recall the procedure because of the effect of the sedation.

You will need to recover and wait until you are awake and alert before being discharged. In the meantime, you might have vital signs like your blood pressure and pulse monitored.

Be sure to let your medical team know if you have discomfort or pain.

Your healthcare provider will either discuss the results of your upper endoscopy with you immediately after the procedure or may schedule another appointment to do so and devise a plan, especially if you had a biopsy. This may take several days or weeks. Be sure you're clear on the timeline before leaving.


You should expect to feel groggy for several hours after your EGD. You may have a slightly sore throat after the procedure, which should last for approximately 24 hours.

Follow your healthcare provider's instructions for resuming eating and drinking following the procedure. When you do, it's a good idea to eat or drink slowly. Cool liquids and soft foods are best; avoid anything extremely hot or spicy.

Advance your diet slowly and don't push yourself to eat more than you can handle too soon. You should be able to tolerate regular food within a week.


Recovery from the endoscopy should take no more than a few days. If your throat discomfort lasts for longer than that, if you experience worsening pain or trouble swallowing, or if you develop swelling in the back of your throat, call your healthcare provider.

Get emergency medical attention if you develop unusual or severe abdominal pain or bleeding following the procedure. Dark-colored stools or coughing, spitting, or vomiting blood are signs to watch for. Lightheadedness or dizziness can signal severe blood loss and also requires urgent medical attention.

Long-Term Care

You shouldn't need long-term care because of an EGD procedure specifically. But you may need treatments to manage issues that are detected during an EGD.

Treatments might include chemotherapy and radiation therapy for cancer, surgery for a hernia, or anti-inflammatory medication for Crohn's disease.

Possible Future Surgeries

In general, you should not need to have EGD procedures routinely repeated. But if your symptoms unexpectedly worsen or you develop new symptoms, your healthcare provider may want you to have another EGD to investigate the cause—which could be yet unidentified.

Lifestyle Adjustments

Depending on your condition, you might have to make some dietary changes. For example, your healthcare provider or a dietitian may recommend avoiding acidic foods that exacerbate an ulcer. Or you might need to limit your meals to small amounts if you have a chronic problem with upper GI constriction.

And if you've had an EGD for the treatment of obesity, you will need to limit calories to maintain the benefits long term.

Keep in mind that each GI condition is managed by its own special diet. There is no one-size-fits-all strategy.

A Word From Verywell

An EGD can be an important part of the diagnosis and management of diseases of the upper GI tract. The procedure is generally well tolerated with a recovery that doesn't normally take longer than a few days.

If you have a short-term or chronic upper GI condition that requires an EGD, don't hesitate to ask your healthcare provider and your medical team to explain the results of your EGD so you can understand what is going on with your health.

Frequently Asked Questions

  • How long does an EGD test take?

    It takes about 30 to 60 minutes for your doctor to examine the esophagus, stomach, and duodenum during EGD endoscopy.

  • Are there side effects after an EGD?

    For up to 24 hours after the procedure, you have a mild sore throat, some bloating, gas, or slight cramping. Some people also feel nauseated by the anesthesia. If these symptoms last more than a day, contact your doctor.

  • How soon can you eat or drink after an endoscopy?

    Your doctor will give you specific directions based on your procedure. In most cases, you can return to eating light food shortly after the endoscopy. If you have throat pain or residual effects of local anesthesia, you may need to wait until pain or numbness passes before you eat.

Was this page helpful?
8 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Aydin M, Niggeschmidt J, Ballauff A, Wirth S, Hensel KO. Common indications and the diagnostic yield of esophagogastroduodenoscopy in children with gastrointestinal distress. Klin Padiatr. 2019;231(1):21-27. doi:10.1055/a-0628-7001

  2. Lui TK, Tsui VW, Leung WK. Accuracy of artificial intelligence-assisted detection of upper GI lesions: a systematic review and meta-analysis [published online ahead of print, 2020 Jun 17]Gastrointest Endosc. 2020;S0016-5107(20)34459-X. doi:10.1016/j.gie.2020.06.034

  3. Watanabe J, Ikegami Y, Tsuda A, et al. Lidocaine spray versus viscous lidocaine solution for pharyngeal local anesthesia in upper gastrointestinal endoscopy: systematic review and meta-analysis [published online ahead of print, 2020 Jun 22]Dig Endosc. 2020;10.1111/den.13775. doi:10.1111/den.13775

  4. American Society for Gastrointestinal Endoscopy. Understanding upper endoscopy.

  5. Muthusamy VR, Lightdale JR, Acosta RD, et al. The role of endoscopy in the management of GERD. Gastrointest Endosc. 2015;81(6):1305-10. doi:10.1016/j.gie.2015.02.021

  6. Stier C, Balonov I, Stier R, Chiappetta S, Fuss CT, Dayyeh BA. Endoscopic management of clinically severe obesity: Primary and secondary therapeutic procedures [published online ahead of print, 2020 Jun 3]Curr Obes Rep. 2020;10.1007/s13679-020-00385-y. doi:10.1007/s13679-020-00385-y

  7. American Gastroenterological Association. Upper GI endoscopy.

  8. Johns Hopkins Medicine. Esophagogastroduodenoscopy (EGD).