Anion Gap Calculator

Anion Gap Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Corrected AG=AG+2.5×(4.0−Albumin (g/dL))\text{Corrected AG} = \text{AG} + 2.5 \times \left( 4.0 - \text{Albumin (g/dL)} \right)
Show calculation steps (1)
  1. Serum Anion Gap

    Anion Gap=Na+−(Cl−+HCO3−)\text{Anion Gap} = {{\text{Na}^{+}}} - \left( {{\text{Cl}^{-}}} + {{\text{HCO}_3^{-}}} \right)

    AG = Na minus (Cl plus HCO3)

Usage stats

Advertisement

Results

Serum Anion Gap
12
mEq/L (the normal range depends on the laboratory)
Albumin-corrected anion gap 12 mEq/L
Formula Na − (Cl + HCO₃)

For reference only — not a substitute for a clinician's assessment.

Report an error on this page

What Is the Anion Gap?

The serum anion gap (AG) is a calculated value that estimates the difference between unmeasured cations and unmeasured anions in the blood. Clinicians use it to help classify metabolic acidosis and to flag the presence of abnormal acids. It is derived from a routine electrolyte panel using sodium, chloride and bicarbonate.

Bar showing serum cations balanced against measured anions plus an unmeasured anion gap
The anion gap represents unmeasured anions: the difference between sodium and the measured anions chloride and bicarbonate.

How to Use This Calculator

Enter the patient's serum sodium (Na⁺), chloride (Cl⁻) and bicarbonate (HCO₃⁻) in mEq/L. Optionally enter serum albumin in g/dL to obtain an albumin-corrected anion gap, which is important because low albumin lowers the apparent gap and can mask a true elevation.

The Formula Explained

The anion gap is calculated as $$\text{AG} = \text{Na}^{+} - \left( \text{Cl}^{-} + \text{HCO}_3^{-} \right)$$ A normal value is roughly 8–12 mEq/L when potassium is not included. Because albumin is the major unmeasured anion, the corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0 g/dL: $$\text{AG}_{\text{corr}} = \text{AG} + 2.5 \times \left( 4.0 - \text{albumin} \right)$$

Advertisement
Equation layout showing sodium minus the sum of chloride and bicarbonate equals anion gap
Anion gap equals sodium minus the sum of chloride and bicarbonate.

Worked Example

Suppose \(\text{Na}^{+} = 140\), \(\text{Cl}^{-} = 104\) and \(\text{HCO}_3^{-} = 24\) mEq/L. The anion gap is $$140 - (104 + 24) = 140 - 128 = 12 \text{ mEq/L}$$ a normal result. If albumin is 2.0 g/dL, the corrected gap is $$12 + 2.5 \times (4.0 - 2.0) = 12 + 5 = 17 \text{ mEq/L}$$ revealing a high anion gap that the raw value hid.

Interpreting Your Anion Gap Result

The serum anion gap (AG) estimates the unmeasured anions in plasma using \(\text{AG} = \text{Na}^{+} - (\text{Cl}^{-} + \text{HCO}_3^{-})\). It is most useful for narrowing the differential diagnosis of a metabolic acidosis, but the number must always be interpreted alongside the clinical picture, the bicarbonate level, and the serum albumin.

What the result indicates

  • High anion gap (>12 mEq/L) suggests accumulation of unmeasured anions. In the setting of a low bicarbonate this defines a high anion gap metabolic acidosis (HAGMA) — for example a patient with \(\text{Na}^{+}=140\), \(\text{Cl}^{-}=100\), \(\text{HCO}_3^{-}=12\) has an AG of 28 mEq/L.
  • Normal anion gap (8–12 mEq/L) with a low bicarbonate points to a normal anion gap (hyperchloremic) metabolic acidosis (NAGMA), where bicarbonate loss is matched by a rise in chloride.
  • Low anion gap (<3–6 mEq/L) is uncommon and usually reflects laboratory or protein causes rather than acid–base disease.

HAGMA vs NAGMA

The key branch point in a metabolic acidosis is whether the gap is elevated. A widened gap (HAGMA) means an acid with an unmeasured anion has been added. A normal gap (NAGMA) means bicarbonate has been lost (gastrointestinal or renal) and replaced by chloride.

Common mnemonics

  • High-gap causes — MUDPILES: Methanol, Uremia, Diabetic (and other) ketoacidosis, Propylene glycol/Paraldehyde, Iron/Isoniazid, Lactic acidosis, Ethylene glycol, Salicylates.
  • Normal-gap causes — HARDASS: Hyperalimentation, Acetazolamide, Renal tubular acidosis, Diarrhea, Addison disease, Spironolactone, Saline (excess). The mnemonic GOLD MARK (Glycols, Oxoproline, L-lactate, D-lactate, Methanol, Aspirin, Renal failure, Ketoacidosis) is a more modern list for high-gap causes.

Low-gap causes

A low anion gap most often results from hypoalbuminemia (albumin is the dominant unmeasured anion), and less commonly from cationic paraproteins (e.g. some plasma cell dyscrasias), lithium toxicity, severe hypercalcemia or hypermagnesemia, or bromide/iodide interference. Because each 1 g/dL fall in albumin lowers the apparent gap by about 2.5 mEq/L, a “normal” gap in a hypoalbuminemic patient may actually be elevated once corrected.

