Anion Gap Calculator
Calculate serum anion gap with albumin correction for acid-base disorders
Electrolyte Values
Results
Clinical Significance
Normal anion gap, typical healthy range
Medical Disclaimer: This calculator is for educational purposes only and should not replace professional medical advice. Anion gap calculation requires clinical context for proper interpretation. Always consult a physician for diagnosis and treatment. Results may be affected by lab variability, hypoalbuminemia, and other factors. Emergency evaluation is required for severely elevated anion gaps.
Understanding the Inputs
Formula and Scientific Basis
AG = Na⁺ - (Cl⁻ + HCO₃⁻)AG = (Na⁺ + K⁺) - (Cl⁻ + HCO₃⁻)Corrected AG = AG + 2.5 × (4 - Albumin)Example Calculation
Interpretation and Clinical Benchmarks
- Low AG (<3 mEq/L): Uncommon finding. Causes include hypoalbuminemia (most common—AG decreases 2.5 mEq/L per 1 g/dL albumin drop), multiple myeloma (paraproteinemia), lithium toxicity, hypercalcemia, hypomagnesemia, bromide toxicity (interferes with chloride assay), or lab error. Low AG itself is not dangerous but may indicate underlying pathology.
- Normal AG (10-14 mEq/L): Healthy acid-base balance. If metabolic acidosis exists with normal AG, consider normal anion gap acidosis (NAGMA) causes: diarrhea (most common—bicarbonate loss), renal tubular acidosis (RTA types 1, 2, 4), ureterosigmoidostomy, pancreatic fistula, rapid normal saline infusion. Use mnemonic HARDUPS: Hyperalimentation, Acetazolamide, RTA, Diarrhea, Ureterosigmoidostomy, Pancreatic fistula, Saline.
- Mild Elevation (15-20 mEq/L): Investigate cause. Common causes: early ketoacidosis (DKA, alcoholic, starvation), mild lactic acidosis (tissue hypoxia), renal insufficiency (uremia—decreased acid excretion), dehydration (concentration effect), fasting/starvation (ketone accumulation). Monitor closely and address underlying condition.
- Moderate Elevation (21-30 mEq/L): Urgent evaluation required. Primary causes: diabetic ketoacidosis (DKA—AG typically 20-30), lactic acidosis (shock, sepsis, hypoxia—lactate >4 mmol/L), uremia (end-stage renal disease—BUN >100), toxic ingestion (methanol, ethylene glycol, salicylates), alcoholic ketoacidosis. Requires hospitalization and targeted therapy.
- Severe Elevation (>30 mEq/L): Medical emergency requiring ICU-level care. Life-threatening causes: severe DKA (AG >35 possible), methanol poisoning (AG >40—causes optic nerve damage), ethylene glycol poisoning (antifreeze—causes renal failure), severe septic shock with lactic acidosis (lactate >10 mmol/L), advanced renal failure with uremia, massive rhabdomyolysis. Immediate intervention includes IV fluids, insulin (if DKA), dialysis (if toxin/uremia), vasopressors (if shock), fomepizole (if toxic alcohol), sodium bicarbonate (if pH <7.1).
Important Precautions
- Hypoalbuminemia: Falsely lowers AG by 2.5 mEq/L per 1 g/dL decrease. Always apply albumin correction in critically ill, malnourished, cirrhotic, or nephrotic patients.
- Paraproteinemia: Multiple myeloma produces cationic immunoglobulins that falsely lower AG. Confirm with serum protein electrophoresis (SPEP).
- Bromide toxicity: Bromide interferes with chloride assay, falsely elevating chloride and lowering AG. Suspect in psychiatric patients or seawater drowning.
- Lab variability: Different analyzers have different reference ranges (8-16 mEq/L range exists). Use your lab's specific normal range.
- Hyperlipidemia/hyperproteinemia: Pseudohyponatremia falsely lowers sodium, reducing AG. Corrected sodium: measured Na + [1.6 × (glucose - 100)/100].
- AG alone cannot diagnose specific cause—requires clinical context, arterial blood gas (ABG), lactate, ketones, renal function, toxicology screen
- Mixed acid-base disorders (e.g., DKA + vomiting) require delta ratio calculation to detect concurrent alkalosis
- Normal AG doesn't exclude acidosis—check pH and HCO₃⁻ for normal AG metabolic acidosis (NAGMA)
- AG may be normal early in toxin ingestion (methanol/ethylene glycol) before metabolism to toxic acids
- AG >30 mEq/L (critical elevation)
- Symptoms: altered mental status, Kussmaul respirations (deep rapid breathing), severe nausea/vomiting, abdominal pain
- Known diabetic with hyperglycemia (>250 mg/dL) and elevated AG
- Suspected toxic ingestion (methanol, ethylene glycol, aspirin)
- Severe dehydration, shock, or sepsis
Related Tools
Frequently Asked Questions
What is anion gap and why is it important?
The anion gap is the difference between measured cations (Na⁺, K⁺) and anions (Cl⁻, HCO₃⁻) in serum, representing unmeasured anions like albumin, phosphate, sulfate, and organic acids. It's crucial for diagnosing metabolic acidosis causes: high AG indicates accumulation of unmeasured anions (lactate, ketones, toxins, uremia), while normal AG with low HCO₃⁻ suggests bicarbonate loss (diarrhea) or renal acid retention (RTA). This distinction guides treatment—insulin for DKA, dialysis for uremia, fomepizole for toxic alcohols, or fluid repletion for diarrhea.
What is a normal anion gap range?
Normal anion gap is 10-14 mEq/L using the standard formula (Na⁺ - Cl⁻ - HCO₃⁻), or 12-16 mEq/L if potassium is included. Modern analyzers measuring chloride more accurately have lowered the normal range to 6-12 mEq/L at some labs. Always use your lab's specific reference range. Values below 3 mEq/L are abnormally low (hypoalbuminemia, paraproteinemia), 15-20 mEq/L are mildly elevated (early acidosis), 21-30 mEq/L are moderately elevated (DKA, lactic acidosis), and >30 mEq/L are critically elevated (life-threatening emergency).
Why is albumin correction necessary?
Albumin is a negatively charged protein contributing ~50% of unmeasured anions. When albumin is low (hypoalbuminemia—common in critically ill, cirrhotic, nephrotic, or malnourished patients), the uncorrected AG appears falsely normal even when high AG acidosis exists. Albumin correction adds 2.5 mEq/L for each 1 g/dL drop below 4 g/dL, revealing masked acidosis. For example, patient with AG 10 mEq/L and albumin 2.0 g/dL has corrected AG = 10 + 2.5 × (4-2) = 15 mEq/L, indicating mild acidosis that would have been missed without correction.
What causes high anion gap metabolic acidosis?
Use the MUDPILES mnemonic: Methanol (AG >40, optic neuritis, osmolar gap), Uremia (renal failure, BUN >100), Diabetic ketoacidosis (glucose >250, positive ketones, AG 20-30), Propylene glycol/Paraldehyde, Isoniazid/Iron toxicity, Lactic acidosis (shock, sepsis, hypoxia, lactate >4 mmol/L—most common ICU cause), Ethylene glycol (antifreeze, calcium oxalate crystals, renal failure), Salicylates (aspirin overdose, tinnitus, respiratory alkalosis + metabolic acidosis). Other causes: alcoholic ketoacidosis (chronic EtOH, starvation), starvation ketosis, rhabdomyolysis, 5-oxoproline (chronic acetaminophen use).
What is delta ratio and why does it matter?
Delta ratio = ΔAG / ΔHCO₃⁻ = (measured AG - 12) / (24 - measured HCO₃⁻). It detects mixed acid-base disorders that AG alone misses. Interpretation: <0.4 = hyperchloremic (normal AG) acidosis; 0.4-0.8 = mixed high AG + normal AG acidosis; 1.0-2.0 = pure high AG acidosis (classic DKA, lactic acidosis); >2.0 = high AG acidosis + concurrent metabolic alkalosis (e.g., DKA patient vomiting, or chronic respiratory acidosis with compensatory metabolic alkalosis). Example: DKA patient with AG 30, HCO₃⁻ 10 has delta ratio = (30-12)/(24-10) = 18/14 = 1.29, confirming pure high AG acidosis without mixed disorder.
When should I go to the emergency room for high anion gap?
Seek immediate ER evaluation if: (1) AG >30 mEq/L—critical elevation requiring ICU care; (2) Kussmaul respirations—deep, rapid breathing compensating for acidosis; (3) Altered mental status—confusion, lethargy, coma indicating severe acidosis or toxic ingestion; (4) Diabetic with glucose >250 mg/dL + fruity breath odor (DKA); (5) Suspected toxic ingestion—methanol (vision changes), ethylene glycol (flank pain, crystals in urine), aspirin (tinnitus); (6) Severe dehydration/shock with lactic acidosis. Delayed treatment of AG >30 can cause cardiac arrest (hyperkalemia), respiratory failure, cerebral edema, or multi-organ failure. Call 911 or go to nearest ER immediately.
References
- Emmett M, Narins RG. Clinical use of the anion gap. Medicine (Baltimore). 1977;56(1):38-54. Classic paper establishing anion gap's clinical utility.
- Figge J, Jabor A, Kazda A, Fencl V. Anion gap and hypoalbuminemia. Crit Care Med. 1998;26(11):1807-10. Study validating albumin correction formula (2.5 mEq/L per g/dL).
- Kraut JA, Madias NE. Serum anion gap: its uses and limitations in clinical medicine. Clin J Am Soc Nephrol. 2007;2(1):162-74. Comprehensive review of AG interpretation and pitfalls.
- Rastegar A. Use of the deltaAG/deltaHCO3- ratio in the diagnosis of mixed acid-base disorders. J Am Soc Nephrol. 2007;18(9):2429-31. Delta ratio application for mixed disorders.
- Berend K, de Vries AP, Gans RO. Physiological approach to assessment of acid-base disturbances. N Engl J Med. 2014;371(15):1434-45. Modern acid-base assessment including AG and Stewart approach.
About This Calculator
Calculate serum anion gap (AG) and albumin-corrected anion gap using Na鈦? Cl鈦? HCO鈧冣伝 electrolyte values. Formula: AG = Na - (Cl + HCO鈧?, normal range 8-12 mEq/L (traditional) or 3-11 mEq/L (modern without K鈦?. Input sodium (135-145), chloride (96-106), bicarbonate (22-28), albumin (3.5-5.0 g/dL) and instantly see standard AG, corrected AG (adds 2.5 mEq/L per 1 g/dL albumin below 4.0), diagnostic category (Normal/High AG metabolic acidosis/Low AG), differential diagnosis (MUDPILES mnemonic), and compensation analysis. Essential for ICU/ER acid-base disorders, DKA, lactic acidosis, renal failure, and toxic ingestions.
Frequently Asked Questions
What is the formula for calculating anion gap?
**Standard formula (without K鈦?**: AG = Na鈦?- (Cl鈦?+ HCO鈧冣伝). **Example**: Na 140, Cl 104, HCO鈧?24 鈫?AG = 140 - (104 + 24) = **12 mEq/L** (normal). **Alternative formula (with K鈦? rarely used)**: AG = (Na鈦?+ K鈦? - (Cl鈦?+ HCO鈧冣伝) 鈫?increases AG by ~4 mEq/L. **Albumin-corrected AG**: Corrected AG = Measured AG + 2.5 脳 (4.0 - Albumin g/dL). **Example**: Measured AG 10, Albumin 2.0 鈫?Corrected AG = 10 + 2.5 脳 (4.0 - 2.0) = **15 mEq/L** (high, would be missed without correction). **Normal ranges**: Traditional (with K鈦? 12-16 mEq/L, Modern (without K鈦? **8-12 mEq/L** (current standard), ISE method (ion-selective electrode) 3-11 mEq/L (lower due to different Cl鈦?measurement). **Clinical significance**: Represents unmeasured anions (albumin, phosphate, sulfate, organic acids)鈥攅levated AG indicates accumulation of unmeasured acids.
What causes a high anion gap metabolic acidosis?
**MUDPILES mnemonic** for high AG acidosis (AG >12 mEq/L + low pH <7.35 + low HCO鈧?<22): **M**ethanol (formic acid, AG 20-30, osmolar gap >10), **U**remia (renal failure, AG 16-20, BUN >60), **D**KA/Diabetic Ketoacidosis (尾-hydroxybutyrate + acetoacetate, AG 20-30, glucose >250), **P**araldehyde/Propylene glycol (rare), **I**soniazid/Iron tablets, **L**actic acidosis (Type A hypoxia/shock AG 20-30, Type B metformin/malignancy AG 15-25), **E**thylene glycol (glycolic/oxalic acid, AG 20-35, oxalate crystals), **S**alicylates (aspirin >30 mg/dL, AG 15-20, tinnitus). **Most common causes**: Lactic acidosis (50%), DKA (25%), uremia (15%), toxins (10%). **Delta-delta calculation**: (螖AG / 螖HCO鈧? ratio鈥?.0-2.0 suggests pure high AG acidosis, <1.0 suggests concurrent normal AG acidosis, >2.0 suggests metabolic alkalosis. **Severe AG >30**: Almost always lactic acidosis, DKA, or ethylene glycol/methanol poisoning.
Why is albumin correction important for anion gap?
Albumin is the **largest contributor to unmeasured anions** (~75% of AG). Low albumin (hypoalbuminemia <3.5 g/dL) **falsely lowers AG** because albumin normally carries negative charge. **Example of missed acidosis**: Patient with sepsis, Albumin 2.0, AG 10 (appears normal). **Corrected AG** = 10 + 2.5 脳 (4.0 - 2.0) = **15 mEq/L** (high, reveals lactic acidosis). **Correction formula**: Add 2.5 mEq/L for every 1 g/dL albumin below 4.0. **Common in**: Cirrhosis, nephrotic syndrome, malnutrition, critical illness (albumin often 2.0-2.5). **Clinical impact**: 50% of ICU patients with AG <12 actually have high AG acidosis when corrected. **Alternative method**: Some use 3.7 mEq/L per 1 g/dL (older literature), but 2.5 is current standard. **Bottom line**: Always check albumin in critically ill patients鈥攗ncorrected AG can miss life-threatening acidosis (lactate, ketoacidosis).
What is a normal anion gap acidosis and its causes?
Normal AG acidosis (AG 8-12 mEq/L + low pH + low HCO鈧? means **loss of HCO鈧冣伝 or addition of Cl鈦?*鈥攁lso called hyperchloremic acidosis. **HARDUPS mnemonic**: **H**yperalimentation (TPN, amino acid metabolism), **A**cetazolamide/Addison disease (renal tubular acidosis type 2), **R**enal tubular acidosis (Types 1, 2, 4鈥攊mpaired H鈦?HCO鈧冣伝 handling), **D**iarrhea (most common cause鈥擥I HCO鈧冣伝 loss, Cl鈦?retention), **U**reterosigmoidostomy/Ureteral diversions (colonic HCO鈧冣伝 loss), **P**ancreatic fistula, **S**aline administration (large volume 0.9% NaCl dilutes HCO鈧冣伝). **Urine AG test**: Urine (Na + K) - Cl. **Positive** (>0): Renal HCO鈧冣伝 loss (RTA). **Negative** (<0): GI HCO鈧冣伝 loss (diarrhea) or exogenous acid. **Type 1 RTA** (distal): Urine pH >5.5, hypokalemia, kidney stones. **Type 2 RTA** (proximal): Urine pH <5.5 initially, then >5.5, Fanconi syndrome. **Type 4 RTA**: Hyperkalemia, aldosterone deficiency, diabetic nephropathy. **Treatment**: Normal AG acidosis often self-corrects with volume/electrolyte replacement, unlike high AG which requires specific toxin/metabolic treatment.
What does a low anion gap (<3 mEq/L) indicate?
Low AG (<3-6 mEq/L) is **uncommon** and usually due to: **Hypoalbuminemia** (most common鈥攁lbumin <2.0 can lower AG to 0-5, seen in cirrhosis, nephrotic syndrome). **Hypercalcemia/Hypermagnesemia** (unmeasured cations increase, cancer, hyperparathyroidism, milk-alkali syndrome). **Paraproteinemia** (IgG myeloma鈥攃ationic proteins increase, can cause AG <0). **Lithium toxicity** (cationic drug measured as Na鈦?by some analyzers). **Bromide/Iodide intoxication** (measured as Cl鈦?by older analyzers, falsely elevates Cl鈦?. **Severe hyponatremia** (<120 mEq/L) or hyperchloremia (>115 mEq/L) can mathematically lower AG. **Clinical significance**: Low AG itself is **not dangerous**鈥攊t's a clue to underlying disease (e.g., multiple myeloma paraproteins). **Action**: If AG <3, check albumin (correct AG), serum protein electrophoresis (paraprotein), calcium, magnesium, lithium level if on medication. **Lab artifact**: Severe hyperlipidemia or hemolysis can cause pseudohyponatremia 鈫?artifactually low AG (resolves with direct ISE measurement).
How do I interpret anion gap with delta-delta ratio?
Delta-delta ratio helps **identify mixed acid-base disorders** when AG is elevated. **Formula**: 螖 ratio = 螖AG / 螖HCO鈧?= (Measured AG - 12) / (24 - Measured HCO鈧?. **Interpretation**: **1.0-2.0 (normal)**: Pure high AG metabolic acidosis (every 1 mEq/L AG increase matches 1-2 mEq/L HCO鈧?drop). **<1.0**: Mixed high AG + normal AG acidosis (e.g., DKA + diarrhea, lactic acidosis + RTA). HCO鈧?falls more than AG rises. **>2.0**: Mixed high AG acidosis + metabolic alkalosis (e.g., DKA + vomiting, uremia + diuretics). HCO鈧?doesn't fall as much due to concurrent alkalosis. **Example 1**: AG 24 (螖12), HCO鈧?12 (螖12) 鈫?螖 ratio = 12/12 = **1.0** (pure lactic acidosis). **Example 2**: AG 20 (螖8), HCO鈧?18 (螖6) 鈫?螖 ratio = 8/6 = **1.33** (normal, pure DKA). **Example 3**: AG 22 (螖10), HCO鈧?14 (螖10) 鈫?螖 ratio = 10/10 = **1.0**, but also respiratory compensation (check ABG). **Caveat**: Only valid if AG >20 (chronic kidney disease alters ratio), assumes normal baseline AG 12 and HCO鈧?24.