Upper Endoscopy (EGD) Preparation
From the هضم DIGEST medical team · GI, liver and endoscopy · Riyadh

Overview
An upper endoscopy (also called EGD or gastroscopy) is a 10–15 minute procedure where a thin, flexible camera is passed through the mouth to examine the esophagus, stomach, and the first part of the small intestine (duodenum). It's used to investigate heartburn, swallowing problems, abdominal pain, anemia, or suspected ulcers — and it can take biopsies to test for H. pylori, celiac disease, or pre-cancerous changes (Barrett's esophagus). You'll be sedated through an IV and feel almost nothing.
Common Reasons for an EGD
Persistent heartburn or reflux not responding to medication
Difficult or painful swallowing
Unexplained upper abdominal pain or nausea
Iron-deficiency anemia or upper-GI bleeding
Suspected H. pylori infection or stomach ulcer
Investigation for celiac disease
Surveillance for Barrett's esophagus
Before Your Procedure
Fast for at least 8 hours before your appointment — no food, milk, or juice
You may sip a small amount of water until 4 hours before
Take essential morning medications with a small sip of water unless told otherwise (skip diabetes meds the morning of)
Discuss blood thinners (aspirin, warfarin, clopidogrel, NOACs) with your doctor at least a week before
Tell us about allergies, heart or lung problems, and any prior reactions to sedation
Arrange an adult driver — you cannot drive for 24 hours after sedation
During & After
You'll lie on your left side; a soft mouth guard protects your teeth
Sedation works within seconds — most patients don't remember the procedure
A mild sore throat for a few hours is normal
Wait for the sedation to wear off (60–90 minutes) before going home
Resume eating with light foods 30–60 minutes after, once swallowing feels normal
Avoid alcohol, driving, and important decisions for 24 hours
Visual results are explained before you leave; biopsy or H. pylori results follow in 5–10 days
When to Call Us After
Call us if you have severe chest or abdominal pain, fever above 38°C, persistent vomiting (especially with blood), shortness of breath, or trouble swallowing that is worse than before. A mild sore throat and bloating are normal and resolve within 24 hours.
How to prepare for an upper endoscopy (gastroscopy)
An upper endoscopy needs an empty stomach so the doctor can see clearly and to lower the chance of food entering the lungs during sedation. Usually you stop solid food for about six to eight hours before, and may be allowed small sips of clear water until a couple of hours before. Your clinic will give you exact times for your appointment, and these should be followed exactly.
Tell the team about all your medicines. Blood thinners, diabetes tablets and insulin need individual advice. Acid-reducing medicines are often continued. Tell them about allergies, heart or lung disease, pregnancy and any previous problems with sedation. Remove dentures and loose items on the day, and arrange for an adult to take you home.
What happens during and after the procedure
You lie on your left side, the throat may be numbed with a spray, and you are usually given sedation so you are relaxed and comfortable. A thin flexible camera passes through the mouth into the esophagus, stomach and first part of the small intestine. It does not block your breathing. The doctor may take small biopsies, which are painless. The procedure usually takes about 10 to 20 minutes, followed by a short recovery period.
Afterward you may have a sore throat, mild bloating or gas for a few hours. You can usually eat once the throat numbness wears off, as advised. Complications are rare, but call the clinic or go to the emergency department for severe chest or abdominal pain, repeated vomiting, black stools, vomiting blood, fever or trouble breathing.
Printable version (PDF)
Save to your phone or print and bring with you to the clinic.
Frequently Asked Questions
How long should I fast before an upper endoscopy?
Is a gastroscopy painful?
Can I take my medicines before an endoscopy?
How long does a gastroscopy take?
Why is an upper endoscopy done?
Share this with someone who needs it:
Have questions or need a consultation?
Our GI specialists are ready to help you
Same-week appointments · WhatsApp replies during working hours
Related Articles
Heartburn & Acid Reflux
Heartburn is a burning feeling in your chest, behind the breastbone. It happens when stomach acid flows back up into your esophagus (food pipe). Occasional heartburn is common, but frequent heartburn (more than twice a week) may be a sign of GERD (gastroesophageal reflux disease).
H. pylori Infection
Helicobacter pylori (H. pylori) is a spiral-shaped bacterium that infects the stomach lining of about half of the world's population — and is especially common in Saudi Arabia and the wider Middle East. Most people have no symptoms, but in others it causes chronic gastritis, peptic ulcers, and a small but real increase in the risk of stomach cancer. The good news: it can almost always be cured with a 10–14 day course of antibiotics combined with acid-suppressing medication.
Stomach Ulcers (Peptic Ulcers)
Stomach ulcers are open sores that develop on the lining of the stomach or the upper part of the small intestine. They occur when the protective mucus layer is reduced, allowing digestive acids to eat away at the tissue. The two most common causes are H. pylori infection and long-term use of NSAIDs (like ibuprofen).