Anion Gap Calculator

Free anion gap calculator finds serum anion gap from sodium, chloride, and bicarbonate, with albumin correction and delta ratio for metabolic acidosis.

Use the Anion Gap Calculator

Free anion gap calculator finds serum anion gap from sodium, chloride, and bicarbonate, with albumin correction and delta ratio for metabolic acidosis.

Anion Gap

12 mEq/L

Normal

Serum Electrolytes (mEq/L)

Use total CO₂ from your panel.

Adds K+ to the cations. Normal range shifts to 12–16 mEq/L.

Optional: Albumin (corrected anion gap)

Leave blank if normal. Low albumin masks a high gap.

Serum Anion Gap

12mEq/LNormal gap
Low <8Normal 812High >12

Formula: 140 − (104 + 24) = 12 mEq/L

Bicarbonate

24mEq/L

Acid-base

HCO₃ normal

Reference Ranges (potassium excluded)

ClassificationAnion Gap
Low gap< 8 mEq/L
Normal8–12 mEq/L
High gap> 12 mEq/L

Modern ion-selective analyzers often center the normal gap near 6 mEq/L; always use your lab's reference interval.

Disclaimer

This anion gap calculator is for education only and does not replace clinical judgment or laboratory interpretation. Acid-base disorders require a full history, blood gas, and provider assessment. Always confirm electrolyte results and treatment with a healthcare professional.

Loading rating…
Your rating
Tap a star to rate

Your rating helps improve Anion Gap Calculator. We store only an anonymized vote (no personal data).

Share this calculator

Help others discover this tool

How to Use Anion Gap Calculator

  1. Step 1: Enter sodium, chloride, and bicarbonate

    Type your serum sodium, chloride, and bicarbonate (total CO2) values in mEq/L from your basic metabolic panel.

  2. Step 2: Choose whether to include potassium

    Leave potassium off for the standard 8-12 mEq/L range, or tick the box to add K+ and shift the normal range to 12-16 mEq/L.

  3. Step 3: Add albumin if it is low

    Open the optional albumin field and enter your serum albumin in g/dL so the calculator shows the albumin-corrected anion gap.

  4. Step 4: Read the gap and classification

    The anion gap appears instantly with a Low, Normal, or High badge and a color-coded range bar.

  5. Step 5: Review the differential and delta ratio

    For a high gap, check the GOLD MARK causes and the delta ratio to spot mixed acid-base disorders.

Key Features

  • Serum anion gap from sodium, chloride, and bicarbonate
  • Albumin-corrected gap for hypoalbuminemia
  • Optional potassium-inclusive formula with auto-adjusted range
  • Delta ratio to flag mixed acid-base disorders
  • Dynamic GOLD MARK and HARDUP differential lists

Understanding Results

Formula

The anion gap formula is Na − (Cl + HCO₃). Sodium is the main measured cation; chloride and bicarbonate are the main measured anions. The difference estimates the unmeasured anions in blood — chiefly albumin, phosphate, sulfate, and organic acids. With the optional potassium-inclusive version, (Na + K) − (Cl + HCO₃), the expected normal range rises by roughly 4 mEq/L. To correct for low albumin, add 2.5 mEq/L for every 1 g/dL that albumin sits below 4.0 g/dL.

Reference Ranges & Interpretation

A normal serum anion gap is 8–12 mEq/L without potassium, or 12–16 mEq/L with potassium included. A gap above 12 signals a high anion gap metabolic acidosis from added acid (ketoacidosis, lactic acidosis, uremia, toxins). A low gap below 8 most often reflects hypoalbuminemia, and rarely paraproteins from multiple myeloma. When a metabolic acidosis is present, the delta ratio — (gap − 12) ÷ (24 − bicarbonate) — helps distinguish a pure high-gap acidosis (1–2) from mixed disorders.

Assumptions & Limitations

The gap is an estimate, not a diagnosis. Panel bicarbonate is reported as total CO₂, which runs 1–2 mEq/L above true bicarbonate. Low albumin can mask a high gap unless corrected, and the result must always be read alongside the bicarbonate, blood gas, and clinical picture. Modern analyzers may center the normal gap lower (near 6 mEq/L), so use your laboratory's own reference interval. This tool is educational and does not replace professional medical assessment.

Complete Guide: Anion Gap Calculator

Written by Jurica ŠinkoJune 22, 2026About the author
Diagram showing the anion gap calculation from a serum electrolyte panel with normal versus elevated ranges and common high anion gap acidosis causes.
On this page

This anion gap calculator turns three routine lab values — sodium, chloride, and bicarbonate — into a single number that points toward the cause of a metabolic acidosis. A 24-year-old arrives with deep, rapid breathing and a bicarbonate of 8 mEq/L. Is this diabetic ketoacidosis, a toxic ingestion, or severe diarrhea? The anion gap answers that question in seconds, long before the lactate or ketone results come back. This guide explains the formula, walks through a real calculation, shows why albumin must be corrected for, and decodes the delta ratio that separates simple acidosis from mixed acid-base disorders.

