Anion Gap Calculator
Calculate the serum anion gap and its albumin-corrected value from electrolytes.
Quick answer
Calculate the serum anion gap and its albumin-corrected value from electrolytes. Formula: Blood must be electrically neutral, so the measured cations and anions should balance.
Sodium (Na⁺): 140 mmol/L, Chloride (Cl⁻): 104 mmol/L, Bicarbonate (HCO₃⁻): 24 mmol/L, Albumin (optional): 3 g/dL → Anion gap: 12 mmol/L.
Leave blank to assume 4 g/dL (no correction)
Results update as you type.
This calculator provides estimates based on population research. Results are not medical advice. Consult a qualified healthcare provider before making health or nutrition decisions.
How it works
The anion gap is a quick bedside calculation that helps clinicians work out why a patient has metabolic acidosis, and this calculator computes both the classic gap and the albumin-corrected value from a standard electrolyte panel. You enter sodium, chloride and bicarbonate in millimoles per litre, and optionally albumin in grams per decilitre. The anion gap is sodium minus the sum of chloride and bicarbonate. It does not represent a real substance; it estimates the unmeasured anions in plasma, chiefly albumin, phosphate and organic acids. A raised gap points towards acids that are being added to the blood, such as lactic acid in shock, ketoacids in diabetic ketoacidosis, or toxic alcohols, whereas acidosis with a normal gap usually reflects loss of bicarbonate through diarrhoea or the kidneys. Because each 1 g/dL fall in albumin lowers the gap by about 2.5 mmol/L, critically ill patients with low albumin can hide a significant acidosis, which the corrected value reveals. Reference ranges depend on the laboratory analyser, so always compare with the range printed on your report. This is an educational tool and not a substitute for medical assessment.
AG = Na⁺ − (Cl⁻ + HCO₃⁻); corrected AG = AG + 2.5 × (4 − albumin [g/dL])
Blood must be electrically neutral, so the measured cations and anions should balance. Sodium is the main measured cation, while chloride and bicarbonate are the main measured anions; the shortfall is made up of unmeasured anions, mostly albumin. When acids such as lactate or ketones accumulate they consume bicarbonate and widen that gap, and because albumin carries much of it, low albumin hides a raised gap unless you correct for it.
We review all our tools from time to time to ensure accuracy.
Worked example
How to use this calculator
- 1
Enter your values
Enter sodium (na⁺), chloride (cl⁻) and bicarbonate (hco₃⁻).
- 2
Adjust the options
Adjust albumin (optional) if they apply — sensible defaults are already set.
- 3
Read your result
Anion gap updates instantly as you type — no button to press.
Frequently asked questions
What is a normal anion gap?
It depends on the laboratory equipment. Older analysers gave ranges around 8 to 16 mmol/L, while modern ion-selective electrodes typically read lower, often about 3 to 11 mmol/L when potassium is not included. Always compare your result with the reference range printed by the laboratory that ran the test, rather than with a single number found online.
Why correct the anion gap for albumin?
Albumin is the largest unmeasured anion in plasma, so when it is low, as in liver disease, malnutrition or critical illness, the anion gap falls even though acids may be accumulating. Adding about 2.5 mmol/L for every 1 g/dL that albumin is below 4 g/dL, as described by Figge and colleagues, restores the gap's ability to detect a hidden high-gap acidosis.
What causes a high anion gap?
A high anion gap usually means extra acids are present. Common causes are lactic acidosis from poor circulation or sepsis, ketoacidosis in uncontrolled diabetes, starvation or alcohol use, kidney failure with retained acids, and poisoning with methanol, ethylene glycol or large doses of aspirin. Doctors combine the gap with history, glucose, lactate and osmolality to narrow down the cause.
Should potassium be included?
Some textbooks add potassium to sodium, which raises the result by about 4 mmol/L. Most laboratories and guidelines now use the version without potassium because potassium varies little and the reference ranges are built that way. This calculator uses the potassium-free formula, so compare it with a range that was also calculated without potassium.
Can I use this calculator to diagnose acidosis?
No. The anion gap is one piece of an acid-base assessment that also needs blood pH, carbon dioxide, the clinical picture and often further tests. A normal gap does not rule out illness and a raised one has many possible causes. Use the result to understand a lab report or to study, and leave the interpretation to a qualified clinician.
More Health calculators
Related calculators
Serum Osmolality Calculator
Calculate plasma osmolality from sodium, glucose and BUN or urea, plus the osmolal gap.
Corrected Calcium Calculator
Adjust total serum calcium for a low or high albumin level.
eGFR Calculator (CKD-EPI 2021)
Estimate kidney filtration (eGFR) from serum creatinine, age and sex.
Calculated with HS Calculadora · https://hscalculadora.com/en/health/anion-gap-calculator