NewNCLEX First Try is now in ChatGPT (opens in a new tab). Read more

Full NCLEX-RN prep $49 $6912 months, one paymentGet it

Anion gap calculator

Enter sodium, chloride and bicarbonate to get the anion gap. With Na 140, Cl 104 and HCO3 24 mEq/L, the gap is 12 mEq/L.

mEq/L
mEq/L
mEq/L
Include potassium?

Most labs leave potassium out. Use the same method as your lab's range.

g/dL

Corrects the gap when albumin is low.

Reference range: 4–12 mEq/LChange
mEq/L
mEq/L

Anion gap

12mEq/L

Within reference range
Reference range used: 4–12 mEq/L. Ranges differ between labs.

Formula: Anion gap = Na − (Cl + HCO₃). With potassium: (Na + K) − (Cl + HCO₃). Albumin-corrected gap = gap + 2.5 × (4 − albumin in g/dL).

For education only. This calculator helps nursing students learn and practice for the NCLEX-RN. It is not a medical device and must not be used for clinical decisions or client care. Follow your facility's protocols and the prescriber's orders.

The anion gap is the difference between the main measured cations and anions in the blood. Blood is electrically neutral. The gap reflects the anions the lab does not measure minus the cations it does not measure. Albumin is the main unmeasured anion. Its main use is to sort out the cause of a metabolic acidosis.

How to calculate the anion gap

The standard formula is:

Anion gap = Na − (Cl + HCO3)

Use sodium, chloride and bicarbonate from the same blood sample, all in mEq/L. For these ions, mEq/L and mmol/L are the same number.

Some labs add potassium:

Anion gap = (Na + K) − (Cl + HCO3)

This version gives a higher result, so it has a higher normal range. The calculator lets you add potassium if your lab uses it.

Albumin correction

Low albumin lowers the anion gap and can hide a high-gap acidosis. The usual correction is:

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

Enter an albumin value in the calculator to see the corrected gap. The result is then compared with the reference range.

How to interpret the anion gap

Reference ranges differ between labs and sources. StatPearls "Biochemistry, Anion Gap" gives 4 to 12 mmol/L. A second StatPearls review gives 8 to 12 mEq/L without potassium and 12 to 16 mEq/L with potassium. The calculator starts with 4 to 12 mEq/L. Change it to match your lab report.

Result What it suggests Examples of causes
Above the reference range Extra unmeasured anions. If the pH and bicarbonate confirm metabolic acidosis, it is a high anion gap metabolic acidosis Lactic acidosis (shock, sepsis), diabetic or alcoholic ketoacidosis, kidney failure (uremia), salicylates, methanol, ethylene glycol
Within the range, with low HCO3 Bicarbonate loss or chloride gain: normal anion gap (hyperchloremic) metabolic acidosis Diarrhea, renal tubular acidosis, large volumes of normal saline
Below the range Usually low albumin; sometimes a lab error Hypoalbuminemia (malnutrition, liver disease)

A common memory aid for high-gap causes is MUDPILES: methanol, uremia, diabetic ketoacidosis, paraldehyde, iron and isoniazid, lactic acidosis, ethylene glycol, salicylates. Metformin can also cause lactic acidosis.

The anion gap alone does not prove metabolic acidosis. Calculate it with sodium, chloride and bicarbonate (total CO2) from the same chemistry sample, then read it together with the pH and PaCO2 from a blood gas.

Worked example

A client's labs show Na 140 mEq/L, Cl 104 mEq/L and HCO3 24 mEq/L.

  1. Add the anions: 104 + 24 = 128.
  2. Subtract from sodium: 140 − 128 = 12 mEq/L.
  3. Compare with the reference range: 12 is at the top of 4 to 12, so it is within range.

Now a client with diabetic ketoacidosis has Na 136, Cl 100 and HCO3 10 mEq/L. The gap is 136 − (100 + 10) = 26 mEq/L. This is high. Ketones are the extra unmeasured acids.

A client with low albumin has a measured gap of 10 mEq/L and an albumin of 2.0 g/dL. Corrected gap = 10 + 2.5 × (4.0 − 2.0) = 15 mEq/L. That is above 12, so a high-gap acidosis may be hiding.

How it shows up on the NCLEX

For NCLEX practice, focus on using the anion gap together with the pH, bicarbonate and the client's findings, then choosing the nursing care. Practice these items in fluid and electrolytes, ABG and lab values.

  • DKA. Expect low bicarbonate, a high anion gap and Kussmaul respirations: deep, labored breathing that blows off CO2 to compensate.
  • Diarrhea and saline. Severe diarrhea causes a normal-gap acidosis from bicarbonate loss. Large volumes of normal saline can do the same.
  • Low albumin. If a client is malnourished or has liver disease, a "normal" gap may be falsely low.
  • The next step. Use the client's full presentation to choose the next action. Assess when you need more information, and intervene or escalate promptly when the findings show an immediate threat.

See how you do on mixed lab and acid-base items in the free NCLEX readiness test.

Practice on NCLEX-style questions

Free NCLEX-style questions with a rationale for every option:

How ready are you for the NCLEX?

The free readiness test takes about 8 minutes. You get a score and your three weakest areas, with no account.

Start the free test

Frequently asked questions

What is a normal anion gap?

It depends on the lab and on the formula. One StatPearls review gives a range of 4 to 12 mmol/L (the same as mEq/L for these ions). Another gives 8 to 12 without potassium and 12 to 16 when potassium is included. Use the reference range from your lab report. You can change the range in the calculator.

What does a high anion gap mean?

A high anion gap usually means extra acids are building up in the blood. These acids add unmeasured anions, so the gap widens. Common causes are lactic acidosis, diabetic ketoacidosis, kidney failure and poisonings such as salicylates, methanol or ethylene glycol. A high gap points to a high anion gap metabolic acidosis, but it must be read with the ABG and the client's history.

What causes a metabolic acidosis with a normal anion gap?

In normal anion gap metabolic acidosis, the body loses bicarbonate or gains chloride, so chloride rises as bicarbonate falls and the gap stays the same. The main causes are diarrhea and renal tubular acidosis. Large amounts of 0.9% sodium chloride (normal saline) can also cause it. It is also called hyperchloremic metabolic acidosis.

Why correct the anion gap for albumin?

Albumin is the main unmeasured anion. When albumin is low, the anion gap falls, and a real high-gap acidosis can look normal. The common correction is: corrected anion gap = anion gap + 2.5 × (4.0 − albumin in g/dL). For example, a gap of 10 with an albumin of 2.0 g/dL corrects to 15.

Should potassium be included in the anion gap?

Usually not. Potassium adds little, so most labs use Na − (Cl + HCO3). Some labs add potassium: (Na + K) − (Cl + HCO3). That version gives a higher number, so it needs a higher reference range. Check which formula your lab uses before you compare the result.

Sources

  1. Biochemistry, Anion Gap (StatPearls, NCBI Bookshelf)
  2. Anion Gap and Non-Anion Gap Metabolic Acidosis (StatPearls, NCBI Bookshelf)
  3. Arterial Blood Gas Analysis (StatPearls, NCBI Bookshelf)

Written and checked by the NCLEX First Try editorial team against the sources above. Updated . Read our editorial policy.