anion gap calculation formula

Anion Gap Calculator

Enter serum electrolytes in mEq/L. Albumin is optional for corrected anion gap.

What is the anion gap?

The anion gap is a quick clinical calculation used to help evaluate acid-base disorders, especially metabolic acidosis. It estimates the difference between commonly measured positive ions (cations) and negative ions (anions) in blood. Since not all ions are measured directly, the “gap” reflects unmeasured ions and can point toward important medical conditions.

In daily practice, this value is often reviewed with other labs such as glucose, lactate, ketones, renal function, and blood gas data. By itself, it does not diagnose a disease, but it is a very useful clue.

Anion gap calculation formula

Standard formula (most common)

Anion Gap = Na+ − (Cl- + HCO3-)

Alternative formula including potassium

Anion Gap (with K) = (Na+ + K+) − (Cl- + HCO3-)

Many laboratories and textbooks use the formula without potassium because K is relatively small and contributes less to interpretation in most cases. Whichever method is used, consistency with your local lab reference range is key.

Corrected anion gap for albumin

Albumin is a major unmeasured anion. If albumin is low, the anion gap can appear deceptively normal even when unmeasured acids are elevated. A common correction is:

Corrected AG = AG + 2.5 × (4.0 − albumin in g/dL)

Example: if AG = 10 and albumin = 2.0 g/dL, corrected AG = 10 + 2.5 × (2.0) = 15.

Clinical note: Reference ranges vary by analyzer and institution. A frequently used non-potassium range is roughly 8 to 12 mEq/L, but always confirm local laboratory standards.

How to calculate anion gap step-by-step

  • Collect sodium, chloride, and bicarbonate values from the basic metabolic panel.
  • Sum chloride and bicarbonate.
  • Subtract that total from sodium.
  • Optionally calculate potassium-inclusive AG if desired.
  • If albumin is low, calculate corrected AG for better clinical interpretation.

How to interpret results

High anion gap metabolic acidosis

A high gap suggests accumulation of unmeasured acids. Common causes include:

  • Lactic acidosis (shock, sepsis, severe hypoxia)
  • Ketoacidosis (diabetic, alcoholic, starvation)
  • Renal failure/uremia
  • Toxins (methanol, ethylene glycol, salicylates, and others)

Normal anion gap (hyperchloremic) metabolic acidosis

If bicarbonate is low but anion gap is normal, think of bicarbonate loss or chloride retention. Examples include diarrhea, renal tubular acidosis, or saline-related hyperchloremia.

Low anion gap

A low anion gap is less common and may occur with hypoalbuminemia, paraproteinemia (such as some monoclonal gammopathies), lab artifact, or severe increases in unmeasured cations. Always review the full clinical context and repeat testing if values seem inconsistent.

Worked example

Suppose labs are Na 138, Cl 102, HCO3 18, albumin 3.0:

  • AG = 138 − (102 + 18) = 18
  • Albumin correction = 18 + 2.5 × (4.0 − 3.0) = 20.5

Interpretation: this is an elevated anion gap and deserves prompt clinical evaluation for causes of high-gap metabolic acidosis.

Common pitfalls

  • Using different formulas without adjusting interpretation ranges.
  • Ignoring albumin, which may hide a clinically significant high gap.
  • Relying only on the anion gap without blood gas and clinical assessment.
  • Failure to check for mixed acid-base disorders.

Bottom line

The anion gap calculation formula is simple, fast, and clinically powerful: AG = Na − (Cl + HCO3). Use it alongside history, exam, and additional labs. If albumin is low, use a corrected value to avoid underestimating severity.

This page is educational and not a substitute for professional medical diagnosis or treatment.

🔗 Related Calculators