Skip to main content
Gastroenterology Procedure

Upper Endoscopy at the Gastroenterologist

A plain-language guide to upper endoscopy: what the test is, who needs it, how to prepare, what it costs, and how to find a doctor who does it.

Get this taken care of

Find a Gastroenterologist Near Me

CMS-verified provider data, updated monthly.

At a Glance

Procedure time15 to 30 minutes
AnesthesiaSedation (twilight)
Hospital stayNone, same day
RecoveryRest of the day
Typical self-pay$1,000 to $3,000
Also calledEGD. The medical name is esophagogastroduodenoscopy, or EGD.
SettingOutpatient. Done in a clinic, surgery center, or hospital, then home the same day.
What you feelAwake but relaxed. Most people get twilight sedation and remember little or nothing.

What is an upper endoscopy?

The test, in plain words

An upper endoscopy is a test where a doctor passes a thin, flexible tube with a camera through your mouth to look at your esophagus, stomach, and the top of your small intestine. It usually takes 15 to 30 minutes, you are sedated so you feel nothing, and you go home the same day. Doctors use it to find the cause of heartburn, swallowing trouble, belly pain, bleeding, and other digestive problems.

An upper endoscopy is a test that lets a doctor see the inside of your upper digestive tract. The doctor uses a thin, bendable tube called an endoscope. It is about as wide as your little finger and has a tiny light and camera at the tip. The camera sends a live video to a screen the doctor watches the whole time.

The tube goes in through your mouth and down your throat. It reaches three areas: your esophagus, which is the swallowing tube; your stomach; and the duodenum, which is the first part of your small intestine. The full medical name for the test is esophagogastroduodenoscopy. Most people just call it an EGD or an upper scope.

More than just looking
The doctor can do real work through the scope, not only take pictures. Small tools pass through a channel in the tube. With them the doctor can take tiny tissue samples called biopsies, remove a growth, stretch a narrow spot, or stop bleeding. That is why one test can both find a problem and treat it in the same visit.

Who needs an upper endoscopy?

When a doctor recommends it

Your doctor may suggest an upper endoscopy when symptoms point to a problem in the esophagus, stomach, or upper intestine and a clear answer is needed. It is often the next step after medicine or other tests have not solved the issue.

Common reasons include:

  • Heartburn or acid reflux that does not get better with medicine
  • Trouble swallowing, or food that feels stuck
  • Ongoing pain in the upper belly or chest that is not from the heart
  • Nausea or vomiting that will not stop
  • Vomiting blood, or black or tarry stools, which can mean bleeding
  • Low iron or anemia with no clear cause
  • Losing weight without trying

Doctors also use the scope to check known conditions over time. If you have Barrett's esophagus, the scope watches for early changes. For suspected celiac disease, a biopsy of the duodenum can confirm it. The test can also remove a swallowed object or check an ulcer to see if it has healed.

A screening tool, too
People with long-term reflux or a family history of esophageal cancer may get an endoscopy to look for early warning signs before symptoms turn serious.

How do you prepare for an upper endoscopy?

The day before and the morning of

Good preparation makes the test safer and the pictures clearer. The main rule is simple: your stomach must be empty.

Stop eating and drinking
Most doctors ask you to stop eating solid food about 8 hours before the test. You can usually have clear liquids up to a few hours before, but follow the exact times your clinic gives you. Food left in the stomach blocks the view and raises the risk of breathing it into your lungs while sedated.
Talk about your medicines
Tell your doctor about everything you take, including blood thinners, aspirin, diabetes medicine, and supplements. Blood thinners may need to be paused for a few days, but never stop a medicine on your own. Ask first. If you take diabetes medicine, you will get special instructions because you are not eating.
Plan your ride
The sedation stays in your system for hours. You cannot drive, so arrange for an adult to take you home. Many centers will cancel the test if no one is there to drive you.
Tell them your history
Mention allergies, heart or lung problems, sleep apnea, and any past trouble with anesthesia. This helps the team keep you safe during sedation.

