Back to Conditions

What Happens During a Gastroscopy?

Mens Health Guide Editorial 2 April 2026

A gastroscopy is a test that uses a thin, flexible camera to look at the oesophagus, stomach and the first part of the small intestine, called the duodenum. It is also known as an upper endoscopy or OGD. Many people feel anxious about having a tube passed through their mouth, but the test usually takes less than fifteen minutes and you have choices about how to make it more comfortable.

Why is it done?

A gastroscopy is used to investigate symptoms such as difficulty swallowing, persistent indigestion or heartburn, upper abdominal pain, vomiting, unexplained weight loss, and anaemia. It can diagnose conditions such as stomach ulcers, inflammation, Barrett's oesophagus, coeliac disease and cancers of the oesophagus and stomach.

Small tissue samples, called biopsies, can be taken painlessly during the test. It can also be used to treat some problems, such as stopping bleeding or stretching a narrowed oesophagus.

How should you prepare?

You will usually be asked not to eat for around six hours before the test, so the stomach is empty. You may be allowed small sips of water until a couple of hours beforehand. Follow the instructions from your endoscopy unit.

If you are being tested for Helicobacter pylori, you may be asked to stop proton pump inhibitors such as omeprazole for two weeks beforehand, as they can affect the results. Tell the unit in advance if you take blood thinners or diabetes medicines, as these may need adjusting. Do not stop medicines without advice.

What are the options for comfort?

You can usually choose between a throat spray and sedation, or have both. A local anaesthetic spray numbs the back of the throat. You stay fully alert, can go home straight away and can drive afterwards. Many people find this quick and manageable.

Sedation is given through a cannula in your arm and makes you relaxed and drowsy, though not fully asleep. You may remember little of the test. If you have sedation, you must have an adult to take you home and stay with you, and you cannot drive, drink alcohol or operate machinery for twenty-four hours.

What happens during the test?

You remove glasses and any dentures. You lie on your left side and a plastic mouth guard is placed between your teeth to protect them and the camera. The endoscopist gently passes the camera through your mouth, down the oesophagus and into the stomach and duodenum.

You may gag briefly as the camera passes the back of the throat. This passes quickly. Air is used to open up the stomach, which may make you feel bloated or want to burp. The camera does not affect your breathing, and a nurse stays with you throughout. The test itself usually takes five to fifteen minutes.

What happens afterwards?

If you had throat spray, you should not eat or drink until the numbness wears off, usually after around an hour, to avoid choking. You may have a mild sore throat and feel bloated for a few hours.

The endoscopist can often tell you what they saw before you leave. Biopsy results take longer, usually a few weeks, and are sent to you or your GP.

Are there any risks?

Gastroscopy is a very safe procedure. Rare risks include a reaction to sedation, bleeding, particularly if biopsies are taken or treatment is given, and a tear in the lining of the oesophagus or stomach.

Seek urgent medical help if you develop severe chest or abdominal pain, difficulty breathing, a high temperature, vomit blood or pass black stools after a gastroscopy.

How can you make it easier?

Tell the staff if you feel anxious. They are used to helping nervous patients. Breathing slowly through your nose and focusing on relaxing your shoulders helps during the test. Wear loose, comfortable clothing and bring a list of your medicines. Arrange for someone to collect you in advance if you think you might choose sedation on the day.

For related reading, see the rest of the conditions section.

This page is general information rather than medical advice.