What Is a GI Procedure? Types, Prep, and What to Expect

A GI procedure is any medical procedure used to examine or treat the gastrointestinal tract, which runs from your esophagus down through your stomach, intestines, and colon. Most GI procedures involve an endoscope: a long, thin, flexible tube with a camera and light on the end that captures images of your digestive organs and displays them on a screen. Some GI procedures are purely diagnostic, meaning they look for a problem. Others are therapeutic, meaning the doctor treats a problem during the same exam.

Upper GI Procedures

The most common upper GI procedure is an upper endoscopy, sometimes called an EGD. The scope enters through your mouth and travels down to examine your esophagus, stomach, and the first section of your small intestine. Doctors use it to investigate persistent heartburn that hasn’t responded to medication, difficulty swallowing, unexplained abdominal pain, vomiting blood, or iron deficiency anemia when the source of blood loss appears to be in the upper digestive tract.

An upper endoscopy can also be therapeutic. During the same procedure, a doctor can remove a swallowed foreign object, stretch open a narrowed section of the esophagus, stop active bleeding from an ulcer or enlarged vein, or place a feeding tube. That dual capability, diagnosis and treatment in one session, is a major reason endoscopy is so widely used.

Lower GI Procedures

A colonoscopy is the most well-known lower GI procedure. The scope enters through the rectum and examines the entire large intestine. It’s the standard tool for colorectal cancer screening because it can both detect precancerous growths called polyps and remove them on the spot, preventing them from ever becoming cancer. Research comparing colonoscopy with more limited exams has found that colonoscopy provides stronger reductions in colorectal cancer deaths, particularly for cancers in the upper portion of the colon that shorter scopes can’t reach.

A sigmoidoscopy is a shorter version that only examines the lower third of the colon and the rectum. It’s quicker and sometimes used when a full colonoscopy isn’t necessary. An anoscopy is even more limited, looking only at the anus and rectum, and is typically done in an office visit without sedation.

Screening vs. Diagnostic Colonoscopy

A screening colonoscopy is done on someone with no symptoms, purely to check for polyps or early cancer. A diagnostic colonoscopy is done because you already have symptoms like bleeding, pain, or a change in bowel habits, or because another test flagged something abnormal. The distinction matters for insurance coverage. If a screening colonoscopy turns up a polyp that the doctor removes, the procedure may be reclassified from screening to diagnostic, which can change your cost-sharing.

Specialized GI Procedures

Some GI procedures go beyond the standard scope-through-the-mouth-or-rectum approach. ERCP is a specialized endoscopic technique used to examine and treat problems in the bile ducts and pancreatic ducts. The scope goes through the mouth and down to the small intestine, where the doctor injects contrast dye to visualize the duct system on X-ray. From there, they can remove gallstones stuck in the bile duct, widen narrowed ducts, place stents to keep ducts open, or drain fluid collections near the pancreas. ERCP has largely shifted from a diagnostic tool to a treatment tool, since less invasive imaging like MRI can now provide the diagnostic pictures without the scope.

Endoscopic ultrasound combines a scope with an ultrasound probe, letting the doctor see organs and structures just outside the digestive tract, like the pancreas, lymph nodes, or bile duct walls. It’s commonly used to evaluate masses, stage cancers, and guide needle biopsies of tissue that would otherwise require surgery to reach.

Capsule endoscopy takes a completely different approach. You swallow a pill-sized camera that travels through your entire digestive tract, taking thousands of pictures and transmitting them to a small recorder you wear on a belt. Its main strength is visualizing the small intestine, a long stretch of gut that standard scopes from either end can’t easily reach. Doctors use it most often to find the source of unexplained bleeding in the small intestine, but it also helps diagnose Crohn’s disease, celiac disease, and small intestinal tumors.

How to Prepare

Preparation depends on which procedure you’re having. For an upper endoscopy, you’ll typically fast (no food or drink) starting the night before. For a colonoscopy, preparation is more involved: you’ll eat a low-fiber diet for two to three days, switch to clear liquids on the final day, and drink a prescription laxative solution the afternoon or evening before the procedure. The laxative clears the colon so the camera has an unobstructed view. It’s the part of the process most people find unpleasant, but thorough prep is critical for accurate results.

Capsule endoscopy also requires fasting, but no laxative prep. Your care team will place small adhesive patches on your abdomen (or give you a wearable recorder) before you swallow the capsule.

Sedation During the Procedure

Most GI endoscopy procedures use some form of sedation. The two main levels are moderate sedation (sometimes called conscious sedation) and deep sedation. With moderate sedation, you’re drowsy and relaxed but can still respond to voice or touch. You breathe on your own and your heart function stays normal. It’s typically achieved with a combination of a sedative and a pain reliever given through an IV.

Deep sedation, often called monitored anesthesia care, uses a fast-acting sedative that puts you into a deeper sleep. You won’t remember the procedure and likely won’t respond to anything but strong stimulation. You still breathe on your own in most cases, though the care team monitors you closely because airway support is occasionally needed. Deep sedation has become one of the most common approaches for GI procedures in North America and Europe because it wears off quickly, letting patients recover faster.

Some brief procedures, like an anoscopy, may not require sedation at all.

Recovery and Results

After the procedure, you’ll rest in a recovery area for roughly an hour while the sedation wears off. You’ll need someone to drive you home, since the sedation affects your coordination and judgment for the rest of the day. Most people can eat normally within a few hours, though you may have mild bloating, a sore throat (after upper endoscopy), or some cramping (after colonoscopy).

Your doctor can often share preliminary visual findings right away, such as whether they saw an ulcer, polyp, or inflammation. If tissue samples were taken for biopsy, lab results typically come back within a few days.

Risks and Complications

GI endoscopy procedures are considered safe. The most serious potential complications are perforation (a small tear in the wall of the digestive tract) and bleeding at the site where tissue was removed. For diagnostic upper endoscopy, the perforation rate is about 0.05%, or roughly 1 in 2,000 procedures. Therapeutic procedures that involve stretching or stenting carry higher risk, with perforation rates around 2.6%. Colonoscopy perforation rates fall in a similar low range for diagnostic exams, with slightly higher rates when polyps are removed.

The most common side effects are related to sedation rather than the scope itself: temporary drops in blood pressure or oxygen levels, which the monitoring team manages in real time. Serious complications are rare enough that for most people, the diagnostic or preventive benefit of the procedure far outweighs the risk.