How is an upper endoscopy done, step by step?

From check-in to recovery

Knowing the steps ahead of time takes away most of the worry. The whole visit usually lasts 2 to 3 hours, but the scope itself is only 15 to 30 minutes.

1. Check-in and prep. A nurse reviews your history, checks your blood pressure and oxygen, and places a small IV in your arm or hand. You change into a gown and lie on your left side.

2. Sedation. Medicine goes through the IV to make you relaxed and sleepy. Most people get twilight sedation and remember little or nothing. You may also get a numbing spray at the back of your throat, and you keep breathing on your own throughout.

3. The scope goes in. A small mouthguard protects your teeth and the scope. The doctor gently guides the tube down your esophagus, into the stomach, and to the duodenum. The tube does not block your breathing. The team may pump in a little air to open the folds so the camera sees clearly.

4. Looking and treating. The doctor studies the lining on the screen. If needed, they take painless biopsies, remove a polyp, stretch a narrow area, or stop bleeding.

5. Waking up. The scope comes out and you move to a recovery area, where a nurse watches over you as the sedation fades over the next 30 to 60 minutes.

What is recovery like after an upper endoscopy?

Hours and days afterward

Recovery from an upper endoscopy is usually quick and easy. The sedation is what slows you down, not the test itself.

The first hour
You rest in a recovery room until the medicine wears off enough for you to sit up and drink. A nurse checks your vital signs. Your throat may feel a little sore or scratchy, and you may burp a lot from the air used during the test. Both fade within a day.
Going home
Once you are awake and stable, your driver takes you home. Most people eat a light meal once the throat numbness is fully gone and swallowing feels normal again. Soft, simple foods are easiest the first time.
The rest of the day
Plan to take it easy. The sedation can blur your thinking for the rest of the day even if you feel fine. Do not drive, sign legal papers, drink alcohol, or make big decisions until the next morning.
Back to normal
Most people return to work and regular activity the next day. If you had a biopsy, you will not feel it. Results from biopsies usually take a few days to a week to come back from the lab.

What are the risks, and what should you never ignore?

Safety, warning signs, and why you should not wait

An upper endoscopy is one of the safest procedures in medicine, but it is still a real medical test. Serious problems are rare, happening in roughly 1 in 1,000 cases or fewer. Knowing the warning signs keeps you safe.

Possible risks include:

  • A reaction to the sedation, such as low blood pressure or slow breathing
  • A small tear in the lining, called a perforation, which is rare
  • Bleeding, mostly when a biopsy or removal is done
  • A mild throat sore that lasts a day
  • Breathing stomach contents into the lungs, which is why the empty-stomach rule matters
Call your doctor or go to the ER right away if you have
chest or belly pain that gets worse, a hard or swollen belly, trouble breathing or swallowing, fever and chills, vomiting blood, or black tarry stools. These can signal a tear or bleeding and need fast care.

Why this is not a do-it-yourself test, and why you should not put it off. There is no home version of this exam, and no over-the-counter pill or kit can see inside your esophagus and stomach. Long-term reflux can quietly damage the lining and, in some people, lead to Barrett's esophagus or cancer with few warning signs. Black stools or trouble swallowing are signs that something needs a trained eye, and often a biopsy. A pathologist studying tissue under a microscope is the only way to confirm celiac disease, certain infections, and early cancer. Waiting and hoping the symptoms will pass can let a treatable problem grow. If your doctor recommends the test, do not skip it.

How accurate is an upper endoscopy?

Results and what they mean

An upper endoscopy gives the doctor a direct, close-up view, so it is very good at finding problems in the upper digestive tract. For many conditions it is the most reliable test available.

