What happens during a gastroscopy?

A gastroscopy (examination of the stomach) can help confirm or rule out the presence of medical conditions like gastritis or peptic ulcers. In this procedure, a flexible, thin tube (called a gastroscope) is used to look at the inside of the food pipe, the stomach, and the first part of the intestine (duodenum). At the end of the gastroscope, there's a small camera with a lamp on it. The images from this video camera are sent directly to a screen.

Having a gastroscopy can be a good idea when it comes to the following problems, for example:

  • Persistent or recurring heartburn, nausea or vomiting
  • Nausea over a long period of time
  • Stomach pain
  • Trouble swallowing
  • Black-colored stool, which may be a sign of bleeding in the upper part of the digestive tract
  • Weight loss for no apparent reason
  • Suspected peptic
  • Suspected cancer of the food pipe or stomach
  • A check-up after stomach surgery

How can you prepare for a gastroscopy?

Before a gastroscopy, your doctor will tell you about the procedure, what it involves, and any associated risks. They will give you information about the mild sedatives or anesthetics you can be given to make the examination more comfortable. If you regularly use anticoagulants, you may need to stop taking them a few days before the gastroscopy. It is usually necessary to have an empty stomach so that the doctor gets a clearer view for the examination. That means that you shouldn't eat anything for six to eight hours before the gastroscopy, and you should drink only clear liquids such as water or tea for up to two hours beforehand. It is also important to wait for one to two hours after the exam to eat or drink anything, until the numbing effect in your throat wears off.

Before the procedure you will be asked to sign a consent form.

If you are given a sedative for the gastroscopy, you won't be allowed to drive a car or operate machinery for 12 to 24 hours afterwards. How long you need to wait depends on what type of sedative is used. Ideally, you should be picked up by someone or take a taxi home after the procedure. Some doctors insist that someone comes to pick you up and take you home afterwards.

What does the examination involve?

Shortly before the gastroscopy, your mouth and throat will be numbed using a spray. Any removable dentures need to be taken out before the procedure. In Germany, the sedatives most commonly used for this purpose are called propofol and midazolam. They are injected into a vein and make you sleep for about half an hour. A gastroscopy generally lasts about 5 to 10 minutes. This is what happens during it:

  • You will usually lie on your left side.
  • A tube or a protective ring is put between your teeth so your mouth stays open and you don't bite down on the gastroscope.
  • First you have to swallow so the gastroscope can enter your food pipe.
  • Then it is slowly pushed into your stomach and down to the entrance of your small intestine (the duodenum).

Using the images provided by the camera on the gastroscope, your doctor can look for redness or inflammations in your food pipe and on the lining of your stomach and duodenum. Things like bleeding, varicose veins, unusually narrow passages and stomach ulcers can be seen on the screen too.

It is also possible to take tissue samples using small pincers that are inserted through the gastroscope tube. This is not painful. It is also possible to use the gastroscope to remove air and fluids by suction. Bleeding, unusually narrow passages, and certain medical conditions can be treated directly during the procedure.

What are the possible risks or complications of a gastroscopy?

Sometimes, the spray used to numb your mouth and throat can cause hoarseness or leave behind a numb sensation in your mouth. You might also feel full and have to burp for a short while if more air was pumped into your stomach to see more in the images. Complications like bleeding and injury to organs caused by the gastroscope are very rare. The same is true of complications caused by sedatives, such as breathing problems or cardiovascular problems.

Although sedatives only cause you to sleep for a short while, you may still have trouble concentrating and feel tired for several hours afterwards.

Arvanitakis M, Gkolfakis P, Despott EJ et al. Endoscopic management of enteral tubes in adult patients - Part 1: Definitions and indications. European Society of Gastrointestinal Endoscopy (ESGE) Guideline. Endoscopy 2021; 53(1): 81-92.

Deutsche Gesellschaft für Gastroenterologie, Verdauungs- und Stoffwechselkrankheiten (DGVS). S2k-Leitlinie Qualitätsanforderungen in der gastrointestinalen Endoskopie. AWMF register no.: 021-022. 2025.

Gkolfakis P, Arvanitakis M, Despott EJ et al. Endoscopic management of enteral tubes in adult patients - Part 2: Peri- and post-procedural management. European Society of Gastrointestinal Endoscopy (ESGE) Guideline. Endoscopy 2021; 53(2): 178-195.

Messmann H. Klinische Gastroenterologie. Stuttgart: Thieme; 2020.

IQWiG health information is written with the aim of helping people understand the advantages and disadvantages of the main treatment options and health care services.

Because IQWiG is a German institute, some of the information provided here is specific to the German health care system. The suitability of any of the described options in an individual case can be determined by talking to a doctor. informedhealth.org can provide support for talks with doctors and other medical professionals, but cannot replace them. We do not offer individual consultations.

Our information is based on the results of good-quality studies. It is written by a team of health care professionals, scientists and editors, and reviewed by external experts. You can find a detailed description of how our health information is produced and updated in our methods.

Comment on this page

What would you like to share with us?

We welcome any feedback and ideas - either via our form or by gi-kontakt@iqwig.de. We will review, but not publish, your ratings and comments. Your information will of course be treated confidentially. Fields marked with an asterisk (*) are required fields.

Please note that we do not provide individual advice on matters of health. You can read about where to find help and support in Germany in our information “How can I find self-help groups and information centers?”

Über diese Seite

Updated on October 12, 2026

Next planned update: 2029

Publisher:

Institute for Quality and Efficiency in Health Care (IQWiG, Germany)

Stay informed

Subscribe to our newsletter or newsfeed. You can find our growing collection of films on YouTube.