# Urine Anion Gap (UAG) Calculator

Calculate the Urine Anion Gap (UAG) to differentiate causes of normal-anion-gap (hyperchloremic) metabolic acidosis: UAG = (U_Na + U_K) − U_Cl, in mmol/L. The UAG is an inverse surrogate for urinary NH₄⁺ excretion. A negative UAG (typically −20 to −50) indicates appropriate high NH₄⁺ excretion → extrarenal (GI) bicarbonate loss (diarrhea, fistulae, ureteral diversions). A positive/high UAG indicates low NH₄⁺ excretion → renal tubular acidosis (distal/type 1, type 4 hypoaldosteronism, proximal/type 2 variable). Reference range ≈ 0 to +40 mmol/L. Caveats: unreliable with unmeasured urine anions (ketoacidosis, toluene/hippurate, D-lactate) or when urine sodium < 25 mmol/L (use urine osmolar gap instead). Derived from Batlle CJASN 2012, Ito 2025, Bonner AJKD 2025. Interpret with blood gas and full clinical context. Not medical advice.

> Canonical page: https://elysiatools.com/en/tools/anion-gap-renal

- **Category:** Health

- **Keywords:** urine anion gap, UAG, urine net charge, renal tubular acidosis, RTA, hyperchloremic metabolic acidosis, normal anion gap acidosis, ammonium, NH4, diarrhea, nephrology

## Overview

The Urine Anion Gap (UAG) Calculator computes UAG = (U_Na + U_K) − U_Cl in mmol/L and provides a concise interpretation for normal-anion-gap metabolic acidosis. Negative values suggest appropriate urinary NH₄⁺ excretion and an extrarenal bicarbonate loss, while positive or high values suggest reduced NH₄⁺ excretion and a possible renal cause. Interpret results with blood gas findings and the full clinical context; this tool is not medical advice.

## Inputs

- **Urine Sodium U_Na (mmol/L)** (number): Urine sodium U_Na (mmol/L). Must be ≥0. Reliability drops below 25 mmol/L.
- **Urine Potassium U_K (mmol/L)** (number): Urine potassium U_K (mmol/L). Must be ≥0.
- **Urine Chloride U_Cl (mmol/L)** (number): Urine chloride U_Cl (mmol/L). Must be ≥0.
- **Decimal Places** (number)

## When to use

- Assess the renal response in suspected normal-anion-gap or hyperchloremic metabolic acidosis.
- Compare a negative UAG pattern associated with gastrointestinal bicarbonate loss, such as diarrhea, with a positive pattern suggesting renal tubular acidosis.
- Calculate UAG quickly from urine sodium, potassium, and chloride values while noting important reliability limitations.

## How it works

- Enter urine sodium (U_Na), urine potassium (U_K), and urine chloride (U_Cl) in mmol/L.
- The calculator applies the formula UAG = (U_Na + U_K) − U_Cl.
- The result is reported in mmol/L with a category and interpretation related to urinary NH₄⁺ excretion.
- Choose the number of decimal places for the displayed result; interpret the value alongside clinical data.

## Use cases

- Nephrology evaluation of suspected distal, type 4, or variable proximal renal tubular acidosis.
- Assessment of diarrhea or other gastrointestinal bicarbonate loss in hyperchloremic metabolic acidosis.
- Teaching and case review using measured urine electrolyte values and calculated urinary net charge.

## Frequently asked questions

### What is the urine anion gap formula?

UAG = (urine sodium + urine potassium) − urine chloride, reported in mmol/L.

### What does a negative UAG suggest?

A negative UAG suggests high NH₄⁺ excretion and an appropriate renal response, often consistent with extrarenal bicarbonate loss such as diarrhea.

### What does a positive UAG suggest?

A positive or high UAG suggests low NH₄⁺ excretion and may indicate impaired renal acid excretion, such as renal tubular acidosis.

### When is UAG less reliable?

UAG is less reliable with unmeasured urine anions, including ketoacidosis, toluene or hippurate exposure, and D-lactate, or when urine sodium is below 25 mmol/L.

### What should be used when urine sodium is below 25 mmol/L?

The tool description recommends using the urine osmolar gap instead because UAG reliability decreases below 25 mmol/L urine sodium.

## Related tools