What it does well
The scope spots ulcers, inflammation, narrowed areas, growths, and bleeding that other tests can miss. Because the doctor can take a biopsy, it confirms diagnoses such as celiac disease, certain infections like H. pylori, and Barrett's esophagus. For tracking known conditions over time, it is the gold standard.
What the results mean
Right after the test the doctor can often tell you what they saw on the screen. If tissue was taken, the lab examines it and sends a report in a few days to a week. A normal exam is reassuring and helps rule out serious causes. An abnormal finding gives a clear next step, whether that is medicine, a repeat scope, or a referral.

No test is perfect. Very small or flat changes can be hard to see, and a clean exam does not always explain every symptom. If your symptoms continue, tell your doctor. They may repeat the test, order other studies, or look at other causes.

What does an upper endoscopy cost, and how do you find a doctor?

Prices and next steps

Cost depends on where the test is done, who reads it, and your insurance. A scope at a hospital usually costs more than the same test at a freestanding surgery center or clinic. The price often includes several separate bills: the doctor, the facility, the anesthesia or sedation, and the lab if biopsies are taken.

Lower your cost
Ask for the test at an outpatient surgery center instead of a hospital when it is medically appropriate. Confirm the doctor and the facility are both in your network. Ask for a cash or self-pay price up front, since many centers offer a discount when you pay yourself. If biopsies are likely, ask whether the lab is in network too.
Insurance
Most plans cover an upper endoscopy when a doctor orders it for symptoms or a known condition. Your share depends on your deductible and coinsurance. Call your plan before the test and ask what you will owe.

Find a gastroenterologist near you. Gastroenterologists perform this procedure. OurHealthNetwork lists more than 21,000 gastroenterologists across the United States. You can search by city and check each doctor's profile, location, and the insurance plans they accept to find someone who performs upper endoscopy near you.

SituationTypical cost
Insured, in-network (deductible + coinsurance)$250 to $1,200 out of pocket
Insured, high-deductible plan$1,500 to $3,000 before deductible is met
Medicare$50 to $400 out of pocket after Part B
Self-pay / cash price$1,000 to $3,000

Ranges are typical US estimates and vary by region, facility type, and whether biopsies are taken. A hospital setting usually costs more than an outpatient center. Always confirm prices with the doctor, facility, and your insurer before the test.

Related care

Conditions, procedures, treatments and tests connected to upper endoscopy.

Related conditions

Related symptoms

Tests & screenings

Frequently Asked Questions

Does an upper endoscopy hurt?

No. You get sedation through an IV that makes you relaxed and sleepy, and most people feel nothing and remember little. Your throat may feel a bit sore afterward, but that fades within a day.

How long does an upper endoscopy take?

The scope itself usually takes 15 to 30 minutes. Plan for 2 to 3 hours total at the center to allow time for check-in, sedation, and waking up in recovery.

Will I be asleep during the procedure?

Most people get twilight sedation, which makes you very relaxed and drowsy but not fully unconscious. You keep breathing on your own. Many people do not remember the test at all.

Can I drive myself home afterward?

No. The sedation stays in your system for hours and can blur your thinking even if you feel fine. You must arrange for an adult to drive you home, and most centers will not do the test without a ride lined up.

What can I eat after an upper endoscopy?

Once the numbing in your throat wears off and swallowing feels normal, start with light, soft foods. Most people return to a regular diet the same evening or the next day.

How long does it take to get biopsy results?

If the doctor takes tissue samples, the lab usually sends results back in a few days to about a week. Your doctor will explain what they mean and any next steps.

What is the difference between an upper endoscopy and a colonoscopy?

An upper endoscopy looks at the esophagus, stomach, and the top of the small intestine through the mouth. A colonoscopy looks at the large intestine through the rectum. They examine different parts of the digestive tract and are separate tests.

Is an upper endoscopy safe?

Yes, it is one of the safest procedures in medicine. Serious problems are rare, around 1 in 1,000 or fewer. Following the empty-stomach rule and telling your team your full health history keeps the risk low.

Medical disclaimer: This content is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with questions about a medical condition. If you have a medical emergency, call 911. Our editorial standards