OpiCalc Logo

OpiCalc

989 Clinical Tools

Logo
OpiCalc
AKI Staging (KDIGO)Anion Gap + Delta-DeltaCKD Stage (KDIGO)Creatinine ClearanceElectrolyte & Free WaterFENaFEUreaKFRE — Kidney Failure RiskKt/V DialysisSodium CorrectionUACRUPCRUrea Reduction RatioUric Acid & FEUAUrinary Anion GapWinter's FormulaeGFR (CKD-EPI)
OpiCalc Logo

OpiCalc

Open-access clinical infrastructure. Built to the standard every clinician deserves — fast, private, and free.

Zero data stored
Always free
Our mission & transparency

Get in Touch

Tool request, clinical feedback, or partnership inquiry — we read everything.

WhatsApp feedback
Email us
Partnership inquiry

© 2026 OpiCalc • Calculated Care

ProtocolsAboutPrivacyTerms

Urinary Anion Gap

Urinary Anion Gap (UAG): Differentiates renal vs. GI causes of non-anion gap metabolic acidosis (NAGMA) by estimating urine ammonium (NH₄⁺) excretion.
Guidelines & Evidence

Clinical Details

Section 1

When to Use

When to Use

Normal Anion Gap Metabolic Acidosis (NAGMA) — after HAGMA has been excluded.
Differentiating Renal Tubular Acidosis (RTA) from extra-renal (GI) causes of NAGMA.
Persistent NAGMA in the absence of obvious GI losses.
Investigating hyperchloraemic acidosis post-saline resuscitation vs. true RTA.

The Clinical Question It Answers

In NAGMA, are the kidneys excreting enough acid (NH₄⁺)? A negative UAG confirms the kidneys are responding correctly — the problem is extra-renal. A positive UAG indicates the kidneys are failing to acidify the urine — pointing to Renal Tubular Acidosis.
Section 2

Formula & Logic

Formula

UAG = Urine Na⁺ + Urine K⁺ − Urine Cl⁻

Interpretation

UAG Negative (< 0)High NH₄⁺ excretion → Kidneys acidifying normally → Extra-renal loss (Diarrhoea, Fistulae)
UAG Positive (> 0)Low NH₄⁺ excretion → Kidneys failing to acidify → Renal Tubular Acidosis (RTA) or Hypoaldosteronism

Physiological Basis

NH₄⁺ (ammonium) is the primary way the kidney excretes acid. Because NH₄⁺ is not routinely measured, the UAG uses the principle of electroneutrality: if unmeasured NH₄⁺ is high (in the urine), Cl⁻ will exceed Na⁺ + K⁺, making the UAG negative. Conversely, if NH₄⁺ is absent, the balance shifts positive.
Section 3

Pearls/Pitfalls

RTA Type Differentiaton

Type 1 (Distal RTA)Positive UAG. Urine pH > 5.5. Typically hypokalaemia. Kidney stones.
Type 2 (Proximal RTA)Positive UAG during acidosis; can become negative after HCO3 load.
Type 4 (Hyperkalaemic RTA)Positive UAG. Urine pH < 5.5. Hyperkalaemia. CKD, Addison's, diabetes, NSAIDs.
GI Loss (Diarrhoea)Negative UAG. Urine pH < 5.5. Hypokalaemia. Confirms renal response is intact.

Pitfall: Ketonuria

In DKA, ketones (beta-hydroxybutyrate) act as unmeasured anions in urine, making the UAG falsely negative despite impaired NH₄⁺ excretion. In this setting, use the Urine Osmol Gap to estimate NH₄⁺ directly.
Section 4

Next Steps

Action Plan for Positive UAG (RTA)

01
Determine RTA Type: Urine pH, K⁺, and bicarbonate wasting pattern.
02
Type 1 (Distal): Oral Potassium Citrate or Sodium Bicarbonate. Evaluate for Sjögren's, amphotericin toxicity.
03
Type 2 (Proximal): Investigate Fanconi Syndrome causes (Multiple Myeloma, Wilson's, ifosfamide).
04
Type 4 (Hyperkalaemic): Treat hyperkalaemia. Fludrocortisone if Addison's. Discontinue offending drugs.

Complementary Tools

Anion Gap + Delta-Delta
Winter's Formula
Serum Osmolality Gap
Section 5

Evidence Appraisal

Foundational Paper

The use of the urinary anion gap in the diagnosis of hyperchloremic metabolic acidosis.

Batlle DC et al. • N Engl J Med.. 1988;318:594–599. Established the clinical use of the UAG and demonstrated its diagnostic accuracy in RTA vs. GI acidosis.

Section 6

Literature

Development

The Urinary Anion Gap was formally described by Daniel Batlle and colleagues at Northwestern University in 1988. The concept emerged from the fundamental observation that electroneutrality is conserved in urine, just as it is in serum — and that this predictable balance could provide a window into the invisible NH₄⁺ excretion that the kidney performs.

Last Comprehensive Review: 2026

Related Nephrology Tools

eGFR
Creatinine Clearance
CKD Stage
KFRE — Kidney Failure Risk
AKI Staging
FENa
FEUrea
UACR
UPCR
Sodium Correction
Have feedback about this calculator?Let us know.