Skip to main content
Home › Calculators › Anion Gap
Laboratory · Acid-Base Analysis

Anion Gap
Calculator

⚕️

Important Notice Before Use

Last reviewed: March 2026

This is an educational reference tool only. Acid-base interpretation requires integration with the full clinical picture, blood gas results, and clinical context.

The default normal AG of 12 mmol/L is a historical value. Many modern analysers report a lower reference range (6–10 mmol/L without K). Always verify your laboratory's specific reference range before interpreting results.

Best Anion Gap Calculator in 2026

ReferenceJan 9, 20265 min read
Published · Jan 9, 2026
Updated · Sep 7, 2026
§
Content blocks
5 blocks
?
FAQs
6 questions
#
References
5 sources
✓
Published
Jan 9, 2026
Sourced Content
Reference
Free to Read
Category
Reference
Topic
Reading Time
5 min read
Estimated read
Content
5
Visible blocks
FAQs
6
Common questions
⚠ Notice
⚠️ Important Disclaimer
This tool calculates the anion gap and related indices for educational reference only. Interpretation must be made in the context of the complete clinical and laboratory picture. Reference ranges for anion gap vary between laboratories — always confirm the normal range used by your institution before applying these results clinically.

What Is the Anion Gap?

The anion gap (AG) is a calculated value derived from routine electrolyte measurements — sodium, chloride, and bicarbonate. It represents the difference between the measured cations and measured anions in serum, reflecting the concentration of unmeasured anions such as albumin, phosphate, sulphate, and organic acids.

In clinical practice, the anion gap is used primarily to classify metabolic acidosis. An elevated AG points to the accumulation of an unmeasured acid (e.g., lactate, ketoacids, toxins), while a normal AG suggests a different pathophysiological mechanism (e.g., renal tubular acidosis, diarrhoea).

The most useful mnemonic for causes of high-AG metabolic acidosis is MUDPILES: Methanol, Uraemia, Diabetic ketoacidosis (DKA), Propylene glycol / Paracetamol, Isoniazid / Iron, Lactic acidosis, Ethylene glycol, Salicylates.

Anion Gap Formulas

The standard anion gap calculation and its albumin correction are computed using well-established formulas.

