Anion Gap — Formula, Normal Range, HAGMA vs NAGMA and the Delta Ratio

Written & medically reviewed by the Kinase Medical Team · Last reviewed

Quick Answer

The anion gap is sodium minus the sum of chloride and bicarbonate, usually about 8–12 mEq/L. It estimates unmeasured anions, mainly albumin. A raised gap in metabolic acidosis means an added acid such as ketones, lactate, toxic alcohols or uraemic anions; a normal gap means bicarbonate loss or chloride gain, as in diarrhoea or renal tubular acidosis.

What is the anion gap?

Plasma is electrically neutral: total cations equal total anions. A routine renal panel, however, measures only the main ions — sodium among the cations and chloride and bicarbonate among the anions. Because there are normally more unmeasured anions than unmeasured cations, subtracting the measured anions from sodium leaves a positive number: the anion gap (AG). It is not a real ‘gap’ in the blood — it is a calculated estimate of the anions the analyser does not report.

What makes up the anion gap
Unmeasured anions (raise the AG)Unmeasured cations (lower the AG)
Albumin — the predominant contributorPotassium (when left out of the formula)
Phosphate, sulphateCalcium, magnesium
Organic anions: lactate, ketoacids (β-hydroxybutyrate, acetoacetate), formate, glycolate, oxalate, salicylateCationic immunoglobulins (IgG paraprotein), lithium
Three pairs of stacked bars. In each, a sodium bar stands beside a bar made of chloride, bicarbonate and the anion gap. In the first (normal anion gap) the gap is small. In HAGMA the bicarbonate segment shrinks and the gap segment grows while chloride is unchanged. In NAGMA the bicarbonate segment shrinks and the chloride segment grows while the gap stays the same size.
Gamblegram of the anion gap: sodium on one side, measured anions plus the gap on the other. In HAGMA the lost bicarbonate is replaced by unmeasured anions (the gap widens); in NAGMA it is replaced by chloride (the gap is unchanged).Image: Dr. Agnibho Mondal, CC BY-SA 4.0

When a strong acid (HA) is added to the blood, its H+ is buffered by bicarbonate and its anion (A−) stays behind. Bicarbonate falls, chloride does not change, and the anion gap rises by roughly the amount bicarbonate falls. When bicarbonate is instead lost (diarrhoea, renal tubular acidosis), the kidney retains chloride to keep neutrality — bicarbonate falls, chloride rises, and the gap stays normal. That single idea explains the whole HAGMA/NAGMA split.

Plasma anion gapAnimated overview of how the measured cations and anions give the plasma anion gap and what a high or normal gap means.Video: Osmosis from Elsevier · 10:00 · Watch on YouTube · Loads from YouTube (privacy-enhanced mode) only when you press play.

What is the anion gap formula, with and without potassium?

AG = Na⁺ − (Cl⁻ + HCO₃⁻)

The standard formula used in most laboratories and in NEET PG / INI-CET questions. Units: mEq/L (= mmol/L for these monovalent ions).

AG (with K⁺) = (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)

Potassium is often ignored because its plasma concentration is low and varies only by a few mEq/L. Including it raises the normal range by about 4 mEq/L.

Worked example: Na⁺ 138, Cl⁻ 100, HCO₃⁻ 14 mEq/L. AG = 138 − (100 + 14) = 24 mEq/L — a high anion gap metabolic acidosis. If the question also gives K⁺ 4.0 and asks for the gap ‘including potassium’, the answer becomes 28 mEq/L. Read the stem: most exam calculations expect the formula without potassium even when K⁺ is listed.

What is a normal anion gap, and why does the range vary?

Textbooks usually quote about 8–12 mEq/L (mean ~10) without potassium and about 12–16 mEq/L when potassium is included. These are teaching numbers, not universal truths. Each laboratory should set its own reference interval because sodium, chloride and bicarbonate are measured by different methods and calibrations; bicarbonate in particular is hard to harmonise between platforms, and small errors in three measured values add up in one calculated number.

