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.
Use the Urine Anion Gap Calculator
Urine Electrolyte Values
Spot urine sample — all values in mEq/L
Results
Enter urine electrolytes and click Calculate
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 |
- 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
- 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
The urine anion gap (UAG) is calculated as urine Na + urine K − urine Cl and serves as a surrogate for urine ammonium (NH4+) excretion. A negative UAG (urine Cl exceeds Na + K) indicates adequate renal acid excretion, pointing to a GI cause of non-anion-gap metabolic acidosis such as diarrhea. A positive or zero UAG suggests impaired ammonium excretion, consistent with renal tubular acidosis (RTA) or other renal causes.
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.