What the Anion Gap Actually Measures

Blood is electrically neutral: positive charges (cations) and negative charges (anions) must balance exactly. Laboratories routinely measure the big hitters — sodium on the cation side, chloride and bicarbonate on the anion side — but plenty of charged particles go unmeasured. The anion gap is the “missing” negative charge: mostly albumin, phosphate, sulfate, and organic acids like lactate. A normal gap of 8–12 mEq/L reflects the steady background of these unmeasured anions, the largest of which is albumin (it accounts for roughly 75% of the normal gap). When acids such as ketones or lactate flood the bloodstream, they consume bicarbonate and leave behind unmeasured anions, so the gap widens.

The Formula: Na − (Cl + HCO₃)

The standard serum anion gap formula is Anion Gap = Sodium − (Chloride + Bicarbonate). Some clinicians add potassium to the cation side: (Na + K) − (Cl + HCO₃). Including potassium raises the expected normal range by about 4 mEq/L, from 8–12 up to 12–16, so you must read the result against the matching reference range. Potassium is usually left out because its concentration is small and tightly controlled, so dropping it simplifies the math without much loss of accuracy. The calculator above lets you toggle potassium on and adjusts the normal range automatically.

One caution about the inputs: the “bicarbonate” on a basic metabolic panel is reported as total CO₂, which runs about 1–2 mEq/L higher than true bicarbonate because it captures dissolved CO₂ as well. For everyday anion gap work that small difference is ignored, but it is one reason the gap is an estimate rather than an exact figure.

A Worked Example: Na 140, Cl 104, HCO₃ 14

Take a patient with sodium 140, chloride 104, and bicarbonate 14 mEq/L. Plug them in: 140 − (104 + 14) = 140 − 118 = 22 mEq/L. That is well above the upper limit of 12, so this is a high anion gap metabolic acidosis. The low bicarbonate confirms the acidosis; the wide gap tells you an unmeasured acid is driving it. Pair this result with a fingerstick glucose — if it reads 480 mg/dL, diabetic ketoacidosis jumps to the top of the list. You can sanity-check the glucose side of that picture with our blood glucose calculator, and because that same glucose of 480 makes sodium read falsely low, our sodium correction calculator separates true hyponatremia from the glucose effect. If the creatinine is climbing, screen kidney function with the eGFR calculator since uremia is another high-gap cause.

How the Anion Gap Calculator Adjusts for Low Albumin

Albumin is negatively charged, so it makes up most of the “normal” gap. When albumin falls — common in the critically ill, the malnourished, and patients with liver or kidney disease — the measured gap falls with it, and a dangerous acidosis can hide in a “normal” number. The fix is the corrected anion gap: add 2.5 mEq/L for every 1 g/dL that albumin sits below 4.0 g/dL. A patient with a measured gap of 11 and an albumin of 2.0 has a corrected gap of 11 + 2.5 × (4.0 − 2.0) = 16 mEq/L — clearly elevated, not normal. Enter the albumin in the calculator and it flags exactly this kind of masked acidosis. Because albumin corrections also affect serum calcium, the same logic appears in our corrected calcium calculator.

High Anion Gap vs. Normal Anion Gap Acidosis

Once you confirm a metabolic acidosis (low bicarbonate), the gap splits the differential into two buckets. A high gap means an acid has been added; a normal (or “non-gap”) acidosis means bicarbonate was lost and chloride rose to fill the space. The high-gap causes are captured by the mnemonic GOLD MARK, and the normal-gap causes by HARDUP.

High gap (GOLD MARK)Normal gap (HARDUP)
Glycols (ethylene, propylene)Hyperalimentation / saline
Oxoproline (chronic acetaminophen)Acetazolamide / Addison's
L-lactate (sepsis, shock)Renal tubular acidosis
D-lactate (short bowel)Diarrhea
MethanolUreteroenteric fistula
Aspirin (salicylates)Pancreatic fistula
Renal failure, Ketoacidosis

Diabetic, alcoholic, and starvation ketoacidosis together account for a large share of high-gap presentations in the emergency department, followed closely by lactic acidosis from sepsis or poor perfusion. A very wide gap above 25 mEq/L with no obvious ketones or lactate should raise concern for a toxic alcohol such as methanol or ethylene glycol, where the osmolar gap becomes the next test to order.

The Delta Ratio: Spotting Mixed Acid-Base Disorders

A single acid disturbance rarely tells the whole story in a sick patient. The delta ratio compares how much the gap rose to how much the bicarbonate fell: (measured gap − 12) ÷ (24 − measured bicarbonate). In a pure high-gap acidosis, every unit of acid added consumes roughly one unit of bicarbonate, so the ratio lands between 1 and 2. A ratio below 0.4 means bicarbonate fell more than the gap rose — a second, normal-gap acidosis is hiding underneath. A ratio above 2 means bicarbonate is higher than the gap alone would predict, pointing to a co-existing metabolic alkalosis (think vomiting plus DKA) or a chronic respiratory acidosis. The calculator computes this automatically whenever the gap is high and bicarbonate is low.