Interpreting the anion gap (without K⁺) in practice
Anion gapInterpretation
< 8 mEq/L (below the lab's range)Low AG — check albumin first; then paraprotein, hypercalcaemia/hypermagnesaemia, lithium, bromide, or lab error
~8–12 mEq/LNormal (use the lab's own interval)
Above the upper limit (e.g. > 12–14)Look for an added acid; interpret with bicarbonate, albumin and clinical picture
> 20 mEq/LAlmost always a genuine high anion gap acidosis

A raised anion gap does not always mean acidaemia. A patient can have a high gap with a near-normal pH if a metabolic alkalosis (for example from vomiting) coexists — which is exactly why the gap should be calculated on every renal panel, not only when bicarbonate is low.

How do you correct the anion gap for low albumin?

Albumin is the largest unmeasured anion, so hypoalbuminaemia lowers the anion gap and can hide a high anion gap acidosis. This matters in exactly the patients who get acid-base questions: ICU sepsis, cirrhosis, nephrotic syndrome and malnutrition.

Corrected AG = measured AG + 2.5 × (normal albumin − measured albumin in g/dL)

Normal albumin is taken as 4.0 g/dL in some references and 4.5 g/dL in others. In SI units: corrected AG = AG + 0.25 × (40 − albumin in g/L).

Example: a septic patient has AG 11 mEq/L — apparently normal — but albumin 2.0 g/dL. Corrected AG = 11 + 2.5 × (4.0 − 2.0) = 16 mEq/L, a raised gap that should prompt a lactate level.

What causes a high anion gap metabolic acidosis (HAGMA)?

Every HAGMA means an acid with an unmeasured anion has been added — made by the body (lactate, ketones), retained by failing kidneys (sulphate, phosphate, other anions) or swallowed (toxic alcohols, salicylate).

Causes of HAGMA and the clue that points to each
CauseUnmeasured anionKey clue in a stem
Lactic acidosisL-lactateShock, sepsis, limb or bowel ischaemia, metformin, liver failure
Ketoacidosis — diabetic, alcoholic, starvationβ-hydroxybutyrate, acetoacetateType 1 diabetes, fruity breath, Kussmaul breathing; alcoholic binge with vomiting
Renal failure (advanced)Sulphate, phosphate and other retained anionsHigh urea/creatinine; early CKD is more often a normal-gap acidosis
MethanolFormateIllicit liquor (‘hooch’), blurred vision, optic nerve damage
Ethylene glycolGlycolate, oxalateAntifreeze, calcium oxalate crystals in urine, acute kidney injury
Salicylate poisoningSalicylate + lactate/ketoacidsEarly hyperventilation (respiratory alkalosis), then metabolic acidosis — often a mixed ABG
D-lactic acidosisD-lactate (not detected by routine lactate assay)Short bowel syndrome; routine (L-)lactate is normal
5-oxoproline (pyroglutamic acid)5-oxoprolinateChronic paracetamol use, especially in elderly patients
Other glycolsGlycolate, lactatePropylene glycol or diethylene glycol exposure

For suspected toxic alcohols, add the serum osmolal gap (measured minus calculated osmolality). Early after ingestion the unmetabolised alcohol raises the osmolal gap while the anion gap may still be normal; as it is converted to organic acids, the osmolal gap falls and the anion gap rises. Treatment blocks alcohol dehydrogenase with fomepizole (or ethanol), with haemodialysis in severe cases.

Calculated osmolality = 2 × Na⁺ + glucose (mg/dL) ÷ 18 + BUN (mg/dL) ÷ 2.8; Osmolal gap = measured − calculated

Ethanol also raises the osmolal gap (add ethanol mg/dL ÷ 4.6 if a level is known; some references use an empirical ÷ 3.7). Cut-offs for an ‘abnormal’ gap vary between references (commonly > 10, some use > 20 mOsm); a normal gap does not exclude a late presentation, when the alcohol has already been metabolised.

What causes a normal anion gap (hyperchloraemic) metabolic acidosis?

In NAGMA the problem is bicarbonate loss or chloride gain, so chloride rises as bicarbonate falls and the gap stays normal. It is therefore also called hyperchloraemic metabolic acidosis.

Causes of NAGMA grouped by mechanism
MechanismExamples
GI bicarbonate lossDiarrhoea (the commonest cause), pancreatic fistula, urinary diversion into bowel (e.g. ileal conduit)
Renal bicarbonate loss or failure of acid excretionRenal tubular acidosis (type 1 distal, type 2 proximal, type 4 hyperkalaemic), early CKD, carbonic anhydrase inhibitors (acetazolamide), hypoaldosteronism
Chloride loadLarge-volume 0.9% saline (154 mEq/L chloride) resuscitation
Rapid loss of organic anion in urineRecovery phase of diabetic ketoacidosis — ketoanions are excreted before bicarbonate is regenerated
CompensationRenal compensation for chronic respiratory alkalosis

How do the delta ratio and delta gap reveal mixed disorders?

In a pure HAGMA, each mEq of added acid consumes about one mEq of bicarbonate, so the rise in AG roughly equals the fall in HCO₃⁻. Comparing the two tells you whether a second metabolic process is hiding.

Delta ratio = (measured AG − 12) ÷ (24 − measured HCO₃⁻)

Delta gap = (AG − 12) − (24 − HCO₃⁻). A delta gap near zero corresponds to a delta ratio near 1.

Bar diagram in mEq/L with sodium 140 in every case. Normal: chloride 104, bicarbonate 24, anion gap 12. HAGMA: chloride 104, bicarbonate 12, anion gap 24. NAGMA: chloride 116, bicarbonate 12, anion gap 12.
The same idea with numbers (normal AG 12, HCO₃⁻ 24). In a pure HAGMA the gap rises by 12 as bicarbonate falls by 12, so the delta ratio is 1; in NAGMA chloride rises instead and the gap stays at 12.Image: Kinase, Kinase original
Interpreting the delta ratio (StatPearls bands)
Delta ratioMeaning
< 1Bicarbonate has fallen more than the AG rose — HAGMA + NAGMA (e.g. DKA with diarrhoea, or DKA on saline)
1–2Pure (uncomplicated) HAGMA
> 2Bicarbonate is higher than expected — HAGMA + metabolic alkalosis (e.g. ketoacidosis with vomiting)

These are the StatPearls bands, also used by our anion gap calculator. Some texts instead use a narrower 0.8–1.2 band for a pure HAGMA (with < 0.8 and > 1.2 for the mixed disorders), and lactic acidosis often runs a little above 1, so treat the bands as guides. Worked example: Na⁺ 130, Cl⁻ 66, HCO₃⁻ 18 in a vomiting patient. AG = 46; the gap rose by 34 but bicarbonate fell by only 6 → ratio ≈ 5.7 → a severe HAGMA (lactate) plus a metabolic alkalosis from vomiting, despite a deceptively mild bicarbonate.

What is the urine anion gap and when is it useful?

Urine AG = (urine Na⁺ + urine K⁺) − urine Cl⁻

Used only in a normal anion gap metabolic acidosis, as an indirect estimate of urinary ammonium (NH₄⁺) excretion — ammonium leaves the urine with chloride.

Urine anion gap in NAGMA
Urine AGWhat it impliesTypical cause
Negative (often −20 to −50)Kidneys are excreting plenty of NH₄⁺ — renal acidification intactGI bicarbonate loss (diarrhoea); proximal (type 2) RTA is not excluded
Positive despite acidosisAmmonium excretion is inappropriately lowDistal (type 1) RTA or type 4 RTA

What causes a low anion gap?

A low anion gap is uncommon and should first prompt a check of albumin and of the laboratory result itself. Genuine causes either add unmeasured cations or falsely raise measured chloride.

Causes of a low anion gap
MechanismExamples
Fewer unmeasured anionsHypoalbuminaemia — the most common cause (if the gap is not albumin-corrected)
More unmeasured cationsIgG multiple myeloma (cationic paraprotein), hypercalcaemia, hypermagnesaemia, lithium toxicity, polymyxin B
Falsely high chloride (pseudohyperchloraemia)Bromide or iodide-containing drugs (e.g. pyridostigmine bromide)
Laboratory errorFalsely high sodium or falsely low chloride/bicarbonate

How are anion gap questions framed in NEET PG and INI-CET? (Worked cases)

Recent papers have asked the anion gap in three ways: a pure calculation, a ‘which disorder’ question built on an ABG, and a ‘which cause gives a normal gap’ question. Working through recalled values shows the traps.

Worked cases built on recalled exam values
Values givenCalculationWhat the examiner wants
Na⁺ 130, Cl⁻ 84, HCO₃⁻ 16AG = 130 − 100 = 30A clearly raised gap — HAGMA. Distractors are usually the numbers you get by adding K⁺ or by subtracting wrongly.
Na⁺ 145, K⁺ 4.0, Cl⁻ 90, HCO₃⁻ 20 (CKD)AG = 145 − 110 = 35 (without K⁺)Use the standard formula even though K⁺ is listed. Bonus: delta ratio = 23 ÷ 4 ≈ 5.8, so a metabolic alkalosis is hiding behind the HAGMA.
Glucose 450 mg/dL, pH 7.31, Na⁺ 135, Cl⁻ 92, HCO₃⁻ 20AG = 135 − 112 = 23HAGMA from diabetic ketoacidosis — even though bicarbonate is only mildly low.
Profuse diarrhoea vs DKA vs AKI vs lactic acidosis—Diarrhoea is the normal-gap cause; the others add unmeasured anions.
‘Hooch’ (illicit liquor) with visual blurring—Methanol → formic acid → HAGMA with a raised osmolal gap; treat with fomepizole or ethanol ± dialysis.

Clinical vignettes also pair the anion gap with signs from other systems: Kussmaul breathing and fruity breath (ketoacidosis), visual loss after country liquor (methanol), oxalate crystals and acute kidney injury (ethylene glycol), hypercalcaemia with anaemia and a very low gap (myeloma), and hypokalaemia with kidney stones and alkaline urine (distal RTA). Recognising the pattern often gives the answer before any arithmetic.

Where does the anion gap fit in a stepwise ABG approach?

  1. Check the numbers are consistent (Henderson–Hasselbalch: pH ≈ 6.1 + log [HCO₃⁻ ÷ (0.03 × PaCO₂)]).
  2. Acidaemia or alkalaemia? pH below or above 7.40 (normal 7.35–7.45).
  3. Primary process? Low HCO₃⁻ with low pH = metabolic acidosis.
  4. Is compensation appropriate? Expected PaCO₂ = 1.5 × HCO₃⁻ + 8 ± 2 (Winter's formula) — see Kussmaul breathing.
  5. Calculate the anion gap and correct it for albumin.
  6. If the gap is high, calculate the delta ratio to find a hidden NAGMA or metabolic alkalosis.
  7. Add the osmolal gap when a toxic alcohol is possible; use the urine AG when the gap is normal.
  8. Match the result to the clinical story — lactate, ketones, creatinine, drugs, GI losses.
Acid-base nomogram with arterial pH (7.0 to 7.8) on the horizontal axis, plasma bicarbonate (0 to 60 mmol/L) on the vertical axis and curved PaCO₂ isopleths from 10 to 120 mmHg. Shaded bands mark metabolic acidosis, metabolic alkalosis, acute and chronic respiratory acidosis, and acute and chronic respiratory alkalosis around a central normal zone.
An acid-base nomogram plots pH against bicarbonate with PaCO₂ lines. A result inside one shaded band fits a single disorder with the expected compensation; a point outside the bands suggests a mixed disorder. Use it as a visual check alongside Winter's formula, not instead of it.Image: Huckfinne, Public domain
ABG Interpretation | Understanding Arterial Blood Gas Analysis - OSCE Guide | UKMLA | CPSA | PLAB 2A step-by-step ABG reading routine — pH, primary disorder, compensation — the same order used in the stepwise approach above.Video: Geeky Medics · 10:28 · Watch on YouTube · Loads from YouTube (privacy-enhanced mode) only when you press play.

Work it out with the Anion Gap calculator

Enter the values and see each step of the calculation.

Open calculator

How it's asked in NEET PG & INI-CET

Previous-year questions on this concept, recalled from past papers. Pick an option to check your answer.

Q1Asked in NEETPG 2025

A 45-year-old male presents with electrolyte disturbances. His laboratory values are: Sodium (Na+) = 130 mmol/L, Chloride (Cl-) = 84 mmol/L, and Bicarbonate (HCO3-) = 16 mmol/L. Calculate the anion gap for this patient.

Tap an option to check your answer.

Q2Asked in INICET 2024 - 1

A 22-year-old male presents to the emergency department with severe abdominal pain, nausea, and recurrent vomiting. Initial laboratory investigations reveal a markedly elevated blood glucose level of 450 mg/dL. An arterial blood gas (ABG) and basic metabolic panel show the following values: pH 7.31, HCO3- 20 mEq/L, Na+ 135 mEq/L, K+ 5.0 mEq/L, and Cl- 92 mEq/L. Based on these laboratory findings, what is the primary acid-base disturbance?

Tap an option to check your answer.

Q3Asked in INICET 2024 - 2

A 45-year-old patient presents with a primary metabolic acidosis. The physician calculates the serum anion gap to determine the underlying etiology. Which of the following conditions is classically associated with a normal anion gap metabolic acidosis (NAGMA) rather than a high anion gap metabolic acidosis (HAGMA)?

Tap an option to check your answer.

Q4Asked in INICET 2023 - 1

A 58-year-old male with a history of chronic kidney disease presents for a routine follow-up. His basic metabolic panel reveals the following serum values: Sodium (Na+) of 145 mEq/L, Potassium (K+) of 4.0 mEq/L, Chloride (Cl-) of 90 mEq/L, and Bicarbonate (HCO3-) of 20 mEq/L. Based on these laboratory results, what is the calculated serum anion gap for this patient?

Tap an option to check your answer.

Q5Asked in INICET 2022 (May & November)

Which of the following acid-base / electrolyte abnormalities is characteristic of methanol intoxication?

Tap an option to check your answer.

Practice questions

Free practice MCQs from the Kinase question bank. Attempt each one to see the correct answer; full explanations are in the app.

Q6Asked in INICET 2022 (May & November)

An elevated anion gap is most characteristic of which acid-base disorder?

Tap an option to check your answer.

Q7

A 35-year-old woman presents with recurrent episodes of muscle weakness and fatigue for 6 months. She has a history of recurrent kidney stones. Laboratory investigations reveal:

• Serum sodium: 140 mEq/L

• Serum potassium: 2.8 mEq/L

• Serum chloride: 115 mEq/L

• Serum bicarbonate: 15 mEq/L

• Arterial pH: 7.28

• Urine pH: 6.8

• Serum creatinine: 0.9 mg/dL

Urine anion gap is positive. What is the most likely diagnosis?

Tap an option to check your answer.

Q8

A 35-year-old woman with Sjögren syndrome presents with recurrent renal calculi and bone pain. Labs show pH 7.28, HCO₃⁻ 12 mEq/L, K⁺ 2.8 mEq/L, Cl⁻ 118 mEq/L, and normal anion gap. Urine pH is persistently 6.8 despite systemic acidosis. Renal ultrasound shows bilateral medullary nephrocalcinosis. Which of the following confirms this specific type of RTA?

Tap an option to check your answer.

Q9

A patient presents with anion gap metabolic acidosis and urine microscopy revealing calcium oxalate monohydrate crystals. Which specific pharmacological mechanism represents the primary definitive treatment for this toxidrome?

Tap an option to check your answer.

Q10

A 45-year-old man is brought to the emergency department 24 hours after consuming illicit liquor at a local gathering. He complains of severe headache, blurred vision, and abdominal pain. On examination, he is confused with rapid deep breathing. Investigations reveal:

• pH: 7.15

• HCO3-: 8 mEq/L

• Serum osmolality: 320 mOsm/kg (calculated: 285 mOsm/kg)

• Anion gap: 28 mEq/L

What is the most appropriate treatment?

Tap an option to check your answer.

Q11

A 40-year-old man is brought to the emergency department with a severe headache, intractable vomiting, and progressive blurring of vision. History reveals he recently consumed illicitly distilled liquor at a party. Arterial blood gas analysis demonstrates a profound high-anion-gap metabolic acidosis. Which of the following is the most appropriate specific pharmacological treatment for this patient's condition?

Tap an option to check your answer.

Practise more in the Kinase app

Subject-wise QBank, previous-year papers and Grand Tests with detailed explanations.

Frequently asked questions

What is the formula for the anion gap?
The standard formula is anion gap = Na⁺ − (Cl⁻ + HCO₃⁻). If potassium is included it becomes (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻), which raises the normal value by about 4 mEq/L. Most laboratories and most NEET PG and INI-CET questions use the version without potassium, even when a potassium value appears in the stem.
What is the normal range of the anion gap?
Teaching texts quote about 8–12 mEq/L without potassium (mean around 10) and about 12–16 mEq/L with potassium. Reference intervals vary between laboratories because sodium, chloride and bicarbonate are measured by different methods, so a local range should be used. A gap above 20 mEq/L almost always reflects a real high anion gap acidosis.
Why do we correct the anion gap for albumin?
Albumin is the main unmeasured anion, so a low albumin lowers the anion gap and can hide an added acid such as lactate. The usual correction adds 2.5 mEq/L for every 1 g/dL that albumin is below normal (4.0 or 4.5 g/dL depending on the reference). This matters in septic, cirrhotic, nephrotic and malnourished patients.
What is the difference between HAGMA and NAGMA?
In high anion gap metabolic acidosis an acid with an unmeasured anion is added, such as lactate, ketoacids, formate from methanol or uraemic anions, so the gap rises. In normal anion gap metabolic acidosis bicarbonate is lost or chloride is gained, as in diarrhoea, renal tubular acidosis or large-volume saline, so chloride rises and the gap stays normal.
What does the delta ratio tell you?
The delta ratio compares the rise in anion gap with the fall in bicarbonate: (AG − 12) ÷ (24 − HCO₃⁻). Using the StatPearls bands, a value of 1–2 suggests a pure high anion gap acidosis. Below 1 suggests an added normal-gap acidosis, and above 2 suggests an added metabolic alkalosis, such as ketoacidosis with vomiting. Some texts use a narrower 0.8–1.2 band for a pure high anion gap acidosis.
How does the urine anion gap distinguish diarrhoea from renal tubular acidosis?
The urine anion gap, (Na⁺ + K⁺) − Cl⁻ in urine, estimates ammonium excretion in a normal anion gap acidosis. In diarrhoea the kidneys excrete lots of ammonium chloride, so the gap is negative. In distal (type 1) or type 4 renal tubular acidosis ammonium excretion is impaired, so the gap stays positive. It is unreliable when urine pH exceeds about 6.5.
What causes a low anion gap?
The commonest cause is hypoalbuminaemia. Genuine low gaps also occur with extra unmeasured cations — IgG multiple myeloma, severe hypercalcaemia or hypermagnesaemia, and lithium toxicity — and with bromide or iodide drugs that falsely raise measured chloride. Laboratory error should always be excluded before interpreting a very low or negative gap.

Sources

  1. The anion gap: basic chemistry, powerful clinical implications (Singapore Med J 2026, PMC)
  2. Understanding Acid-Base Disorders (Ulster Med J 2017, PMC)
  3. Breathing and balance: respiratory acid-base disorders — stepwise ABG approach and delta ratio (Nutr Clin Pract 2025, PMC)
  4. Approach to Renal Tubular Acidosis — A Review (Indian J Endocrinol Metab 2026, PMC)
  5. The Urine Anion Gap: Common Misconceptions (J Am Soc Nephrol 2021, PMC)
  6. The Diagnosis and Management of Toxic Alcohol Poisoning in the Emergency Department (Adv J Emerg Med 2019, PMC)
  7. Kitabchi AE et al. Hyperglycemic Crises in Adult Patients With Diabetes — ADA consensus (Diabetes Care 2009, PMC)

For exam preparation and education only — not a substitute for clinical judgement or local guidelines. How we write and review these pages: editorial policy.

Revise Anion Gap with questions

Kinase: NEET-PG & INICET has previous-year papers, a subject-wise QBank and Grand Tests with explanations — on Android, iOS and the web.