This is general educational information, not medical advice. Anion gap values must be interpreted by a qualified clinician in the context of the full clinical assessment.

Anion Gap Reference Values

Reference ranges vary slightly between laboratories and depend on whether potassium is included in the calculation. The values below are widely cited approximate ranges.

Category Without K⁺ (Na − [Cl + HCO₃]) With K⁺ ([Na + K] − [Cl + HCO₃])
Normal 8–12 mEq/L 12–16 mEq/L
Elevated (high gap) > 12 mEq/L > 16 mEq/L
Low < 3–6 mEq/L < 6–8 mEq/L

Albumin correction

Albumin is the largest contributor to the normal anion gap, so hypoalbuminemia lowers the measured gap and can mask a true elevation. The corrected anion gap adds back roughly 2.5 mEq/L for every 1 g/dL the albumin sits below 4.0 g/dL:

$$\text{Corrected AG} = \text{AG} + 2.5 \times (4.0 - \text{albumin in g/dL})$$

Parameter Reference value
Normal serum albumin 3.5–5.0 g/dL
Correction factor 2.5 mEq/L per 1 g/dL below 4.0 g/dL
Reference albumin used 4.0 g/dL

Use your own laboratory’s reference interval where available; some labs report a narrower normal range (e.g. 3–11 mEq/L) due to modern ion-selective electrodes.

Advertisement

Anion Gap Across Common Scenarios

The table illustrates how the same formula yields different classifications, and how the albumin correction can unmask an elevated gap that the raw value misses. Raw AG uses \(\text{Na}^{+} - (\text{Cl}^{-} + \text{HCO}_3^{-})\); corrected AG adds \(2.5 \times (4.0 - \text{albumin})\).

Scenario Na⁺ (mEq/L) Cl⁻ (mEq/L) HCO₃⁻ (mEq/L) Albumin (g/dL) Raw AG Corrected AG Classification
Normal 140 104 24 4.0 12 12 Normal gap
High-gap acidosis (e.g. DKA) 138 100 10 4.0 28 28 HAGMA
Hypoalbuminemia masking elevation 138 108 18 2.0 12 17 True high gap (unmasked)
Normal-gap acidosis (e.g. diarrhea) 140 116 14 4.0 10 10 NAGMA

The third row is the key teaching point: a raw gap of 12 looks normal, but with an albumin of 2.0 g/dL the correction adds \(2.5 \times (4.0 - 2.0) = 5\) mEq/L, giving a corrected gap of 17 mEq/L and revealing a genuine high-gap process. In acid–base assessment this AG is often combined with a serum osmolality estimate when toxic alcohol ingestion is suspected.

FAQ

Should I include potassium? This calculator uses the common \(\text{Na} - (\text{Cl} + \text{HCO}_3)\) formula without potassium. Including K⁺ raises the normal range by about 4 mEq/L.

What causes a high anion gap? Lactic acidosis, ketoacidosis, renal failure and certain toxins (e.g., methanol, ethylene glycol, salicylates).

Is this medical advice? No. This tool is for educational and informational purposes and should be interpreted by a qualified clinician.

Sources & References

  • Acid-Base Disorders - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Defines the anion gap as Na minus (Cl + HCO3); K, Ca and Mg are the unmeasured cations; typical gap about 12 mEq/L. · Verified 2026-11-07
  • Acid-Base Disorders - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Low albumin: adjust the anion gap by 2.5 mEq/L for every 1 g/dL fall in albumin. · Verified 2026-11-07
  • Anion gap and hypoalbuminemia — Figge J, Jabor A, Kazda A, Fencl V, Crit Care Med 1998;26(11):1807-10, doi:10.1097/00003246-199811000-00019, PMID 9824071. Original albumin correction: adjusted AG = observed AG + 0.25 x (normal - observed albumin) in g/L; factor 2.5 when albumin is in g/dL. · Verified 2026-11-07
  • Serum anion gap: its uses and limitations in clinical medicine — Kraut JA, Madias NE, Clin J Am Soc Nephrol 2007;2(1):162-74, doi:10.2215/CJN.03020906, PMID 17699401. AG = Na - (Cl + HCO3); the normal value varies widely between methods and individuals; low values most often lab error or hypoalbuminemia. · Verified 2026-11-07
  • Acid-Base Disorders - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Worked example: Na 137, Cl 90, HCO3 22 gives an anion gap of 25 (normal 10 to 12). · Verified 2026-11-07
  • Hypocalcemia - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Total calcium changes about 0.8 mg/dL (0.2 mmol/L) per 1 g/dL change in albumin; normal albumin 4.0 g/dL; albumin 2.0 lowers Ca by 1.6 mg/dL. · Verified 2026-11-07

Checked against these sources on . Not reviewed by a clinician. For general information only, not medical advice or a diagnosis. Talk to a doctor about any health concern.

Last updated:

Most popular in Health and Fitness

View all Health and Fitness calculators