How Is an Endoscopy Done: Prep, Procedure & Recovery

An upper endoscopy is a 15- to 30-minute procedure where a doctor passes a thin, flexible tube with a camera down your throat to examine your esophagus, stomach, and the upper part of your small intestine. You’re typically sedated, and most people go home the same day. Here’s what the full experience looks like, from preparation through recovery.

How to Prepare Beforehand

Your stomach needs to be empty so the doctor can see clearly. Current guidelines call for at least 6 to 8 hours of fasting from solid food before the procedure. Clear liquids like water, apple juice, or black coffee can usually be consumed up to 2 hours beforehand, though your clinic may give you slightly different instructions. Some research has found that allowing clear fluids up to one hour before the procedure is safe and reduces patient discomfort, but most facilities stick with the 2-hour cutoff to be conservative.

If you take blood thinners, your doctor will give you specific instructions well before your procedure date. For low-risk endoscopies (a straightforward look with no planned interventions), blood thinners like warfarin can often be continued. For higher-risk procedures where biopsies or polyp removal are planned, certain blood thinners may need to be stopped 5 to 7 days in advance. Low-dose aspirin is generally safe to continue. You’ll also get guidance on any diabetes medications, blood pressure drugs, or other prescriptions that may need adjustment on the day of the procedure.

What Happens in the Procedure Room

You’ll change into a hospital gown and lie on your left side on the procedure table. A nurse places an IV line in your arm and attaches monitors to track your heart rate, blood pressure, and oxygen levels throughout.

Most endoscopies use moderate or deep sedation. With moderate sedation, you’re drowsy and relaxed but not fully unconscious. You may be vaguely aware of what’s happening but unlikely to remember much afterward. Deep sedation puts you closer to sleep, and your breathing and blood pressure are monitored more closely. General anesthesia, where you’re fully unconscious with a breathing tube, is reserved for longer, more complex procedures or patients with medical conditions that make lighter sedation risky. A small number of people choose no sedation at all, staying fully awake. This is uncommon but possible; you may feel cramping or discomfort from the air used to inflate the digestive tract during the exam.

Your sedation may be managed by your gastroenterologist and a trained sedation nurse, or by a separate anesthesia provider. Deep sedation and general anesthesia are usually handled by an anesthesia specialist.

The Scope Itself

The endoscope is a flexible tube about 10 millimeters wide at the tip, roughly the diameter of your index finger. It contains a tiny camera, a light source, channels for air and water, and a working channel about 2.8 millimeters wide that allows the doctor to pass small instruments through. None of these components cause pain; the scope is designed to bend and flex with the natural curves of your digestive tract.

Insertion and Examination

Once you’re sedated, a small plastic mouthguard is placed between your teeth to protect them and keep your mouth open. The doctor gently guides the endoscope into your mouth, past your throat, down your esophagus, through your stomach, and into the duodenum (the first section of your small intestine). Air is pumped through the scope to gently inflate the walls of each area, giving the camera a clear view. The doctor watches a live video feed on a monitor, examining the lining of each organ for redness, ulcers, growths, or anything unusual.

If anything looks abnormal, the doctor can take a biopsy on the spot. Small forceps are passed through the scope’s working channel and used to pinch off a tiny piece of tissue. You won’t feel this happening. The samples are sent to a lab for analysis. It’s common for doctors to take biopsies even when things look normal, as some conditions (like celiac disease or certain infections) are only visible under a microscope. In some cases, the doctor can also treat problems during the procedure, such as stretching a narrowed area, removing a polyp, or stopping a source of bleeding.

The entire examination typically takes 15 to 30 minutes. Once the doctor has seen everything needed, the scope is slowly withdrawn.

What Recovery Looks Like

You’ll be moved to a recovery area where nurses monitor you as the sedation wears off. Most people are alert enough to be discharged within about 50 minutes to 2 hours after the procedure. The staff will check that you can answer questions, walk steadily, and that your vital signs are stable before letting you go. If your procedure involved dilation (stretching a narrowed area) or stent placement, the observation period is longer, typically around 4 hours.

The most common side effect is a sore throat, reported by about 1 in 10 patients. It usually feels like mild scratchiness and resolves within a day or two. About 1 in 20 people experience some abdominal discomfort, often from the air that was pumped in during the exam. Bloating and mild cramping are normal and pass as the air works its way out. You may also feel groggy, slightly nauseous, or lightheaded from the sedation for several hours.

Plan to have someone drive you home. Most facilities recommend avoiding driving, returning to work, strenuous exercise, or signing legal documents for 24 hours after the procedure. This isn’t because of the endoscopy itself but because sedation medications can impair your judgment and reaction time longer than you might feel. By the next day, most people return to their normal routine with no restrictions.

How Safe Is the Procedure

A routine diagnostic upper endoscopy, where the doctor is simply looking and possibly taking biopsies, is one of the safest procedures in medicine. Serious complications are rare. The risks increase when therapeutic interventions are involved. Stretching a complex esophageal stricture, for example, carries a 2% to 10% risk of perforation (a small tear in the wall), while removing large polyps from the stomach or duodenum can cause bleeding in roughly 3% to 7% of cases. These are specific situations your doctor would discuss with you beforehand.

For a standard diagnostic endoscopy with biopsies, the risk of perforation or significant bleeding is well under 1%. The most realistic risks for most patients are a reaction to the sedation or a sore throat afterward.