Health calculators

Anion Gap Calculator

Updated Jun 18, 2026 By Jehan Wadia
Formula Mode
Alternative adds Potassium (K⁺) and is preferred in some nephrology settings.
AG = Na+ − (Cl + HCO3)
Laboratory Values
Normal: 136 – 145 mmol/L
Normal: 98 – 106 mmol/L
Normal: 23 – 28 mmol/L
Normal: 35 – 50 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. A similar albumin-based correction is used in the corrected calcium calculator to adjust total calcium for low albumin.

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. The normal range is 136 to 145 mmol/L. Click the unit button to switch between mmol/L and mEq/L.

Chloride (Cl⁻): Type your chloride level from your blood test. The normal range is 98 to 106 mmol/L. Click the unit button to switch between mmol/L and mEq/L.

Bicarbonate (HCO₃⁻): Type your bicarbonate level from your blood test. The normal range is 23 to 28 mmol/L. 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. The normal range is 3.5 to 5.0 mmol/L.

Albumin: This field is optional. Type your albumin level to get an albumin-corrected anion gap. The normal range is 35 to 50 g/L. 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. Understanding the pH scale can help you see how acid-base balance works in the body.

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. Clinicians evaluating kidney function may also use a GFR calculator or a creatinine clearance calculator alongside the anion gap to get a fuller picture of renal health.

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. 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. Common causes include diabetic ketoacidosis (DKA), kidney failure, lactic acidosis, and poisoning from substances like methanol or ethylene glycol. Doctors often use the memory aid MUDPILES to remember these causes. For patients with diabetes, tracking long-term blood sugar control with an A1C calculator can help prevent episodes of DKA that lead to an elevated anion gap.

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 and can be caused by low albumin levels, high calcium, or certain blood cancers like multiple myeloma. When hypercalcemia is suspected, a corrected calcium calculator can help determine the true calcium level after adjusting for albumin. 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. For every 1 g/dL drop in albumin below 4.0 g/dL, the anion gap is raised by about 2.5 mEq/L. This correction helps doctors catch hidden acid-base problems, especially in hospitalized or malnourished patients. Clinicians caring for these patients often assess other nutritional and metabolic markers as well, including liver enzymes with tools like the AST/ALT ratio calculator and overall cardiac risk factors using a cholesterol ratio calculator.

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. In cardiac monitoring, a QTc calculator may be used alongside acid-base evaluation since severe electrolyte disturbances can affect heart rhythm. For patients receiving intravenous treatments, an IV infusion rate calculator helps ensure proper delivery of fluids and medications used to correct acid-base imbalances.


Frequently asked questions

What lab test do I need to use this anion gap calculator?

You need results from a basic metabolic panel (BMP) or a comprehensive metabolic panel (CMP). These blood tests give you the sodium, chloride, and bicarbonate values the calculator needs. If you want the albumin-corrected result, your panel should also include albumin.

What units should I enter my values in?

You can enter electrolytes in either mmol/L or mEq/L. For these ions, the values are the same in both units, so the number does not change when you toggle. Albumin can be entered in g/L or g/dL. The calculator converts automatically when you click the unit button.

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. 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.

Do I have to enter an albumin value?

No. Albumin is optional. Without it, the calculator still gives you a standard anion gap. However, if your albumin is low, the standard result can be falsely normal. Entering albumin lets the tool show a corrected value that is more accurate.

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

The formula is:
Corrected AG = Anion Gap + 0.25 × (40 − Albumin in g/L)
This adds about 2.5 mEq/L to the gap for every 1 g/dL drop in albumin below 4.0 g/dL. 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 normal range (35–50 g/L or 3.5–5.0 g/dL). 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.

Can I use this calculator for children or infants?

The formulas are the same for all ages, but normal reference ranges can differ in children, especially in newborns. This calculator uses adult reference ranges. Talk to your child's doctor for age-specific interpretation.

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.

How accurate is this calculator?

The calculator uses the same formulas found in medical textbooks and clinical guidelines. It rounds results to one decimal place. The accuracy depends on the lab values you enter. Always confirm results with your healthcare provider.

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.