A gastroscopy is a medical procedure in which a thin, flexible tube called a gastroscope, fitted with a tiny camera and light source, is passed through the mouth and guided down the throat into the oesophagus, stomach, and the first section of the small intestine known as the duodenum. This allows a gastroenterologist to directly view the lining of the upper digestive tract on a monitor in real time, without making any surgical incision.
The procedure is also referred to as upper gastrointestinal (GI) endoscopy or esophagogastroduodenoscopy (EGD). It is one of the most important diagnostic tools in gastroenterology, used to identify, monitor, and in many cases treat conditions affecting the upper digestive system. A gastroscopy is almost always performed as a day procedure, meaning patients go home the same day.
Table of Contents
- What Is a Gastroscopy?
- What Parts of the Body Does Gastroscopy Examine?
- Why Is a Gastroscopy Needed? 10 Common Reasons
- Gastroscopy vs Upper Endoscopy vs EGD: Are They the Same?
- Diagnostic vs Therapeutic Gastroscopy
- Who Performs a Gastroscopy?
- How to Prepare for a Gastroscopy
- What Happens During the Procedure?
- How Long Does a Gastroscopy Take?
- Does a Gastroscopy Hurt? What Patients Actually Experience
- Gastroscopy Results: What Can Be Found?
- Risks and Complications of Gastroscopy
- Recovery After Gastroscopy
- Gastroscopy in Pakistan: What to Expect
- FAQs About Gastroscopy
- Conclusion
What Parts of the Body Does Gastroscopy Examine?
Gastroscopy examines the three key components of the upper gastrointestinal tract:
| Structure | Location | What Gastroscopy Checks |
| Oesophagus (Food Pipe) | Connects throat to stomach | Inflammation, strictures, Barrett’s oesophagus, tumours, acid damage |
| Stomach | Below the oesophagus | Ulcers, gastritis, H. pylori infection, polyps, bleeding sources, cancer |
| Duodenum | First part of small intestine | Ulcers, inflammation, coeliac disease, duodenitis, bleeding |
The gastroscope itself is approximately the width of a little finger and contains a channel that allows the gastroenterologist to pass instruments for taking biopsies, removing polyps, or treating bleeding during the same procedure.
Why Is a Gastroscopy Needed? 10 Common Reasons
A gastroscopy is recommended when a patient presents with persistent or unexplained upper digestive symptoms that do not respond to standard treatment, or when a condition needs to be confirmed, monitored, or treated. The following are the most frequent reasons a gastroenterologist recommends the procedure:
1. Persistent Acid Reflux or Heartburn (GERD)
Gastroesophageal reflux disease (GERD) that does not improve with antacid medication warrants a gastroscopy to check for oesophageal inflammation, erosions, or Barrett’s oesophagus, a precancerous change in the oesophageal lining caused by long-term acid exposure.
2. Difficulty Swallowing (Dysphagia)
Difficulty or pain when swallowing can indicate a narrowed or obstructed oesophagus, oesophageal cancer, or a structural abnormality. Gastroscopy identifies the cause and, in some cases, allows the narrowing to be dilated in the same session.
3. Persistent Upper Abdominal Pain or Indigestion
Ongoing stomach pain, bloating, or indigestion that does not resolve with medication is one of the most common reasons for referral. Gastroscopy rules out conditions including gastritis, peptic ulcers, and stomach cancer.
4. Unexplained Nausea or Vomiting
Chronic nausea and vomiting without a clear cause may indicate inflammation, obstruction, or an ulcer in the upper digestive tract. Gastroscopy provides direct visualisation to identify the source.
5. Upper GI Bleeding
Vomiting blood (haematemesis) or passing black, tarry stools (melaena) are signs of upper gastrointestinal bleeding. Emergency gastroscopy is used to locate the bleeding source and treat it directly, for example by cauterising a bleeding ulcer or banding oesophageal varices.
6. Unexplained Weight Loss
Significant, unexplained weight loss combined with digestive symptoms raises concern for an underlying malignancy or serious gastrointestinal condition. Gastroscopy with biopsy helps rule out or confirm stomach cancer or oesophageal cancer.
7. Suspected Stomach Ulcers or Helicobacter Pylori Infection
H. pylori is a bacterial infection that causes peptic ulcers and significantly increases the risk of stomach cancer. Gastroscopy can detect ulcers visually and allow biopsies to test directly for H. pylori, providing a definitive diagnosis.
8. Iron Deficiency Anaemia with No Obvious Cause
Unexplained iron deficiency anaemia in adults may indicate chronic slow bleeding in the upper GI tract that is not visible to the patient. Gastroscopy is performed to look for bleeding ulcers, erosions, or tumours as the source.
9. Monitoring Known Conditions
Patients with Barrett’s oesophagus, stomach polyps, or previous gastric ulcers require periodic surveillance gastroscopy to monitor changes and detect any early malignant transformation before it progresses.
10. Coeliac Disease
Coeliac disease is an autoimmune condition triggered by gluten that damages the lining of the small intestine. Gastroscopy allows biopsies from the duodenum, which is the primary method for confirming a coeliac disease diagnosis.
Gastroscopy vs Upper Endoscopy vs EGD: Are They the Same?
These three terms are often used interchangeably and refer to the same procedure:
| Term | What It Stands For | Same Procedure? |
| Gastroscopy | Examination of the stomach (gastro) | Yes |
| Upper Endoscopy | Endoscopy of the upper GI tract | Yes |
| EGD | Esophagogastroduodenoscopy | Yes |
| Upper GI Endoscopy | Upper gastrointestinal endoscopy | Yes |
The slight distinction is that the word ‘gastroscopy’ technically refers to viewing the stomach, while EGD more precisely describes the full scope of the procedure covering the oesophagus, stomach, and duodenum. In clinical practice, all four terms are used interchangeably to describe the same examination.
Diagnostic vs Therapeutic Gastroscopy
Gastroscopy serves two broad categories of purpose:
Diagnostic Gastroscopy
Used to investigate symptoms and identify conditions. During a diagnostic gastroscopy, the gastroenterologist:
- Visually examines the lining of the oesophagus, stomach, and duodenum
- Takes biopsy samples from suspicious areas for laboratory analysis
- Tests for Helicobacter pylori infection via biopsy or rapid urease test
- Assesses conditions like GERD, gastritis, coeliac disease, and Barrett’s oesophagus
Therapeutic Gastroscopy
Used to treat conditions at the time of the examination. Therapeutic interventions possible during gastroscopy include:
- Stopping upper GI bleeding by cauterisation, injection, or clip application
- Banding or injection of oesophageal varices to prevent life-threatening bleeding
- Removal of polyps from the stomach lining (polypectomy)
- Dilation of a narrowed oesophagus to relieve swallowing difficulty
- Placing a feeding tube (PEG tube) directly into the stomach
- Removal of foreign objects accidentally swallowed
The ability to diagnose and treat in a single session makes gastroscopy an extremely efficient and cost-effective procedure compared to needing separate investigations and surgical interventions.
Who Performs a Gastroscopy?
Gastroscopy is performed by a gastroenterologist, a specialist physician trained in diagnosing and treating disorders of the digestive system. In some settings, a trained general surgeon or hepatologist with endoscopy certification may also perform the procedure.
The procedure is carried out in a dedicated endoscopy suite within a hospital or specialist clinic. A trained nursing team assists the gastroenterologist throughout the procedure, managing sedation, monitoring vital signs, and supporting the patient.
How to Prepare for a Gastroscopy
Proper preparation is essential for a safe and accurate gastroscopy. An inadequately prepared stomach makes it difficult to see the stomach lining clearly and increases the risk of vomiting during the procedure.
Fasting Requirements
- Do not eat or drink anything for 6 to 8 hours before the procedure
- Plain water in small sips may be allowed up to 2 hours before (confirm with your gastroenterologist)
- An empty stomach ensures clear visibility and reduces vomiting risk
Medication Adjustments
- Inform your doctor of all medications you take, including over-the-counter drugs and supplements
- Blood-thinning medications (warfarin, aspirin, clopidogrel) may need to be paused before the procedure
- Continue blood pressure, heart, and diabetes medications as directed by your doctor
- Proton pump inhibitors (PPIs) may be stopped before the procedure if H. pylori testing is planned
Practical Preparation
- Arrange transport home, especially if you are having sedation, as you cannot drive afterward
- Bring a list of all current medications to the appointment
- Wear loose, comfortable clothing
- Remove dental plates or removable dental work before the procedure
- Inform the team of any allergies, particularly to medications or latex
| Preparation Step | Timing | Notes |
| Stop eating solid food | 6 to 8 hours before | Even small snacks must be avoided |
| Stop drinking (including water) | 2 to 4 hours before | Confirm exact timing with your doctor |
| Review medications | Day before | Discuss blood thinners and PPIs with your doctor |
| Arrange transport | Before appointment | Mandatory if sedation is used |
| Fast from alcohol | 24 hours before | Alcohol affects sedation effectiveness |
| Remove dental work | On the day | Prevents damage during tube insertion |
What Happens During the Procedure?
Understanding each step of the procedure helps reduce anxiety significantly:
- Arrival and consent: The nursing team reviews medical history, allergies, and current medications. A consent form is signed.
- IV line placement: A small intravenous (IV) cannula is placed in the back of the hand for administering sedation.
- Throat spray: A local anaesthetic spray is applied to the back of the throat to reduce the gag reflex and discomfort during tube insertion.
- Sedation: A mild sedative is given through the IV line to help the patient relax. Most patients feel drowsy and calm. Some prefer to remain awake with the throat spray alone.
- Positioning: The patient lies on their left side on the examination bed.
- Mouthguard: A small plastic mouthguard is placed between the teeth to protect both the patient and the gastroscope.
- Tube insertion: The gastroscope is gently passed through the mouth and guided down the throat. The patient swallows to help the tube pass. This is the moment most patients find uncomfortable but it is brief.
- Examination: The gastroenterologist advances the scope slowly, examining the oesophagus, stomach, and duodenum. Air is gently introduced to expand the stomach for better visibility.
- Biopsies or treatment: If needed, small tissue samples are taken or therapeutic interventions performed using instruments passed through the gastroscope.
- Scope removal: The gastroscope is gently withdrawn. The entire procedure from insertion to removal typically takes 15 to 30 minutes.
How Long Does a Gastroscopy Take?
| Phase | Time |
| Preparation and admission | 30 to 45 minutes |
| Actual procedure (diagnostic) | 10 to 20 minutes |
| Procedure with therapeutic intervention | 20 to 45 minutes |
| Recovery from sedation | 30 to 60 minutes |
| Total time at the facility | 1.5 to 2.5 hours |
The gastroscopy itself is brief. Most patients are surprised at how quickly it is completed. The time at the facility is longer because of pre-procedure preparation and post-sedation recovery monitoring.
Does a Gastroscopy Hurt? What Patients Actually Experience
This is the question most patients ask first, and the honest answer is that gastroscopy is uncomfortable rather than painful for the majority of people:
- During the procedure with sedation: most patients feel drowsy and relaxed and have little or no memory of discomfort
- During the procedure with throat spray only: patients are awake and may feel the tube being swallowed, which triggers a gagging sensation. This is the most uncomfortable moment and passes quickly
- Common sensations: a feeling of pressure or fullness as air is introduced into the stomach, mild bloating, and occasional nausea
- After the procedure: a mild sore throat is the most common complaint and usually resolves within 24 hours
The majority of patients who have had a gastroscopy describe it as more manageable than they expected. Sedation dramatically reduces discomfort and anxiety, and is the preferred option for most patients.
Gastroscopy Results: What Can Be Found?
Depending on the reason for the procedure, gastroscopy can detect a wide range of conditions:
| Condition Found | What It Means | Next Step |
| Gastritis | Inflammation of the stomach lining | Medication; H. pylori treatment if confirmed |
| Peptic Ulcer | Sore on the stomach or duodenum lining | Medication; biopsy to check for H. pylori or malignancy |
| H. pylori Infection | Bacterial infection causing ulcers | Antibiotic course (triple or quadruple therapy) |
| Barrett’s Oesophagus | Precancerous change in oesophageal lining | Regular surveillance gastroscopy; possible ablation |
| Oesophagitis | Inflammation of the oesophagus lining | Proton pump inhibitor medication |
| GERD Erosions | Acid damage to the oesophageal lining | Lifestyle changes plus medication |
| Coeliac Disease | Damage to duodenum from gluten | Strict gluten-free diet |
| Stomach Polyps | Growths on the stomach lining | Removal or surveillance depending on type |
| Oesophageal / Gastric Cancer | Malignant tumour (if detected) | Biopsy; oncology referral; staging investigations |
| Oesophageal Varices | Enlarged veins (linked to liver disease) | Banding or injection treatment |
| Normal Findings | No abnormality detected | Reassurance; symptom management |
If biopsies are taken, results from the laboratory are typically available within 7 to 14 days. The gastroenterologist will discuss findings with the patient at a follow-up appointment.
Risks and Complications of Gastroscopy
Gastroscopy is a very safe procedure with a complication rate of less than one in one thousand for diagnostic cases. However, as with any medical procedure, risks exist and patients should be informed:
Common Minor Side Effects (Very Frequent, Resolve Quickly)
- Mild sore throat lasting 24 to 48 hours after the procedure
- Temporary bloating or gas from air introduced during the examination
- Drowsiness and fatigue for several hours if sedation was used
- Mild nausea in the hours following the procedure
Rare Serious Complications
- Bleeding: rare with diagnostic gastroscopy; more possible when biopsies or therapeutic interventions are performed
- Perforation: a very rare tear in the oesophagus, stomach, or duodenum wall. Risk is higher in therapeutic procedures
- Aspiration: inhaling stomach contents into the lungs, mitigated by fasting requirements
- Reaction to sedation: rare; monitored throughout the procedure by the clinical team
- Infection: extremely rare; endoscopes are sterilised between every use
Recovery After Gastroscopy
Recovery from gastroscopy is straightforward for most patients:
Immediately After the Procedure
- Monitored in a recovery area until sedation effects wear off, usually 30 to 60 minutes
- Vital signs checked by nursing staff
- Throat spray effects wear off within an hour; throat spray patients recover faster than sedated patients
- Results of the visual examination are discussed by the doctor before discharge in most cases
The Rest of the Day
- Patients who received sedation must be accompanied home and must not drive, operate machinery, or make important decisions for 24 hours
- A light meal or soft diet is recommended for the rest of the day
- Avoid alcohol for 24 hours after sedation
- Rest is advised; most patients feel well enough for normal activity by the next morning
When to Seek Medical Attention After Gastroscopy
- Vomiting blood or passing black stools after the procedure
- Severe abdominal pain that worsens over several hours
- Difficulty breathing or chest pain
- Fever above 38.5 degrees Celsius
- Persistent inability to swallow
Gastroscopy in Pakistan: What to Expect
Gastroscopy is widely available across major cities in Pakistan including Islamabad, Lahore, and Karachi. Specialist gastroenterology clinics and hospital endoscopy departments perform the procedure routinely. Key points for patients in Pakistan:
- Referral from a general physician or specialist is typically the starting point
- The procedure is performed by a gastroenterologist in a dedicated endoscopy suite
- Sedation is available and standard in most specialist clinics
- Results for visual findings are usually available on the day; biopsy results take 7 to 14 days
- Costs vary depending on the facility, whether biopsies are taken, and the complexity of the procedure
- Patients should bring a family member or companion to accompany them home after sedation
FAQs
Q1. Is a gastroscopy the same as an endoscopy?
The terms are often used interchangeably in everyday speech. Technically, endoscopy is the broader term covering any camera examination of the body’s internal organs. Gastroscopy specifically refers to endoscopic examination of the upper gastrointestinal tract including the oesophagus, stomach, and duodenum. In most clinical conversations, when a doctor says ‘endoscopy,’ they are referring to a gastroscopy.
Q2. How long does it take to get gastroscopy results?
Visual findings from the examination itself are discussed by the gastroenterologist on the day of the procedure. If biopsy samples were taken, laboratory results typically take 7 to 14 days. The gastroenterologist will arrange a follow-up appointment or contact the patient to discuss biopsy findings.
Q3. Can I eat before a gastroscopy?
No. Patients must fast for 6 to 8 hours before the procedure. The stomach must be completely empty to allow clear visualisation and to prevent vomiting during the examination. Specific fasting instructions will be provided when the appointment is booked.
Q4. Will I be awake during a gastroscopy?
It depends on the choice of the patient and the recommendation of the gastroenterologist. Sedation is available and commonly used, making most patients drowsy, relaxed, and largely unaware of the procedure. Alternatively, the procedure can be performed under local throat spray alone, leaving the patient fully awake but with a numbed throat. Both approaches are safe.
Q5. How soon can I return to work after a gastroscopy?
Patients who had the procedure with throat spray only can return to light work on the same day. Patients who received sedation should not return to work on the day of the procedure and should rest for the remainder of the day. Most patients return to work or normal activities the following morning.
Q6. Can a gastroscopy detect stomach cancer?
Yes. Gastroscopy is the most effective tool for detecting stomach cancer and oesophageal cancer. The gastroenterologist can directly visualise suspicious lesions and take biopsies for laboratory confirmation. Early detection through gastroscopy significantly improves treatment outcomes for upper GI cancers.
Q7. Is a gastroscopy dangerous?
Gastroscopy is a very safe procedure. The risk of serious complications for a diagnostic gastroscopy is less than one in one thousand. The small risks that do exist, including rare perforation or bleeding, are discussed with patients beforehand and are managed effectively when they do occur. The benefit of accurate diagnosis consistently outweighs the procedural risk.
Q8. What is the difference between a gastroscopy and a colonoscopy?
A gastroscopy examines the upper digestive tract: the oesophagus, stomach, and duodenum, using a scope passed through the mouth. A colonoscopy examines the lower digestive tract: the large intestine (colon) and rectum, using a scope passed through the back passage. They are separate procedures examining different parts of the digestive system, though both are types of endoscopy.
Conclusion
A gastroscopy is a safe, quick, and highly effective procedure that gives a gastroenterologist a direct, real-time view of the upper digestive tract. Understanding what gastroscopy is and why it is needed removes much of the anxiety surrounding it. The procedure plays a vital role in diagnosing conditions ranging from acid reflux and stomach ulcers to Helicobacter pylori infection and upper GI bleeding, and in many cases allows treatment to be delivered in the same session.
If a gastroenterologist has recommended a gastroscopy, it is because the procedure provides information that cannot be reliably obtained any other way. With appropriate preparation, the examination is well tolerated by the majority of patients and is completed quickly with minimal disruption to daily life. For patients in Islamabad and across Pakistan, specialist gastroenterology clinics offer gastroscopy in a comfortable, professional setting with experienced teams who guide patients through every step of the process.