Skip to main content

Upper digestive tract tests

Gastroscopy: why it is done, how to prepare and what to expect

A gastroscopy uses a thin camera on a flexible tube to look at the food pipe, stomach and the first part of the small intestine. It is used to find the cause of symptoms such as indigestion, difficulty swallowing or black stools, and to take biopsies. This guide covers preparation, the test itself, risks and results.

Last checked: 2026-10-10

Key facts

At a glance.

  • What it looks at

    The NHS says a gastroscopy checks inside your food pipe (oesophagus), stomach and the top of your intestine using a thin tube with a camera inside it.

  • Fasting

    The NHS says you need to stop eating at least 6 hours before the test, though you may be able to have small sips of water. Cancer Research UK says sips of water may be allowed up to 2 hours beforehand.

  • Comfort options

    The NHS says you can be offered local anaesthetic spray to numb the back of the mouth and throat, sedation through a small tube in the arm, or both.

  • Duration

    The NHS says it should take 15 to 45 minutes, but that you might be at the hospital for around 4 hours from arrival to going home.

  • Not painful

    The NHS says a gastroscopy should not be painful, and that you can ask for it to be stopped at any time.

  • Biopsy results

    The NHS says biopsy results can take up to 2 months, but if doctors think you may have cancer you will usually get the results within 2 weeks.

What a gastroscopy is

A gastroscopy is a type of endoscopy. A long flexible tube, the gastroscope, carries a light and a tiny camera and is passed through the mouth (or sometimes the nose) and down the throat. Cancer Research UK notes that the test may also be called an endoscopy or an oesophago-gastro-duodenoscopy (OGD), and that it is usually done in the endoscopy department of a hospital by a doctor or specialist nurse called an endoscopist.

The images appear on a screen, so the endoscopist can see the lining of the food pipe, stomach and the first part of the small intestine (the duodenum). Tissue samples can be taken through the tube and sent to a laboratory, where a pathologist examines them under a microscope.

Why you might be referred

The NHS groups the reasons into checking what is causing digestive symptoms, treating problems found in the digestive system, and checking for some types of cancer such as stomach or oesophageal cancer. Cancer Research UK gives a longer list of symptoms that can lead to the test. A referral does not mean that something serious has been found: for many people, the NHS says, a gastroscopy will not find anything to worry about.

  • Indigestion or heartburn that does not go away with medicines or keeps coming back.

  • Difficulty or pain when swallowing.

  • Losing weight without trying.

  • Regularly feeling or being sick, or having blood in vomit.

  • Blood in the poo or passing black poo.

  • Low iron levels (iron deficiency anaemia) or abnormal bleeding.

  • Regular surveillance if you have Barrett's oesophagus, to check for changes in the cells of the oesophagus lining.

Getting ready

The NHS says you should receive a letter telling you when and where the procedure will take place, when to stop eating and drinking, about medicines you may be offered, and how long you may have to wait for results. Let the hospital know if you are pregnant. Bring details of the medicines you take and follow the hospital's instructions about them.

Cancer Research UK says you may have blood tests beforehand to check your blood levels and how well your blood clots, and that you should tell your doctor if you take blood-thinning medicines such as warfarin, aspirin, clopidogrel, apixaban, rivaroxaban or ticagrelor. You may be told to stop some of them, and some indigestion medicines, for a while. People with diabetes should talk to their doctor if not eating could be a problem.

What happens during the test

A nurse will check your medical history and allergies and Cancer Research UK says they check blood pressure, heart rate and oxygen levels. You remove glasses and any false teeth, and a plastic mouth guard protects your teeth. Cancer Research UK describes two ways of having the test.

Two ways of having a gastroscopy as described by Cancer Research UK
OptionWhat it involvesAfter the test
Throat spray onlyLocal anaesthetic spray numbs the throat; it may make you cough, your eyes water and taste bitter. You lie on your left side and swallow as the tube goes down.You can usually go home shortly after, but cannot eat or drink for about an hour until the spray has worn off.
SedationA cannula in the arm delivers medicine that makes you relaxed and drowsy. Oxygen and a finger clip monitor you.You rest in the unit for an hour or two, may remember little, and need someone to take you home and stay overnight.

