Is an Upper GI the Same as an Endoscopy?

An upper GI and an endoscopy are not the same test, though both examine the same part of your body: the esophagus, stomach, and the beginning of the small intestine. The confusion is understandable because doctors sometimes use “upper GI” loosely, and both procedures investigate similar symptoms. But they work in fundamentally different ways, provide different levels of detail, and feel very different as a patient.

Two Tests, Two Approaches

An “upper GI series” (also called a barium swallow) is an X-ray-based test. You drink a thick, chalky barium liquid with a milkshake-like consistency, which coats the lining of your digestive tract and makes it visible on X-ray. A radiologist watches the barium move through your system in real time using a type of live X-ray called fluoroscopy. You may be asked to stand, sit, or lie in different positions so the barium spreads evenly. The whole thing is done without sedation, and you stay fully awake.

An upper endoscopy (formally called an EGD, for esophagogastroduodenoscopy) is a camera-based test. A thin, flexible tube about 10 mm in diameter, with a light and high-definition camera on the tip, is guided through your mouth, down your throat, and into your digestive tract. You’re typically sedated for this, and a plastic mouth guard keeps your mouth open during the procedure. The camera transmits a live video feed, giving your doctor a direct, close-up view of the tissue lining your upper GI tract.

What Each Test Can Actually Do

This is where the gap between the two tests becomes significant. A barium swallow shows the shape and outline of your digestive tract. It’s useful for spotting structural problems: narrowing, blockages, hernias, or abnormalities in how food and liquid move through your system. It gives your doctor a kind of roadmap, but it can’t show surface-level tissue detail.

An endoscopy shows the actual tissue in high definition. Your doctor can see inflammation, ulcers, abnormal growths, and color changes that suggest disease. More importantly, the endoscope carries small tools like forceps and scissors through its instrument channel. That means your doctor can take tissue samples (biopsies) during the same procedure, remove polyps, or even retrieve swallowed foreign objects. A barium swallow can’t do any of that. If something suspicious shows up on a barium swallow, you’ll likely need an endoscopy afterward to get a definitive answer.

When Doctors Choose One Over the Other

A barium swallow is often the first step for relatively straightforward problems, especially swallowing difficulties. If your doctor wants to see how well food moves through your esophagus and into your stomach, or suspects a structural issue like a hiatal hernia, barium imaging can answer that question without sedation or an invasive procedure.

An endoscopy is preferred when the diagnosis is more complex or when tissue confirmation is needed. Suspected ulcers, unexplained bleeding, persistent acid reflux that hasn’t responded to treatment, screening for precancerous changes like Barrett’s esophagus, and evaluation of potential cancers all call for endoscopy. Research comparing the two for gastric cancer screening found that endoscopy detects cancer at an earlier stage than X-ray imaging and is the preferred choice for high-risk patients, partly because it allows immediate biopsy for confirmation.

What to Expect as a Patient

Both tests require you to fast beforehand, typically overnight, so your stomach is empty and your doctor gets a clear view.

For a barium swallow, you show up, drink the barium, and stand or lie on an X-ray table while images are taken. A technician may press gently on your abdomen to help spread the barium. In some cases, you’ll also swallow gas-forming crystals that expand your stomach for more detailed images (called a double-contrast study). There’s no sedation, no recovery period, and you can generally go about your day afterward. The procedure does involve radiation exposure, roughly 6 mSv, which is equivalent to about two years of natural background radiation.

For an endoscopy, the experience is more involved. Your throat is numbed with an anesthetic spray, and you receive sedation through an IV. A mouth guard is placed, and the scope is inserted. You may feel pressure in your throat but shouldn’t feel pain, and the tube doesn’t block your breathing. Gentle air pressure inflates your digestive tract slightly so the camera can see better. The procedure takes about 30 to 60 minutes. Because of the sedation, you’ll need someone to drive you home and should plan for a recovery period of a few hours where you may feel groggy.

Why the Terms Get Confused

Part of the confusion comes from the fact that an upper endoscopy is sometimes called an “upper GI endoscopy.” So when someone says “upper GI,” they could mean either the barium X-ray series or the endoscopy, depending on context. If your doctor orders an “upper GI,” it’s worth asking specifically which test they mean. The barium swallow is a passive imaging test with no sedation. The endoscopy is a more involved procedure with sedation, a camera, and the ability to take biopsies. They overlap in what they examine but not in what they can tell you.