Find out when you should have a gastroscopy. Learn about warning signs, indications, preparation for the test, and contraindications.
Table of Contents
- What is gastroscopy and how is the procedure done?
- Most common indications for gastroscopy
- Alarm symptoms – when you shouldn’t delay gastroscopy?
- How to prepare for gastroscopy – a practical guide
- Contraindications to gastroscopy – who should not have the examination?
- What do gastroscopy results mean and what are the next steps?
What is gastroscopy and how is the procedure done?
Gastroscopy, also called upper gastrointestinal endoscopy or panendoscopy, is a specialized diagnostic exam that enables a detailed visualization of the inside of the esophagus, stomach, and duodenum. This is achieved with a flexible endoscope, usually called a gastroscope, equipped with a camera and a light source, allowing the physician to view the inside of the digestive tract on a monitor in real time. Gastroscopy is one of the most important diagnostic tools in gastroenterology – it not only allows early detection of many conditions, such as inflammation, ulcers, polyps, or cancers, but also enables taking biopsies for histopathological examination and carrying out various therapeutic procedures, such as stopping bleeding, removing polyps, or dilating strictures. While this procedure is considered relatively safe, it requires appropriate preparation and must be performed by experienced personnel, like any medical procedure. It is commonly performed on people reporting digestive tract complaints, to precisely identify the cause of symptoms such as upper abdominal pain, chronic heartburn, difficulty swallowing, or bleeding from the upper gastrointestinal tract. Gastroscopy is also used to monitor the course of chronic stomach and duodenal diseases and to assess the effectiveness of pharmacological or interventional treatments. Importantly, the presence of the gastroscope in the gastrointestinal tract does not cause pain, though the procedure can be associated with some discomfort, bloating, or gag reflex, especially when introducing the scope through the throat into the esophagus.
The procedure begins with the patient’s preparation several hours before the examination – usually fasting for a minimum of 6–8 hours is advised. In the office, before the procedure, the doctor or nurse explains the whole process in detail and takes a medical history regarding health status, medications, and allergies. Local anesthesia of the throat (usually as a spray) is used to minimize the gag reflex and make it easier to insert the endoscope. In some cases, especially in children or very sensitive patients, the procedure can be performed under short-term general anesthesia. Once the patient is lying on their left side, with a mouthguard between their teeth, the doctor slowly introduces the gastroscope through the mouth into the esophagus and further into the stomach and duodenum. To obtain the best view and make it easier to observe the organ walls, a small amount of air is blown in during the test, which may cause a feeling of fullness or temporary bloating. The entire examination usually takes several to a dozen or so minutes, depending on the indications and whether additional diagnostic or therapeutic procedures are needed. During gastroscopy, if any suspicious changes to the mucosa are noticed, the doctor can take tissue samples for microscopic examination (biopsy) or perform a test for Helicobacter pylori. After the procedure, the patient is observed for several minutes, and if sedation or general anesthesia is used, longer supervision and avoidance of driving or operating machinery for the rest of the day are necessary. Gastroscopy plays a significant role in diagnosing and treating many upper gastrointestinal tract disorders, and advancements in endoscopic techniques enable even safer, more accurate, and comfortable examinations.
Most common indications for gastroscopy
Gastroscopy is one of the key examinations for diagnosing diseases of the upper gastrointestinal tract, performed based on specific clinical indications. First and foremost, gastroscopy is recommended for people who experience so-called alarm symptoms of the digestive system, such as dysphagia (difficulty swallowing), persistent heartburn, upper abdominal pain, rapid unexplained weight loss, chronic nausea and vomiting, as well as gastrointestinal bleeding manifested by coffee-ground vomiting or black, tarry stools. It’s particularly important when these symptoms occur in people over 45–50 years old or escalate quickly without a prior disease history. Gastroscopy is also used to identify the causes of persistent, non-specific upper abdominal pain that does not subside after symptomatic treatment or recurs despite medication (e.g., proton pump inhibitors). Typical indications also include dyspeptic symptoms such as feelings of fullness, bloating, belching, burning in the esophagus, or sour taste in the mouth lasting more than several weeks. Another group of patients referred for gastroscopy include those with suspected iron deficiency anemia after other causes are ruled out, since chronic bleeding from the upper GI tract can be “silent” and not produce classic symptoms. This examination is also invaluable in the case of suspected chronic bleeding manifested by persistent anemia or a positive fecal occult blood test.
Gastroscopy is also used to diagnose complications of chronic digestive diseases. Classic indications include diagnosis and treatment monitoring of peptic ulcer disease, ongoing control of patients after ulcers (to assess healing or exclude neoplastic changes), and the detection and diagnosis of cancers of the esophagus, stomach, or duodenum. Furthermore, the procedure is valuable in the diagnosis and management of gastroesophageal reflux disease (GERD), especially if complications such as Barrett’s esophagus or esophageal strictures are present. It’s also essential to perform gastroscopy in patients with a positive family history of gastric cancer or other risk factors (e.g. Helicobacter pylori infection, presence of polyps, chronic gastritis, mucosal atrophy). Gastroscopy enables assessment of the esophagus and stomach before planned surgical interventions (e.g. bariatric) and whenever sampling for histopathological study is necessary (e.g., to confirm or exclude celiac disease, lymphoma, infection, amyloidosis, or eosinophilic esophagitis). In clinical practice, gastroscopy is sometimes used as a therapeutic tool – to stop bleeding from ulcers, remove polyps, dilate strictures, or retrieve foreign bodies. The examination is also mandatory in the diagnosis of unexplained jaundice, suspected esophagotracheal fistula, GI tuberculosis, or confirmation of pathological changes detected via imaging studies such as CT or ultrasound. Regular gastroscopy in selected patient groups is crucial for early detection of dangerous diseases and allows effective therapy, often determining prognosis and quality of life.

