Health calculators

Anion Gap Calculator

Updated Sep 4, 2026 By Jehan Wadia
Formula Mode
Alternative adds Potassium (K⁺) and is preferred in some nephrology settings.
AG = Na+ − (Cl + HCO3)
Laboratory Values
Typical: 136 – 144 mmol/L
Typical: 96 – 106 mmol/L
Typical: 23 – 29 mmol/L
Typical: 34 – 54 g/L — Optional, required for albumin-corrected AG.
Normal Range Reference
Modern labs use ion-selective electrodes (ISE); Classic labs used flame photometry.

Anion Gap
10.0 mEq/L
Albumin-Corrected Anion Gap
9.5 mEq/L
Result vs. Normal Range

Introduction

The anion gap is a simple blood test calculation that helps doctors find the cause of acid-base problems in the body. It measures the difference between positive ions (like sodium) and negative ions (like chloride and bicarbonate) in your blood. When this gap is too high, too low, or normal, it gives clues about what may be wrong.

This anion gap calculator lets you enter your lab values and get a result right away. It supports both the standard formula (using sodium, chloride, and bicarbonate) and the potassium-inclusive formula used in some kidney care settings. You can also enter your albumin level to get an albumin-corrected anion gap, which is important because low albumin can hide a truly elevated gap.

The tool shows whether your result falls in the low, normal, or elevated range based on either modern or classic reference values. It also provides a list of common causes tied to your result, such as the MUDPILES mnemonic for elevated anion gap metabolic acidosis. All values can be toggled between common lab units like mmol/L, mEq/L, g/L, and g/dL.

Note: This calculator is meant for educational use only. It does not replace the advice of a doctor or other qualified health professional. Always discuss your lab results with your care team.

How to Use Our Anion Gap Calculator

Enter your lab values below to find your anion gap. The calculator will show your anion gap result, tell you if it is low, normal, or elevated, and give you a corrected value if you include albumin.

Formula Mode: Pick "Standard" for the common formula that uses sodium, chloride, and bicarbonate. Pick "Alternative" if your doctor wants potassium included in the calculation.

Sodium (Na⁺): Type your sodium level from your blood test. A typical reference range is 136 to 144 mmol/L.5 Click the unit button to switch between mmol/L and mEq/L.

Chloride (Cl⁻): Type your chloride level from your blood test. A typical reference range is 96 to 106 mmol/L.5 Click the unit button to switch between mmol/L and mEq/L.

Bicarbonate (HCO₃⁻): Type your bicarbonate level from your blood test. A typical reference range is 23 to 29 mmol/L.5 Click the unit button to switch between mmol/L and mEq/L.

Potassium (K⁺): This field only shows up if you pick the Alternative formula mode. Type your potassium level. A typical reference range is 3.7 to 5.2 mEq/L.5

Albumin: This field is optional. Type your albumin level to get an albumin-corrected anion gap. A typical laboratory reference range is 34 to 54 g/L (3.4 to 5.4 g/dL).6 Click the unit button to switch between g/L and g/dL.

Normal Range Reference: Pick "Modern" if your lab uses current machines (normal anion gap is 3 to 11 mEq/L). Pick "Classic" if your lab uses older methods (normal anion gap is 8 to 16 mEq/L). Most labs today use the modern range.

Calculate: Press the "Calculate" button to see your results. The tool will display your anion gap, a color-coded label, a chart, and a list of common causes linked to your result.

What Is the Anion Gap?

The anion gap is a simple blood test calculation that doctors use to find out why a patient may have too much acid in their blood. It measures the difference between positive ions (like sodium) and negative ions (like chloride and bicarbonate) in your blood. When these numbers don't balance the way they should, it can point to a health problem.

How Is the Anion Gap Calculated?

The standard formula is: Anion Gap = Sodium − (Chloride + Bicarbonate). All three values come from a basic blood test called a metabolic panel. Some doctors also add potassium to the formula. This is called the K⁺-inclusive or alternative formula, and it is common in kidney care settings.

What Is a Normal Anion Gap?

A normal anion gap depends on the lab method used. Most modern labs use a range of 3 to 11 mEq/L. Older labs that used a different measurement technique consider 8 to 16 mEq/L normal. Winter and colleagues showed the range had shifted down on modern electrode analyzers, mainly because chloride values shifted up.3 Your doctor will know which range fits your lab results.

What Does a High Anion Gap Mean?

A high anion gap means there are extra acids in the blood that are not being measured directly.1 Common causes include diabetic ketoacidosis (DKA), kidney disease, dehydration, salicylate poisoning from too much aspirin, and antifreeze poisoning.7 Doctors often use the memory aid MUDPILES to remember these causes.

What Does a Low or Normal Anion Gap Mean?

A normal anion gap with acidosis often points to problems like severe diarrhea or a condition called renal tubular acidosis. A low anion gap is less common. It most often means a laboratory error or low albumin, but it can also point to a paraprotein or to lithium, bromide, or iodide intoxication.1 Multiple myeloma is the blood cancer most often behind it. In hematology, a low anion gap in a patient with an abnormal absolute neutrophil count or unexplained blood findings may prompt evaluation for plasma cell disorders such as myeloma.

Why Does Albumin Matter?

