Urine Anion Gap Calculator


Use urine electrolytes to estimate urinary ammonium excretion in hyperchloremic metabolic acidosis.

Enter the values and click Calculate.

أدخل القيم:
mEq/L
mEq/L
mEq/L
النتائج:

About this calculator

The urine anion gap is a quick way to estimate how much ammonium the kidney is excreting. It is used in patients with a non-anion-gap metabolic acidosis.

What you need

  • Urine sodium in mEq/L from a spot urine sample.
  • Urine potassium in mEq/L from the same sample.
  • Urine chloride in mEq/L from the same sample.

All three are urine (not blood) values from one collection, in a patient with a non-anion-gap (hyperchloremic) metabolic acidosis already shown on blood tests.

Formula

Urine anion gap = urine Na + urine K - urine Cl (all in mEq/L).

How to read the result

The gap estimates whether the kidney is excreting ammonium, which drags chloride with it. A clearly negative gap means ammonium excretion is intact, fitting a gut cause of acidosis such as diarrhea. A positive gap means the kidney is not excreting ammonium as it should, fitting a renal cause such as distal renal tubular acidosis. Values near zero are unhelpful, and the next consideration when the picture is unclear is the urine osmolal gap, which is more direct.

Worked example

Urine Na 40, K 30, Cl 60: gap = 10 mEq/L (positive).

Common mistakes

  • Using the gap when urine sodium is very low (under about 25 mEq/L), where little chloride reaches the urine and the test misleads.
  • Using it with ketoacidosis, hippurate (toluene) or drug anions in the urine, which fake a positive gap.
  • Entering serum values by mistake; every input is urine.

Limitations

Unreliable when urine contains unmeasured anions such as ketoanions, hippurate or drug anions, in volume depletion with urine sodium under 25 mEq/L, or during diuretic use. Urine osmolal gap is an alternative.

Frequently asked questions

What question does the urine anion gap answer?

"Is the kidney doing its job of excreting acid?" It separates gut from renal causes of a non-anion-gap metabolic acidosis.

Why does a negative gap point to the gut?

Because a healthy kidney responds to acidosis by excreting ammonium with chloride, making urine chloride exceed sodium plus potassium.

Reference

  • Batlle DC, Hizon M, Cohen E, Gutterman C, Gupta R. The use of the urinary anion gap in the diagnosis of hyperchloremic metabolic acidosis. N Engl J Med 1988;318(10):594-599. doi:10.1056/NEJM198803103181002

Disclaimer. Medical information only. This calculator is an educational aid for clinicians and students. It does not give medical advice, diagnosis or treatment, and it does not replace clinical judgment. Check results against the original source and local protocols before using them in patient care.