Anion Gap Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free anion gap calculator. Enter sodium, chloride and bicarbonate to get the anion gap, with optional potassium and an albumin-corrected value.

For education only. Interpret results with a clinician and your laboratory's reference range.

With potassium
0
Albumin-corrected
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the anion gap calculator

  1. Enter sodium (Na⁺), chloride (Cl⁻) and bicarbonate (HCO₃⁻) from a blood test, in mEq/L. For these ions, mEq/L and mmol/L are the same number.
  2. Optionally enter potassium (K⁺), if your laboratory includes it.
  3. Optionally enter albumin, in g/dL or g/L, to see the albumin-corrected anion gap.

The anion gap calculator shows the anion gap, the gap including potassium, and the albumin-corrected gap.

This calculator is for education and for checking arithmetic. It doesn't diagnose anything. Blood results should always be interpreted by a doctor, in the context of the person's symptoms and other tests, using the laboratory's own reference range.

What is the anion gap?

Blood contains positively charged ions (cations) and negatively charged ions (anions), and overall they balance. Routine blood tests measure the main cation, sodium, and the main anions, chloride and bicarbonate. Their difference is the anion gap:

Anion gap = Na⁺ − (Cl⁻ + HCO₃⁻)

The gap isn't a real shortage of anions. It represents anions that the test doesn't measure, mainly albumin and other proteins, plus phosphate, sulfate and organic acids. The calculation is mainly used to help work out the cause of metabolic acidosis, a condition in which the blood has too much acid or too little bicarbonate.

With the default figures, sodium 140, chloride 104 and bicarbonate 24 give an anion gap of 140 − (104 + 24) = 12 mEq/L.

Including potassium

Some laboratories and textbooks include potassium:

Anion gap = (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)

Because potassium is usually about 3.5 to 5 mEq/L, the gap including potassium is roughly 4 mEq/L higher. With potassium 4, the default example gives 16 mEq/L. Always compare a result with a reference range calculated the same way.

Normal range

Reference ranges for the anion gap depend on the laboratory's equipment and methods. With modern analysers using ion-selective electrodes, ranges are often cited as roughly 3 to 11 mEq/L without potassium. Older methods gave higher values, around 8 to 16 mEq/L. Because of this variation, the laboratory's own reference range is the one that matters, and many clinicians compare a person's gap with their previous results as well.

Albumin correction

Albumin is the main unmeasured anion. When albumin is low, as in liver disease, malnutrition, critical illness or kidney protein loss, the anion gap falls, which can hide a raised gap from another cause. A widely used correction, based on work by Figge and colleagues, adds about 2.5 mEq/L for every 1 g/dL that albumin is below 4.0 g/dL:

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

With the default sodium, chloride and bicarbonate and an albumin of 2.5 g/dL, the gap of 12 becomes 12 + 2.5 × 1.5 = 15.75 mEq/L. If albumin is reported in g/L, divide by 10 first; the anion gap calculator does this when you choose g/L.

A worked example

A blood test shows sodium 138, chloride 100, bicarbonate 14 and albumin 2.0 g/dL.

  1. Anion gap: 138 − (100 + 14) = 24 mEq/L.
  2. Albumin-corrected gap: 24 + 2.5 × (4.0 − 2.0) = 29 mEq/L.

The low bicarbonate and the raised gap would point a clinician towards a high anion gap metabolic acidosis, and the low albumin means the true gap is even higher than the raw figure. Enter these values in the anion gap calculator to check. Working out the cause, and the right treatment, is a job for the medical team.

High and normal anion gap acidosis

Clinicians divide metabolic acidosis into two broad groups:

  • High anion gap metabolic acidosis: an unmeasured acid is present. Causes include diabetic ketoacidosis, lactic acidosis, advanced kidney failure and some poisonings, such as methanol, ethylene glycol and large overdoses of aspirin. Medical students often learn mnemonics such as MUDPILES or GOLDMARK to remember the causes.
  • Normal anion gap (hyperchloraemic) metabolic acidosis: bicarbonate is lost or chloride gained, so chloride rises as bicarbonate falls and the gap stays normal. Causes include severe diarrhoea and some kidney tubule disorders.

