- What Upper Endoscopy Is and Who Needs It
- How the Procedure Is Performed
- Preparation and the Day Of
- Recovery and Results
- Risks, Complications, and Outcomes
- Therapeutic Procedures Through the Scope
- Cost Considerations
- Frequently Asked Questions
- Will I be awake during upper endoscopy?
- How soon will I get results?
- Can I eat after upper endoscopy?
- Is upper endoscopy the same as a barium swallow?
- How should I prepare my medications?
- The Bottom Line
- Related guides
- Sources
————————————————————
An upper endoscopy — formally called esophagogastroduodenoscopy, or EGD — is typically a 10- to 20-minute outpatient procedure that gives a gastroenterologist a direct view of the esophagus, stomach, and the first part of the small intestine. It is one of the most accurate tests for diagnosing reflux complications, ulcers, celiac disease, and upper GI bleeding, and it is also the entry point for many therapeutic procedures. According to the American Society for Gastrointestinal Endoscopy, several million EGDs are performed in the United States each year, making it one of the most common GI procedures. Whether you need one, and exactly how it is done, is a decision your gastroenterologist makes with you based on your symptoms and history.
What Upper Endoscopy Is and Who Needs It
Upper endoscopy uses a flexible scope with a high-definition camera, a light, and small instrument channels. The endoscopist passes the scope through the mouth and advances it past the upper esophageal sphincter, down the esophagus, through the stomach, past the pylorus, and into the duodenum. Biopsies, polyp removal, dilation of strictures, treatment of bleeding lesions, and placement of feeding tubes can all be done through the same scope, depending on what is found.
The American College of Gastroenterology lists common indications, which may include persistent heartburn that does not respond to therapy, difficulty swallowing (dysphagia), unexplained upper abdominal pain, suspected peptic ulcer or H. pylori infection, unexplained anemia, evaluation of Barrett’s esophagus, suspected celiac disease, and surveillance after prior abnormal findings. Acute upper GI bleeding (vomiting blood or passing black, tarry stool) is an emergency indication that needs prompt medical attention. Only your clinician can decide whether an EGD is the right test for your situation, so discuss your symptoms rather than self-diagnosing.
How the Procedure Is Performed
EGD is usually performed in an endoscopy suite or ambulatory surgery center. In most cases it is done under sedation — often monitored anesthesia with propofol, though the exact approach is chosen by your care team. A bite block protects the teeth, and the scope is gently advanced through the mouth. The endoscopist examines each segment carefully, taking biopsies as needed. Air or carbon dioxide is insufflated to distend the GI lumen for a clear view; CO2 tends to cause less post-procedure bloating.
The procedure commonly takes 10–20 minutes for diagnostic exams. Therapeutic procedures (variceal banding, control of bleeding, dilation, polyp removal) can take longer. Some facilities offer transnasal endoscopy with thin scopes that allow exams without sedation, though this is not right for everyone. Patients who also need a colonoscopy sometimes have both procedures back-to-back under one anesthesia visit, which can be more efficient — whether this is appropriate depends on your indications and your gastroenterologist’s judgment.
Preparation and the Day Of
Preparation is generally much simpler than for a colonoscopy. Patients are usually asked to fast from solid food and milk for several hours (commonly around 6–8 hours) and from clear liquids for a couple of hours beforehand, but follow the exact instructions your facility gives you, since they vary. Diabetes medications, blood thinners, and certain other drugs may be adjusted with guidance from your GI and primary care teams. Decisions about medications such as aspirin, clopidogrel, warfarin, and direct oral anticoagulants depend on your individual bleeding and clotting risk and the planned procedure — never start, stop, or change a prescribed medication on your own; ask the team that ordered the test.
Plan to arrive early — often about 60–90 minutes ahead — for paperwork, IV placement, and a pre-procedure assessment. If you receive sedation, you will need a designated driver and a quiet rest day afterward. Total time at the facility is usually around two to three hours including recovery, but this varies by site and by what is done.
Recovery and Results
Most patients wake from sedation within about 15–20 minutes and are discharged roughly 30–60 minutes after the exam. Mild bloating, gas, and a sore throat are common for a few hours. Many people can resume solid food within a couple of hours, but follow your discharge instructions. Sedation effects — impaired judgment and coordination — can last well into the day, so plan not to drive, sign legal documents, or make important decisions until at least the next day.
Visual findings are often discussed with you soon after the exam, but biopsy (pathology) results typically take several days to a couple of weeks. Many gastroenterologists arrange a follow-up visit or telehealth call to review histology and next steps. Patients diagnosed with H. pylori, celiac disease, or Barrett’s esophagus generally need ongoing follow-up — see our conditions reference library for related, condition-specific background, and rely on your own clinician for your care plan.
Risks, Complications, and Outcomes
EGD is generally considered very safe. Serious complications are uncommon — often cited as fewer than roughly 1 per 1,000 diagnostic exams, per sources such as the Cleveland Clinic — though individual risk depends on your health and what is done. Potential risks include perforation (very rare in diagnostic exams; higher with dilation or stricture treatment), bleeding (mainly after biopsies of larger lesions or polyp removal), an adverse reaction to sedation, aspiration (uncommon with proper fasting), and a sore throat or hoarseness for a day or two. Your care team will review the specific risks that apply to your procedure during informed consent.
When to seek emergency care: Call 911 or go to the nearest emergency room if, after an EGD, you experience severe chest or abdominal pain, persistent vomiting of blood or coffee-ground material, black tarry stools, a fever above 101°F (about 38.3°C), difficulty breathing, or worsening swallowing problems. These can signal perforation, bleeding, or aspiration that needs urgent evaluation. When in doubt, contact your care team or seek emergency care rather than waiting.
Therapeutic Procedures Through the Scope
EGD is not only diagnostic. The endoscopist can stop active bleeding from ulcers and varices using clips, thermal coagulation, or banding. Strictures from acid reflux or post-surgical scarring can be dilated with balloons. Removable stents can bridge tumors causing obstruction. Foreign bodies — coins, food impactions, button batteries — can be retrieved. PEG (percutaneous endoscopic gastrostomy) tubes can be placed for long-term feeding access. The same scope platform supports endoscopic ultrasound (EUS) for staging cancers and guiding biopsies of the pancreas and bile duct. Which, if any, of these apply is determined by your gastroenterologist based on what the exam shows.
Cost Considerations
Diagnostic EGD is covered by Medicare and most commercial insurance when medically indicated, but exact coverage and out-of-pocket costs depend on your plan. Without insurance, cash prices vary widely by setting: freestanding ambulatory surgery centers are often in the range of roughly $1,200 to $2,500 for the procedure, while hospital outpatient departments frequently cost meaningfully more — sometimes two to three times the ASC rate. Anesthesia services are usually billed separately (often around $300 to $800), and pathology fees for biopsies can add roughly $100 to $400. These are typical ranges, not quotes; actual prices differ by region and facility, so ask for an itemized, ideally bundled, cash estimate in advance. Combining EGD with a screening colonoscopy under one anesthesia visit, when both are indicated, can save time and money.
The healthcare costs guide covers how to confirm in-network status for the facility, gastroenterologist, anesthesia, and pathology — each of which can balance-bill separately — and how to request a good-faith estimate before the procedure.
Frequently Asked Questions
Will I be awake during upper endoscopy?
Most patients receive moderate-to-deep sedation and have little or no memory of the procedure. Some practices offer unsedated transnasal endoscopy with thin scopes, which avoids sedation medication and the need for a driver but can be less comfortable. Your care team will recommend the approach that fits your situation.
How soon will I get results?
Visual findings are often explained shortly after you wake up. Biopsy results generally take several days to a couple of weeks. Your gastroenterologist will typically arrange a follow-up call or appointment to discuss pathology and any treatment plan.
Can I eat after upper endoscopy?
Many patients can eat within one to two hours of waking, often starting with cool or room-temperature drinks and progressing to soft foods, but follow the specific instructions from your care team. A sore throat for a few hours is common and usually eases with lozenges and fluids.
Is upper endoscopy the same as a barium swallow?
No. A barium swallow is an X-ray study in which you swallow contrast material; it shows the contour of the upper GI tract but cannot take a biopsy or treat lesions. EGD provides direct visualization plus the ability to biopsy and treat in one procedure. Which test is appropriate depends on what your clinician is evaluating.
How should I prepare my medications?
Ask the team that ordered the EGD. Some medications are continued, and others may be temporarily adjusted based on your individual bleeding risk and the planned procedure. Do not stop or change any prescription on your own — bring a current medication list and confirm the plan in advance.
The Bottom Line
Upper endoscopy is a fast, generally well-tolerated test that offers strong diagnostic accuracy and the ability to treat many findings in the same session. If your clinician recommends one, it can help to ask exactly what they are looking for, whether biopsies are planned, whether they will use CO2 insufflation (often less post-procedure bloating), how sedation will be handled, and how follow-up is structured if abnormalities are found. Ultimately, your gastroenterologist decides whether an EGD is right for you — use this guide to inform that conversation, not to replace it.
TL;DR: An upper endoscopy (EGD) is a short outpatient scope exam of the esophagus, stomach, and upper small intestine that can also treat many findings. Prep is mainly fasting, most people go home the same day, and serious complications are uncommon. Costs vary widely without insurance, so get an itemized estimate. Your gastroenterologist decides if you need one and how it’s done.
This article is general educational information, not medical advice, and does not replace care from a qualified clinician. Do not start, stop, or change any medication based on this article. Talk with your doctor about whether an upper endoscopy is right for you, and call 911 or seek emergency care for severe or worsening symptoms.
Sources
- American Society for Gastrointestinal Endoscopy (ASGE) — asge.org
- American College of Gastroenterology (ACG) — gi.org
- Cleveland Clinic, Upper Endoscopy (EGD) — my.clevelandclinic.org
- MedlinePlus, Upper GI Endoscopy — medlineplus.gov
