GI Diagnostic Tests Overview
Understanding the tests used to diagnose digestive conditions
Last reviewed: February 2026
🔬 Categories of GI Tests
Diagnosing digestive conditions often requires multiple types of tests. Understanding what each test involves can help reduce anxiety and ensure proper preparation. Tests are selected based on symptoms, suspected conditions, and patient history.
Blood Tests
Check for inflammation, infection, nutritional status
Breath Tests
Detect bacterial overgrowth, intolerances
Stool Tests
Identify infections, inflammation, blood
Imaging
Visualize organs and detect abnormalities
🩸 Blood Tests
Complete Blood Count (CBC)
- What it measures: Red blood cells, white blood cells, platelets, hemoglobin
- Why ordered: Detect anemia (blood loss, nutritional deficiencies), infection, inflammation
- Preparation: Usually none; some require fasting
- GI relevance: Low hemoglobin may indicate GI bleeding; elevated WBC suggests infection/inflammation
Comprehensive Metabolic Panel (CMP)
- What it measures: Glucose, electrolytes, kidney function, liver enzymes
- Why ordered: Assess overall health, detect organ dysfunction
- Preparation: Usually fasting 8-12 hours
- GI relevance: Liver enzymes (ALT, AST), bilirubin, albumin indicate liver health
Liver Function Tests (LFTs)
| Test | What It Indicates | Elevated In |
|---|---|---|
| ALT (SGPT) | Liver cell damage | Hepatitis, fatty liver, drug toxicity |
| AST (SGOT) | Liver/heart/muscle damage | Liver disease, heart attack, muscle injury |
| ALP | Bile duct function | Bile duct obstruction, bone disease |
| GGT | Bile duct damage | Alcohol use, bile duct disease |
| Bilirubin | Bile processing | Jaundice, liver disease, hemolysis |
| Albumin | Liver synthetic function | Low in chronic liver disease, malnutrition |
Inflammatory Markers
- CRP (C-Reactive Protein): General inflammation marker; elevated in IBD, infections
- ESR (Erythrocyte Sedimentation Rate): Another inflammation indicator
- Fecal Calprotectin: Specific to gut inflammation (see stool tests)
Celiac Disease Serology
- tTG-IgA (tissue transglutaminase): Primary screening test
- Total IgA: Needed because IgA deficiency causes false negatives
- EMA (endomysial antibodies): Confirmatory test
- DGP (deamidated gliadin peptide): Useful in IgA deficiency
- Important: Must be eating gluten for accurate results
Other Relevant Blood Tests
- Vitamin B12 and folate: Detect deficiencies from malabsorption
- Iron studies: Identify iron deficiency anemia
- Vitamin D: Often low in malabsorption, IBD
- Thyroid function: Thyroid affects gut motility
- Amylase and lipase: Elevated in pancreatitis
- Tumor markers (CEA, CA 19-9): For monitoring certain cancers
🧫 Stool Tests
Fecal Occult Blood Test (FOBT) / FIT
- Purpose: Detect hidden blood in stool (colon cancer screening)
- Types: Guaiac-based (gFOBT) or immunochemical (FIT)
- FIT advantages: More specific, no dietary restrictions
- Preparation: Follow specific instructions; some require dietary restrictions
Fecal Calprotectin
- Purpose: Differentiate IBD from IBS; monitor IBD activity
- What it measures: Protein released by white blood cells in inflamed gut
- Normal: Usually <50 mcg/g
- Elevated: Suggests organic inflammation (IBD, infection)
- Advantages: Non-invasive alternative to colonoscopy for monitoring
Stool Culture and Parasitology
- Purpose: Identify bacterial, viral, or parasitic infections
- When ordered: Persistent diarrhea, bloody stool, travel-related illness
- Tests for: Salmonella, Shigella, Campylobacter, C. diff, parasites
C. Difficile Testing
- Purpose: Diagnose C. difficile infection
- Methods: Toxin testing, PCR, or GDH antigen
- When suspected: Diarrhea during/after antibiotics, hospital-acquired diarrhea
Stool Elastase
- Purpose: Assess pancreatic function
- Low levels: Indicate pancreatic insufficiency
- When ordered: Suspected chronic pancreatitis, cystic fibrosis, fatty stools
Comprehensive Stool Analysis
- May include multiple tests: occult blood, WBCs, fat content, parasites, cultures
- Some specialty labs offer microbiome analysis (research value varies)
💨 Breath Tests
H. Pylori Breath Test (Urea Breath Test)
- Purpose: Diagnose or confirm eradication of H. pylori
- How it works: Drink solution with labeled urea; if H. pylori present, it breaks down urea, releasing labeled CO2 detected in breath
- Preparation: Fast 4-6 hours; stop PPIs 2 weeks before, antibiotics 4 weeks before
- Accuracy: Very high (>95%)
Lactose Breath Test
- Purpose: Diagnose lactose intolerance
- How it works: Drink lactose solution; measure hydrogen in breath over 2-3 hours
- Positive result: Rise in hydrogen indicates undigested lactose fermented by bacteria
- Preparation: Overnight fast; avoid certain foods and antibiotics beforehand
SIBO Breath Test
- Purpose: Diagnose small intestinal bacterial overgrowth
- Substrates used: Glucose or lactulose
- How it works: Measures hydrogen and/or methane in breath over 2-3 hours
- Positive result: Early rise in gases suggests bacteria in small intestine
- Preparation: Special diet day before, overnight fast, stop probiotics/antibiotics
Fructose Breath Test
- Purpose: Diagnose fructose malabsorption
- Similar process to lactose breath test
- Useful for: Identifying dietary triggers for IBS symptoms
Breath tests require specific preparation to be accurate. Follow all instructions carefully, including stopping certain medications and following dietary restrictions.
📸 Imaging Tests
Abdominal X-Ray
- Uses: Detect bowel obstruction, constipation, perforation (free air)
- Advantages: Quick, inexpensive, widely available
- Limitations: Limited detail; radiation exposure
- Preparation: Usually none
Abdominal Ultrasound
- Uses: Evaluate liver, gallbladder, pancreas, kidneys
- Best for: Gallstones, liver lesions, bile duct dilation
- Advantages: No radiation, inexpensive, portable
- Limitations: Limited by body habitus, gas; can't see inside bowel
- Preparation: Often fasting 6-8 hours
CT Scan (Computed Tomography)
- Uses: Detailed abdominal imaging; detect tumors, abscesses, inflammation
- With contrast: IV and/or oral contrast improves visualization
- Advantages: Excellent detail, fast, widely available
- Limitations: Radiation exposure; contrast risks in kidney disease
- CT Enterography: Specialized for small bowel (Crohn's disease)
MRI (Magnetic Resonance Imaging)
- Uses: Detailed soft tissue imaging; liver lesions, pancreatic masses
- MR Enterography: Excellent for small bowel in Crohn's disease
- MRCP: Visualizes bile and pancreatic ducts without contrast
- Advantages: No radiation, excellent soft tissue detail
- Limitations: Expensive, takes longer, not for all patients (pacemakers, claustrophobia)
Barium Studies
- Barium swallow: Evaluates esophagus and swallowing
- Upper GI series: Esophagus, stomach, duodenum
- Small bowel follow-through: Tracks barium through small intestine
- Barium enema: Evaluates colon (less common now with colonoscopy available)
- Preparation: Fasting; bowel prep for barium enema
📷 Endoscopic Procedures
These are covered in detail in the Endoscopy & Colonoscopy Guide, but briefly:
| Procedure | Area Examined | Common Indications |
|---|---|---|
| Upper Endoscopy (EGD) | Esophagus, stomach, duodenum | GERD, ulcers, difficulty swallowing |
| Colonoscopy | Entire colon and terminal ileum | Screening, bleeding, IBD, changes in bowel habits |
| Flexible Sigmoidoscopy | Lower colon (sigmoid and rectum) | Limited screening, rectal bleeding |
| Capsule Endoscopy | Small intestine | Obscure GI bleeding, Crohn's disease |
| ERCP | Bile and pancreatic ducts | Stones, strictures, tumors of bile duct |
| EUS (Endoscopic Ultrasound) | GI wall and nearby structures | Cancer staging, pancreatic masses |
⚡ Motility Studies
Esophageal Manometry
- Purpose: Measures pressure and coordination of esophageal muscles
- When ordered: Difficulty swallowing, before anti-reflux surgery, suspected achalasia
- Procedure: Thin tube through nose into esophagus; swallowing measured
- Duration: About 30 minutes
- Preparation: Fasting
pH Monitoring / Impedance
- Purpose: Measure acid exposure and reflux events in esophagus
- Types: Catheter-based (24-48 hours) or wireless capsule (Bravo)
- When ordered: Atypical GERD symptoms, before surgery, treatment-resistant reflux
- Preparation: May need to stop acid-reducing medications
Gastric Emptying Study
- Purpose: Measure how quickly stomach empties
- When ordered: Suspected gastroparesis, nausea, vomiting, bloating
- Procedure: Eat meal with radioactive tracer; imaging over 4 hours
- Preparation: Fasting; stop certain medications
Anorectal Manometry
- Purpose: Assess function of muscles controlling bowel movements
- When ordered: Chronic constipation, fecal incontinence
- Procedure: Small catheter in rectum measures pressures and reflexes
- Duration: About 30-45 minutes
Colonic Transit Study
- Purpose: Measure how quickly material moves through colon
- When ordered: Chronic constipation not responding to treatment
- Procedure: Swallow markers; X-rays taken over several days
🎯 Choosing the Right Test
| Symptom/Concern | Likely Tests |
|---|---|
| Heartburn/reflux | Trial of PPIs, then EGD if persistent; pH monitoring |
| Difficulty swallowing | Barium swallow, EGD, manometry |
| Abdominal pain | Blood tests, stool tests, ultrasound or CT; endoscopy if needed |
| Chronic diarrhea | Stool tests, celiac serology, colonoscopy, breath tests |
| Chronic constipation | Blood tests, X-ray, colonoscopy if red flags; motility studies |
| Rectal bleeding | Colonoscopy |
| Unexplained weight loss | Blood tests, CT, EGD and colonoscopy |
| Suspected IBD | Blood tests, fecal calprotectin, colonoscopy with biopsies |
| Jaundice | LFTs, ultrasound, CT/MRI, ERCP if needed |
| Suspected gallstones | Ultrasound |
Your doctor will recommend tests based on your specific symptoms, risk factors, and examination findings. Not everyone needs every test - appropriate testing is targeted and cost-effective.
📋 Test Preparation Checklist
- Understand the purpose of the test
- Follow all preparation instructions carefully
- Ask about fasting requirements
- List all medications and discuss which to stop
- Inform doctor of allergies (especially to contrast, latex)
- Arrange transportation if sedation will be used
- Ask about risks and alternatives
- Know when and how you'll get results
- Understand any post-test restrictions
- Keep a list of questions to ask
❓ Questions to Ask Your Doctor
- Why is this test being recommended?
- What will the test tell us?
- How should I prepare?
- Are there any risks or side effects?
- What are the alternatives?
- When will I get results?
- What happens if the test is abnormal?
- Will insurance cover this test?