An upper endoscopy is typically recommended when you have digestive symptoms that haven’t improved with initial treatment, when certain red-flag symptoms suggest something serious, or when you belong to a higher-risk group that benefits from screening. Most people don’t need one for occasional heartburn or an upset stomach, but specific situations make it an important diagnostic tool.
Alarm Symptoms That Call for Prompt Endoscopy
Certain symptoms are considered red flags because they raise the likelihood of finding a significant problem like an ulcer, severe inflammation, or cancer. If you’re experiencing any of the following, your doctor will likely recommend an endoscopy without waiting:
- Difficulty swallowing that’s getting progressively worse
- Pain when swallowing
- Persistent vomiting that doesn’t resolve
- Signs of gastrointestinal bleeding, such as vomiting blood or dark, tarry stools
- Unexplained weight loss
- Feeling full after eating very little (early satiety)
- A family history of gastrointestinal cancer
Of these, gastrointestinal bleeding, pain with swallowing, and persistent vomiting are particularly specific indicators of significant disease, meaning they reliably point to problems like esophagitis, peptic ulcers, or malignancy when present. Digestive symptoms in anyone over 55 also warrant closer evaluation, even without other red flags.
Heartburn and Reflux That Won’t Quit
If you have classic GERD symptoms (heartburn and regurgitation) but no alarm symptoms, the standard first step is an eight-week trial of a proton pump inhibitor taken once daily before a meal. An endoscopy isn’t the starting point for garden-variety reflux.
You become a candidate for endoscopy if your symptoms don’t adequately improve after that eight-week course, or if they come right back once you stop the medication. According to the American College of Gastroenterology, GERD is considered “refractory” when heartburn or regurgitation persists despite eight weeks of double-dose PPI therapy. At that point, an endoscopy helps determine whether something else is going on, like a structural problem, eosinophilic esophagitis, or Barrett’s esophagus. Ideally, the procedure is done two to four weeks after stopping PPIs so the lining of the esophagus can be seen in its unmedicated state.
Iron Deficiency Anemia
Iron deficiency anemia is one of the less obvious reasons people end up needing an endoscopy. When your iron stores are low and there’s no clear external explanation (like heavy menstrual periods or a blood donation habit), the gastrointestinal tract becomes the prime suspect for hidden blood loss.
For men and postmenopausal women with iron deficiency anemia, the standard recommendation is bidirectional endoscopy, meaning both an upper endoscopy and a colonoscopy. This approach catches a significant number of cancers: studies show it detects lower GI malignancy in about 9% and upper GI malignancy in about 2% of asymptomatic people in this group. Those are not trivial numbers for a test that can catch cancer early.
For premenopausal women, the picture is more nuanced. If you have heavy periods that clearly explain the anemia, endoscopy may not be the first step. But if there’s no obvious source of blood loss, the evidence still supports scoping. The cancer detection rates are much lower in this group (under 1% for lower GI and under 0.5% for upper GI), so the decision involves weighing the small but real risk of the procedure against the small but real chance of finding something. If you’re in this category, it’s worth having a direct conversation about your preferences.
When both an upper and lower endoscopy come back clean and anemia persists, a trial of iron supplements is the typical next move. Further evaluation is usually pursued only if supplementation fails to correct the anemia.
Celiac Disease Diagnosis
If blood tests suggest celiac disease, an endoscopy with biopsy remains the gold standard for confirming the diagnosis in adults. During the procedure, the doctor takes small tissue samples from your duodenum (the first part of the small intestine). At least six biopsies are recommended for the best accuracy: two from the bulb and four from the second portion of the duodenum.
Children can sometimes skip this step. Pediatric guidelines allow a biopsy-free diagnosis if the key antibody level is at least 10 times the upper limit of normal and a second confirmatory blood test is also positive. This shortcut has been studied in adults too, with promising results, but it’s not yet the standard for adult diagnosis.
Stomach Cancer Screening
The United States doesn’t recommend routine stomach cancer screening for the general population, but certain groups carry enough risk to justify it. The American Gastroenterological Association identifies three main high-risk categories:
- First-generation immigrants from regions with high rates of gastric cancer (parts of East Asia, Central and South America, and Eastern Europe)
- People with a first-degree relative (parent, sibling, or child) who had stomach cancer
- Individuals with hereditary cancer syndromes or certain gastrointestinal polyposis conditions
If you fall into one of these groups, screening endoscopy can catch precancerous changes or early-stage cancer before symptoms ever develop.
Who Should Not Get an Endoscopy
A few situations make endoscopy too dangerous to perform. A perforated bowel or peritonitis (infection of the abdominal lining) are absolute contraindications, meaning the procedure should not happen under any circumstances.
Several other conditions raise the risk enough that doctors proceed only if the potential benefit clearly outweighs the danger. These include severe blood-clotting disorders, very low platelet counts, connective tissue disorders that weaken the gut wall, recent bowel surgery, bowel obstruction, and certain aortic aneurysms. In these situations, your medical team will weigh the urgency of the endoscopy against the specific risks you face.
Preparing for the Procedure
If you and your doctor decide an endoscopy is appropriate, preparation is straightforward. You’ll need to stop eating solid food at least eight hours beforehand and stop drinking clear liquids at least four hours before the procedure. This ensures your stomach is empty so the doctor can see clearly and you don’t aspirate anything during sedation.
Blood-thinning medications require more planning. For low-risk diagnostic endoscopies (just looking, no biopsies or interventions expected), most blood thinners can be continued. But if there’s any chance of a biopsy or therapeutic procedure, adjustments are needed. Warfarin is typically stopped five days before. Newer oral anticoagulants are usually stopped 48 hours ahead if your kidney function is normal, or 72 hours ahead if it’s reduced. Clopidogrel is held for five to seven days, though aspirin is generally continued throughout. If you have a coronary stent, the decision to pause any blood thinner should involve your cardiologist, since stopping too early after stent placement carries its own serious risks.