- [Serum Anion Gap (AG) Calculator](https://elysiatools.com/en/tools/anion-gap-calculator): Calculate the serum Anion Gap (AG) to classify metabolic acidosis. Standard formula AG = Na⁺ − Cl⁻ − HCO₃⁻ (mmol/L), or AG = Na⁺ + K⁺ − Cl⁻ − HCO₃⁻ with optional potassium. A high AG (≈ >12, or >20 with K⁺) indicates accumulation of unmeasured anions (lactic acidosis, ketoacidosis, renal failure, and toxins such as methanol/ethylene glycol, salicylates — mnemonic GOLD-MARK). A normal AG (8–12) during metabolic acidosis points to a hyperchloremic (normal-anion-gap) acidosis: diarrhea, renal tubular acidosis, saline resuscitation. A low AG (<3–6) is usually hypoalbuminemia, also hypercalcemia/hypermagnesemia, lithium, cationic IgG paraproteins, or bromide pseudo-hyperchloraemia. Optional albumin correction AG_corrected = AG + 2.5 × (4.0 − albumin g/dL) avoids missing a high-AG acidosis in hypoalbuminemia. Derived from Kraut CJASN 2007, Figge 1998, and MDCalc. Interpret with blood gas and full clinical context. Not medical advice.
- [Antibiotic Working Concentration (C₁V₁ = C₂V₂)](https://elysiatools.com/en/tools/antibiotic-concentration): Compute the antibiotic stock volume for a target working concentration with C₁V₁ = C₂V₂, supporting mg/mL, µg/mL, g/L, ng/mL and × fold notation.
- [Fractional Excretion of Sodium (FENa)](https://elysiatools.com/en/tools/fractional-excretion-sodium): Calculate the Fractional Excretion of Sodium (FENa) to differentiate prerenal from intrinsic acute kidney injury: FENa (%) = \[U_Na × S_Cr\] / \[S_Na × U_Cr\] × 100. In oliguric AKI, FENa <1% suggests prerenal azotemia (sodium-avid state: volume depletion, heart failure, hepatorenal syndrome), while FENa ≥1% suggests intrinsic injury (typically ATN). FENa >4% is sometimes cited as supportive of post-obstructive pathology. Caveats: unreliable on diuretics (use FEUrea <35%), contrast/sepsis ATN can present with low FENa, chronic CKD and glucosuria elevate FENa independently. Derived from Espinel CH, JAMA 1976. Most useful in oliguric AKI; interpret with full clinical context. Not medical advice.
- [Free Water Clearance Calculator](https://elysiatools.com/en/tools/free-water-clearance): Calculate solute-free water clearance (C_H₂O) and electrolyte-free water clearance (eC_H₂O) to differentiate hypo-/hypernatremia. Classic: C_H₂O = V·(1 − U_osm/P_osm); positive = dilute urine excreting free water (diabetes insipidus, polydipsia, water-load recovery), negative = concentrated urine conserving free water (dehydration, SIADH). Electrolyte-free: eC_H₂O = V·(1 − (U_Na + U_K)/P_Na), which better predicts the direction of serum sodium change — a negative eC_H₂O means the urine is electrolyte-free-water-rich and tends to raise serum Na⁺, informing IV fluid choice. Optional Na/K inputs enable the electrolyte-free calculation. Derived from Rose, Shimizu 2002 (Nephron), and NephSIM. Point estimate; interpret with full clinical context. Not medical advice.
- [Glasgow Coma Scale (GCS) Calculator](https://elysiatools.com/en/tools/gcs-calculator): Calculate the Glasgow Coma Scale (GCS) from the three response components: Eye Opening (E, 1–4), Verbal Response (V, 1–5), and Motor Response (M, 1–6). Total = E + V + M, range 3–15. Supports the '1t' notation for intubated/untestable verbal response (counted as V = 1, with an annotation, and recommends reporting the E_M_V component string). Severity bands: 13–15 mild, 9–12 moderate, 3–8 severe (severe scores commonly prompt airway protection). Derived from Teasdale & Jennett, Lancet 1974, with the Lancet Neurology 2014 review and 2024 update. Not medical advice.
- [Infusion Rate Calculator (mL/hr)](https://elysiatools.com/en/tools/infusion-rate-ml-hr): Calculate the infusion pump rate in mL/hr = Total volume / Infusion time. Time may be hours+minutes or minutes; also reports mL/min and the decimal duration. Verify pump units match the order, confirm line patency, and sum channels for restricted patients. Derived from Macklin 2011, NICE CK174 2017, Phillips 2007, and ISMP. Not medical advice.
- [NIH Stroke Scale (NIHSS)](https://elysiatools.com/en/tools/nihss-score): Calculate the NIH Stroke Scale (NIHSS) to quantify acute stroke neurologic deficit across 11 categories (15 scored items, with left & right limb motor graded separately). Items: 1a Level of consciousness (0–3), 1b LOC questions (0–2), 1c LOC commands (0–2), 2 Best gaze (0–2), 3 Visual fields (0–3), 4 Facial palsy (0–3), 5a/5b Motor arm left/right (0–4 each), 6a/6b Motor leg left/right (0–4 each), 7 Limb ataxia (0–2), 8 Sensory (0–2), 9 Best language (0–3), 10 Dysarthria (0–2), 11 Extinction/inattention (0–2). Both left and right limb motor scores are summed into the total (standard NIHSS); the tool also reports the more-affected side (max of left/right) for clinical context. Range 0–42; higher = more severe. Interpretation: 0 no symptoms, 1–4 minor, 5–15 moderate, 16–20 moderate-to-severe, 21–42 severe. Derived from Brott et al. 1989 (Stroke) and NINDS instructions. Scoring reliability is examiner-dependent and should be performed by trained personnel. Not medical advice.
- [Red Cell Distribution Width (RDW) Analyzer](https://elysiatools.com/en/tools/rdw-analyzer): Analyze Red Cell Distribution Width (RDW) with MCV to help differentiate anemias. RDW-CV reference ≈ 11.5–14.5%, RDW-SD ≈ 39–46 fL (lab-dependent). Elevated RDW reflects anisocytosis. Classic Bessman patterns: high RDW + low MCV → iron deficiency anemia (IDA), which raises the RDW early — before MCV/Hb fall; normal RDW + low MCV → thalassemia trait (uniform microcytosis). Other patterns: high RDW + high MCV → megaloblastic anemia (B12/folate), MDS, drugs, hemolysis with reticulocytosis, preleukemia, or mixed populations (combined iron + B12 deficiency, post-transfusion); high RDW + normal MCV → early/mixed nutritional deficiency, dimorphic anemia, marrow recovery; normal RDW + normal MCV → anemia of chronic disease is classically normocytic. Interpret with Hb, ferritin, Hb electrophoresis, and clinical context. Based on Bessman 1983 and Teixeira 2014. Not medical advice.

## Samples

- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
