Upper Endoscopy (EGD): Why It's Done and What to Expect

Upper Endoscopy (EGD): Why It's Done and What to Expect

Vomiting blood, black or tarry stool, or trouble swallowing together with weight loss are emergency signs. Call 911 or go to an emergency department rather than waiting for a scheduled appointment.

What does EGD stand for, and is it the same as an upper endoscopy?

EGD stands for esophagogastroduodenoscopy, and it describes exactly the same examination that most clinics call an upper endoscopy.

The word is built from the three regions the camera travels through. Esophago refers to the esophagus, the muscular tube running from the throat to the stomach. Gastro refers to the stomach. Duodeno refers to the duodenum, the first section of the small intestine, where the stomach empties and where bile and pancreatic juices arrive. Scopy means looking. One term, one examination, three connected areas.

You may also see it written as upper GI endoscopy, UGIE, gastroscopy or panendoscopy. These names describe the same basic test, although gastroscopy is sometimes used loosely when the duodenum was not reached. What matters on a report is not the label but how far the camera travelled and what was documented along the way.

It helps to see where this test sits among the other ways of examining the gut.

Name you may see What it reaches Can tissue samples be taken?
EGD / upper endoscopy Esophagus, stomach, duodenum Yes
Colonoscopy Colon and the last part of the small intestine Yes
Capsule endoscopy Small intestine, using a swallowed camera No
Swallow test with scan preparations Shape and movement of the upper gut on images No
Breath or stool testing for H. pylori No direct view, detects the bacterium indirectly No

The practical difference is that an upper endoscopy is the only one of these that lets a clinician see the lining in real colour and sample it during the same visit. That combination of looking and sampling is the reason it stays central to upper gut assessment even though imaging has improved.

Why would a clinician order this test?

A clinician orders an upper endoscopy when a symptom, a lab result or another test raises a question that can only be answered by looking at the lining directly and, where needed, sampling it.

Common reasons include heartburn or chest burning that persists despite care, upper abdominal pain or early fullness, difficulty or pain with swallowing, persistent nausea or vomiting, suspected bleeding from the upper gut, unexplained iron deficiency, suspected celiac disease, assessment of inflammation or an ulcer in the stomach or duodenum, follow-up of a known ulcer, and clarification when non-invasive testing for H. pylori leaves the picture unclear.

Indication matters more than most people expect. Research suggests that upper endoscopies performed for indications judged appropriate have a higher diagnostic yield than those performed for indications judged inappropriate 1. Published quality indicators for this procedure place a clearly documented indication among the core elements of a well-performed examination 2.

In practice that means the test is a question-answering tool rather than a general screen for anyone with indigestion. A clinician is usually looking for one of three things. First, visible damage such as inflammation, erosion, ulceration or narrowing. Second, tissue-level information that only a biopsy can provide. Third, the ability to act in the moment, for example controlling a bleeding point or widening a narrowed segment. When none of those three is plausible, a camera test adds little, and the conversation usually moves to bloodwork, breath or stool testing, or a period of changes supervised by a clinician.

How does an upper endoscopy fit in with reflux symptoms?

Most reflux is assessed and managed on symptoms alone, and the camera enters the picture when symptoms persist, change character, affect swallowing, or when bleeding or a second process is suspected.

When it is performed, an upper endoscopy can show breaks or inflammation in the lining of the lower esophagus, a hiatus hernia where part of the stomach sits above the diaphragm, narrowing that makes food stick, irritation of the stomach lining, and ulcers in the stomach or duodenum. Each of those findings changes the conversation in a different direction, which is the point of looking.

Here is the part that surprises people. A completely normal examination is common in people with daily heartburn. That does not mean the symptoms are imagined, and it does not mean nothing is wrong. It moves the question away from visible tissue damage and towards how acid exposure, esophageal sensitivity and muscle coordination are behaving, which is where acid monitoring of the esophagus or swallowing function tests may be considered by a clinician.

