Urine Anion Gap Calculator
Enter urine sodium, potassium, and chloride to calculate the urine anion gap and interpret the likely cause of non-anion-gap metabolic acidosis.
Urine Electrolyte Values
Spot urine sample — all values in mEq/L
Results
Enter urine electrolytes and click Calculate
Urine Anion Gap (UAG)
—
mEq/L
Formula
UAG = urine Na + urine K − urine Cl
—
Interpretation
Likely Cause of Non-AG Acidosis
UAG Reference & Clinical Context
| UAG Result | Ammonium (NH4+) | Likely Diagnosis |
|---|---|---|
| < 0 (negative) | High — renal response intact | GI bicarbonate loss: diarrhea, ileostomy, fistula |
| 0 – +20 | Borderline / low | Equivocal; consider urine pH, clinical context, or urine osmolal gap |
| > +20 (positive) | Low — impaired renal excretion | Renal tubular acidosis (type 1 distal or type 4); early renal failure |
When UAG may be unreliable
- Urine Na < 25 mEq/L (volume depletion limits Cl delivery)
- Ketoaciduria — ketoanions replace Cl, falsely lowers UAG
- High-anion-gap acidosis (UAG not indicated)
- Toluene toxicity — hippurate excreted with Na, falsely negative UAG
RTA sub-types at a glance
- Type 1 (distal): positive UAG, urine pH > 5.5
- Type 2 (proximal): variable UAG, urine pH < 5.5 when acidemic
- Type 4: positive UAG, hyperkalemia, low aldosterone effect
For educational and reference purposes only. Clinical decisions require a qualified healthcare professional.
Summary
Enter urine sodium, potassium, and chloride to calculate the urine anion gap and interpret the likely cause of non-anion-gap metabolic acidosis.
How it works
- Collect a spot urine sample and measure urine sodium (Na+), potassium (K+), and chloride (Cl−).
- Enter each value in mEq/L into the calculator.
- The tool applies the formula: UAG = urine Na + urine K − urine Cl.
- A negative UAG (< 0) indicates high urine ammonium — GI bicarbonate loss is likely (e.g., diarrhea).
- A positive UAG (> 0) suggests low urine ammonium — impaired renal acid excretion points to RTA.
- Review the interpretation panel for clinical guidance and next steps.
Use cases
- Differentiating renal tubular acidosis from diarrhea-induced non-anion-gap metabolic acidosis.
- Evaluating a patient with persistent hyperchloremic metabolic acidosis.
- Bedside acid-base workup in the emergency department or nephrology consult.
- Medical education and USMLE preparation for acid-base physiology.
- Monitoring response to treatment in type 1 (distal) or type 4 RTA.
- Screening for ammonium excretion defects in chronic kidney disease.
- Teaching tool for nephrology fellows reviewing urine electrolyte interpretation.
Frequently Asked Questions
Last updated: 2026-07-12 ·
Reviewed by Nham Vu