Logo

OpiCalc

FavoritesSpecialtiesDrugsGuidelinesMost Used

Quick Access

Favorites
Most Used

All Specialties

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

OpiCalc

Easy, fast, and private medical tools for clinicians. Always free.

No Login Required
Ready for the Bedside

Resources

About UsEditorial PolicyMedical DisclaimerPrivacy PolicyTerms of UseCookie Policy

Support

Contact Us

Clinical Notice:OpiCalc is not a substitute for professional clinical judgment. Always verify dosages and guidelines.

OpiCalc © 2026

•

All Rights Reserved

Urinary Anion Gap

UAG Calculator

Urinary Anion Deviation

Diagnostic Rule

Estimates Urinary Ammonium excretion (NH₄⁺). Negative UAG = High excretion; Positive UAG = Low excretion.

Etiology Resolver

Enter urine electrolytes to differentiate Renal vs Extra-renal acidosis.

Guidelines & Evidence

Verified

Last Review: 2026-07-17

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.

How it Works

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.

Clinical Pearls

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.

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

The Evidence

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.

Origins & History

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-07-17

Related Tools

Anion Gap
FENa
FEUrea
Nephrology CalculatorsInternal Medicine CalculatorsEmergency Medicine Calculators
Have feedback about this calculator?Let us know.

Recent Journal Updates

British J Clinical PharmacologyJul 22, 2026
Comment on ‘Linezolid‐induced lactic acidosis in critically ill patients: A multicentre study of incidence, severity and predictors’

Clinical Context

We think this has broad domain relevance to Urinary Anion Gap (UAG).

CancerJul 22, 2026
Results of second‐line therapy in adult Philadelphia chromosome‐positive acute lymphoblastic leukemia

Clinical Context

We think this has broad domain relevance to Urinary Anion Gap (UAG).

BJOGJul 3, 2026
Long‐Term Outcomes After Retropubic and Transobturator Sling Procedures: Reoperation for Recurrent Stress Urinary Incontinence

Clinical Context

We think this might be relevant to the clinical guidance for Urinary Anion Gap (UAG).