The reverse also happens. Inflammation of the stomach lining can be found in someone whose main complaint sounded like classic reflux, and the symptom pattern of that inflammation is worth understanding separately, which is covered in gastritis symptoms. Several non-reflux explanations for the same upper abdominal burning sensation, including stomach lining irritation and ulcer disease, are set out in burning stomach causes. Matching the symptom to the right mechanism is what makes the next step useful rather than generic.

What does the camera actually look at during the examination?

The endoscope inspects the lining of the esophagus, the whole stomach and the first and second parts of the duodenum, segment by segment, usually including a backwards view of the top of the stomach where the scope enters.

The instrument is a flexible tube roughly the width of a finger, carrying a light, a camera chip, a channel for air or carbon dioxide, a water jet for washing, a suction line and a working channel through which instruments pass. Gentle inflation opens folds that would otherwise hide the surface. Washing and suction clear mucus, bile and residue. Without that cleaning and distension, parts of the lining are simply never seen, which is why unhurried technique matters as much as the hardware.

An expert review of high-quality upper endoscopy describes adequate mucosal cleansing and distension, sufficient inspection time and systematic photodocumentation as elements of a thorough examination 3. European performance measures for upper gastrointestinal endoscopy likewise set standards for complete examination and structured documentation of what was seen 4.

What the endoscopist records along the way is colour, texture, swelling, erosion, ulceration, narrowing, bleeding points, the position of anatomical landmarks and any abnormal pattern in the lining. Photographs of defined landmarks allow another clinician later to confirm the areas that were inspected. If you ever compare two reports of the same person taken years apart, those images are what make the comparison meaningful.

Why are biopsies taken when the lining looks normal?

Biopsies are taken from normal-looking lining because several conditions change tissue under the microscope long before, or entirely without, changing what the camera sees.

Research suggests that biopsies taken in defined situations, including from mucosa that appears normal, may help identify conditions that the camera alone cannot resolve 5. The classic examples are inflammation of the stomach lining and the flattening of the duodenal surface seen in celiac disease, both of which can sit behind a perfectly unremarkable view. Published quality indicators also describe defined sampling approaches as part of a well-performed examination 2.

Taking a biopsy is painless. The lining of the gut does not carry the fine touch and sharp pain sensors that skin has, so a small forceps passed down the working channel removes a fragment of tissue without the person feeling it, including those who are only lightly sedated. The samples go to a pathology laboratory, where they are processed, stained and read, which is why these results arrive later than the verbal summary given in recovery. Turnaround varies by laboratory and by the stains needed, so ask the unit how and when you will be contacted rather than planning around a fixed number of days.

When biopsy results come back, the pattern they describe is an observation, not a verdict. What that pattern means for you depends on your symptoms, your bloodwork and your history, and that interpretation belongs to the clinician who ordered the test.

What can this test show about H. pylori?

An upper endoscopy can confirm H. pylori directly, because small samples of stomach lining taken during the test can be checked with a rapid bedside test on the tissue or examined under the microscope.

That is not the only route. Breath testing and stool antigen testing both detect the bacterium without a camera, and they are frequently the first step when the only question is whether the organism is present. How those options compare, and what a positive or negative result means, is covered in the h pylori test guide.

One practical caution. Some medicines can suppress the bacterium enough to produce a falsely negative result on any of these tests, so ask your prescriber well before the appointment and never change anything on your own. Timing is part of accuracy here, and the team performing the test needs to know your full medicine list, including anything bought without a prescription.

If the organism is found, the report will usually say so and the next step is a clinical decision. Treatment decisions belong to a licensed provider who reviews your history, previous testing and tolerance. The same applies to confirming afterwards whether the organism has cleared, which is a separate test at a separate time, also decided by the clinician.

How do you prepare, and why does the fasting rule matter?

Preparation is mostly one thing done properly, which is arriving with an empty stomach.

