How this instrument works
The urine anion gap isn't a gap in the kidney at all — it stands in for urine ammonium, the main cation the body uses to carry acid out through the bladder, and one that a routine chemistry panel never reports. Electrical neutrality means every sample balances its measured cations, sodium and potassium, against chloride plus whatever else is riding along unmeasured. When ammonium output climbs, chloride tends to climb with it to keep the fluid neutral, so subtracting chloride from the sum of sodium and potassium leaves a figure that falls as ammonium rises. A strongly negative result implies plenty of hidden ammonium; a positive or only mildly negative one implies little.
The arithmetic comes from a 1986 paper by Goldstein, Bear, Richardson, Marsden and Halperin, who proposed it as a bedside proxy for a lab test — direct ammonium measurement — that almost no hospital ran routinely. Applied to a patient with a normal-anion-gap, hyperchloremic acidosis, a positive reading points toward a kidney that isn't excreting acid properly, as in renal tubular acidosis, while a negative reading points toward a kidney responding correctly to an acid load arriving from elsewhere, classically lost bicarbonate from diarrhea.
The estimate only holds inside that narrow picture. It assumes sodium concentration is high enough for the logic to apply, and it stops working cleanly once a sample carries a large amount of some other unmeasured anion — ketone bodies or certain drug byproducts, for instance — which pulls the sum off in a direction that has nothing to do with ammonium at all. A reading sitting close to zero is best treated as inconclusive rather than diagnostic.
- Enter Urine sodium (Una) in mEq/L from a spot urine sample.
- Enter Urine potassium (Uk) in mEq/L from that same sample.
- Enter Urine chloride (Ucl) in mEq/L, again from the same specimen.
- Read UAG: positive leans renal, negative leans extrarenal, for a patient already known to have a normal-anion-gap metabolic acidosis.
Worked example — Una 40, Uk 30, Ucl 50 mEq/L
Add the two cations first: 40 + 30 = 70. Subtract chloride: 70 − 50 = 20 mEq/L. The result is positive, the pattern expected when the kidney is not excreting acid the way a healthy one would — a renal cause for a normal-anion-gap acidosis, such as distal renal tubular acidosis.
Now flip the chloride-heavy case: Una 20, Uk 20, Ucl 60. The cations sum to 40; 40 − 60 leaves −20 mEq/L. Identical arithmetic, opposite sign — the pattern expected when the kidney is excreting ammonium generously in response to acid arriving from outside it, diarrhea being the textbook cause.
Questions
What does a positive urine anion gap mean?
It suggests the kidney itself is the problem. In a normal-anion-gap metabolic acidosis, a positive UAG implies low urine ammonium — the kidney isn't excreting acid the way it should — pointing toward a renal cause such as renal tubular acidosis rather than a gut source of bicarbonate loss.
What does a negative urine anion gap mean?
It suggests the kidney is doing exactly what it should. A negative UAG implies high urine ammonium, meaning acid is being excreted vigorously in response to a load arriving from somewhere else — most classically bicarbonate lost through diarrhea, an extrarenal cause of the acidosis.
Why estimate ammonium instead of just measuring it?
Because a direct assay for urine ammonium was not, and still often isn't, something routine hospital labs run, while sodium, potassium, and chloride sit on every basic urine panel. Goldstein and colleagues proposed the subtraction shortcut in 1986 precisely because electrical neutrality drags chloride along with ammonium even when ammonium stays invisible to the lab.
When is the urine anion gap actually useful?
Specifically when working up a normal-anion-gap, hyperchloremic metabolic acidosis, to help decide whether the cause sits in the kidney or outside it. It has little to say about a high-anion-gap acidosis, where the diagnostic question — and the missing anion — is something else entirely.
Does the calculation ever mislead?
Yes. It assumes urine sodium is reasonably plentiful and that chloride is the dominant unmeasured-cation partner in the sample. A large amount of some other unmeasured anion, or a very low urine sodium, can pull the number away from what ammonium alone would predict, so treat a value near zero as inconclusive rather than a clean answer.
Is this the same as the serum anion gap?
No, and the two answer different questions. The serum anion gap screens blood for unmeasured anions and classifies a metabolic acidosis as high- or normal-gap in the first place. The urine anion gap is a separate, later step used only once that acidosis is already known to be normal-gap, to localize the cause between kidney and gut.
References
- Goldstein MB et al. 1986, Am J Med Sci — original description (PubMed)
- NIDDK — Renal Tubular Acidosis
Read this first: This instrument computes a screening figure from population formulas — it is not a diagnosis, and it cannot see the whole picture a clinician can. Use it to inform a conversation, not to replace one.