Delta ratioInterpretation
< 0.4Normal-gap (hyperchloremic) acidosis present too
0.4 – 1.0Mixed high-gap and normal-gap acidosis
1.0 – 2.0Pure high-gap metabolic acidosis
> 2.0Add metabolic alkalosis or chronic respiratory acidosis

When a Low Anion Gap Matters

A gap below 8 mEq/L is uncommon and easy to dismiss, but it carries a short, important differential. Hypoalbuminemia is by far the most frequent cause — the same 2.5 mEq/L-per-g/dL relationship that drives the correction. The standout pathologic cause is multiple myeloma, where cationic IgG paraproteins add positive charge and shrink the gap; a persistently low or negative gap should prompt a serum protein electrophoresis. Lithium toxicity, bromide ingestion, and severe hypercalcemia or hypermagnesemia round out the list. A negative anion gap almost always signals a lab artifact, such as severe hyperlipidemia or bromide interfering with the chloride assay.

Mistakes That Throw Off the Result

Three errors account for most misread gaps. First, forgetting the albumin correction: a gap of 11 in a patient with an albumin of 2.0 is actually elevated, and missing it can mean missing an early ketoacidosis. Second, mixing up the reference range after including potassium — a gap of 14 is normal if you added K (range 12–16) but high if you did not (range 8–12). Third, reading the gap without the bicarbonate: the anion gap classifies an acidosis but does not diagnose one on its own, so a high gap with a normal bicarbonate may just reflect dehydration or a lab quirk rather than true acid accumulation. Always interpret the number alongside the full panel and the patient in front of you.

References

  1. Kraut JA, Madias NE. Serum anion gap: its uses and limitations in clinical medicine. Clin J Am Soc Nephrol. CJASN 2007
  2. Hamilton RJ. Anion Gap. StatPearls. NCBI Bookshelf
Jurica Šinko

Written by Jurica Šinko

Founder & CEO

Entrepreneur and health information advocate, passionate about making health calculations accessible to everyone through intuitive digital tools.

View full profile

Frequently Asked Questions

What is a normal anion gap?

Using the standard formula without potassium, a normal anion gap is 8 to 12 mEq/L. If you include potassium, the normal range shifts up to 12 to 16 mEq/L. Many modern ion-selective analyzers center the normal gap nearer 6 mEq/L, so always compare against your own lab's reference interval.

How do you calculate the anion gap?

Subtract chloride and bicarbonate from sodium: Anion Gap = Na minus (Cl plus HCO3). For example, 140 minus (104 plus 14) equals a gap of 22 mEq/L. Some clinicians add potassium to the cations, which raises the expected normal range by about 4 mEq/L.

What does a high anion gap mean?

A gap above 12 mEq/L usually means an unmeasured acid is accumulating. The classic causes follow the GOLD MARK mnemonic: glycols, oxoproline, lactate, methanol, aspirin, renal failure, and ketoacidosis. A gap above 25 with no obvious ketones or lactate raises concern for a toxic alcohol.

Why correct the anion gap for albumin?

Albumin is the largest unmeasured anion, so low albumin lowers the measured gap and can hide an acidosis. Add 2.5 mEq/L for every 1 g/dL that albumin falls below 4.0 g/dL. A measured gap of 11 with an albumin of 2.0 corrects to 16 mEq/L, which is clearly high.

What is the difference between high and normal anion gap acidosis?

In high anion gap acidosis an acid is added and the gap widens, as in ketoacidosis or lactic acidosis. In normal (non-gap) acidosis, bicarbonate is lost and chloride rises to replace it, as in diarrhea or renal tubular acidosis, so the gap stays in the 8 to 12 range.

What does the delta ratio tell you?

The delta ratio is (gap minus 12) divided by (24 minus bicarbonate). A value of 1 to 2 indicates a pure high-gap acidosis. Below 0.4 suggests a coexisting normal-gap acidosis, and above 2 suggests an added metabolic alkalosis or chronic respiratory acidosis.

What causes a low anion gap?

A gap below 8 mEq/L is most often due to low albumin. The key pathologic cause is multiple myeloma, where cationic paraproteins narrow the gap. Lithium toxicity, bromism, and severe hypercalcemia or hypermagnesemia can also lower it, and a negative gap usually points to a lab artifact.

Should I include potassium in the anion gap formula?

Most clinicians leave potassium out because its concentration is small and tightly regulated, keeping the math simple with a normal range of 8 to 12 mEq/L. If you do include potassium, remember to read the result against the higher 12 to 16 mEq/L range to avoid calling a normal gap elevated.