There are two reasons. The first is visibility. Food and thick fluid coat the lining and hide exactly the areas the examination exists to inspect, and a poorly seen stomach may mean the test has to be repeated. European performance measures regard adequate visualization of the mucosa as a marker of a complete examination 4. The second is safety. Under sedation, protective reflexes are blunted, and stomach contents that come back up can reach the airway.

Fasting instructions differ between units, and between people, depending on sedation plan and medical history. Follow the written instruction your unit gives you rather than a number found online, and call them if you are unsure.

The rest of preparation is logistics and disclosure. Tell the team about heart or lung conditions, sleep apnea, previous reactions to sedation, loose teeth, dentures and allergies. Some medicines may need to be adjusted around a procedure; ask your prescriber, since that decision is theirs rather than yours or the internet's. If sedation is planned, arrange for a responsible adult to take you home, and keep the rest of the day free of driving, work decisions and anything requiring judgement.

What is sedation like, and can the test be done without it?

Sedation for an upper endoscopy is usually given through a vein, so most people are drowsy or asleep, feel nothing distressing and remember very little afterwards.

Depth varies. Some units offer a light level where you can respond to instructions, some use deeper sedation managed by an anesthesia clinician, and some offer the test with throat numbing only, which suits people who prefer to avoid sedation or need to drive themselves home. Which approach is suitable depends on your airway, your breathing and heart history, your previous experience with sedation and the complexity of the examination, and the clinician decides.

Whatever is used, monitoring runs throughout. Oxygen levels, pulse, blood pressure and breathing are watched, extra oxygen is often given through the nose, suction is at hand, and a small mouthguard protects your teeth and the scope. Research suggests that sedation-related events are among the more commonly reported problems around diagnostic upper endoscopy, which is why monitoring continues into the recovery area rather than stopping when the scope comes out 6.

One reassurance worth saying plainly. The scope passes behind the airway, not into it, so breathing continues normally throughout. Most of the anticipatory anxiety people carry into the room is about this exact point.

What happens from arrival to going home?

The visit is longer than the examination, and knowing the sequence removes most of the uncertainty.

You check in, confirm your fasting status and medicines, and go through consent with the endoscopist, which is the moment to ask what they expect to find and what they will do if they find it. A small cannula is placed in a vein if sedation is planned. In the procedure room you lie on your left side, monitors go on, a mouthguard is positioned, and the throat may be numbed.

The scope is then passed through the mouth with a single swallow, down the esophagus, into the stomach and on to the duodenum. Air or carbon dioxide opens the folds, the lining is washed and inspected, photographs are taken, and biopsies are collected if indicated. Most people feel pressure or bloating at most. If something treatable is seen and the endoscopist is equipped for it, action may be taken in the same sitting.

The scope is withdrawn with a final look on the way out, and you are moved to a recovery area. The inspection itself is short, often shorter than the check-in and recovery around it, but ask your unit what total time to plan for, since this varies by site and by what is found.

Before discharge you usually get a verbal summary and a written report. Sedation blunts memory, so bring someone who can listen, or ask for the key points in writing.

What does recovery feel like, and what should you watch for?

Recovery from a diagnostic upper endoscopy is usually quick, with grogginess, a mildly sore throat, bloating and burping being the most common experiences, all settling within a day.

Eating and drinking restart once the team confirms your swallow is safe, which is earlier than most people assume when throat numbing has worn off. If sedation was used, do not drive, operate machinery, sign anything important or drink alcohol for the rest of the day, and have someone with you. Normal activity generally resumes the next day unless the endoscopist says otherwise because of something done during the test.

The findings you are told in recovery are the visual ones. Anything sent to pathology follows later, and the unit should tell you how that result will reach you. Write down the questions you want answered before you leave, because sedation makes it hard to compose them afterwards.

What deserves attention rather than patience is a short list. Severe or worsening chest or abdominal pain, a rigid or swollen abdomen, fever, repeated vomiting, vomiting blood, black tarry stool, difficulty breathing or difficulty swallowing after the test are all reasons to contact the endoscopy unit or seek emergency care without delay. These are uncommon, but they are the ones that reward speed.

