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.
Rates reviewed November 25, 2026. Data period: standard correction factors. Source: clinical chemistry references (Katz 1973, albumin 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
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
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.
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.
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.
Related Healthcare & Clinical Calculators
BMI Calculator
Calculate your Body Mass Index (BMI) using height and weight. Get your BMI category (underweight, normal, overweight, obese) with professional health context and interpretation.
Use CalculatorHealthcare & ClinicalDosage Calculator
Calculate medication dosage based on patient weight, concentration, and prescribed dose.
Use CalculatorHealthcare & ClinicalIV Drip Rate Calculator (Drop Factor Formula)
Use the drop factor formula to calculate IV infusion rates in drops per minute (gtts/min) or mL per hour from volume, time, and drip set drop factor (10, 15, 20, or 60 gtts/mL).
Use CalculatorHealthcare & ClinicalTDEE & Calorie Needs Calculator
Calculate TDEE (total daily energy expenditure) and BMR with the Mifflin-St Jeor equation, then get calorie targets for weight loss, maintenance, or muscle gain.
Use CalculatorHealthcare & ClinicalBody Fat Calculator
Estimate body fat percentage using the U.S. Navy method from neck, waist, and hip measurements.
Use CalculatorHealthcare & ClinicalMedication Dosage Calculator
Calculate weight-based medication dosages for adults with single dose, daily dose, concentration-based volume, and dose-range safety checks.
Use CalculatorYou May Also Find Useful
Accounts Receivable Aging Calculator
Analyze accounts receivable by aging bucket, calculate Days Sales Outstanding (DSO), Collection Effectiveness Index (CEI), weighted average age, and estimated bad debt exposure using 2026 industry benchmarks.
Use CalculatorAccounting & BookkeepingDepreciation Calculator
Calculate asset depreciation using straight-line, 200% declining balance, or MACRS methods with full year-by-year schedules, 2026 bonus depreciation (20%), and Section 179 references.
Use CalculatorAccounting & BookkeepingCash Flow to Debt Ratio Calculator
Assess business solvency by calculating the cash flow to total debt ratio, debt service coverage ratio (DSCR), free cash flow, and estimated years to repay debt using 2026 lending benchmarks.
Use Calculator