An upper GI refers to the upper gastrointestinal tract, the stretch of your digestive system from your mouth down through your esophagus, stomach, and the first part of your small intestine (the duodenum). The term also shows up in two common medical procedures: an upper GI endoscopy, where a doctor uses a flexible camera to look inside these organs, and an upper GI series, where you drink a chalky liquid and get X-rays. If your doctor mentioned “an upper GI,” they’re almost certainly talking about one of these tests.
What the Upper GI Tract Includes
Your upper GI tract is essentially the first half of your digestive pipeline. Food enters your mouth, travels down the esophagus, lands in the stomach, and passes into the duodenum, where bile and digestive enzymes begin breaking it down further. The boundary between “upper” and “lower” GI is a small anatomical landmark where the duodenum meets the next section of the small intestine. Everything above that point counts as upper GI territory.
This matters because problems in this region produce a distinct set of symptoms: heartburn, difficulty swallowing, upper belly pain, nausea, and vomiting. When doctors investigate these complaints, they use procedures specifically designed to visualize or image the upper tract.
Upper GI Endoscopy (EGD)
The most common upper GI procedure is an endoscopy, formally called an esophagogastroduodenoscopy, or EGD. A gastroenterologist passes a thin, flexible tube with a camera and light on its tip through your mouth, down your throat, through your esophagus, into your stomach, and into the duodenum. The camera sends live images to a screen, giving the doctor a direct, color view of the tissue lining these organs.
Beyond just looking, the doctor can take biopsies (small tissue samples) of anything that looks abnormal, stop active bleeding, stretch open narrowed areas, or remove growths and foreign objects. This ability to both diagnose and treat in the same session is the main advantage over imaging-based tests.
Why Doctors Order One
An EGD is typically ordered when you have symptoms that haven’t responded to initial treatment or that raise concern. Common reasons include:
- Difficulty swallowing that’s new or worsening
- Unexplained upper belly pain or chest pain that isn’t heart-related
- Persistent vomiting without a clear cause
- Unexplained weight loss
- Signs of bleeding in the upper GI tract, such as vomiting blood or dark, tarry stools
The procedure can identify or confirm acid reflux disease (GERD), ulcers, inflammation, hiatal hernias, celiac disease, Barrett’s esophagus, infections, enlarged veins in the esophagus, and both cancerous and noncancerous tumors. Doctors also use it to check healing after surgery on the stomach or duodenum.
What Happens During the Procedure
An EGD is an outpatient procedure that typically takes less than an hour from start to finish. You’ll lie on your side, and a healthcare provider will give you sedation. Most people receive moderate sedation, which puts you to sleep and keeps you pain-free. In some cases, local anesthesia (a numbing spray for your throat) with a mild sedative is used instead. General anesthesia with a breathing tube is only needed in a small percentage of cases.
The procedure itself is not painful. Because you’re sedated, most people remember little or nothing about it. A sore throat afterward is common but usually resolves within a day or two.
How to Prepare
Preparation is straightforward. You’ll need to stop eating solid food after midnight the night before, and have nothing to eat or drink for at least eight hours before the procedure. If you take daily medications, you can usually take them four hours beforehand with small sips of water, but your doctor will give you specific instructions. You’ll also be told to stop taking anti-inflammatory painkillers like ibuprofen about five days in advance, and to hold off on antacids the day of the test.
Recovery
After the procedure, you’ll stay at the facility for one to two hours while the sedation wears off. Because of the sedation, you’ll need someone to drive you home. Most people feel back to normal by the next day and can return to their usual activities. Your doctor will give you dietary guidance for the first few hours, which usually means starting with liquids and soft foods before resuming your regular diet.
Risks
Serious complications from a diagnostic EGD are rare. Perforation, a small tear in the wall of the esophagus, stomach, or duodenum, occurs in roughly 1 in 2,500 to 1 in 11,000 procedures. Heart or breathing complications related to sedation happen in up to 0.6% of cases. Significant bleeding after biopsies is exceedingly uncommon. For the vast majority of people, the biggest “side effect” is a mildly sore throat.
Upper GI Series (Barium Swallow)
An upper GI series takes a different approach. Instead of a camera, it uses X-rays. You drink barium, a thick, chalky contrast liquid that coats the lining of your esophagus, stomach, and duodenum so they show up clearly on imaging. A technician then takes a series of X-rays and fluoroscopy images (essentially a real-time X-ray video) as the barium moves through your upper tract.
This test is noninvasive, requires no sedation, and you can drive yourself home afterward. It’s useful for evaluating swallowing problems and structural issues like strictures or hernias. The tradeoff is that it provides less detail than an endoscopy and can’t take tissue samples or treat problems on the spot. If the barium study reveals something concerning, an EGD often follows.
Which Test You’re Likely to Get
For most people with persistent upper GI symptoms, an endoscopy is the standard choice because it offers the clearest view and the option to biopsy or treat in a single visit. A barium swallow is sometimes preferred when the main concern is how well you’re able to swallow or when a doctor wants a broad structural overview before deciding on next steps. Your symptoms, medical history, and what your doctor is looking for will determine which test makes sense.