Gastroscopy (Upper GI Endoscopy)
An endoscopic examination of the esophagus, stomach, and duodenum that provides a direct view of the upper gastrointestinal lining, allowing tissue sampling and therapeutic procedures within the same session.
Number of studies
2
Safety
Requires caution
Time to effects
Not applicable — gastroscopy is a diagnostic (and potentially therapeutic) test, not a pharmacological intervention.
Who it's for
Table of contents
TL;DR
An endoscopic examination of the esophagus, stomach, and duodenum that provides a direct view of the upper gastrointestinal lining, allowing tissue sampling and therapeutic procedures within the same session.
- →The only test that directly visualizes and simultaneously biopsies the mucosa of the esophagus, stomach, and duodenum
- →Detects early precancerous changes (Barrett's esophagus, gastric intestinal metaplasia) not visible on imaging tests
- →Enables immediate endoscopic hemostasis for active upper GI bleeding, without the need for surgery
| Test type | Upper gastrointestinal endoscopy (esophagus, stomach, duodenum) with biopsy capability |
|---|---|
| Level of evidence | Strong — first-line test for alarm symptoms and upper GI disease workup |
| Target group | People with dysphagia, chronic reflux, GI bleeding, or unexplained anemia |
| Scope of the exam | Esophagus, stomach, and the bulb and descending portion of the duodenum |
| Duration | Usually 5–15 minutes, longer with therapeutic procedures |
| Status | Invasive procedure performed in medical facilities, under local throat anesthesia with optional intravenous sedation |
Understand
Overview
Gastroscopy, also called esophagogastroduodenoscopy (EGD) or upper gastrointestinal endoscopy, involves inserting a flexible, camera-tipped endoscope through the mouth to directly visualize the mucosal lining of the esophagus, stomach, and the initial portion of the duodenum. Like colonoscopy for the lower GI tract, gastroscopy is both a diagnostic and therapeutic procedure — through the endoscope's working channel, doctors can take tissue samples for histopathology, test for Helicobacter pylori, control bleeding, or dilate an esophageal stricture.
The clinical value of gastroscopy comes from being the only test that directly visualizes and simultaneously biopsies the upper GI mucosa — no imaging test (abdominal ultrasound, CT scan) offers comparable resolution for assessing subtle mucosal changes such as early ulcers, erosions, intestinal metaplasia of the esophageal lining (Barrett's esophagus), or suspicious neoplastic lesions. Unlike functional tests such as esophageal pH monitoring, gastroscopy assesses tissue structure rather than function, making the two types of tests complementary rather than interchangeable.
The test is ordered in a wide range of clinical contexts. The most common indication involves so-called alarm symptoms accompanying upper GI complaints — difficulty swallowing (dysphagia), unintentional weight loss, persistent vomiting, gastrointestinal bleeding (coffee-ground vomiting, black tarry stools), or iron-deficiency anemia without an obvious cause. Another common indication is chronic, treatment-resistant gastroesophageal reflux disease, especially in people over 45–50 or with additional risk factors, where the goal is to rule out Barrett's esophagus or early neoplastic changes. Gastroscopy is also routinely ordered when Helicobacter pylori infection is resistant to treatment, for monitoring known precancerous stomach lesions, and for urgent workup of acute upper GI bleeding.
On the practical side, preparation for gastroscopy is much simpler than for colonoscopy — it only requires fasting, usually for 6–8 hours before the procedure, without any laxative preparation. The procedure itself usually takes 5–15 minutes and can be done with local throat anesthesia (a spray) with or without additional intravenous sedation, depending on patient and facility preference. Afterward, it's recommended to avoid eating and drinking for an hour or two due to the throat numbing, to prevent aspiration. The doctor usually shares macroscopic findings right away, while histopathology results for any biopsies are typically available after 1–2 weeks.
Several recurring misconceptions surround gastroscopy. Some patients worry the procedure will involve gagging or vomiting throughout its entirety — in reality, modern, thin endoscopes and local throat anesthesia significantly reduce the gag reflex, and for most patients the experience comes down to a few uncomfortable but brief moments at the start of the exam. Another misconception is treating reflux symptoms as sufficient grounds for self-diagnosis without a test — many more serious conditions, including early neoplastic changes, can produce symptoms identical to ordinary heartburn.
Gastroscopy remains the first-line test for alarm symptoms and chronic upper GI complaints, combining the precision of direct visual mucosal assessment with the ability to immediately take diagnostic material or perform a therapeutic intervention. The decision about indications for the test, its urgency, and the frequency of any follow-up exams is worth discussing individually with your doctor, taking into account the nature of your symptoms, age, and individual risk factors.
Mechanism of action
The diagnostic effectiveness of gastroscopy rests on several complementary technical mechanisms. The first is the endoscope's construction itself — a flexible tube, usually 9–11 millimeters in diameter, equipped with a light source, a high-resolution camera at the distal tip, and a working channel, is inserted through the mouth or, in the transnasal variant, through the nose, and then advanced through the esophagus and stomach to the duodenal bulb and descending portion. Local throat anesthesia with a lidocaine spray suppresses the gag reflex triggered by mechanical stimulation of the posterior pharyngeal wall as the scope is inserted.
The second factor is insufflation of air or carbon dioxide into the GI lumen, which — as in colonoscopy — stretches the walls of the esophagus and stomach, flattening their folds and enabling full mucosal visualization, including areas tucked into the folds of the stomach wall, particularly along the greater curvature and near the pylorus.
The third mechanism is a systematic, standardized examination path covering every anatomical segment of the upper GI tract — the esophagus (with particular attention to the gastroesophageal junction, where Barrett's esophagus develops), the fundus, body, and antrum of the stomach, and then the duodenal bulb and descending portion. Modern endoscopes use narrow-band imaging (NBI) and optical magnification, which reveal subtle changes in vascular pattern and mucosal architecture, increasing sensitivity for detecting early neoplastic changes and intestinal metaplasia that are hard to spot under white light.
The fourth mechanism, decisive for the test's clinical value, is the ability to take tissue and perform therapeutic procedures through the scope's working channel within the same session. Biopsy forceps take small mucosal fragments for histopathological evaluation or a rapid urease test detecting Helicobacter pylori, while in cases of active bleeding, the same working channel allows tools for endoscopic hemostasis — mechanical clips, thermal probes, or vessel-constricting solutions — to be introduced without a separate surgical procedure.
Scope insertion and local throat anesthesia
A flexible endoscope is inserted through the mouth or nose after a throat-numbing spray suppresses the gag reflex.
Insufflation and stretching of the GI wall
Air or carbon dioxide stretches the esophagus and stomach, flattening folds and exposing the mucosa for assessment.
Systematic assessment of every segment
The doctor examines the esophagus, stomach, and duodenum in turn following a standardized path, using narrow-band imaging to detect subtle changes.
Biopsy and therapeutic intervention in the same session
The scope's working channel enables tissue sampling, an H. pylori test, or immediate hemostasis in cases of active bleeding.
Evidence: strong — based on 2 studies in this database.
Benefits
Common myths
MythGastroscopy always involves a strong gag reflex and significant discomfort throughout the entire procedure.
FactLocal throat anesthesia and modern, thin endoscopes significantly limit the gag reflex — for most patients, only the brief moment of scope insertion is truly uncomfortable.
MythHeartburn symptoms can always be self-diagnosed and treated without a test.
FactMany more serious upper GI conditions, including early neoplastic changes and Barrett's esophagus, can produce symptoms indistinguishable from ordinary heartburn without an endoscopic exam.
MythGastroscopy is only needed for severe abdominal pain.
FactThe test is also ordered for seemingly mild symptoms, such as chronic mild anemia or long-standing, nonspecific upper abdominal discomfort, which can signal a more serious underlying condition.
MythYou can't function normally for the entire day after a gastroscopy.
FactWithout intravenous sedation, patients can usually return to normal activity almost immediately once the throat anesthesia wears off; driving restrictions mainly apply after sedation is used.
Forms & variants
Gastroscopy (Upper GI Endoscopy) comes in several forms that differ in bioavailability and use case — the form you pick genuinely matters for how effective the supplementation is.
Standard diagnostic gastroscopy
Visual assessment of the esophageal, gastric, and duodenal mucosa with the option to take biopsies for histopathology.
Best for: Symptom workup, Barrett's esophagus screening, and Helicobacter pylori assessment
Therapeutic gastroscopy
A procedure combined with hemostasis for bleeding, dilation of a stricture, or removal of a polyp through the scope's working channel.
Best for: Treating active bleeding, esophageal strictures, or polypoid lesions in the same session
Transnasal gastroscopy with a thin scope
A variant using a thinner endoscope inserted through the nose instead of the mouth, usually without intravenous sedation.
Best for: People with a strong gag reflex or a preference for a procedure without sedation
Check your profile
Not sure which supplements actually make sense for you?
Answer a few short questions about your lifestyle, diet, sleep, and goals. VitMode will build your profile and show supplements worth considering — with reasoning and evidence strength.
Recommendations take your answers and the strength of the scientific evidence into account. A supplement's popularity has no bearing on whether it gets recommended.
Practice
Frequently asked questions
The procedure itself isn't painful, though it triggers a transient gag reflex in some patients as the scope is inserted. Local throat anesthesia and optional intravenous sedation significantly reduce discomfort.
Yes, it's usually recommended to avoid eating for at least 6–8 hours and drinking for 2–4 hours before the test, so the stomach is empty and allows full mucosal visualization.
The diagnostic procedure itself usually takes 5–15 minutes, though this can extend when biopsies or therapeutic procedures, such as bleeding control, are performed.
If local throat anesthesia was used, it's recommended to wait usually 1–2 hours before eating and drinking, until the numbing wears off and the normal swallowing reflex returns, to prevent aspiration.
Yes, it's one of the most effective tests for detecting early neoplastic and precancerous changes in the stomach and esophagus, especially combined with modern narrow-band imaging and targeted biopsy of suspicious areas.
What to combine with
Good combinations
Proton Pump Inhibitors (PPIs) — Proton pump inhibitor therapy and gastroscopy are often considered together for chronic reflux disease — the test can assess treatment effectiveness and rule out complications
Vitamin B12 — Chronic atrophic gastritis detected on gastroscopy can impair vitamin B12 absorption, so the two tests are sometimes ordered together
Colonoscopy — For unexplained gastrointestinal bleeding or anemia, doctors often order both endoscopic tests to assess the upper and lower GI tract together
Safety
Side effects & contraindications
Possible side effects
Transient throat discomfort, hoarseness, or irritation after the procedure, usually resolving within a day
Bloating and a feeling of fullness in the upper abdomen related to residual air in the stomach
Risk of bleeding after biopsy or a therapeutic procedure, usually minor and self-limiting
Rare risk of esophageal or gastric perforation, estimated at under 1 in 1,000 diagnostic procedures, higher with therapeutic interventions
Reactions related to intravenous sedation, if used — drops in blood pressure, respiratory depression, requiring monitoring during the procedure
Contraindications
Suspected gastrointestinal perforation or severe, unstable peritonitis
Cardiopulmonary instability precluding safe performance of the procedure and any sedation
Recent heart attack or another acute, unstabilized cardiovascular condition — usually requires postponing the procedure until stabilized
Suspected large thoracic aortic aneurysm in close proximity to the esophagus
Lack of patient cooperation preventing safe insertion and maintenance of the endoscope
Interactions
Anticoagulants and antiplatelet drugs (warfarin, non-vitamin K oral anticoagulants, clopidogrel) may require temporary discontinuation before a planned biopsy or therapeutic procedure
Proton pump inhibitors taken before the test can mask ulcers or reduce the sensitivity of the urease test for Helicobacter pylori, so temporary discontinuation is sometimes recommended before a test aimed at diagnosing infection
Insufficient fasting time before the test increases the risk of aspirating gastric contents during anesthesia or sedation
Antacids taken shortly before the test can hinder mucosal assessment by leaving residue on its surface
Intravenous sedation (propofol, benzodiazepines, opioids) interacts with other centrally acting drugs and requires an escort after the procedure
A recently eaten meal or drink, even a small amount of fluid, may force the procedure to be postponed due to risk of incomplete visualization and aspiration
Is it worth taking?
Who it's for
- People with difficulty swallowing, persistent vomiting, or unintentional weight loss
- People with chronic, treatment-resistant gastroesophageal reflux disease, especially after age 45–50
- Patients with suspected upper GI bleeding or unexplained iron-deficiency anemia
- Patients with treatment-resistant or recurrent Helicobacter pylori infection requiring structural mucosal assessment
Not for
- Suspected gastrointestinal perforation or severe, unstable peritonitis
- Cardiopulmonary instability precluding safe performance of the procedure and any sedation
- Recent heart attack or another acute, unstabilized cardiovascular condition — usually requires postponing the procedure until stabilized
- Suspected large thoracic aortic aneurysm in close proximity to the esophagus
- Lack of patient cooperation preventing safe insertion and maintenance of the endoscope
Evidence
Worth knowing
Gastroscopy is the only test that allows simultaneous visual assessment and biopsy of the esophageal, gastric, and duodenal mucosa in one procedure.
Modern endoscopes with narrow-band imaging (NBI) increase detection of early metaplastic and neoplastic changes not visible under white light.
The urease test for Helicobacter pylori can be performed on the same mucosal sample taken during the exam, without a separate procedure.
The transnasal variant with a thinner endoscope allows some patients to have the procedure without intravenous sedation and return to daily activity faster.
Studies
The diagnostic yield of upper endoscopy is significantly higher when the test is performed according to appropriate clinical indications, particularly for gastrointestinal bleeding and dysphagia.
Zullo A et al., Digestive and Liver Disease, 2019
ACG Clinical Guideline: Upper Gastrointestinal and Ulcer Bleeding
Strong evidenceLaine L, Barkun AN, Saltzman JR, Martel M, Leontiadis GI · American Journal of Gastroenterology · 2021
American College of Gastroenterology guidelines on the role of urgent gastroscopy and endoscopic hemostasis methods in diagnosing and treating upper gastrointestinal bleeding.
View studyDiagnostic yield of upper endoscopy according to appropriateness: A systematic review
Moderate evidenceZullo A, Manta R, De Francesco V, Fiorini G, Hassan C, Vaira D · Digestive and Liver Disease · 2019
A systematic review showing that gastroscopy's diagnostic yield is significantly higher when the test is ordered according to appropriate clinical indications, particularly for bleeding and dysphagia.
View studySources & bibliography
- Laine et al. 2021 — American Journal of Gastroenterology
- Zullo et al. 2019 — Digestive and Liver Disease
Citations are illustrative for this demo version and require full bibliographic verification by the editorial team before production publication.
Compare with similar entries
About the authors of this entry
Author
dr Anna KowalczykEditor-in-Chief, Molecular Biology
Anna studied molecular biology at the University of Warsaw, then spent eight years after her PhD in a lab researching the mechanisms of cellular aging and autophagy. She stumbled into science journalism almost by accident — frustrated by how easily her field's findings get oversimplified in the media, she started a blog explaining the biology of aging in plain language. That blog became the seed of VitMode. Today Anna oversees the entire editorial process, holding every piece to the same rigor her old lab demanded: primary sources, methodology checks, and honesty about the limits of the evidence. Outside work, she's a dedicated boulderer.
157 publications on this site
Medical review
dr Piotr ZielińskiEndocrinologist
Piotr has practiced endocrinology for more than fifteen years, mostly in male hormonal disorders and metabolic health. He joined VitMode as a scientific consultant because, as he jokes, he got tired of explaining the same testosterone questions at every appointment and decided to write the answers down properly, once. He reviews content on hormone therapy, supplement pharmacology and drug interactions, making sure articles never turn into encouragement to self-supplement in situations that genuinely need diagnostics and medical supervision. His professional motto — "evidence first, enthusiasm second" — has come up more than once with a patient who arrived with a supplement plan they found online.
210 publications on this site
Related entries
4.3Proton Pump Inhibitors (PPIs)
Among the most commonly prescribed drugs in the world, effectively suppressing stomach acid production — but increasingly used chronically for longer than clinical guidelines suggest.
4.7Vitamin B12
The only vitamin the body can store in the liver for years — yet its deficiency is often mistaken for dementia, depression or plain fatigue, because neurological changes can precede any abnormality in a standard blood count by years.
4.5Ferritin
An iron-storage protein whose blood level is the best available indicator of the body's iron stores — though it can be falsely elevated by inflammation, which complicates straightforward interpretation.
4.6Colonoscopy
An endoscopic examination of the entire large intestine that lets doctors find and immediately remove polyps before they can turn into cancer — the only widely available screening test that combines diagnosis and treatment in a single procedure.
4.8VO2 max
The maximum amount of oxygen the body can take up during exercise — one of the strongest, well-documented predictors of lifespan, measurable in a sports diagnostics lab.
4.7MRI (Magnetic Resonance Imaging)
MRI uses a strong magnetic field and radio waves, not ionizing radiation, to produce images with exceptionally high soft-tissue contrast — brain, spinal cord, joints, and internal organs — at the cost of a much longer scan time than CT.
4.7Mammography
An X-ray examination of the breast that is the primary method for screening detection of breast cancer at an early, asymptomatic stage — the only imaging test with mortality reduction documented in randomized clinical trials.
4.7Echocardiography (Cardiac Echo)
Echocardiography is a real-time ultrasound test of the heart that — unlike an ECG, which only assesses electrical activity — shows chamber structure, valve function, and the strength of the heart muscle's contraction, with no radiation exposure.
Related articles
Comments (2)
- KW
Kasia W. 2 weeks ago
Very clearly explained, especially the interactions section — I hadn't seen it laid out this well anywhere else.
- MT
Marek T. a month ago
Are you planning to update this with the newest study from this year? I saw an interesting meta-analysis.