01
Standard Anion Gap: AG = Na⁺ − (Cl⁻ + HCO₃⁻). Normal range is approximately 8–12 mEq/L (some laboratories report up to 16 mEq/L with older methodology — confirm your lab's reference range).
02
AG with potassium (older formula): AG = (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻). This is rarely used today; confirm whether your institution uses K⁺ in the calculation.
03
Albumin-corrected AG: Corrected AG = Measured AG + 2.5 × (4.0 − Albumin g/dL). Hypoalbuminaemia lowers the AG, masking a true high-gap acidosis. Correcting for albumin is essential when albumin is below the normal reference range.

How the Anion Gap Calculator Works

Enter the patient's serum sodium (Na⁺), chloride (Cl⁻), and bicarbonate (HCO₃⁻) in mmol/L. Optionally add potassium (K⁺) to compute the AG with K⁺, and albumin (g/dL) to generate the albumin-corrected AG.

The calculator also accepts glucose and BUN (blood urea nitrogen) to compute the osmolal gap (when serum osmolality is available) — an additional tool for detecting occult toxins such as methanol and ethylene glycol.

Physiological plausibility validation is applied to all inputs. Values falling outside expected clinical ranges (e.g., sodium below 100 or above 180 mmol/L) trigger inline field-level warnings, reducing the risk of transcription errors entering the calculation silently.

Results are displayed with interpretation guidance: an AG below 8 mEq/L prompts consideration of hypoalbuminaemia and reduced unmeasured anions; an AG above 12 mEq/L (or the lab's upper limit) suggests a high-gap acidosis requiring further investigation of the MUDPILES causes.

Session history records all calculations with timestamps and supports CSV export for documentation in clinical notes.

Interpreting the Anion Gap

Normal AG (8–12 mEq/L) in a patient with metabolic acidosis suggests a hyperchloraemic (non-gap) metabolic acidosis. Common causes include: renal tubular acidosis (RTA), diarrhoea (loss of bicarbonate), ureteral diversion, and saline administration.

Elevated AG (>12 mEq/L) indicates accumulation of unmeasured acids. The MUDPILES mnemonic covers the major causes. Lactic acidosis (from sepsis, hypoperfusion, or metformin toxicity) and diabetic ketoacidosis are the most common in clinical practice.

Low AG (<6 mEq/L) should prompt measurement or verification of albumin, as hypoalbuminaemia is by far the most common reason for an unexpectedly low gap. A low albumin 'masks' the gap — the corrected AG is typically normal or elevated.

The delta-delta ratio ((AG − 12) ÷ (24 − HCO₃)) is a secondary calculation used to detect a mixed high-gap and non-gap acidosis, or a concurrent metabolic alkalosis, in patients with an elevated AG. A ratio below 1 suggests a co-existing non-gap process; above 2 suggests a concurrent metabolic alkalosis.

The Osmolal Gap

The osmolal gap is the difference between the measured serum osmolality and the calculated osmolality. Calculated osmolality = 2 × Na⁺ + Glucose (mmol/L) + Urea (mmol/L), or in US units: 2 × Na⁺ + [Glucose (mg/dL) ÷ 18] + [BUN (mg/dL) ÷ 2.8].

A gap above 10–20 mOsm/kg suggests the presence of an unmeasured osmotically active substance, most importantly: ethanol, methanol, ethylene glycol, isopropanol, or propylene glycol. A normal osmolal gap does not exclude methanol or ethylene glycol toxicity in the late stages when the parent alcohol has been metabolised.

Reference Data

Anion Gap Interpretation Reference

Standard clinical interpretation guide for anion gap and albumin-corrected anion gap. Always confirm your institution's reference range, as values vary by methodology.

Anion Gap (mEq/L)InterpretationCommon Causes
<6 mEq/LLow AGHypoalbuminaemia, multiple myeloma, lithium toxicity
6–8 mEq/LLow-normal AGMay still indicate mild hypoalbuminaemia — check albumin
8–12 mEq/LNormal AGNormal, or non-gap metabolic acidosis (RTA, diarrhoea)
12–20 mEq/LMildly elevatedEarly high-gap acidosis, DKA, mild lactic acidosis
20–30 mEq/LModerately elevatedSignificant DKA, lactic acidosis, renal failure
>30 mEq/LMarkedly elevatedSevere lactic acidosis, toxic alcohol ingestion, salicylates
Q&A

Frequently Asked Questions

Bibliography

References

1
Emmett M, Narins RG. (1977). Clinical use of the anion gap. Medicine (Baltimore), 56(1), 38–54.
2
Figge J, Jabor A, Kazda A, Fencl V. (1998). Anion gap and hypoalbuminemia. Critical Care Medicine, 26(11), 1807–1810.
4
Rastegar A. (2007). Use of the DeltaAG/DeltaHCO₃ ratio in the diagnosis of mixed acid-base disorders. Journal of the American Society of Nephrology.
5
Reddi AS. (2014). Fluid, Electrolyte and Acid-Base Disorders: Clinical Evaluation and Management. Springer.
Need assistance?
Questions or a correction? Contact BestMedCal

Keep calculating

About the author

Usman Shaoukat is the founder and editor of BestMedCal. He is a computer and web specialist who researches every BestMedCal tool from published standards and medication-safety references, including NIST, the U.S. FDA, NCBI and the American Academy of Pediatrics. His focus is dose-to-volume calculations and unit conversions. Every formula and worked example is checked against the sources listed on each page. BestMedCal has no clinicians on staff: our tools check arithmetic and explain methods; they do not recommend doses. If you spot an error, contact us and we will review it.

Read more about the author →Contact