How often do complications happen?

Serious complications of a diagnostic upper endoscopy are uncommon, and the problems that do occur cluster into a small number of recognisable categories 6.

Minor and short-lived effects are the usual story, including sore throat, bloating from insufflated gas and mild nausea. Beyond those, a review of complications of diagnostic upper gastrointestinal endoscopy describes sedation and cardiopulmonary events as the more frequently reported problems, with bleeding, perforation, aspiration and infection as rarer events requiring prompt recognition and assessment 6. Bleeding after a biopsy is typically minor and self-limiting. Perforation, a tear in the wall, is rare in a purely diagnostic examination and more associated with procedures where tissue is removed or a narrowing is stretched.

Risk is not evenly distributed. Age, heart and lung conditions, how much sedation is needed and the complexity of what is done all shift it, which is why the pre-procedure conversation about your history is not a formality.

The useful framing for an individual is comparative rather than absolute. The question is whether the information this test can provide outweighs the small risk of the test itself, given what is already known from your symptoms and bloodwork. That balance is a conversation with the clinician who proposed it, and it is entirely reasonable to ask what would change in your care depending on the result.

What should be in the report, and how do you read yours?

A good report states why the test was done, how far the scope reached, what each segment looked like, what photographs were taken, what biopsies were collected and from where, anything that was done during the examination, and the recommended next step.

That sounds obvious, yet studies suggest that endoscopy reports vary widely in how completely these elements are recorded 7. Both published quality indicators and European performance measures place structured, complete reporting among the markers of a high-quality examination 24. If your report is thin, you are entitled to ask for clarification, and a later clinician comparing examinations will thank you for it.

Read your own report in three steps. First the observation, which is the plain description of what was seen or sampled. Second the possible meaning, which is almost always a range rather than a single answer, since the same appearance can reflect several processes. Third the next step, which may be waiting for pathology, a change supervised by a clinician, a repeat examination after an interval, or further testing of a different kind.

Two questions are worth asking directly. What was not seen or not reached, and what would make you want to look again. Those two answers tell you how much certainty the examination actually bought.

Where does bloodwork fit, including hemoglobin?

An endoscopy shows tissue; bloodwork shows consequences, and the two are read together. Hemoglobin, the oxygen-carrying protein in red blood cells, is often checked when slow blood loss from the upper gut is a possibility, because a falling value can appear before anything else does.

Compare your result with the range printed on your lab report. Ranges vary by lab, age and sex. FitScript's optimal range is 14 to 16 g/dL for men and 12 to 15 g/dL for women, and optimal ranges are optimization targets rather than diagnostic cut-offs.

What the marker measures, how it is tested and what a high or low result may reflect are covered in full on the hemoglobin page.

Which other tests are often ordered alongside?

An upper endoscopy is rarely the only data point, because several of the conditions it looks for also leave fingerprints in blood, breath or stool.

A complete blood count and iron markers help show whether slow blood loss has had a measurable effect. Breath or stool testing for H. pylori answers the bacterial question without a camera. Antibody testing for celiac disease is usually drawn before duodenal biopsies are interpreted, since the two are read as a pair. Inflammatory markers such as CRP are sometimes added in words rather than as a target number, simply to show whether a general inflammatory signal is present. Liver and pancreatic enzymes can redirect attention when upper abdominal pain does not fit the lining.

Beyond blood, an abdominal ultrasound looks at the gallbladder and liver, acid monitoring of the esophagus measures exposure over a day, and swallowing function and motility tests examine how well the muscle coordination works when the lining itself looks fine. Colonoscopy enters the picture when the suspected source sits lower down.

Running these in a panel rather than one at a time tends to shorten the path to an answer. FitScript, for example, tests 150+ biomarkers per year and has Atlas, its AI health advisor, interpret the pattern across them.

When should you talk to a clinician, and when can it not wait?

Some symptoms are emergencies, and the rest deserve a scheduled conversation rather than months of waiting and self-explanation.

Get emergency care now, by calling 911, for vomiting blood or material that looks like coffee grounds, black or tarry stool, trouble swallowing together with unintended weight loss, fainting or near-fainting, or severe and unrelenting chest or abdominal pain. These do not belong in a waiting list.

Arrange a prompt appointment for heartburn or upper abdominal burning that continues for weeks, pain that wakes you at night, persistent nausea, food that feels like it sticks, early fullness that changes how much you eat, unintended weight loss, or a blood count that has drifted lower without explanation. Bring the pattern with you, including when symptoms started, what makes them better or worse, their relation to meals, and your full medicine list.

This page is educational and not medical advice. Discuss your symptoms, your results and any treatment decision with a clinician or licensed provider who can see your full history, since only they can decide whether an upper endoscopy, or any other step, is appropriate for you.

Key takeaways

References

  1. Diagnostic yield of upper endoscopy according to appropriateness: A systematic review. Digestive and Liver Disease, 2019.
  2. Quality indicators for EGD. Gastrointestinal Endoscopy, 2015.
  3. AGA Clinical Practice Update on High-Quality Upper Endoscopy: Expert Review. Clinical Gastroenterology and Hepatology, 2024.
  4. Performance measures for upper gastrointestinal endoscopy: a European Society of Gastrointestinal Endoscopy (ESGE) Quality Improvement Initiative - Update 2025. Endoscopy, 2025.
  5. The indications for biopsy in routine upper gastrointestinal endoscopy. Histopathology, 2021.
  6. Complications of diagnostic upper Gastrointestinal endoscopy: common and rare - recognition, assessment and management. BMJ Open Gastroenterology, 2022.
  7. Adequacy of EGD Reporting: a Review of 100 Reports from 100 Endoscopists. Journal of Gastrointestinal Surgery, 2021.

Common questions

What does EGD stand for?

EGD stands for esophagogastroduodenoscopy. The word names the three regions the camera passes through, which are the esophagus, the stomach and the duodenum, the first part of the small intestine. Scopy simply means looking.

Is an EGD the same as an upper endoscopy?

Yes. EGD, upper endoscopy, upper GI endoscopy and gastroscopy all describe the same basic test using a thin flexible camera passed through the mouth. What matters on your report is how far the scope reached and what was documented, not which name the clinic uses.

Does an upper endoscopy hurt?

Most people feel pressure or bloating rather than pain. Sedation given through a vein is routine, and many people remember very little of the examination. Biopsies are painless, because the lining of the gut does not carry the kind of pain sensors skin has.

Do you have to fast before the procedure?

Yes, an empty stomach is required so the lining can be seen clearly and so stomach contents do not reach the airway during sedation. Fasting times differ between units and between people, so follow the written instructions your endoscopy unit gives you and call them if anything is unclear.

Can an upper endoscopy show H. pylori?

It can. Small samples of stomach lining taken during the test can be checked with a rapid test on the tissue or examined under a microscope. Breath and stool tests can also detect the bacterium without a camera. Some medicines can make any of these tests falsely negative, so ask your prescriber before the appointment.

What happens if the examination is normal but my symptoms continue?

A normal result is still useful information, and it does not mean your symptoms are imagined. It shifts the question away from visible tissue damage towards how acid exposure, sensitivity and muscle coordination are behaving. Your clinician decides whether acid monitoring, swallowing function testing or further bloodwork is the sensible next step.

How soon will I get my results?

You usually get the visual findings before you leave, often as a verbal summary plus a written report. Anything sent for biopsy takes longer, and the wait depends on the laboratory and the processing needed. Ask the unit how and when the pathology result will reach you, and bring someone who can remember what was said, since sedation blurs memory.

When is vomiting blood or black stool an emergency?

Always. Vomiting blood or material that looks like coffee grounds, passing black or tarry stool, or trouble swallowing together with unintended weight loss all need emergency care, so call 911 or go to an emergency department. Do not wait for a scheduled appointment or a planned test.

Related reading