Causes & Differential

Causes of High Anion Gap — Full Differential

An elevated anion gap means unmeasured anions are accumulating. The differential groups into four practical categories — lactic acidosis, ketoacidosis, renal failure, and toxins — each with distinct mechanisms and confirmatory tests.

What raises the anion gap?

The causes of high anion gap share one mechanism: an acid the routine electrolyte panel does not directly measure is being added to the blood faster than bicarbonate can buffer it. Sodium, chloride, and bicarbonate stay "measured," but the accumulating anion — lactate, β-hydroxybutyrate, sulfate, formate — widens the difference between measured cations and measured anions. Any high anion gap above ~12 mEq/L (calculate yours with the anion gap calculator) demands a structured search for these unmeasured acids, which is the laboratory signature of high anion gap metabolic acidosis (HAGMA).

The causes of high anion gap fall into four categories: (1) lactic acidosis — Type A (hypoperfusion, sepsis, shock) and Type B (metformin, malignancy, toxins); (2) ketoacidosis — diabetic, alcoholic, and starvation; (3) renal failure with retention of sulfate, phosphate, and organic anions; and (4) toxins — methanol, ethylene glycol, propylene glycol, salicylates, iron, isoniazid, and 5-oxoproline.

Differential by category

Use the table below as a structured reference; the two mnemonics — MUDPILES and the updated GOLD MARK — encode the same list for recall at the bedside.

Category Specific cause Unmeasured anion / mechanism Confirmatory test
Lactic acidosis Type A — shock, sepsis, hypoxia, mesenteric ischemia, severe exercise, seizures L-lactate from anaerobic glycolysis under tissue hypoperfusion Serum lactate > 2 mmol/L (> 5 in severe)
Type B — metformin, malignancy (lymphoma, leukemia), mitochondrial toxins, HIV/nucleoside analogs, thiamine deficiency L-lactate from impaired aerobic metabolism without overt hypoperfusion Serum lactate; drug levels; hematology
Ketoacidosis Diabetic (DKA) — insulin deficiency, new-onset T1DM, infection, non-compliance β-Hydroxybutyrate, acetoacetate from hepatic ketogenesis Serum β-hydroxybutyrate; glucose; ABG
Alcoholic — chronic alcohol use with binge and poor intake β-Hydroxybutyrate predominates; low insulin : glucagon ratio Serum β-hydroxybutyrate; ethanol level
Starvation / late pregnancy — glycogen depletion, fetal demand Mild ketonemia from physiologic ketogenesis Serum or urine ketones
Renal failure Acute kidney injury or advanced CKD (GFR < 20–25 mL/min) Retention of sulfate (SO₄²⁻), phosphate (HPO₄²⁻), organic anions (hippurate) BUN, creatinine, eGFR; urinalysis
Toxins Methanol (windshield washer, illicit spirits) Formic acid from alcohol dehydrogenase metabolism Serum methanol; osmolar gap > 20
Ethylene glycol (antifreeze) Glycolic and oxalic acid → calcium oxalate crystals Serum ethylene glycol; urine crystals; osmolar gap
Propylene glycol (IV lorazepam, diazepam, phenytoin vehicles) L- and D-lactate from metabolism Medication review; lactate; osmolar gap
Salicylates (aspirin overdose) Salicylate anion + uncoupled oxidative phosphorylation (lactate) Serum salicylate level; mixed alkalemia + HAGMA
Iron, isoniazid (INH) overdose Cellular toxins producing lactic acidosis Serum iron; INH history; lactate
5-Oxoproline (pyroglutamic acid) — chronic acetaminophen, flucloxacillin, netilmicin γ-Glutamyl cycle block from glutathione depletion Urinary organic acids; medication history
D-Lactic acidosis Short-bowel syndrome, jejunoileal bypass, bacterial overgrowth D-Lactate isomer produced by gut flora (routine lactate misses it) Specific D-lactate assay

Lactic acidosis — Type A versus Type B

Lactic acidosis is the single most common cause of HAGMA in hospitalized patients, so the Type A/Type B split drives much of the workup. Type A reflects overt tissue hypoperfusion — septic shock, hemorrhagic or cardiogenic shock, hypoxemia, mesenteric ischemia, seizures, or severe exercise — and the treatment is resuscitation of the underlying cause. Type B occurs without clinical hypoperfusion and reflects impaired lactate clearance or aerobic metabolism: metformin accumulation (especially in CKD), malignancy (lymphoma, leukemia with the Warburg effect), nucleoside reverse-transcriptase inhibitors, thiamine deficiency, severe hepatic failure, and mitochondrial toxins. A lactate above 5 mmol/L with a wide anion gap is ominous — associated with sharply rising mortality — and warrants urgent source control and, where relevant, renal replacement therapy (Surviving Sepsis Campaign; Kraut & Madias, CJASN).

Ketoacidosis — DKA, alcoholic, starvation

All three share insulin deficiency or relative glucagon excess that drives hepatic ketogenesis. DKA presents with hyperglycemia, ketonemia, and acidemia; serum β-hydroxybutyrate is more sensitive than the urine ketone dip, which detects acetoacetate but not β-hydroxybutyrate. Alcoholic ketoacidosis follows a binge with vomiting and poor intake — glucose is typically low to normal and the gap improves with dextrose-containing fluids. Starvation ketosis is mild and physiological, rarely dropping bicarbonate below 18 mEq/L. In all three, the anion gap closes as ketones are cleared, so tracking the gap over time guides therapy.

Renal failure and uremic acid

The kidney normally excretes ~70–100 mEq/day of sulfate, phosphate, and organic anions. As GFR falls below ~20–25 mL/min, these accumulate and the anion gap rises — a slow, chronic process distinct from the rapid widening seen in lactic or toxin-driven HAGMA (Kraut & Madias, StatPearls 'Serum Anion Gap'). In acute kidney injury, the gap can rise quickly when combined with lactic acidosis from the same ischemic insult.

When the differential is unrevealing

If lactate, ketones, renal function, and salicylate levels are normal but the anion gap remains elevated, return to GOLD MARK: order a D-lactate (short bowel), 5-oxoproline (chronic acetaminophen, flucloxacillin), and check the osmolar gap for a hidden toxic alcohol ingestion.

Key takeaways

  • The high-AG differential groups into lactic acidosis, ketoacidosis, renal failure, and toxins — encoded by MUDPILES and GOLD MARK.
  • Lactic acidosis (Type A and Type B) is the most common cause in hospitalized patients — measure the serum lactate first.
  • A simultaneously high anion gap and high osmolar gap points to a toxic alcohol — a time-critical diagnosis.
  • Always correct for albumin before declaring the gap elevated in hypoalbuminemic, cirrhotic, or nephrotic patients.

Find the cause behind the gap.

Calculate the anion gap, check the lactate and osmolar gap, and run the structured HAGMA differential — all in one free hub.

Open the anion gap calculator