Back to Health Guide
Patient Education2 min read

Upper Endoscopy (EGD) Preparation

From the هضم DIGEST medical team · GI, liver and endoscopy · Riyadh

Upper Endoscopy (EGD) Preparation

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

1

Persistent heartburn or reflux not responding to medication

2

Difficult or painful swallowing

3

Unexplained upper abdominal pain or nausea

4

Iron-deficiency anemia or upper-GI bleeding

5

Suspected H. pylori infection or stomach ulcer

6

Investigation for celiac disease

7

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?
Usually about six to eight hours without solid food, with clear water allowed until a couple of hours before. Follow the exact times given by your clinic.
Is a gastroscopy painful?
Most people are sedated and remember little. Without sedation, it can cause gagging and discomfort but not pain, and a throat spray helps.
Can I take my medicines before an endoscopy?
Many can be taken with a small sip of water, but blood thinners and diabetes medicines need specific advice from your doctor beforehand.
How long does a gastroscopy take?
The examination usually takes 10 to 20 minutes, and with preparation and recovery you should plan for about two to three hours at the clinic.
Why is an upper endoscopy done?
To find the cause of heartburn, swallowing difficulty, upper abdominal pain, vomiting, bleeding or anemia, and to take biopsies for conditions such as celiac disease, H. pylori infection and eosinophilic esophagitis.

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