Alarm symptoms – when you shouldn’t delay gastroscopy?
For concerning symptoms from the upper digestive tract, prompt diagnosis is key to patient health and even survival. Alarm symptoms are those that may point to serious, potentially life-threatening diseases—including digestive tract cancers, severe inflammation, bleeding, or complications of chronic diseases. Key alarm symptoms indicating urgent gastroscopy include: difficulty swallowing (dysphagia) – sudden or progressive trouble with swallowing food or even liquids, often associated with pain or the sensation of food “getting stuck in the throat.” This is especially worrying in people over 45 and may indicate esophageal stricture, tumor, or advanced reflux disease. Another red flag is unexplained weight loss, which always requires urgent attention – if it occurs despite no dietary or lifestyle changes, it could suggest cancer, chronic gastric inflammation, or other serious metabolic disorders. Severe or increasing upper abdominal pain, especially if it occurs at night, doesn’t respond to medication, or is accompanied by vomiting, is also a crucial alarm symptom.
Gastrointestinal bleeding symptoms also require urgent endoscopic diagnosis. Here, focus on the presence of tarry stools (melena) – black, sticky stools with a characteristic smell that indicate blood from the upper digestive tract, usually the stomach or duodenum. Vomiting fresh blood (hematemesis) or coffee-ground-like vomit (resembling coffee grounds) is equally serious and typically signals bleeding from the stomach or esophagus, which may be caused by ulcers, rupture of esophageal varices, or cancer. Pay attention as well to persistent nausea, vomiting, especially if accompanied by loss of appetite, weakness, or iron deficiency anemia confirmed in lab tests. In such cases, it’s necessary to examine the mucosa of the esophagus, stomach, and duodenum for ulcers, cancers, polyps, or other serious pathologies. Special vigilance is required in patients with a family history of gastric or esophageal cancer, as well as all those over 45–50, for whom even seemingly mild symptoms might signal significant disease. Additional alarm symptoms include chronic heartburn unresponsive to treatment, chronic hiccups, fullness, or rapid satiety while eating. Gastroscopy should also be urgently considered in cases of jaundice, persistent hiccups, or sudden health deterioration. Rapid response to these symptoms and early examination leads to faster diagnoses and earlier intervention, directly improving treatment effectiveness and the chances of complete recovery.
How to prepare for gastroscopy – a practical guide
Proper preparation for gastroscopy greatly improves patient comfort, the smooth running of the examination, and the quality of the results obtained. It’s crucial to follow all instructions from your doctor and medical staff, so that the procedure is safe, effective, and free of unnecessary discomfort. The first and foremost step is fasting – it’s recommended not to eat, drink, chew gum, or smoke for at least 6–8 hours before the examination. On the day prior to gastroscopy, the last light meal should be eaten by 6-7 p.m., and from midnight onward, no more food or drinks should be consumed (including coffee or milk). In the morning, you may drink a small amount of still water, if your doctor allows—for those who must take medications at set times (e.g. cardiac drugs, insulin). An empty stomach is essential, as residual food can hinder mucosal assessment or, in extreme cases, cause aspiration during the procedure. Patients taking regular medications (especially anticoagulants, diabetes medicine, antihypertensives, antidepressants, or sleeping pills) should consult their doctor about any necessary modifications, as some substances can impact the procedure or increase the risk of complications such as bleeding. You should also inform your doctor about any allergies, sensitivities to anesthetics, or past diseases, especially those involving the heart or respiratory system.
Arrive at the facility at the indicated time, typically 30–60 minutes before your appointment, to complete paperwork, sign consent forms, and review procedural details. Before entering the procedure room, the patient must remove removable dentures, orthodontic appliances, facial and neck jewelry, and glasses. Avoid heavy makeup, lip balms, or strong perfumes, as these may hinder observation or interfere with the medical team. Mental preparation is important, too – gastroscopy is unpleasant but usually short and routine. Those with higher anxiety or previous negative experiences may be considered for sedatives or general anesthesia, especially children and sensitive patients. Just before the procedure, the throat is often numbed with a special spray to reduce the gag reflex. Use the restroom immediately before entering the endoscopy suite to minimize discomfort during the test. After gastroscopy, do not drive vehicles for at least 2 hours, especially if you’ve received tranquilizers—so plan for someone to drive you home. After the test, gradually reintroduce fluids and easy-to-digest foods, ideally after the throat anesthesia passes, usually 1–2 hours later. Strictly following these steps reduces complications (like aspiration or mucosal injury) and makes the process smooth, trouble-free, and reassuring for both patient and physician.
Contraindications to gastroscopy – who should not have the examination?
Though gastroscopy is a safe and commonly performed diagnostic examination, there are certain clinical situations in which it is contraindicated or requires special precautions. The most significant absolute contraindications—when gastroscopy should not be performed under any circumstances—include severe breathing disorders, acute respiratory or circulatory failure, and shock. Patients in severe decompensation, such as those with decompensated heart failure or respiratory failure, are at high risk of complications. Other important contraindications are recent heart attack (within approximately 6 weeks), since manipulation during the procedure can trigger arrhythmias and cardiac complications. Absolute contraindications also include severe cardiac arrhythmias (e.g. ventricular flutter or fibrillation) and severe coagulopathy (bleeding disorders), which can elevate the risk of excessive bleeding during the procedure. Local anatomical contraindications—such as severely narrowed esophagus, chemical burns of the esophagus, or active GI perforation—are unconditional reasons to postpone gastroscopy or opt for another diagnostic method. There are also relative contraindications requiring tailored assessment by the attending physician. These include, among others, severe respiratory infections (e.g., pharyngitis, tracheitis, bronchitis), uncontrolled hypertension, or recent trauma to the mouth, throat, or esophagus. For patients who’ve recently had surgery on the esophagus or upper digestive tract, gastroscopy could risk suture dehiscence and perforation. Anticoagulant use creates potential complications, but in justified cases, the doctor may decide on temporary withdrawal or special monitoring.
Special attention is warranted for patients at higher risk of complications or intolerant of the procedure. This group includes elderly patients with multiple comorbidities, organ transplant recipients, those with advanced osteoporosis, and women in advanced pregnancy—especially during the first trimester. In pregnant women, gastroscopy should be done only when absolutely essential, after gynecological consultation, using the safest possible anesthesia and fetal monitoring. Likewise, patients with uncontrolled asthma, severe neurological impairment (e.g., uncontrolled epilepsy), or intellectual disabilities require specific evaluation before the exam and may need general anesthesia or sedation. A psychologically aware and legally valid consent is also crucial—the lack of patient or guardian’s consent is a key exclusion factor for children or patients unable to make autonomous decisions. All these factors call for individualized approaches and close cooperation between treating physician, anesthesiologist, and the gastroenterology team. Gastroscopy should not be performed without clear medical indications—the decision must always consider potential diagnostic and therapeutic benefits versus possible risks. Careful patient qualification, risk assessment, and verification of contraindications are fundamental for safe planning and performance of gastroscopy.
What do gastroscopy results mean and what are the next steps?
Receiving your gastroscopy results is a pivotal moment in diagnosing digestive diseases, as it lets the physician assess the mucosal lining of the esophagus, stomach, and duodenum and identify any abnormalities. Gastroscopy findings are usually divided into a description of the macroscopic (visual) image and—if samples were taken—histopathology results. Typical findings on the report include inflammations (mucosal inflammation of the esophagus or stomach, for example), the presence of peptic ulcers, polyps, erosions, hypertrophic changes or tumours, as well as mucosal characteristics (e.g. reddened, swollen, with hemorrhagic spots). The doctor details the location, size, and appearance of any pathologies. Often a biopsy is performed, especially when cancer, precancerous changes (e.g. Barrett’s esophagus), or chronic unexplained inflammation is suspected. Histopathology allows to refine the diagnosis, differentiate benign from malignant changes, and select optimal treatment. Remember: the endoscopic description is informative, but often the final diagnosis comes from histology and the overall clinical picture. Gastroscopy findings can also evaluate the effectiveness of previous treatments (e.g., monitoring ulcers, erosions, or polyps removed in earlier procedures), possible complications (bleedings, perforations), or presence of H. pylori—the bacterium causing many gastric diseases. Some changes noted during gastroscopy, though responsible for symptoms, may require long-term follow-up and tests, especially if cancer risk is increased (e.g. intestinal metaplasia). Sometimes findings are normal—in such cases, further management depends on the persistence of symptoms and a comprehensive health evaluation.
After receiving gastroscopy results, interpretation by a physician is crucial in establishing further diagnostic and therapeutic plans. If minor, benign changes are found, such as mild inflammation or small erosions, pharmacological treatment is usually recommended (e.g. proton pump inhibitors, mucosal protectants, antibiotics for H. pylori) along with control gastroscopy after a set period. If precancerous changes, polyps, or suspicious areas are detected, the standard management is more frequent surveillance and, when necessary, endoscopic removal or referral for surgical treatment. Identifying ulcers requires determining their etiology and implementing suitable treatment and monitoring, while cancerous changes often necessitate extended oncological diagnostics and, often, urgent specialized therapy (e.g., surgery, oncology, radiotherapy). If complications arise, such as bleeding, strictures, or perforations, immediate hospital care and close observation are often required. Long-term follow-up is also necessary for patients after polyp removal, with chronic inflammation, or with conditions increasing the risk of cancerous transformation. Results communication involves patient education, explanation of abnormalities and their meaning, and a discussion of further treatment and prevention measures. The doctor may recommend additional tests—imaging (abdominal USG, CT), labs, or specialist consults. In unclear situations, results are discussed within a gastroenterology or oncology team and compared with previous studies. Ongoing cooperation between patient and doctor, instant reporting of new symptoms, and following therapeutic and follow-up instructions are key to treatment safety and effectiveness. Timely reactions to gastroscopy results not only enable early disease detection but can also help prevent serious disorders and improve quality of life.
Summary
In summary, gastroscopy is a crucial exam for gastrointestinal diagnostics—it allows for early detection of stomach and esophagus diseases. Indications for gastroscopy include persistent heartburn, upper abdominal pain, rapid weight loss, and impaired swallowing. Alarm symptoms should prompt quick consultation and examination. Proper preparation is essential, and contraindications should always be discussed with a doctor. The gastroscopy result enables appropriate treatment or further diagnostics. Regular check-ups and vigilance for alarm symptoms can help prevent serious digestive disorders.