A low anion gap is less common and can be due to low albumin, laboratory error or, rarely, certain blood disorders.

The delta ratio

When the anion gap is high, clinicians sometimes calculate the delta ratio, which compares the rise in the anion gap with the fall in bicarbonate, to check whether more than one acid-base disorder is present at the same time. It's an advanced step usually done alongside a full blood gas analysis. The anion gap calculator provides the anion gap needed for it.

Who uses an anion gap calculator

Medical, nursing and pharmacy students use it to learn acid-base physiology and check exam answers. Doctors and nurses use it for quick bedside arithmetic, often alongside the laboratory's calculated value. Clinical laboratory scientists use it for quality checks. Teachers use it to prepare case studies, and health writers use it to explain blood test results accurately.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.

Units

Sodium, chloride, bicarbonate and potassium each carry a single charge, so their values in mEq/L and mmol/L are identical, and you can enter either. Albumin is reported in g/dL in the US and in g/L in many other countries; 4.0 g/dL equals 40 g/L.

Common mistakes

  • Comparing a gap that includes potassium with a reference range that doesn't.
  • Ignoring low albumin, which can mask a raised anion gap.
  • Entering albumin in g/L while the unit is set to g/dL.
  • Interpreting results without clinical context.

Reading a blood test report

The values for the anion gap calculator usually appear in a basic metabolic panel, also called a urea and electrolytes or U&E test in some countries, or a renal profile. Sodium, potassium and chloride are listed as electrolytes; bicarbonate may be labelled "bicarbonate", "HCO₃", "total CO₂" or "CO₂". Total CO₂ on a venous blood test is mostly bicarbonate and is commonly used in the anion gap calculation. Many laboratories calculate and report the anion gap automatically. If yours does, compare its figure with the anion gap calculator's to check which formula the lab uses, with or without potassium. Albumin is reported separately, usually in a liver function panel.

Why the anion gap matters in emergencies

In emergency and intensive care medicine, the anion gap is a quick clue. A person who is unwell with low bicarbonate and a raised anion gap may have ketoacidosis from uncontrolled diabetes, lactic acidosis from poor circulation or severe infection, kidney failure, or poisoning with substances such as methanol or ethylene glycol. Each needs urgent but different treatment, so clinicians combine the anion gap with the history, examination, blood glucose, ketones, lactate, kidney function and sometimes measured osmolality to narrow down the cause quickly. The anion gap calculator only provides the arithmetic; anyone who is acutely unwell needs urgent medical care.

Variation over time

A person's anion gap can vary from test to test because of small measurement differences in each ion. Each of sodium, chloride and bicarbonate has its own measurement error, and combining them adds the uncertainties together. Small changes of one or two mEq/L are usually not meaningful on their own. Clinicians pay more attention to large changes, to trends over several tests, and to how the gap fits with the rest of the clinical picture.

Urine anion gap

A different calculation, the urine anion gap, uses sodium, potassium and chloride measured in urine. It's sometimes used to investigate normal anion gap metabolic acidosis, to help tell apart bicarbonate loss from the gut and acid handling problems in the kidneys. The urine anion gap has its own interpretation and isn't calculated by this tool.

Sources and further reading

Frequently asked questions

How is the anion gap calculated?

Anion gap = sodium − (chloride + bicarbonate), in mEq/L.

What is a normal anion gap?

It depends on the lab. With modern analysers, ranges are often around 3 to 11 mEq/L without potassium.

Why correct for albumin?

Albumin is the main unmeasured anion, so low albumin lowers the gap and can hide a problem.

Should I include potassium?

Only if your lab's reference range includes it.

Is mEq/L the same as mmol/L?

Yes, for sodium, chloride, bicarbonate and potassium.

Is the anion gap calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep