What Is an EGD Test? Procedure, Prep, and Results

An EDG test is almost certainly what doctors call an EGD, or esophagogastroduodenoscopy. The letters get swapped often because the full name is a mouthful. It’s an exam where a gastroenterologist uses a thin, flexible camera (an endoscope) to look inside your esophagus, stomach, and the first part of your small intestine, known as the duodenum. You might also hear it called an upper endoscopy. The whole procedure typically takes 15 to 30 minutes, and you’re sedated for it.

Why Doctors Order an EGD

An EGD is one of the most common ways to investigate ongoing digestive problems that haven’t responded to initial treatment or that raise red flags. Your doctor might recommend one if you have persistent upper abdominal pain (especially with unexplained weight loss), difficulty or pain when swallowing, chronic acid reflux that isn’t improving with medication, or vomiting that doesn’t have a clear cause.

It’s also used to look for specific conditions: peptic ulcers, celiac disease, esophageal strictures (narrowing), and unexplained iron-deficiency anemia when a lower GI source has been ruled out. For people with Barrett’s esophagus or certain other precancerous conditions, EGDs serve as routine surveillance to catch changes early. Chronic diarrhea or signs of malabsorption can also prompt the test, since small tissue samples taken during the procedure can reveal problems that imaging alone can’t detect.

How to Prepare

Preparation starts well before the day of your procedure. If you take blood thinners, you’ll likely need to stop them days in advance, with the exact timing depending on the specific medication. Weight-loss medications like semaglutide (Ozempic, Wegovy) or tirzepatide (Mounjaro) are typically stopped about a week beforehand because they slow stomach emptying, which can interfere with the exam. Fiber supplements, fish oil, and iron supplements are usually stopped about five days out.

The most important rule: nothing to eat or drink after midnight the night before. Your stomach needs to be completely empty so the doctor can see clearly and so you don’t aspirate food during sedation. The morning of the procedure, you’ll take only essential medications like blood pressure, heart, or seizure drugs with a small sip of water. No coffee, no gum, no mints. If you’re diabetic, you’ll follow adjusted insulin and oral medication instructions to keep your blood sugar stable without your usual doses.

What Happens During the Procedure

You’ll change into a hospital gown and lie on your side. An IV delivers sedation, which puts most people into a light, drowsy state where they’re comfortable and unlikely to remember the procedure afterward. A mouth guard protects your teeth, and the endoscope, about the width of a finger, is guided gently through your mouth and down your throat.

The camera at the tip sends real-time video to a monitor, letting the gastroenterologist inspect the lining of your esophagus, stomach, and duodenum for inflammation, ulcers, growths, or other abnormalities. If something looks unusual, or if the test was ordered to check for conditions like celiac disease or a bacterial infection, the doctor takes small tissue samples (biopsies) through the endoscope. You won’t feel the biopsies being taken. In some cases, the doctor can also treat problems on the spot, such as stretching a narrowed area or removing a foreign object.

How Safe Is It?

A diagnostic EGD is very low risk. In an analysis of over 380,000 patients who underwent the procedure, perforation (a small tear in the digestive tract wall) occurred at a rate of about 1 in 25,000. Bleeding serious enough to require an emergency visit or hospital stay happened in roughly 80 out of 100,000 patients within 30 days. Those numbers make it one of the safer procedures in gastroenterology. Risk increases somewhat when the EGD involves therapeutic work like dilating a stricture or placing a stent, but your doctor will discuss those specifics if they apply to you.

Recovery and Side Effects

After the procedure, you’ll rest in a recovery area until the sedation wears off enough for you to be alert, usually 30 to 60 minutes. Because of the sedation, you won’t be able to drive yourself home. Plan to have someone with you for the rest of the day.

The most common side effects are mild: a sore throat from the endoscope passing through, some bloating and gas from air introduced during the exam, and occasional cramping. These typically resolve on their own within a day. When you first try to eat, start only once you can swallow comfortably. Stick to small, light meals for the first 24 to 48 hours and avoid alcohol for at least 24 hours. Most people feel back to normal and can resume their regular diet within a day or two.

Getting Your Results

Your doctor can often share preliminary findings right after the procedure based on what they saw on the monitor. If everything looked normal and no biopsies were taken, that conversation may be all you need. When biopsies are taken, the tissue samples go to a pathology lab for analysis under a microscope. Results typically come back within a few days to two weeks, depending on the lab and what’s being tested for. Your doctor’s office will contact you with the pathology findings and discuss next steps if anything requires follow-up or treatment.