Anion Gap Metabolic Acidosis Algorithm
✓ Medically reviewed by Mohamed Magdy Ibrahim, MD, PhD — Assistant Professor of Medicine, Transplant Nephrology, University of Maryland School of Medicine · Board certified in Internal Medicine (ABIM) · Last reviewed: November 2026
A raised anion gap means an unmeasured acid is accumulating — and the gap itself never tells you which one. This page walks the standard approach step by step: confirm the gap and correct it for albumin, judge the severity, hunt the cause through the GOLD MARK list, treat the cause, and reserve bicarbonate and dialysis for the situations where they actually help.
Use the interactive walk-through below with a real blood gas in front of you, or read the full algorithm laid out underneath it. The framework follows standard acid–base teaching (Adrogué and Madias) with cause-specific pathways cross-checked against KDIGO and toxicology (EXTRIP) guidance.
Emergency note: this page is an educational reference for clinicians and students. It does not replace your local protocol or senior clinical judgment. A pH under 7.1, a falling conscious level, or acidosis with shock is a medical emergency — resuscitate, get senior, renal and (for poisons) toxicology help immediately.
Walk the algorithm
Step 1 of 2 — severity first, then the cause picks the treatment.
Is the patient severely acidemic or unstable?
pH under 7.1 · reduced or falling conscious level · shock or severe breathlessness · potassium dangerously high alongside.
Which cause fits best so far?
From the lactate, ketones, renal function, drug history and story. If none fits yet, run the full cause hunt in the steps below — an unexplained gap is not a diagnosis.
Severe acidemia — resuscitate, find it, treat it
- ABCDE: airway at risk from a falling conscious level — involve critical care early; a patient compensating by hyperventilating tires quickly, and injudicious sedation or intubation settings can crash the pH.
- Send the cause panel now: repeat gas, lactate, blood ketones, creatinine and electrolytes, glucose, salicylate level, and an osmolal gap if a toxic alcohol is possible; ECG and potassium.
- Treat the driver: sepsis pathway for lactate (see the sepsis algorithm), insulin for ketoacidosis (see the DKA algorithm), fomepizole and urgent dialysis discussion for toxic alcohols.
- Bicarbonate: not routine. It is reasonable to discuss with specialists when pH is under about 7.1–7.2 with moderate-to-severe AKI, while the cause is being treated — the BICAR-ICU trial signal sits there, not in acidosis generally.
- Dialysis: refractory acidosis, acidosis with AKI and overload, or a dialyzable poison — call renal early; do not wait for the pH to fall further.
Lactic acidosis — the treatment is perfusion and the source
- Type A (hypoperfusion): sepsis, shock, severe hypoxia, seizures, limb or gut ischemia. Treat the driver — the sepsis pathway, fluids and vasopressors to a MAP of 65, source control. Lactate clears when perfusion returns.
- Type B (no hypoperfusion): metformin (especially with AKI — severe metformin-associated lactic acidosis with shock is a dialysis discussion, per EXTRIP), liver failure, thiamine deficiency, malignancy, certain drugs.
- Repeat lactate and gases to follow the trend; a lactate that will not clear means the cause is untreated or missed — look again for ischemia and sepsis.
- Bicarbonate does not fix lactic acidosis; dialysis is for the metformin/severe-AKI end of the spectrum, on specialist advice.
Ketoacidosis — insulin and volume; find which kind
- Diabetic ketoacidosis: run the full DKA algorithm — fluids, fixed-rate insulin, potassium by level. Remember euglycemic DKA on SGLT2 inhibitors: a near-normal glucose does not exclude it; the ketones and gas decide.
- Alcoholic ketoacidosis: after a binge with vomiting and starvation — treatment is dextrose-containing fluids and thiamine, not insulin; the gap closes as feeding resumes.
- Starvation ketosis rarely causes severe acidosis on its own — if the gap is large, keep looking for a second cause.
- Measure blood β-hydroxybutyrate rather than relying on urine ketones, which lag behind both the illness and the recovery.
Uremic acidosis — part of the AKI/CKD picture
- Run the AKI algorithm alongside: stage it, stop nephrotoxins, fix volume and obstruction.
- Oral bicarbonate is reasonable for a stable, chronic metabolic acidosis of kidney disease (a bicarbonate persistently under about 22 mmol/L) — a ward/outpatient decision, not an emergency one.
- Dialysis when acidosis comes with the other AEIOU triggers — refractory hyperkalemia, overload, uremic symptoms — or is severe and not correcting.
- Check the calcium, phosphate and PTH axis in established CKD; treat anemia and the underlying kidney disease on the kidney pathway.
Toxic ingestion — antidote early, dialysis early
- Toxic alcohols (methanol, ethylene glycol): give fomepizole as soon as the diagnosis is seriously suspected — do not wait for confirmatory levels. Clues: an osmolal gap, visual symptoms (methanol), flank pain and oxalate crystals (ethylene glycol), AKI. Urgent toxicology and renal discussion: dialysis removes both the poison and its acid metabolites.
- Salicylates (aspirin overdose): serial levels and gases; urinary alkalinization with IV bicarbonate is a treatment here (unlike most acidoses) — specialist-led; dialysis for severe toxicity, altered consciousness, or refractory acidosis.
- Metformin, lithium and other dialyzables: follow the emergency panel above and involve toxicology — EXTRIP criteria guide extracorporeal removal.
- Send levels, but treat on suspicion: in toxic alcohol poisoning, the antidote window closes while the laboratory thinks.
The full algorithm, step by step
The same pathway, laid out in full — the version to print, teach from, or follow without the walk-through.
Step 0 · Confirm and calculate
The gap, corrected for albumin
Anion gap = sodium − (chloride + bicarbonate). A typical reference range is about 8–12 mmol/L, but use your laboratory's range. Albumin is the main "unmeasured anion" of health: for every 10 g/L the albumin sits below 40 g/L, add about 2.5 mmol/L to the calculated gap before judging it. A "normal" gap in a patient with a very low albumin can hide a significant acidosis.
Step 1 · Severity and compensation
ABCDE, pH, and Winter's formula
Assess airway, breathing and circulation; a pH under 7.1 or a falling conscious level is an emergency. Check the respiratory compensation is appropriate: expected pCO2 ≈ 1.5 × bicarbonate + 8 (±2) mmHg. A pCO2 higher than that means a second, respiratory, acidosis — the patient is tiring or has lung disease, and needs critical care.
Step 2 · Hunt the cause
GOLD MARK, tested in parallel
Send lactate, blood ketones, creatinine, glucose and a salicylate level; calculate an osmolal gap when a toxic alcohol is possible. Work the GOLD MARK list (table below) rather than guessing: each cause has a different definitive treatment, and two causes often coexist — sepsis with AKI, DKA with lactate.
Step 3 · Treat the cause
The gap closes when the cause does
Perfusion and source control for lactate; insulin and volume for ketoacidosis; the AKI pathway for uremia; fomepizole and dialysis for toxic alcohols. There is no generic "acidosis treatment" — a rising gap on treatment means the cause is uncontrolled or the diagnosis is wrong.
Step 4 · Bicarbonate — selectively
A drug with indications, not a reflex
IV bicarbonate is not routine in metabolic acidosis: it generates CO2, loads sodium, and can drop ionized calcium. The reasonable discussion zone is a pH under about 7.1–7.2 with moderate-to-severe AKI (the BICAR-ICU subgroup), or specific poisonings such as salicylates and sodium-channel blocker toxicity, where alkalinization is itself the treatment. Specialist decision, with repeat gases.
Step 5 · Dialysis and monitoring
Know the extracorporeal triggers
Dialysis for: refractory severe acidosis, acidosis with AKI and fluid overload, and dialyzable poisons (methanol, ethylene glycol, salicylates, lithium, severe metformin toxicity) per toxicology/EXTRIP advice. Monitor with serial gases and electrolytes until the gap has closed and the cause is treated — then document which acid it was.
Causes at a glance — GOLD MARK
| G — Glycols | Ethylene glycol, propylene glycol | Osmolal gap, AKI, oxalate crystals; fomepizole + dialysis |
| O — Oxoproline | Chronic paracetamol (acetaminophen) | Malnourished, often female, chronic pain dosing; a diagnosis of exclusion |
| L — L-lactate | Shock, sepsis, hypoxia, seizures | Treat perfusion and the source; see sepsis algorithm |
| D — D-lactate | Short bowel syndrome | Standard lactate assay reads normal; confusion and ataxia after carbohydrate loads |
| M — Methanol | Also metformin (lactic) | Visual symptoms, osmolal gap; fomepizole + dialysis |
| A — Aspirin | Salicylate poisoning | Mixed respiratory alkalosis + gap acidosis; alkalinize, consider dialysis |
| R — Renal failure | Uremic acidosis | AKI/CKD pathway; dialysis for AEIOU triggers |
| K — Ketoacidosis | Diabetic, alcoholic, starvation | Blood β-hydroxybutyrate; insulin for DKA, dextrose for alcoholic |
Why does the gap rise? The physiology in one paragraph
Blood must stay electrically neutral. The routine electrolyte panel measures sodium, chloride and bicarbonate, but not the negatively charged proteins, phosphate and organic acids that make up the rest — the "gap" is that unmeasured remainder. When an acid such as lactate or a ketone body accumulates, bicarbonate is consumed buffering it and the gap widens by roughly the same amount. A gap that rises without bicarbonate falling, or bicarbonate falling further than the gap rises, signals a second disorder running in parallel — which is why the numbers are always read together, never alone.
Related pathways: the DKA algorithm, the sepsis algorithm, and the AKI algorithm treat the three commonest causes; the Lab Values hub explains the individual tests.
Questions clinicians and students ask
What is a normal anion gap?
About 8–12 mmol/L on most modern analyzers, but the honest answer is "your laboratory's reference range" — methods differ, and older ranges ran higher. The trend in the same patient, and the albumin-corrected value, matter more than any single universal cutoff.
Why correct the gap for albumin?
Albumin carries much of the normal gap. A patient with an albumin of 20 g/L has a baseline gap roughly 5 mmol/L lower than usual, so a "normal-looking" gap of 12 can actually represent a significant hidden acidosis. The correction — about +2.5 mmol/L per 10 g/L of albumin below 40 — takes seconds and changes decisions.
What is the osmolal gap for?
It is the screen for toxic alcohols. Methanol and ethylene glycol are small osmotically active molecules: measured osmolality exceeds calculated osmolality while they are still in the blood. Early, the osmolal gap is high and the anion gap may be normal; late, the pattern flips as the alcohols convert to acids. A normal osmolal gap late in the story does not exclude them.
Does everyone with metabolic acidosis need bicarbonate?
No. For most causes the treatment is the cause — perfusion, insulin, or time — and bicarbonate adds sodium, CO2 and risk without proven benefit. Its evidence-backed niche is narrow: severe acidemia with significant AKI, and specific poisonings where alkalinization is the therapy. It is a specialist discussion, not a reflex to a low pH.
The lactate is normal but the gap is high — what am I missing?
Work the rest of GOLD MARK: ketones (measure blood β-hydroxybutyrate), renal failure, salicylates, toxic alcohols — and the two assay traps: D-lactate, which the standard L-lactate assay cannot see (short bowel patients), and oxoproline from chronic paracetamol use. Also recheck the albumin correction before concluding the gap is unexplained.
Sources and review
The framework follows standard acid–base references (Adrogué & Madias, New England Journal of Medicine reviews of acid–base disorders) and the GOLD MARK cause classification; the bicarbonate discussion reflects the BICAR-ICU trial (Jaber et al., Lancet 2018); extracorporeal removal indications follow EXTRIP workgroup recommendations, and renal aspects are cross-checked against KDIGO. Educational content for clinicians and students; not a substitute for clinical judgment or local toxicology advice.
MedicalVideos.com. Anion Gap Metabolic Acidosis Algorithm — Step by Step. MedicalVideos.com; 2026 Nov [cited 2026 Nov 22]. Available from: https://www.medicalvideos.com/algorithms/anion-gap-acidosis/
MedicalVideos.com (2026, November). Anion Gap Metabolic Acidosis Algorithm — Step by Step. MedicalVideos.com. https://www.medicalvideos.com/algorithms/anion-gap-acidosis/
MedicalVideos.com. “Anion Gap Metabolic Acidosis Algorithm — Step by Step.” MedicalVideos.com, Nov. 2026, https://www.medicalvideos.com/algorithms/anion-gap-acidosis/. Accessed 22 Nov. 2026.
@misc{medicalvideos2026_algorithms_anion_gap_acidosis,
author = {MedicalVideos.com},
title = {Anion Gap Metabolic Acidosis Algorithm — Step by Step},
howpublished = {MedicalVideos.com},
year = {2026},
month = {11},
url = {https://www.medicalvideos.com/algorithms/anion-gap-acidosis/},
urldate = {2026-11-22}
}Vancouver (NLM) is the manuscript standard for medical journals. RIS imports into EndNote, Zotero and Mendeley.
Medical Videos
Free medical and surgery videos for patients, students and professionals — trusted since 2007.
Founded by Dr. Mohamed Ibrahim, MD, PhD — physician-scientist.
Follow us on Facebook · Instagram · Telegram