Profession Calculators
Healthcare & Clinical

Anion Gap & Electrolyte Corrections Calculator

Calculate the serum anion gap with optional potassium, albumin-corrected anion gap, corrected calcium for albumin, and corrected sodium in hyperglycemia.

Share:

Rates reviewed November 25, 2026. Data period: standard correction factors. Source: clinical chemistry references (Katz 1973, albumin corrections).

Electrolyte corrections

Enter Na, Cl, and HCO3 at minimum, then calculate.

Embed This Calculator on Your Website

Add this free calculator to your blog, website, or CMS with a simple copy-paste embed code.

Introduction

The anion gap is the workhorse shortcut for sorting metabolic acidosis, and it shows up in two places people search for: the raw gap from a basic metabolic panel, and the albumin-corrected gap that matters in ICU patients whose low albumin hides a real acidosis. This calculator runs the standard formula plus the three corrections clinicians actually use: albumin-adjusted anion gap, corrected calcium, and corrected sodium in hyperglycemia.

What This Calculator Does

This anion gap calculator computes the serum anion gap from sodium, chloride, and bicarbonate, with an option to include potassium. Enter albumin to get the albumin-corrected gap and corrected calcium, and enter glucose to get corrected sodium for hyperglycemia using the 1.6 mEq/L per 100 mg/dL factor. Results flag whether the gap falls inside the typical reference range and show each correction separately so the contributions stay transparent.

The Formula

Anion Gap = Na - (Cl + HCO3) [+ K if included] | Albumin-corrected AG = AG + 2.5 x (4 - Albumin) | Corrected Ca = Ca + 0.8 x (4 - Albumin) | Corrected Na = Na + 1.6 x (Glucose - 100) / 100

The anion gap estimates unmeasured anions: sodium minus chloride minus bicarbonate, typically 8 to 12 mEq/L without potassium. Albumin is the largest unmeasured anion, so each g/dL below 4 falsely lowers the gap by about 2.5 mEq/L; hypoalbuminemia can mask a genuine high-gap acidosis. Total calcium needs the 0.8 mg/dL per g/dL albumin correction for the same reason. In severe hyperglycemia, water shifts dilute sodium by roughly 1.6 mEq/L per 100 mg/dL of glucose above 100, so corrected sodium reveals the true sodium status.

Step-by-Step Example

1

Enter the basic metabolic panel values

Provide sodium, chloride, and bicarbonate (the CO2 value on the BMP). Example: Na 140, Cl 104, HCO3 24 gives an anion gap of 12, at the top of the typical range.

2

Add albumin for the corrected gap

Enter albumin to get the albumin-adjusted gap. A gap of 12 with albumin of 2.0 corrects to 17, a genuinely elevated gap hidden by low albumin.

3

Read corrected calcium and sodium

With albumin and glucose entered, the tool also reports corrected calcium (0.8 per g/dL albumin under 4) and corrected sodium for hyperglycemia (1.6 per 100 mg/dL over 100).

Real-World Use Cases

Working up metabolic acidosis

A high anion gap narrows the differential to the classic MUDPILES and GOLD MARK categories, while a normal gap points toward hyperchloremic causes like diarrhea or RTA.

ICU patients with low albumin

Critically ill patients frequently run albumin of 2 to 3 g/dL, where a normal-looking gap of 10 can actually be a corrected gap of 15 to 17 and signal lactic acidosis.

Nursing and medical exam practice

Anion gap calculation is a staple of nursing pharmacology, medical school, and boards questions; the albumin and glucose corrections are the usual second-order questions.

DKA and hyperglycemia evaluation

Corrected sodium separates true hyponatremia from dilutional hyponatremia in severe hyperglycemia, which changes fluid management.

Common Mistakes to Avoid

Frequently Asked Questions

How do you calculate the anion gap?

Anion gap = Na - (Cl + HCO3), normally 8 to 12 mEq/L. Example: Na 140, Cl 105, HCO3 24 gives a gap of 11. Adding potassium raises the reference range to about 12-16.

What is the albumin-corrected anion gap formula?

Corrected AG = AG + 2.5 x (4 - albumin). With an AG of 8 and albumin of 2.0, the corrected gap is 13, revealing an acidosis the raw gap missed.

What is a high anion gap?

An anion gap above 12 (without potassium) indicates high-gap metabolic acidosis: ketoacidosis, lactic acidosis, renal failure, ingestions like methanol or salicylates. The delta ratio helps detect mixed disorders.

How do you correct sodium for hyperglycemia?

Add 1.6 mEq/L to the measured sodium for every 100 mg/dL of glucose above 100 (Katz factor). At Na 128 with glucose 600, corrected sodium is 128 + 8 = 136. Some references use 2.4, which may be more accurate at extreme glucose levels.

What is corrected calcium?

Corrected calcium = measured total calcium + 0.8 x (4 - albumin). It estimates what calcium would be at normal albumin, since roughly half of serum calcium is albumin-bound. Ionized calcium is preferred when available.

Accuracy and Disclaimer

This calculator performs standard electrolyte arithmetic for educational and screening support. Laboratory reference ranges vary, and results must be interpreted by a qualified clinician in the context of history, examination, and the complete panel. This tool does not diagnose, treat, or replace clinical laboratory interpretation.

Conclusion

The gap and its corrections are screening arithmetic that support, not replace, clinical workup. An elevated gap prompts a differential (ketoacidosis, lactic acidosis, toxins, renal failure) and the delta ratio for mixed disorders. Interpret results in full clinical context with your laboratory's reference ranges.