Which medications can cause stool to appear gray?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 6, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Medications That Can Cause Gray Stool

Yes, several medications can cause parts of stool to appear gray, most notably iron supplements, antacids containing aluminum hydroxide or calcium carbonate, bismuth subsalicylate (Pepto-Bismol), and certain antibiotics. The most common culprits are aluminum-containing antacids and bismuth preparations, which directly alter stool color through their chemical composition.

Primary Medication Causes

Antacids and Gastrointestinal Agents

  • Aluminum hydroxide-containing antacids are a well-recognized cause of gray or clay-colored stools. The aluminum compounds bind with digestive secretions and create a grayish appearance 1
  • Bismuth subsalicylate (Pepto-Bismol) commonly causes gray to black discoloration of stool due to bismuth sulfide formation in the GI tract
  • Calcium carbonate antacids can also produce lighter, grayish stools

Antibiotics

Broad-spectrum antibiotics can alter stool color through multiple mechanisms 1:

  • Disruption of normal gut flora affecting bile metabolism
  • Direct chemical effects on stool composition
  • Secondary effects from antibiotic-associated diarrhea

Other Medications

  • Iron supplements typically cause black stools but can occasionally produce a grayish appearance, particularly when combined with other medications
  • Proton pump inhibitors (PPIs) are listed among medications that can affect stool characteristics 1

Extended-Release Formulations: Ghost Pills

A unique consideration is "ghost pills" or "ghost capsules" from extended-release medications, particularly metformin. These appear as yellowish-white or grayish capsule-like structures in stool that can be mistaken for parasites 2. The outer shell of extended-release tablets passes through intact after the medication is absorbed, creating a concerning but benign finding.

Critical Differential: When Gray Stool Indicates Serious Pathology

Important caveat: While medications commonly cause gray stool, you must rule out biliary obstruction or severe liver disease, which produces acholic (clay-colored/pale gray) stools due to absent bile. This is a medical emergency requiring immediate evaluation. Key distinguishing features:

  • Medication-related gray stool: Patient taking known causative medications, no jaundice, normal liver enzymes, stool may have variable gray coloration mixed with normal brown
  • Biliary obstruction: Uniformly pale/clay-colored stool, associated jaundice, dark urine, elevated bilirubin and alkaline phosphatase, abdominal pain

Clinical Approach

When a patient reports gray stool:

  1. Obtain complete medication list including over-the-counter products, antacids, and supplements
  2. Assess for biliary symptoms: jaundice, dark urine, right upper quadrant pain, pruritus
  3. Check basic labs if concerned: bilirubin, alkaline phosphatase, ALT/AST
  4. If medications identified as cause and no concerning symptoms: Reassure patient, consider medication adjustment if bothersome
  5. If no medication cause identified or concerning symptoms present: Urgent evaluation for hepatobiliary pathology

The presence of gray stool from medications is benign and resolves with discontinuation, but missing biliary obstruction can have serious consequences for morbidity and mortality.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.