Doctify logo
For providers
Provider Login

Endoscopy (OGD)

Last reviewed: 07/06/26
Medically reviewedLearn more about our editorial process

Snapshot summary

An oesophagogastroduodenoscopy (OGD) is a procedure that allows doctors to examine the upper digestive tract: the oesophagus (food pipe), stomach, and first part of the small intestine (duodenum). By doing so, they can then potentially diagnose, monitor or treat digestive problems.

Key points:

  • A thin, flexible tube with a camera is passed through the mouth simultaneously providing detailed images of the upper digestive tract
  • Recommended for red flag symptoms such as: difficulty swallowing, unexplained weight loss, persistent upper abdominal or chest pain, vomiting blood
  • The procedure takes 14-45 minutes. Patients will be provided with local anaesthetic across the throat region or be sedated, to make them more comfortable throughout the procedure

Overview

An oesophagogastroduodenoscopy (OGD) - also called a gastroscopy or upper endoscopy - is a test that allows a doctor to examine the upper part of your digestive system: the oesophagus (food pipe), stomach, and the first part of the small intestine (duodenum).

During the procedure, the doctor uses a soft, flexible tube with a tiny light and camera at the end to view your digestive system on a screen. The tube is gently passed through your mouth and down your throat. If the doctor spots anything unusual, such as inflammation, ulcers or other changes, they can take a tiny tissue sample (biopsy) or treat it immediately.

When to consider

An OGD helps doctors find the cause of symptoms, check existing conditions, and treat certain issues during the same visit.

Your doctor may recommend this test if you have any of the following symptoms:

  • Difficulty or pain whilst swallowing
  • Unexplained weight loss
  • Persistent upper abdominal pain
  • Frequent vomiting or vomiting blood
  • Black or tarry stools, which can be a sign of internal bleeding

An OGD can help diagnose or monitor:

  • Acid reflux (heartburn)
  • Oesophagitis or gastritis (inflammation of the food pipe or stomach)
  • Narrowing of the oesophagus that makes swallowing difficult
  • Coeliac disease or Crohn’s disease affecting the upper digestive tract
  • Barrett’s oesophagus, a condition where long-term acid reflux changes the lining of the food pipe

People with Barrett’s oesophagus or similar conditions may need regular endoscopies to monitor early cell changes and treat them before they become more serious.

Treatment & procedure details

Preparing for an OGD

Proper preparation helps make the procedure safe and effective. You will usually be asked not to eat for at least six hours before your appointment and may be allowed small sips of water up to two hours beforehand. Your appointment letter or admission instructions will confirm exact timings.

Before your OGD:

  • Tell your doctor about any medicines or supplements you take.
  • Blood-thinning medicines such as warfarin, aspirin, or apixaban may need to be paused for a few days to reduce bleeding risk.
  • Diabetes medication may need adjusting, as fasting can lower blood sugar levels.
  • Iron tablets, fish oil, and some fibre supplements might need to be stopped a few days before the procedure.

If you plan to have sedation, you must arrange for an adult to take you home and stay with you for the next 6-8 hours. You won’t be able to drive, use machinery, or return to work immediately after the test.

What to expect from an OGD

Your visit to the hospital or day surgery will usually take between two and four hours, including preparation and recovery. The endoscopy itself typically lasts 15-45 minutes.

Before the test begins, you can choose between two comfort options:

  • Throat spray: A local anaesthetic that numbs your throat, allowing you to stay awake without pain.
  • Sedation: A calming medicine given through a small tube in your arm, helping you feel sleepy and relaxed.

During the procedure, you’ll lie on your left side while the doctor gently passes the tube into your mouth and down your throat. A small amount of air is used to open up your stomach for a clearer view - this may cause brief bloating or the need to burp, but it passes quickly.

The doctor will carefully examine your food pipe, stomach, and duodenum. If necessary, they can take a small tissue sample (biopsy).

Most people find an OGD much easier than expected and report little or no discomfort.

What to expect after an OGD

After the procedure, you’ll rest in a recovery area until you are fully awake and ready to go home, particularly if you have been under sedation. Most people can leave the same day.

It’s normal to have a mild sore throat or feel bloated from the air used during the test. If a biopsy was taken, a small amount of spotting may occur but usually stops quickly.

To stay safe and recover comfortably:

  • If you had throat spray, wait about 45 minutes before eating or drinking to make sure your throat is no longer numb.
  • If you had sedation, rest for the remainder of the day and avoid activities that require concentration or coordination.
  • Avoid driving, using machinery, drinking alcohol, or making important decisions.
  • Arrange for a responsible adult to stay with you overnight in case you feel unwell or drowsy.

Most people feel fully recovered the following day.

Risks & benefits

An OGD is the most accurate way to examine the upper digestive system. It allows doctors to see clear, detailed images of your food pipe, stomach, and upper small intestine, detect problems early, and treat them immediately when possible.

The procedure can prevent more serious illness by identifying ulcers, inflammation, or bleeding before they worsen. In many cases, treatment can be done during the same test, avoiding the need for major surgery and helping you recover more quickly.

Serious complications are uncommon. Possible risks include:

  • A small tear in the lining of the stomach or food pipe (very rare)
  • Minor bleeding, especially if a biopsy or polyp is removed
  • A reaction to sedation, such as slowed breathing (you’ll be carefully monitored)
  • Infection, which is extremely rare since all equipment is carefully cleaned and disinfected after every use

Recovery & outlook

Your doctor or specialist will usually discuss what they found before you go home. If tissue samples were taken, results may take a few days or weeks depending on the tests. If something serious is suspected, urgent results are normally ready within two weeks.

If your results are normal, no further tests may be needed. If inflammation or ulcers are found, your doctor may prescribe medicine and arrange a follow-up endoscopy to check that it has healed. People with ongoing conditions such as Barrett’s oesophagus are usually monitored regularly - typically every one to three years, in accordance with Australian Clinical Guidelines.

When to seek medical help

Seek medical attention straight away at your nearest Emergency Department (ED) or call 000 if you experience:

  • Severe or ongoing abdominal pain
  • Fever, chills, or feeling unwell
  • Difficulty breathing
  • Vomiting blood or passing black, tarry stools
  • Persistent vomiting or trouble swallowing

These problems are rare but require urgent medical attention.

Find a provider

References

https://www.healthdirect.gov.au/gastroscopy

https://pmc.ncbi.nlm.nih.gov/articles/PMC4522417/

https://en.wikipedia.org/wiki/Esophagogastroduodenoscopy

Find a provider