During and straight after

The NHS says you may feel like you want to be sick as the tube passes, which should stop once the tube reaches the stomach, and that sedation can help prevent this. Air is pumped in to inflate the stomach, so you may feel bloated and burp a few times. If a biopsy is taken you will not feel anything. Cancer Research UK says the tube is slightly bigger than a pen and will be uncomfortable but should not be painful.

Afterwards you go to a recovery room. The NHS says that if you had sedation you will need someone to take you home and stay with you for 24 hours, and to avoid alcohol, driving, operating machinery and signing important documents during that time. Some stomach and throat pain afterwards is normal and should pass in a few hours.

Risks and when to get urgent help

The NHS calls gastroscopy common and straightforward, with rare complications that can include a reaction to the sedation, bleeding in the stomach and infection. Cancer Research UK also lists a sore throat lasting a few days, a small chance of damage to teeth, a small risk of breathing in secretions, and a very small risk of a tear (perforation) that might need an operation.

The NHS says to call 111, or the hospital where you had the gastroscopy, if you develop a high temperature or feel hot, cold or shivery, or have dark, tar-like poo. It says to call 999 or go to A&E if you keep being sick, are vomiting blood, are short of breath, or have severe stomach or chest pain, or pain that gets worse. Do not drive yourself to A&E.

Results and what comes next

You may be told something about what was seen before you leave. The NHS says a doctor or nurse may explain the results, and that you may be given a follow-up appointment to discuss your results and possible treatments. Cancer Research UK says biopsy results should arrive within 1 to 2 weeks but may take longer, and suggests contacting the doctor who arranged the test if you have not heard after a couple of weeks.

If cancer is found, the NHS says you will be put in touch with a specialist cancer care team. The NHS also notes that for many people a gastroscopy will not find anything to worry about. Waiting for results can be worrying, and the NHS points to Cancer Research UK, Macmillan Cancer Support and Maggie's for support.

NHS and private routes in general terms

On the NHS a gastroscopy is arranged after a GP or hospital referral, and the timing depends on how urgent your symptoms are judged to be. Private endoscopy units offer the same test, often with more flexible appointments. The procedure, sedation options and risks are broadly the same. Whichever route you take, ask how and when you will get biopsy results and who will explain them.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • How long does a gastroscopy take?

    The NHS says 15 to 45 minutes, but expect to be at the hospital for several hours in total because of preparation and recovery.

  • Do I have to be sedated?

    No. The NHS says you can be offered local anaesthetic throat spray, sedation or both. Cancer Research UK says you may choose which option you prefer.

  • Can I drink water before the test?

    The NHS says you may be able to have small sips of water. Cancer Research UK says sips of water may be allowed up to 2 hours beforehand, but instructions can vary, so follow your hospital letter.

  • Will it hurt?

    The NHS says a gastroscopy should not be painful. You may feel like being sick as the tube goes down, and may feel bloated afterwards.

  • Can I go to work afterwards?

    If you had only throat spray you can usually go home shortly afterwards. After sedation, the NHS says to avoid driving, alcohol and signing important documents for 24 hours, and Cancer Research UK says to arrange for someone to stay overnight.

  • How soon will I know the results?

    You may be told some findings before leaving. The NHS says biopsy results can take up to 2 months, or within 2 weeks if cancer is suspected.

  • What are the risks?

    Complications are rare. The NHS lists a reaction to sedation, bleeding and infection, and Cancer Research UK adds sore throat, tooth damage and very rarely a tear.

  • What if I have black poo or vomit blood afterwards?

    The NHS says dark, tar-like poo means call 111 or the hospital, and vomiting blood means call 999 or go to A&E.

  • Do I need to stop my medicines?

    Cancer Research UK says you may be asked to pause blood thinners or some indigestion medicines. Do not stop anything unless the hospital or your doctor tells you to.

  • Is it the same as an endoscopy?

    A gastroscopy is a type of endoscopy of the upper digestive tract. Cancer Research UK says it may also be called an OGD.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-10, next review 2027-10-10.