Albumin is a protein in your blood that carries a negative charge. When albumin is low, the anion gap can look falsely normal even when there is a real problem. The albumin-corrected anion gap adjusts for this. Figge and colleagues derived the correction: each 1 g/L fall in albumin makes the observed gap understate the real one by 0.25 mEq/L, which works out to 2.5 mEq/L for every 1 g/dL.2 This calculator uses 40 g/L as the normal albumin. This correction helps doctors catch hidden acid-base problems, especially in hospitalized or malnourished patients.

When Is This Test Used?

Doctors order the anion gap when a patient shows signs of metabolic acidosis, unexplained illness, poisoning, uncontrolled diabetes, or kidney disease. It is a quick and important first step that helps guide further testing and treatment.


Formulas used

Anion Gap (Standard) 1
AG = Na^{+} - (Cl^{-} + HCO_{3}^{-})
Anion Gap (K⁺-inclusive) 4
AG = (Na^{+} + K^{+}) - (Cl^{-} + HCO_{3}^{-})
Albumin-Corrected Anion Gap 2
AG_{corrected} = AG + 0.25 \times ([Albumin]_{normal} - [Albumin])

Frequently asked questions

Should I pick the Modern or Classic normal range?

Most labs today use ion-selective electrode (ISE) machines, so pick Modern (3–11 mEq/L). Only pick Classic (8–16 mEq/L) if your lab report states it uses older flame photometry methods.3 If you are not sure, Modern is the safe default.

When should I use the potassium-inclusive (alternative) formula?

Use the Alternative formula only if your doctor or hospital specifically asks for it. It is sometimes used in nephrology (kidney care) settings. The standard formula without potassium is used in most emergency rooms, clinics, and textbooks.

What does the albumin-corrected anion gap formula look like?

The correction adds 0.25 mEq/L to the gap for every 1 g/L that albumin falls below normal, which is about 2.5 mEq/L per 1 g/dL.2
The formula is:
Corrected AG = Anion Gap + 0.25 × (40 − Albumin in g/L)
The calculator treats 40 g/L as its normal albumin. It helps reveal hidden acidosis in patients with low albumin.

Why does my corrected anion gap say correction is not needed?

That message shows up when your albumin is within the typical laboratory reference range (34–54 g/L or 3.4–5.4 g/dL).6 When albumin is normal, the correction makes very little difference, so it is not clinically needed. The corrected value is still shown for reference.

What is MUDPILES?

MUDPILES is a memory aid doctors use to recall causes of a high anion gap:
  • M – Methanol
  • U – Uremia (kidney failure)
  • D – Diabetic ketoacidosis
  • P – Paraldehyde
  • I – Iron / Isoniazid
  • L – Lactic acidosis
  • E – Ethylene glycol
  • S – Salicylates (aspirin)

Can a normal anion gap still mean something is wrong?

Yes. A normal anion gap with acidosis is called non-anion-gap metabolic acidosis or hyperchloremic acidosis. It can be caused by severe diarrhea, kidney tubular problems, or certain medications. Your doctor will look at the full picture, not just the gap number.

Why does the normal range change when I switch to the alternative formula?

The alternative formula adds potassium (~4 mEq/L) to the positive side. This raises the result by about 4 mEq/L. To account for this, the calculator shifts the normal range up by 4. For example, the modern range changes from 3–11 to 7–15 mEq/L.

What does it mean if I get a warning about my value being outside the typical range?

The yellow warning means the number you typed is outside the range normally seen in living patients. It does not block the calculation, but it asks you to double-check for typos. If the value is correct, you can ignore the warning.

Is the anion gap the same as an osmolar gap?

No. The anion gap looks at the balance of charged particles (ions) in the blood. The osmolar gap looks at the difference between measured and calculated blood concentration (osmolality). Both can help find toxic ingestions, but they measure different things.

Can medications affect my anion gap result?

Yes. Some drugs can change your anion gap. For example, aspirin overdose raises it, while lithium or bromide-containing drugs can lower it. Certain antibiotics and IV fluids can also shift electrolyte levels. Tell your doctor about all medications you take.

Sources

  1. Kraut JA, Madias NE. Serum anion gap: its uses and limitations in clinical medicine. Clinical Journal of the American Society of Nephrology. 2007;2(1):162-174. doi:10.2215/CJN.03020906. Accessed September 3, 2026.
  2. Figge J, Jabor A, Kazda A, Fencl V. Anion gap and hypoalbuminemia. Critical Care Medicine. 1998;26(11):1807-1810. doi:10.1097/00003246-199811000-00019. Accessed September 3, 2026.
  3. Winter SD, Pearson JR, Gabow PA, Schultz AL, Lepoff RB. The fall of the serum anion gap. Archives of Internal Medicine. 1990;150(2):311-313. doi:10.1001/archinte.1990.00390140057012. Accessed September 3, 2026.
  4. Pandey DG, Sharma S. Biochemistry, Anion Gap. StatPearls. StatPearls Publishing, NCBI Bookshelf. 2023. Accessed September 3, 2026.
  5. Basic metabolic panel. MedlinePlus, U.S. National Library of Medicine. Accessed September 3, 2026.
  6. Albumin blood (serum) test. MedlinePlus, U.S. National Library of Medicine. Accessed September 3, 2026.
  7. Anion gap blood test. MedlinePlus, U.S. National Library of Medicine. Accessed September 3, 2026.