An endoscopy is a medical procedure that uses a thin, flexible tube with a light and camera to look inside your body without surgery. The tube, called an endoscope, sends real-time video to a screen so a doctor can examine organs, take tissue samples, and even treat certain problems on the spot. It’s one of the most common diagnostic procedures in medicine, covering everything from stomach issues to joint problems to lung conditions.
Types of Endoscopy
The word “endoscopy” is an umbrella term. The specific name changes depending on where in the body the scope goes:
- Upper GI endoscopy: examines the esophagus and stomach, usually by passing the scope through the mouth
- Colonoscopy and sigmoidoscopy: examine the large intestine
- Bronchoscopy: looks inside the lungs and airways
- Cystoscopy: examines the urinary system, including the bladder
- Arthroscopy: views the inside of a joint, such as the knee or shoulder
- Laparoscopy: examines the abdomen or pelvis through small incisions
When most people say “endoscopy” without any qualifier, they usually mean an upper GI endoscopy, the type that examines the esophagus and stomach. That’s the version this article focuses on most, though the general experience is similar across types.
What an Endoscope Actually Does
The endoscope is a long, thin, flexible tube designed to navigate the curves and tight spaces inside your body. At its tip sits a tiny camera and a light source. As the scope moves through, it captures high-resolution images and streams them to a monitor, giving the doctor a detailed, real-time view of the tissue lining.
Modern endoscopes can do more than just look. Many have a small channel that allows the doctor to pass instruments through the tube. This means a single procedure can serve both diagnostic and treatment purposes: the doctor might take a tissue sample (biopsy) for lab analysis, remove a polyp, cauterize a bleeding spot, place a clip to close a wound, or insert a stent to hold open a narrowed passage. That versatility is a major reason endoscopy is so widely used.
Why Doctors Order One
Endoscopy gives doctors a direct look at tissue that imaging like X-rays or CT scans can miss. It’s especially good at detecting superficial or hidden lesions on the inner lining of organs. Common reasons for an upper endoscopy include persistent heartburn, difficulty swallowing, unexplained abdominal pain, nausea that won’t resolve, or signs of internal bleeding like blood in vomit or dark stools.
For the lower GI tract, colonoscopy is the standard tool for colon cancer screening and for investigating changes in bowel habits, rectal bleeding, or chronic diarrhea. Bronchoscopy helps evaluate a persistent cough, abnormal chest imaging, or airway obstructions. In each case, the ability to both see the problem and take a tissue sample in one visit makes endoscopy more efficient than a series of separate tests.
How to Prepare
Preparation depends on which type of endoscopy you’re having, but fasting is almost always involved. For an upper endoscopy, the standard recommendation is to stop eating at least six to eight hours beforehand. Clear liquids are typically allowed up to two hours before the procedure. Fatty foods and meat slow stomach emptying, so doctors usually ask you to keep your last meal light.
For a colonoscopy, preparation is more involved. You’ll need to do a bowel prep the day before, which involves drinking a prescribed solution that clears out your intestines. It’s the part most people dread, but a clean colon is essential for the doctor to see anything useful.
If you take blood thinners or antiplatelet medications, your doctor will give you specific instructions on whether to pause them before the procedure. This is a conversation worth having well in advance, not the morning of.
What Happens During the Procedure
Most endoscopies are outpatient, meaning you go home the same day. For an upper endoscopy, you’ll lie on your side. The doctor may spray a numbing agent on the back of your throat to reduce the gag reflex, then gently guide the scope through your mouth, down your esophagus, and into your stomach.
Sedation levels vary. The most common approach is moderate sedation (sometimes called conscious sedation), where you’re drowsy and relaxed but can still respond to voice commands. You likely won’t remember much of the procedure afterward. Deep sedation, where you’re much harder to rouse, is used in some cases. Full general anesthesia is rare for routine endoscopy, accounting for only about 3% of procedures at major centers. Many facilities use a fast-acting sedative that wears off quickly, which has changed the recovery experience significantly compared to older approaches.
The procedure itself is usually quick. A diagnostic upper endoscopy often takes 15 to 30 minutes. If the doctor needs to remove tissue or treat something, it may run longer.
Recovery and Getting Home
After the scope is removed, you’ll spend time in a recovery area while the sedation wears off. Staff will monitor your vital signs and basic alertness before clearing you to leave. You will need someone to drive you home. The American Society of Anesthesiologists requires that you be alert, oriented, and discharged with a responsible adult.
The traditional guideline says no driving for 24 hours after sedation, though this timeframe was based on older sedation drugs that lingered longer in the body. Newer research paints a more nuanced picture. A study of colonoscopy patients found that those sedated with a fast-acting agent recovered baseline driving ability on a simulator within one to two hours after the procedure. Still, one study found that patients needed a median of about 20 hours to feel completely back to normal, even if their motor skills recovered sooner. The gap between “technically capable” and “feeling like yourself” is real, so plan for a low-key rest of the day.
You can usually eat within a few hours, starting with something light. A mild sore throat after an upper endoscopy is normal and typically fades within a day. Bloating or mild cramping after a colonoscopy is also common, caused by air introduced during the procedure.
Risks and Complications
Endoscopy is considered very safe. The most common issues are related to sedation rather than the scope itself. Cardiopulmonary events (drops in oxygen or blood pressure) account for over 60% of unplanned events during endoscopy, but they occur in only about 0.6% of upper GI procedures. Sedation-related complications overall run about 0.3%, with serious complications at 0.01%.
Perforation, where the scope creates a small tear in the organ wall, is the complication people worry about most. For a diagnostic upper endoscopy, the rate is between 1 in 2,500 and 1 in 11,000. Clinically significant bleeding after a diagnostic procedure with biopsies is exceedingly rare. If the endoscopy is done through the nose (transnasal endoscopy), nosebleeds occur in about 1% to 2% of cases but are almost always minor and stop on their own.
Capsule Endoscopy
For parts of the small intestine that a traditional scope can’t easily reach, there’s a wireless alternative: capsule endoscopy. You swallow a pill-sized camera that takes 2 to 6 photos per second as it travels through your digestive tract over 8 to 12 hours. The images transmit to a small receiver you wear on your belt, and a doctor reviews them later.
Capsule endoscopy is most often used when standard endoscopy and colonoscopy haven’t found the source of recurring GI bleeding. It’s also valuable for monitoring chronic conditions like Crohn’s disease, where the small bowel is commonly affected. Its diagnostic yield is higher than barium X-rays, CT scans of the intestine, and several other imaging methods for detecting subtle lesions.
The key limitation is that capsule endoscopy is purely diagnostic. The camera can spot a problem, but it can’t take a biopsy, remove a growth, or deliver any treatment. If it finds something, you’ll likely need a follow-up procedure with a traditional scope.