Preparing for an upper endoscopy means keeping your stomach empty so the doctor can see clearly and reduce risks. Most people stop solid food about eight hours before and clear liquids a few hours before the test. Your doctor will give exact timing and any medicine changes. Follow those personal instructions carefully. A responsible adult must drive you home afterward because of sedation. This is general information only and does not replace advice from your own healthcare team.
An upper endoscopy, also called an esophagogastroduodenoscopy or EGD, lets a gastroenterologist look at the lining of the esophagus, stomach, and the first part of the small intestine using a thin flexible tube with a camera. Good preparation helps the procedure go smoothly and gives the clearest possible view. Instructions can differ slightly between clinics and according to your health history, so always follow the written directions you receive from your care team.
Why an empty stomach matters
Food or liquid left in the stomach can block the camera view and raise the chance that stomach contents might move into the lungs if you feel nauseated under sedation. That is why fasting is a central part of getting ready. According to Mayo Clinic, people are usually asked to stop solid food for eight hours and stop drinking liquids for about four hours before the procedure, though exact times can vary.
Your appointment letter or the endoscopy unit will state the precise cut-off times based on when your procedure is scheduled. If you are having the test in the morning, this often means no food after midnight the night before. Afternoon appointments may allow a light early breakfast followed by a longer fast. When in doubt, call the unit rather than guessing.
Talking with your doctor about medicines and health conditions
Several days or even weeks before the test, share a full list of everything you take—prescription medicines, over-the-counter products, vitamins, and herbal supplements. Certain medicines may need temporary adjustment. Blood thinners, for example, can increase bleeding risk if a biopsy or treatment is needed during the endoscopy. Diabetes medicines may require dose changes because you will not be eating normally.
The National Institute of Diabetes and Digestive and Kidney Diseases notes that you should discuss any history of bleeding problems, heart or lung conditions, allergies to medicines or latex, and whether you might be pregnant. Your doctor will decide which medicines to continue, which to pause, and for how long. Never stop a prescribed medicine on your own.
People who take medicines that slow stomach emptying, such as certain diabetes or weight-management drugs, may receive extra diet instructions. Some units ask these patients to stay on clear liquids the day before the procedure. Again, your own doctor’s directions take priority.
Preparation is individual. What works safely for one person may not be right for another. Always confirm details with the healthcare team who ordered your endoscopy.
What you can and cannot drink
Once solid food is stopped, many centres allow clear liquids for a limited time. Clear liquids are fluids you can see through. The table below summarises common examples that help patients understand the difference. Your own list may be slightly different, so check the paperwork you were given.
This table shows examples of liquids that are usually allowed or restricted during the clear-liquid phase of preparation. It is meant only as a general illustration; your endoscopy unit’s instructions should always be followed.
| Usually allowed (clear liquids) | Usually not allowed |
|---|---|
| Water, black coffee or tea (no milk or cream) | Milk, cream, non-dairy creamers, smoothies |
| Clear apple, white grape or white cranberry juice (no pulp) | Orange juice, tomato juice, any juice with pulp |
| Clear broth or bouillon (no solids) | Cream soups, chunky soups |
| Clear sports drinks or electrolyte solutions (avoid red or purple) | Red or purple liquids, alcohol |
| Plain gelatin or ice pops without fruit pieces (avoid red or purple) | Anything you cannot see through |
The main takeaway is that only truly transparent liquids are typically permitted, and even these must stop a set number of hours before the procedure. Coloured liquids, especially red or purple, can look like blood on the camera and are usually avoided. If you have diabetes, choose sugar-free options when possible and monitor your blood sugar as advised.
Practical steps in the days leading up to the procedure
Start organising early. Confirm the exact arrival time and location. Arrange for a responsible adult to stay with you during the procedure and drive you home afterward. Most units will cancel or delay the test if you do not have a driver, because the sedative effects can last several hours. Public transport alone is usually not accepted.
Wear comfortable, loose clothing and leave jewellery and valuables at home. Bring a list of your current medicines, any relevant medical records, and your insurance or identification information. If you wear dentures, glasses, or contact lenses, follow the unit’s advice about removing them before the procedure begins.
Some people feel anxious about the test. Asking questions ahead of time often helps. You can also learn more about what happens during an upper endoscopy so you know what to expect once you arrive.
Medication timing on the day of the test
On the morning of the procedure many people are allowed to take essential medicines (such as those for blood pressure or heart conditions) with a small sip of water up to a certain time. Others must wait until afterward. Your written instructions will tell you which approach applies to you. Do not take antacids or iron supplements unless specifically told to do so, because they can coat the lining and make it harder to see.
According to Cleveland Clinic, you will usually need to stop eating solid food eight hours before and may drink clear liquids only up to two hours before the test. The exact windows are set by your endoscopy team.
If you use insulin or other diabetes medicines, follow the individual plan your doctor or diabetes nurse created for you. Keep glucose tablets or a fast-acting sugar source available in case your blood sugar drops, but check with the team first about what is allowed during the fasting period.
Special situations that may change the plan
Certain medical conditions can require longer fasting or different steps. People with delayed stomach emptying, previous stomach surgery, or significant swallowing difficulty may receive tailored instructions. Anyone who has had a recent heart attack, severe lung disease, or difficulty lying flat should make sure the endoscopy team is fully informed so safety measures can be planned.
If you develop a fever, cough, or new illness in the days before the appointment, call the unit. Sometimes the procedure needs to be postponed for safety reasons. The same applies if you start any new medicine or if your doctor changes an existing prescription after the original instructions were written.
Understanding the possible risks and safety considerations of upper endoscopy can also help you prepare mentally and ask informed questions.
Arranging support and recovery time
Because most upper endoscopies involve sedation, plan to take the rest of the day off work or other responsibilities. You should not drive, operate machinery, sign important documents, or make major decisions until the next day. Having a friend or family member stay with you for the first few hours after you return home is often recommended.
You may wish to read about recovery after upper endoscopy so you know what mild symptoms (such as a sore throat or temporary bloating) are common and when to contact a doctor. Information on sedation for upper endoscopy can also answer questions about how the medicine is given and how long the effects usually last.
For a broader overview of the procedure itself, the main upper endoscopy page provides additional context.
When to contact the endoscopy unit or your doctor
Call the unit promptly if you cannot follow the fasting instructions for any reason, if you forget and eat or drink something after the cut-off time, or if you develop symptoms such as severe abdominal pain, vomiting blood, or black stools before the appointment. These situations may require a change of plan.
If you are unsure about any medicine, the clear-liquid list, or transport arrangements, it is always safer to ask than to assume. Your healthcare team would rather answer questions in advance than cancel a procedure on the day.
Preparation is a partnership. By following the specific instructions given to you and keeping open communication with your doctors and nurses, you help make the upper endoscopy as safe and useful as possible. This article offers general educational information only. Individual medical advice must come from the professionals who know your full health history.
Frequently Asked Questions
Common questions people ask when getting ready for an upper endoscopy.
How long do I need to stop eating and drinking before an upper endoscopy?
Most people stop solid food about eight hours before the procedure and stop clear liquids two to four hours beforehand. Exact times depend on your appointment slot and the unit’s protocol. Always follow the written instructions you receive rather than general guidance.
Can I take my regular blood-pressure or heart medicines on the morning of the test?
Many essential medicines can be taken with a small sip of water up to a certain time, but this is not true for every medicine or every patient. Your endoscopy team will tell you which ones to take and which to hold. Do not decide on your own.
What if I take diabetes medicine or insulin?
Diabetes medicines usually need adjustment because you will be fasting. Contact the doctor who manages your diabetes well before the procedure so a personal plan can be made. Monitor your blood sugar as directed and bring any required supplies with you.
Do I really need someone to drive me home?
Yes. Sedation affects judgement and reaction times for several hours. Most units will not perform the procedure if a responsible adult is not available to take you home and stay with you for a while afterward. Taxi or public transport alone is generally not accepted.
References
- Mayo Clinic – Upper endoscopy
- National Institute of Diabetes and Digestive and Kidney Diseases – Upper GI Endoscopy
- Cleveland Clinic – EGD Procedure (Upper Endoscopy)
- Johns Hopkins Medicine – Upper GI Endoscopy
- University College London Hospitals – Gastroscopy patient guide
- University Hospitals Birmingham – Having a Gastroscopy
⚠️ Medical Disclaimer: The information on this website is for educational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult your healthcare provider about your specific digestive health concerns.