What could cause stool to have an ammonia-like odor and how should it be evaluated?

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: August 11, 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.

Ammonia-Smelling Stool: Causes and Evaluation

Stool with an ammonia-like odor most commonly results from excessive bacterial protein fermentation in the colon, which can occur with high-protein diets, gut dysbiosis, or conditions causing rapid intestinal transit, and warrants evaluation for underlying gastrointestinal disorders if accompanied by other symptoms.

Understanding the Mechanism

Ammonia production in stool occurs through two primary bacterial processes 1, 2:

  • Bacterial deamination of amino acids, peptides, and proteins by colonic bacteria
  • Bacterial hydrolysis of urea (though this contributes less to fecal ammonia than previously thought)

The bacteria most responsible for ammonia generation are gram-negative anaerobes (particularly Bacteroides species), Clostridia, and Enterobacteriaceae 1, 2. These organisms produce the highest amounts of ammonia when fermenting protein substrates in the absence of fermentable carbohydrates.

When to Pursue Further Evaluation

Look for these specific clinical features that indicate need for workup:

Red Flag Symptoms (Require Urgent Investigation)

  • Fever or weight loss
  • Blood in stools or positive fecal occult blood test
  • Nocturnal diarrhea or severe watery diarrhea
  • Duration of symptoms <12 months with acute onset
  • Age >50 years without prior colorectal cancer screening
  • Family history of inflammatory bowel disease or colorectal cancer 3, 4

Accompanying Symptoms Suggesting Specific Conditions

  • Chronic diarrhea (>4 weeks): Consider IBS-D, bile acid diarrhea, microscopic colitis, or chronic infections 3, 5
  • Abdominal pain with altered bowel habits: Evaluate for IBS using Rome IV criteria 4
  • Recent travel or immunocompromised state: Test for parasitic infections, particularly Giardia 5

Diagnostic Approach

Initial Screening Tests

Order these first-line investigations 3, 4:

  1. Complete blood count - to assess for anemia or infection
  2. Fecal calprotectin - to screen for intestinal inflammation
  3. Tissue transglutaminase (TTG) IgA with total IgA level - to exclude celiac disease
  4. Thyroid function tests - thyroid disorders can alter bowel function
  5. Stool testing:
    • Fecal immunochemical test (FIT) for occult blood
    • Giardia antigen testing (ELISA has 92% sensitivity, 98% specificity) 3, 5
    • C. difficile testing if >3 unformed stools/day or recent antibiotic use 3

Additional Testing Based on Clinical Pattern

For diarrhea-predominant symptoms 4, 5:

  • Lactose hydrogen breath test for lactose intolerance
  • SeHCAT test or serum C4/FGF19 for bile acid diarrhea (if available)
  • Colonoscopy with biopsies for microscopic colitis, especially if:
    • Female, age ≥50 years
    • Coexistent autoimmune disease
    • Using NSAIDs, PPIs, SSRIs, or statins
    • Nocturnal or severe watery diarrhea

For constipation-predominant symptoms 6:

  • Digital rectal examination assessing pelvic floor function during simulated defecation
  • Consider colonic transit study if symptoms persist despite fiber trial

Common Clinical Scenarios

High-Protein Diet

Excessive dietary protein increases substrate for bacterial ammonia production 1, 2. Management: Reduce protein intake temporarily and increase fermentable fiber (which promotes bacterial ammonia assimilation into bacterial protein rather than release).

Gut Dysbiosis/Small Intestinal Bacterial Overgrowth

Altered gut microbiota can increase ammonia-producing bacteria 7. Evaluation: Lactulose hydrogen breath test shows correlation with breath ammonia levels in IBS patients 7. Treatment: Rifaximin 400mg three times daily for 14 days significantly reduces both breath ammonia and symptoms 7.

Irritable Bowel Syndrome

Ammonia odor may accompany IBS, particularly IBS-D 7. Diagnosis requires 4:

  • Recurrent abdominal pain ≥1 day/week in last 3 months
  • Associated with ≥2 of: defecation, change in stool frequency, change in stool form
  • Symptoms for ≥6 months

Critical Pitfalls to Avoid

  1. Do not routinely measure blood ammonia levels - these are variable, unreliable for GI conditions, and only relevant in hepatic encephalopathy 8, 9

  2. Avoid excessive testing in typical IBS - if Rome IV criteria are met and screening tests are normal, additional invasive testing (colonoscopy in patients <50) is usually unnecessary 4

  3. Don't overlook medication review - proton pump inhibitors increase ammonia production through dysbiosis and should be discontinued if no clear indication 9

  4. Consider parasitic infection even with negative microscopy - if clinical suspicion is high (travel history, contaminated water exposure), proceed to Giardia antigen testing or empiric treatment 5

  5. Recognize that stool ammonia measurement is not clinically useful - ammonia is generated rapidly ex vivo by bacterial enzymes, making fecal measurements unreliable 10

Management Strategy

If screening tests are negative and no alarm features present:

  • Dietary modification: reduce protein, increase fermentable fiber
  • Trial of probiotics or rifaximin for suspected dysbiosis
  • Treat as IBS if criteria met, with lactulose or polyethylene glycol for diarrhea-predominant symptoms 4

If specific diagnosis identified:

  • Giardiasis: metronidazole or tinidazole 3
  • Bile acid diarrhea: bile acid sequestrants 4
  • Celiac disease: gluten-free diet 3
  • Microscopic colitis: budesonide or other specific therapy 4

Related Questions

What is the appropriate workup for a 68-year-old woman with a three-month history of daily, painless diarrhea without blood?
In a 23-year-old woman with abdominal pain, weight loss, chronic bloody diarrhea, and tenesmus, what is the most appropriate diagnostic test?
A 23-year-old male presents with watery diarrhea for 2 days after eating beef, intermittent fever of 102 °F, and severe headache. What investigations should be performed, and what is the likely diagnosis and appropriate treatment?
How should a 37-year-old woman with a four-week history of diarrhea be evaluated and managed?
What is the differential diagnosis and recommended work‑up and treatment for a patient presenting with diarrhea, fecal leakage, and foul‑smelling stools?
What is it called when the quadriceps tendon ruptures and there is no ability to palpate it?
What is the appropriate dosing increase schedule for atomoxetine in children, adolescents, and adults?
Can a GLP‑1 receptor agonist (e.g., semaglutide, liraglutide, dulaglutide) alter vaginal pH and cause gray discharge?
Is rabbit antithymocyte globulin induction recommended to prevent recurrence of IgA nephropathy after kidney transplantation?
For a patient with Wolff‑Parkinson‑White (WPW) syndrome who has a rate‑responsive dual‑chamber pacemaker, is it safe to use beta‑blockers for prophylaxis, and how should pre‑excited atrial fibrillation be managed?
Can the patient safely continue taking 1–2 tablets of diazepam (Valium) weekly for neck muscle spasm‑induced migraines and anxiety, given a history of medication reactions, while awaiting specialist evaluation, without developing dependence?

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.