Esophagogastroduodenoscopy (EGD), commonly called upper endoscopy, is a medical procedure that allows doctors to visually examine the inside of the upper digestive system using a flexible tube with a camera. This diagnostic tool helps identify and sometimes treat various digestive conditions, from acid reflux to ulcers, offering patients clear answers when symptoms become worrisome or persistent.
An esophagogastroduodenoscopy is a procedure that sounds far more complicated than it actually is. Breaking down the medical term makes it easier to understand: “esophago” refers to the esophagus or swallowing tube, “gastro” means stomach, and “duodeno” refers to the duodenum, which is the first part of the small intestine. The “scopy” part simply means examination with a visual instrument. Together, this procedure examines three critical areas of the upper digestive tract using a specialized camera system.[1]
During the procedure, a specially trained doctor called a gastroenterologist—a physician who specializes in diseases of the digestive system—guides a thin, flexible tube called an endoscope through the patient’s mouth and down into the digestive tract. The endoscope has a tiny camera and light at its tip, allowing the doctor to see detailed images of the esophagus, stomach, and duodenum on a computer screen. This direct visualization helps identify problems that might not show up clearly on X-rays or other imaging tests.[2]
Who Needs an Upper Endoscopy
Doctors recommend an upper endoscopy when patients experience symptoms that suggest something might be wrong with their upper digestive system. These symptoms can be quite varied and sometimes frightening, making it important to investigate their underlying causes thoroughly.[3]
Common symptoms that might lead to an EGD include persistent abdominal pain, especially when it occurs in the upper part of the belly. Some people experience nausea and vomiting that doesn’t seem to go away, or they might have difficulty swallowing foods or liquids, a condition doctors call dysphagia. Weight loss without trying, chronic heartburn, or chest pain that isn’t related to the heart are also reasons to consider this examination. More alarming symptoms like vomiting blood or passing black, tarry stools require immediate medical attention and often necessitate an urgent endoscopy.[1][2]
Sometimes doctors order an upper endoscopy even when symptoms aren’t severe. For instance, patients with chronic acid reflux disease might need regular monitoring to check for changes in the esophagus lining. Those with unexplained anemia—a condition where the blood doesn’t have enough healthy red blood cells—might need an endoscopy to look for bleeding in the digestive tract. People with a family history of digestive cancers or those who have swallowed caustic substances also benefit from this examination.[3]
What Conditions Can EGD Diagnose
The upper endoscopy is remarkably versatile in identifying various digestive problems. By providing a direct, real-time view of the upper digestive tract, it often proves more accurate than X-rays or other indirect imaging methods for detecting abnormalities.[1]
One of the most common conditions diagnosed through EGD is gastroesophageal reflux disease or GERD, where stomach acid regularly backs up into the esophagus. The procedure can reveal inflammation of the esophagus lining called esophagitis, or inflammation in the stomach and duodenum known as gastritis and duodenitis. Doctors can identify stomach ulcers, which are painful sores in the stomach lining, or duodenal ulcers in the first part of the small intestine.[2]
More serious conditions can also be detected during an upper endoscopy. Barrett’s esophagus, a condition where the esophagus lining changes due to chronic acid exposure, can be identified and monitored, as it carries a small risk of developing into cancer. The procedure helps diagnose celiac disease, where the small intestine is damaged by a reaction to gluten, and Crohn’s disease, an inflammatory bowel disorder. Swallowing disorders, structural problems like hiatal hernias where part of the stomach pushes into the chest, and both cancerous and noncancerous tumors can all be identified through this examination.[2]
In patients with liver disease, especially cirrhosis, the endoscopy helps detect swollen veins in the esophagus called varices, which can bleed dangerously. The procedure is also valuable for finding the source of unexplained bleeding in the upper digestive tract.[2]
Therapeutic Uses of Upper Endoscopy
While primarily diagnostic, an upper endoscopy isn’t just for looking—it can also treat certain problems. During the procedure, doctors can take tissue samples called biopsies to examine under a microscope for signs of disease. These tiny samples help diagnose conditions like cancer, infections, or inflammatory disorders without requiring separate surgical procedures.[1]
Gastroenterologists can attach small surgical instruments to the endoscope to perform minor procedures. They might stretch narrowed areas of the esophagus to make swallowing easier, remove polyps or small growths, or retrieve swallowed objects like coins or small toys. Bleeding areas can be treated by applying heat, injecting medication, or using special clips. Small holes in the digestive tract can sometimes be repaired, and medical devices like feeding tubes can be inserted through the endoscope.[1]
How to Prepare for an EGD
Proper preparation is essential for a successful upper endoscopy. The preparation process ensures safety during the procedure and allows doctors to see the digestive tract clearly without obstruction from food or liquids.[1]
The most important preparation requirement is fasting. Patients must avoid eating anything for at least six to eight hours before the procedure, though the exact timing may vary depending on when the appointment is scheduled. An empty stomach is critical because it prevents complications like vomiting during the procedure. If food comes back up while the endoscope is in place, there’s a small risk it could enter the lungs, a dangerous situation called aspiration. Clear liquids like water, clear broth, or black coffee may be allowed up to a few hours before the test, but patients should follow their doctor’s specific instructions carefully.[2][12]
Before the procedure, doctors will want to know about any allergies, existing medical conditions like heart disease or lung problems, and whether a patient is pregnant. This information helps the medical team take appropriate precautions to keep the patient safe. Because sedation is typically used, patients need to arrange for someone to drive them home afterward, as they won’t be able to drive safely themselves for several hours.[1]
On the day of the procedure, patients should wear comfortable, loose-fitting clothing and avoid wearing jewelry, makeup, or nail polish. Dentures must be removed before the endoscopy begins. The entire visit to the hospital or clinic usually takes less than an hour, though patients should expect to stay for additional time in the recovery area after the procedure is complete.[2]
What Happens During the Procedure
Understanding what happens during an upper endoscopy can help reduce anxiety. The procedure typically takes place in a hospital, outpatient surgery center, or specialized endoscopy unit, with the actual examination lasting only about five to twenty minutes.[2]
Throughout the procedure, medical staff monitor vital signs including breathing, heart rate, blood pressure, and oxygen levels. Small wires attached to the body connect to monitoring machines that track these measurements continuously. Most patients receive medication through an intravenous line (IV) in their hand or arm to help them relax. This sedation makes patients drowsy and comfortable, though they remain awake. Some patients receive deeper sedation or even general anesthesia depending on their medical needs or anxiety levels, though this is less common.[2][7]
Before inserting the endoscope, the medical team sprays a numbing medication on the back of the throat to prevent gagging and coughing. This spray might taste unpleasant and make swallowing feel strange, but these effects wear off quickly after the procedure. A plastic mouth guard is placed between the teeth to protect both the teeth and the delicate endoscope.[2]
Patients lie on their left side as the doctor gently guides the endoscope through the mouth, past the throat, and down the esophagus into the stomach and duodenum. The scope itself is flexible and designed to follow the natural curves of the digestive tract. Air is pumped through the endoscope to expand the digestive tract slightly, which allows for better visibility. This may cause some bloating or a feeling of fullness, but it’s temporary and harmless. Patients cannot feel biopsies being taken and often don’t remember much of the procedure due to the sedation.[2]
The endoscope doesn’t interfere with breathing, which continues normally throughout the examination. While some people worry about choking or not being able to breathe, the endoscope goes down the esophagus—the food tube—not the windpipe. The procedure might feel uncomfortable, but it shouldn’t be painful. If the doctor needs to take tissue samples or perform small treatments, these are done through instruments passed through channels in the endoscope.[12]
After the Procedure: Recovery and Care
Recovery from an upper endoscopy is typically quick and straightforward. After the examination is complete, patients are moved to a recovery area where medical staff monitor them as the sedation wears off. This recovery period usually lasts thirty minutes to an hour, during which patients gradually become more alert.[1]
Because of the throat numbing spray used during the procedure, patients cannot eat or drink immediately afterward. They must wait until their gag reflex returns to normal to prevent accidentally choking on food or liquids. The medical team will test the gag reflex before allowing anything by mouth. Once it’s safe, patients can usually resume a normal diet, though starting with soft, bland foods might feel more comfortable.[2]
Some temporary side effects are normal after an upper endoscopy. The throat might feel scratchy or sore for a day or two, similar to having a mild sore throat. Many patients feel bloated from the air introduced during the procedure, but this gas passes quickly. Some people experience mild cramping or a feeling of fullness. These symptoms typically resolve within a few hours without any treatment.[2]
For the rest of the day after the procedure, patients should rest at home and avoid driving, operating machinery, or making important decisions. The sedation medication can affect judgment and reflexes even if patients feel alert. It’s best to have a quiet day with someone nearby in case any problems develop. Most people can return to normal activities, including work, the following day.[1]
Risks and Complications
Upper endoscopy is generally very safe, with serious complications occurring rarely. However, like any medical procedure, it does carry some small risks that patients should understand before consenting to the examination.[7]
The most common risks relate to the sedation medications used during the procedure. Some people may have reactions to these drugs, though the medical team carefully monitors for any problems. Rarely, sedation can affect breathing or blood pressure, but continuous monitoring allows staff to respond quickly if issues arise. People with certain medical conditions, particularly heart or lung disease, may face slightly higher risks from sedation.[7]
Though uncommon, the endoscope could cause a tear or hole in the esophagus, stomach, or duodenum. This serious complication called perforation happens very rarely, but it may require surgical repair if it occurs. Bleeding can happen, especially if a biopsy is taken or a polyp is removed, though significant bleeding is unusual. Patients taking blood-thinning medications face a somewhat higher bleeding risk, which is why doctors may adjust these medications before the procedure.[7]
Aspiration—when food, liquid, or saliva enters the lungs—is another potential risk, though proper fasting makes this very unlikely. Infection is possible but rare, as the equipment is carefully cleaned and sterilized between uses. Some people experience irregular heartbeats during the procedure, though these typically resolve without treatment.[2]
Certain conditions increase the risks associated with upper endoscopy. Patients who are medically unstable or who may have a perforation already present need special consideration. Those with bleeding disorders, pharyngeal diverticula (pouches in the throat), or recent head and neck surgery may face additional risks. Doctors weigh these risks against the benefits of the procedure when deciding whether to proceed.[7]
Understanding the Anatomy Examined
To appreciate what an upper endoscopy reveals, it helps to understand the anatomy of the upper digestive tract. The examination visualizes three main structures, each with distinct characteristics and functions.[3]
The esophagus is a muscular tube that carries food from the mouth to the stomach. In adults, it’s typically about 25 centimeters long, though in infants it measures only 9 to 10 centimeters. The esophagus sits behind the windpipe and extends from just below a piece of cartilage called the cricoid cartilage down to the stomach entrance. During endoscopy, doctors look for a color change from pale pink to reddish pink, which marks the transition between the esophagus and stomach lining. This junction is called the Z-line and is an important landmark for detecting conditions like Barrett’s esophagus.[3]
The stomach lies beneath the diaphragm—the muscle that separates the chest from the abdomen—and sits about 40 centimeters from the front teeth in adults. The area where the esophagus enters is called the cardiac region. Above this junction is a section called the fundus, which the doctor can see by bending the endoscope backward in a maneuver called retroflexion. The main part of the stomach is the body, which has characteristic folds called rugae that flatten out when the stomach expands. The lower part of the stomach, the antrum, has smoother walls without these folds. The muscular ring at the stomach’s exit, called the pylorus, controls the passage of food into the small intestine.[3]
The duodenum extends from the pylorus to a bend called the duodenojejunal angle. The first part, called the duodenal bulb, expands outward from the pylorus. The duodenum then curves in a C-shape: first turning backward and to the right, then downward for several centimeters, and finally forward and to the left before connecting to the rest of the small intestine at a landmark called the ligament of Treitz.[3]
Normal and Abnormal Findings
When all is well, the esophagus, stomach, and duodenum should appear smooth with normal coloring. The lining should be intact without bleeding, growths, ulcers, or inflammation. The structures should be the appropriate size and shape without narrowing or obstruction.[2]
Abnormal findings can vary widely. The doctor might see areas of redness and swelling indicating inflammation, or ulcers that appear as craters in the lining. Narrowed areas called strictures can make swallowing difficult. Growths might be polyps—usually benign tissue overgrowths—or tumors that could be cancerous or noncancerous. Areas of abnormal tissue color or texture might indicate precancerous changes or early cancer.[2]
In people with celiac disease, the normally finger-like projections in the small intestine called villi may appear flattened or damaged. Those with cirrhosis might have prominent, swollen blood vessels called varices in their esophagus walls. Evidence of recent or ongoing bleeding, such as blood pooling or dark material, indicates active digestive tract bleeding that needs treatment.[2]


