What Happens During an Endoscopy: Prep to Recovery

During an upper endoscopy, a doctor guides a thin, flexible tube with a camera down your throat to examine your esophagus, stomach, and the first part of your small intestine. The whole procedure typically takes 15 to 30 minutes, and you’re sedated for nearly all of it. Here’s what to expect before, during, and after.

Fasting and Preparation

Your stomach needs to be completely empty for the doctor to see clearly and to reduce the risk of vomiting during sedation. You’ll be told not to eat solid food after midnight the night before and to have nothing to eat or drink for at least eight hours before the procedure. If you take daily medications, you can usually swallow them with a tiny sip of water four hours beforehand, but antacids need to be skipped entirely.

Anti-inflammatory painkillers like ibuprofen, naproxen, and celecoxib are typically stopped five days before the procedure because they can thin the blood slightly and increase bleeding risk if a biopsy is taken. If you take blood thinners or diabetes medications, your doctor’s office will give you specific instructions, sometimes a week or more in advance.

Sedation and How You’ll Feel

Most people receive what’s called conscious sedation, a level of drowsiness where you can still respond to a gentle touch or a voice but are relaxed enough that you won’t feel discomfort or remember much afterward. The sedative is given through an IV placed in your hand or arm, and it takes effect within a minute or two.

The specific drugs vary by facility. Some use a combination of a sedative and a pain reliever to keep you calm and comfortable. Others use a faster-acting anesthetic that puts you into a slightly deeper sleep. Either way, you continue breathing on your own throughout the procedure. A nurse monitors your heart rate, blood pressure, and oxygen level the entire time. If the doctor notices you stirring or showing signs of discomfort, additional sedation is given through the IV right away.

What Happens Once the Scope Goes In

Before the scope is inserted, a nurse sprays the back of your throat with a numbing agent and places a small plastic mouth guard between your teeth. The guard protects your teeth and tongue and keeps your mouth open so the scope can pass through easily.

The endoscope itself is about the width of a finger. Your doctor guides it past your tongue and into your throat. You may be asked to swallow once to help the tube slide into your esophagus. From there, the camera at the tip sends a live, high-definition image to a monitor, giving the doctor a clear view of the tissue lining your digestive tract.

Once the scope reaches your stomach and the upper part of your small intestine (the duodenum), the doctor pumps a small amount of air through the tube. This gently inflates the space, spreading the folds of tissue apart so nothing is hidden. The air can cause a feeling of fullness or mild bloating, though most people don’t notice it under sedation. The doctor then slowly withdraws the scope, examining everything on the way back out. Before the scope is fully removed, the air is suctioned back out of your stomach.

Biopsies and Tissue Sampling

If the doctor sees anything that needs a closer look, or if biopsies were planned from the start, tiny forceps are passed through a channel inside the endoscope. These forceps pinch off a small piece of tissue, usually no bigger than a grain of rice. The lining of your digestive tract has very few pain-sensing nerves, so biopsies don’t hurt, and most people have no idea they were taken until they’re told afterward.

Biopsies are routine for many reasons: checking for celiac disease, identifying the cause of inflammation, evaluating Barrett’s esophagus, or testing for a bacterial infection. The tissue samples are sent to a lab, and results typically come back within a few days to two weeks depending on what’s being tested.

Specialized Imaging During the Procedure

Sometimes the standard white-light camera isn’t enough. Many modern endoscopes can switch to a mode called narrow-band imaging, which uses specific wavelengths of blue and green light instead of regular white light. Blue light only penetrates the very surface layer of tissue, making tiny blood vessels appear brown. Green light reaches slightly deeper, highlighting structures in a blue-green hue. Together, these color shifts help the doctor spot abnormal blood vessel patterns and subtle surface changes that could indicate precancerous tissue or early-stage cancer, things that might look completely normal under regular light.

This switch happens at the push of a button on the endoscope. It doesn’t add time to the procedure or require any extra preparation on your part.

How Safe the Procedure Is

Diagnostic upper endoscopy is one of the safest procedures in gastroenterology. The most serious potential complication, a perforation (a small tear in the lining of the digestive tract), occurs in fewer than 1 in 2,500 procedures. In large studies, the rate has been reported as low as 1 in 11,000. Significant bleeding after a diagnostic endoscopy, even when multiple biopsies are taken, is exceedingly rare and limited to isolated case reports.

Most of the risk comes from the sedation rather than the scope itself, which is why your oxygen and vital signs are monitored continuously.

Recovery and Going Home

After the scope is removed, you’re wheeled to a recovery area where a nurse watches you until the sedation wears off enough for you to be alert and stable. This usually takes 30 to 60 minutes. Because the sedative can affect your judgment and reflexes for the rest of the day, you’ll need someone to drive you home. Most facilities require that a responsible person be physically present at discharge before they’ll let you leave.

The most common side effect is a mild sore throat, which comes from the scope passing through and typically fades within a day. Some people feel bloated for a few hours from the air that was pumped in during the exam. Grogginess from the sedation can linger for several hours, so plan on taking it easy for the rest of the day. You can usually eat and drink normally once the numbness in your throat wears off, which takes about 30 minutes to an hour.

Your doctor may share preliminary findings with you right after the procedure, though you might not remember the conversation clearly because of the sedation. Written instructions and results are typically provided or mailed separately. If biopsies were taken, a follow-up appointment or phone call is usually scheduled once the lab work is complete.