Urine anion & osmolal gap calculator
Estimate urine ammonium in normal-AG acidosis · Urine studies
Educational use · for healthcare professionals and trainees · not for time-critical decisions · verify every result
When to use it
Estimate urine ammonium in normal-AG acidosis.
What this changes: A negative urine anion gap fits GI bicarbonate loss; a positive one fits distal RTA, unless other urine anions confuse it (use the osmolal gap). Batlle 1988
Inputs
- Lab units
- Urine Na (mEq/L)
- Urine K (mEq/L)
- Urine Cl (mEq/L)
- Urine osmolality (optional) (mOsm/kg)
- Urine urea N (optional) (mg/dL or mmol/L urea)
- Urine glucose (optional) (mg/dL or mmol/L)
Advanced mode inputs (optional)
- 24-h urine volume (L)
- Urine pH
- Urine creatinine (mg/dL or µmol/L or mmol/L)
Formula
UAG = UNa + UK − UCl. UOG = Uosm − [2(UNa + UK) + Uurea/2.8 + Uglucose/18]; NH4+ ≈ UOG/2.
Advanced mode
UAG = UNa + UK − UCl. UOG = Uosm − [2(UNa + UK) + Uurea/2.8 + Uglucose/18]; NH4+ ≈ UOG/2. ADVANCED: Urine NH4+ ≈ UOG/2; UOG = Uosm − [2(Na+K) + urea/2.8 + glucose/18]. Creatinine mg/dL × 0.0884 = mmol/L.
Interpreting the result
Example with the app's default inputs:
- Urine anion gap -20mEq/L (normal)
Interpretation: Negative UAG: appropriate NH4+ excretion → likely GI bicarbonate loss (diarrhea).
Advanced interpretation: UAG is unreliable when unmeasured anions are excreted (ketones, hippurate from toluene, D-lactate, penicillins) or urine Na <20; the urine osmolal gap is more robust. During metabolic acidosis, NH4+ excretion <40 mmol/day indicates a renal (RTA) defect; an appropriate response to sustained acidosis is >200 mmol/day, and 40–200 suggests a partial defect.
References
- Kraut JA, Madias NE. Differential diagnosis of nongap metabolic acidosis: value of a systematic approach. CJASN 2012;7:671–679; Approach to Renal Tubular Acidosis - A Review. Indian J Endocrinol Metab 2026 (PMID 41918597) Kraut JA, Madias NE. CJASN 2012;7:671 (Table 3); Kamel KS & Halperin ML. NEJM 2015;372:546-54 (PMID 25651248); Uribarri J et al. 2013.
- Batlle DC et al. The use of the urinary anion gap in the diagnosis of hyperchloremic metabolic acidosis. N Engl J Med 1988;318:594–599 doi.org/10.1056/NEJM198803103181002
- Batlle DC et al. N Engl J Med 1988;318:594 (urine anion gap) pubmed.ncbi.nlm.nih.gov/3344005/
- Kraut JA, Madias NE. CJASN 2012;7:671 (non-gap acidosis) pubmed.ncbi.nlm.nih.gov/22403272/
Formula Reviewed Oct 2026 · v1
FAQ
What is the Urine anion & osmolal gap used for?
Estimate urine ammonium in normal-AG acidosis.
What inputs does it need?
Lab units; Urine Na (mEq/L); Urine K (mEq/L); Urine Cl (mEq/L); Urine osmolality (optional) (mOsm/kg); Urine urea N (optional) (mg/dL or mmol/L urea); Urine glucose (optional) (mg/dL or mmol/L).
How is it calculated?
UAG = UNa + UK − UCl. UOG = Uosm − [2(UNa + UK) + Uurea/2.8 + Uglucose/18]; NH4+ ≈ UOG/2.
What is it based on?
Kraut JA, Madias NE. Differential diagnosis of nongap metabolic acidosis: value of a systematic approach. CJASN 2012;7:671–679; Approach to Renal Tubular Acidosis - A Review. Indian J Endocrinol Metab 2026 (PMID 41918597) Kraut JA, Madias NE. CJASN 2012;7:671 (Table 3); Kamel KS & Halperin ML. NEJM 2015;372:546-54 (PMID 25651248); Uribarri J et al. 2013.
Is this medical advice?
Educational use only. Not medical advice; does not replace clinical judgment or institutional protocols. Verify all drug doses. Educational use · for healthcare professionals and trainees · not for time-critical decisions · verify every result.
Related calculators
- Fractional excretion (Na, urea, uric acid, Mg, PO4, K)
- TTKG (historical)
- Urine K/creatinine ratio
- Proteinuria quantifier
- Normal anion gap acidosis
Educational use only. Not medical advice; does not replace clinical judgment or institutional protocols. Verify all drug doses.