Gastrointestinal endoscopy is a common medical procedure. It uses a thin, flexible tube with a camera and light at the end, called an endoscope. This tube is gently passed through your mouth, esophagus, stomach, and intestines to look inside. Doctors use this to check for problems like inflammation, ulcers, or growths, and sometimes to remove small issues or take tissue samples.
Every report comes from a Lived member, sent anonymously.
No reports yet
Add what worked for you with the search bar below
Gastrointestinal (GI) endoscopy is a way of looking directly inside the digestive tract with an endoscope, a flexible tube with a light and camera at its tip. The doctor passes the scope through the mouth or the anus and watches the lining on a video screen. Because small tools can pass through the scope, the same procedure can take tissue samples (biopsies), remove polyps, stop bleeding or stretch a narrowed area, often avoiding the need for surgery. The name covers several related procedures. Upper endoscopy, also called EGD (esophagogastroduodenoscopy), examines the esophagus, stomach and the first part of the small intestine (the duodenum). It is used to investigate ongoing heartburn or upper abdominal pain, trouble swallowing, persistent vomiting, unexplained anemia or weight loss, and to diagnose conditions such as reflux damage, celiac disease, Barrett's esophagus or cancer. People with cirrhosis may have it to check for swollen veins in the esophagus that can bleed. Colonoscopy examines the rectum and the whole colon. It investigates rectal bleeding, bowel changes or abdominal pain, and it is one of several options for colorectal cancer screening, which generally starts at age 45 for people at average risk. Flexible sigmoidoscopy looks only at the rectum and lower colon. ERCP (endoscopic retrograde cholangiopancreatography) combines upper endoscopy with dye and x-rays to treat blockages or narrowing in the bile and pancreatic ducts, such as a gallstone stuck in the bile duct. Endoscopy is not always the first test. Stool tests and virtual colonoscopy (a computer-assembled x-ray scan of the colon) are alternatives for some screening, and imaging such as a magnetic resonance scan or ultrasound can diagnose many bile duct problems with less risk than ERCP. Which approach fits depends on symptoms, risk and whether treatment is likely to be needed at the same time.
Preparation depends on which part of the gut will be examined. For an upper endoscopy or ERCP, the stomach needs to be empty, so people are usually asked not to eat or drink for up to about 8 hours beforehand. For a colonoscopy, the bowel must be cleared of stool: this typically means a low-fiber or clear-liquid diet for a day or more, then a prescribed laxative that causes frequent watery stools, often split between the evening before and the morning of the test. Finishing the preparation matters, because leftover stool can hide polyps and may mean repeating the procedure. A sigmoidoscopy usually needs a lighter preparation, sometimes only an enema. The care team reviews all medicines and supplements. Most can be taken as usual, but some may need adjusting. Blood thinners (anticoagulants) such as apixaban or rivaroxaban are often paused briefly, while aspirin taken to protect the heart is usually continued, and warfarin is often continued for lower-risk procedures. Diabetes medicines may need dose changes while eating less. People taking a GLP-1 medicine (a glucagon-like peptide-1 drug used for type 2 diabetes or weight loss) such as semaglutide (Ozempic, Wegovy) or tirzepatide (Mounjaro, Zepbound) should say so in advance, because these slow stomach emptying and may leave food in the stomach during sedation; some centers ask for a clear-liquid diet the day before. Do not stop a blood thinner or any other medicine without specific instructions, since the right plan depends on why it was prescribed. Tell the team if you are or might be pregnant, particularly before ERCP, which uses x-rays. If sedation is planned, arrange for an adult to take you home, because you should not drive for the rest of the day.
GI endoscopy is done in a hospital or outpatient endoscopy center. A nurse places an IV (a small tube in a vein in the hand or arm) to give sedation, and breathing, heart rate, blood pressure and oxygen levels are monitored throughout. Many people are deeply relaxed or asleep and remember little; some procedures, particularly sigmoidoscopy, can be done with light sedation or none. ERCP is sometimes done under general anesthesia. For an upper endoscopy, you lie on your left side, a spray or gargle may numb the throat, and a mouth guard protects the teeth. The scope passes down the esophagus into the stomach and duodenum; it does not block breathing. Air is pumped in to open up the lining for a clear view, which can cause a feeling of fullness. The examination usually takes about 10 to 20 minutes. A colonoscopy usually takes less than an hour: the scope is advanced through the anus to the start of the small intestine and the lining is examined as it is withdrawn, and you may be repositioned to help it pass. During ERCP, the doctor slides a thin tube through the scope into the bile or pancreatic duct, injects dye and takes x-rays, then may pass tiny tools through the scope to remove stones or open a narrowed duct. Biopsies and polyp removal are not felt. Whatever is found can often be treated in the same session.
Most people rest in a recovery area for 30 to 60 minutes after upper endoscopy or colonoscopy while the sedation wears off; after ERCP the stay is usually 2 to 6 hours, and some people stay overnight. Bloating, gas or mild cramping from the air used during the test is common and usually settles within hours. After upper endoscopy or ERCP a mild sore throat is common, and if the throat was numbed, wait until swallowing feels normal before eating or drinking. After ERCP, the team may ask you to stay on clear liquids for several hours. Light bleeding from the anus can occur after polyp removal or biopsy during colonoscopy. Most people return to normal eating and activity by the next day, but sedation affects judgment and reaction time, so avoid driving or operating machinery for the rest of the day. The doctor may describe what was seen once you are awake; consider having a companion there, since sedation can blur memory of the conversation. Biopsy and polyp results come from the lab, usually within a few days or longer. The findings determine what happens next, including when to repeat the procedure. Contact the care team right away for chest or abdominal pain that gets worse rather than better, fever, throat pain or trouble swallowing that worsens, vomit that is bloody or looks like coffee grounds, black or tarry stools, or rectal bleeding that does not stop or comes with dizziness or weakness. Bleeding after polyp removal can be delayed by up to two weeks. Trouble breathing after the procedure needs emergency care.
Diagnostic endoscopy is low risk, and serious complications are uncommon. The main risks across all types are a reaction to sedation (which can slow breathing or lower blood pressure and is managed by the team during and after the procedure), bleeding and perforation, a hole or tear in the wall of the gut. Bleeding is usually minor and stops on its own, and it is more likely when tissue is removed. Perforation is rare but may need surgery to repair. A procedure can also miss an abnormality, especially if the bowel preparation was incomplete. Risk rises with the amount of treatment done. In screening colonoscopy, perforation occurs in roughly 3 of every 10,000 procedures and bleeding in about 15 of every 10,000, mostly in older people and after polyp removal. Treatments such as removing large polyps or widening narrowed areas carry more risk than looking alone. ERCP has a noticeably higher complication rate, about 5% to 10% of procedures. The most common is pancreatitis, an inflammation of the pancreas that causes upper abdominal pain and often needs hospital treatment; infection of the bile ducts, bleeding and perforation can also occur. That is why doctors use safer scans to diagnose bile duct problems and reserve ERCP for when treatment is expected.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share your experience with Gastrointestinal Endoscopy, what to expect, or ask the community a question.