An EGD is a specific type of endoscopy. “Endoscopy” is the broad category, referring to any procedure that uses a flexible camera (called an endoscope) to look inside the body. An EGD, short for esophagogastroduodenoscopy, is the version that examines your upper digestive tract: the esophagus, stomach, and the first part of the small intestine (the duodenum). When someone says they’re “getting an endoscopy,” they usually mean an EGD, but the two terms aren’t technically interchangeable.
Endoscopy Is the Umbrella Term
All endoscopies use the same basic tool, a thin, flexible tube with a light and camera on the end. The difference between types comes down to where the scope goes. A colonoscopy examines the colon and rectum. A bronchoscopy looks inside the airways and lungs. A cystoscopy views the bladder. An EGD looks at the upper digestive tract. Each procedure has its own name to indicate which part of the body is being examined, but they all fall under the endoscopy umbrella.
In everyday conversation and even on medical paperwork, “endoscopy” often defaults to meaning an upper endoscopy, which is the EGD. This shorthand is so common that many doctors use the terms interchangeably when talking to patients. If your doctor says “we need to do an endoscopy” and the concern involves heartburn, swallowing problems, or stomach pain, they almost certainly mean an EGD.
What an EGD Actually Examines
The name itself spells out the anatomy. “Esophago” refers to the esophagus (the tube connecting your throat to your stomach), “gastro” refers to the stomach, and “duodeno” refers to the duodenum, which is the first section of the small intestine just past the stomach. The scope also passes through the back of the throat, so your doctor can see that area as well.
An EGD isn’t just for looking. During the procedure, the doctor can take small tissue samples (biopsies) from anything that looks abnormal, stretch a narrowed section of the esophagus, remove polyps, or treat a bleeding spot. This is what separates it from imaging tests like X-rays or CT scans: it combines diagnosis and, in many cases, treatment in one step.
Common Reasons for an EGD
Doctors recommend an EGD when symptoms point to a problem in the upper digestive tract that can’t be fully evaluated with other tests. Persistent heartburn or acid reflux that doesn’t improve with medication is one of the most common reasons. Others include difficulty swallowing, unexplained nausea or vomiting, upper abdominal pain, and unexplained weight loss. An EGD is also used to screen for Barrett’s esophagus, a condition where chronic acid reflux changes the lining of the esophagus in ways that raise the risk of cancer.
Current guidelines from the American Society for Gastrointestinal Endoscopy recommend endoscopic evaluation for people with reflux symptoms who also have risk factors for Barrett’s esophagus, including a family history of Barrett’s or esophageal cancer, being over 50, male sex, smoking, or obesity. People who have had certain weight-loss surgeries, particularly sleeve gastrectomy, are also recommended to have periodic endoscopic screening starting three years after surgery and then every five years.
How to Prepare for an EGD
Preparation is straightforward but strict. You’ll need to stop eating and drinking at midnight the night before the procedure. On the morning of, you can take essential medications with a few small sips of water, but only if that’s at least four hours before your appointment time. During those final four hours, nothing should go in your mouth, not even water or chewing gum. If you eat or drink anything in that window, the procedure will likely be delayed or canceled, because a full stomach creates a safety risk during sedation.
Certain medications need to be paused well before the procedure. Blood thinners typically need to be stopped about two weeks ahead, and your doctor’s office should contact you with specific instructions. Supplements like vitamin E, fish oil, and flaxseed oil should be stopped three days before because they can increase bleeding risk. If you take GLP-1 medications (commonly prescribed for diabetes or weight loss, such as semaglutide or tirzepatide), daily doses are usually held two days before the procedure and weekly injections are held at least seven days before. These drugs slow stomach emptying, which means food could still be sitting in your stomach even after fasting overnight.
What Happens During the Procedure
You’ll receive sedation through an IV, which puts you in a drowsy, relaxed state. Most people don’t remember the procedure afterward. A mouth guard is placed between your teeth to protect them and keep your mouth open. The doctor then guides the endoscope through your mouth and down into your esophagus, stomach, and duodenum. Air or carbon dioxide is gently pumped in to expand the area and give the camera a clear view. The entire process typically takes 15 to 30 minutes.
If the doctor sees anything unusual, such as inflammation, ulcers, or suspicious-looking tissue, they can take biopsies on the spot using tiny instruments passed through the scope. You won’t feel this. Biopsy results usually come back within a few days to a week.
Risks Are Low but Real
Diagnostic EGDs are among the safest procedures in gastroenterology. The most common complications are related to sedation rather than the scope itself. Cardiopulmonary events, things like a brief drop in oxygen levels or changes in heart rate, account for over 60% of all unplanned events during endoscopy, but they occur in fewer than 1 in 170 procedures. Serious complications like a tear in the digestive tract wall or significant bleeding are rare with a standard diagnostic EGD and more likely when a therapeutic intervention (like stretching a narrowed area) is performed.
A temporary sore throat and mild bloating from the air pumped in during the procedure are the most common aftereffects. These resolve on their own within a day.
Recovery After an EGD
Because of the sedation, you’ll need someone to drive you home. Plan to spend about an hour in the recovery area while the sedation wears off. Most people feel groggy for several hours afterward. You should not drive, operate machinery, or make important decisions for the rest of the day.
Eating can usually resume within a few hours, starting with something light. Many people return to their normal diet by the next meal. Unless a biopsy or treatment was performed that requires specific restrictions, there are no dietary limitations beyond what feels comfortable. Most people go back to work and normal activities the following day.
Other Types of Endoscopy
If your doctor uses the word “endoscopy” without specifying which kind, it’s worth asking for clarification. Here are the most common types beyond EGD:
- Colonoscopy: examines the large intestine and rectum, entering from the opposite end. Used for colon cancer screening and evaluating symptoms like rectal bleeding or chronic diarrhea.
- Bronchoscopy: examines the airways and lungs. Used for persistent cough, lung infections, or abnormal imaging findings.
- Capsule endoscopy: involves swallowing a pill-sized camera that takes thousands of photos as it travels through the small intestine. Used when problems are suspected in areas a standard scope can’t easily reach.
- Endoscopic ultrasound: combines an endoscope with an ultrasound probe to get detailed images of the digestive tract wall and nearby organs like the pancreas.
Each of these falls under the endoscopy umbrella but examines a completely different part of the body, with its own preparation requirements and recovery timeline. When people refer to “an endoscopy” without further detail, the context of their symptoms almost always reveals which type they mean.

