Skip to content
Diagnostics

Endoscopy

An endoscopy is a procedure that uses a long, thin tube with a camera to look inside your body, usually passed in through a natural opening such as your mouth. It helps diagnose and sometimes treat problems.

At a glance

  • An endoscopy lets doctors look inside your body with a small camera.
  • It is often passed through the mouth to check the food pipe and stomach.
  • Tissue samples can be taken and some problems treated during the test.
On this page (6 sections)

What is it?

An endoscopy is a procedure used to look inside your body [1]. A long, thin, flexible tube with a small camera and light on the end, called an endoscope, is passed in through a natural opening such as your mouth or bottom, so no cuts are usually needed [1].

Why it is used

A doctor may refer you for an endoscopy to help find the cause of symptoms such as difficulty swallowing, stomach pain or bleeding, to take a closer look at an area seen on another test, or to help diagnose or treat a condition [1]. A gastroscopy, for example, examines the food pipe, stomach and the first part of the small intestine [1].

Preparing for it

The hospital will send you instructions, which often include not eating or drinking for several hours beforehand so the area being examined is empty and clear [1]. Let the team know about any medicines you take, as some may need to be adjusted before the test [1].

What happens

Depending on the type of endoscopy, you may be given a numbing throat spray or medicine to help you relax [1]. The endoscope is gently guided into place while the camera sends pictures to a screen [1]. Small tissue samples (biopsies) can be taken and some problems treated during the same procedure [1].

Recovery

Many endoscopies are done as a day case, so you can usually go home the same day [1]. If you had medicine to relax you, it can stay in your system for a while, so you will need someone to take you home and should avoid driving for the rest of the day [1].

Risks

Endoscopy is generally very safe, but there are some small risks, which can include a reaction to the sedative, an infection, or, rarely, bleeding or a tear where the endoscope has passed [1]. Your team will explain the risks before the procedure [1].

Sources

  1. NHS. Endoscopy (opens in new tab) Last reviewed 8 February 2022. Accessed 12 August 2026.

About this page

Written by
Consumer Health editorial team
Medical review
Pending — this page has not yet been reviewed by a named clinician. Read our medical review policy.
Last updated
August 2026
Next review due
August 2027

Important: This information is for general guidance only and does not replace professional medical advice. It is not intended to diagnose or treat any condition. Always speak to a qualified healthcare professional — such as your GP or pharmacist — for advice about your individual circumstances, and do not start, stop or change any prescribed treatment based only on this page. If you think you are having a medical emergency, call 999. Consumer Health is an independent health-information resource and is not the NHS or a government body.

We use cookies to improve your browsing experience

For more information please read our cookie policy and privacy policy.