Skip to main content
MedMaths medical maths calculatorsMedMaths
HomeCalculatorsSpecialtiesLearnGuidesResearchersAbout
SpecialtiesAll calculators
Home/Lab Corrections/Anion Gap

Anion Gap Calculator

Lab corrections

What is the anion gap?

Enter sodium, chloride and bicarbonate/total CO₂. Add albumin only if you want the optional albumin-adjusted estimate.

mmol/L / mEq/L

Enter the measured serum sodium. For Na⁺, mmol/L and mEq/L are numerically equivalent.

mmol/L / mEq/L

Enter the measured serum chloride. For Cl⁻, mmol/L and mEq/L are numerically equivalent.

mmol/L / mEq/L

Use the chemistry-panel bicarbonate/total CO₂ term used by your laboratory. Avoid mixing chemistry and blood-gas values without clinical context.

Albumin correction

Choose whether to calculate the standard anion gap alone or also show an optional albumin-adjusted estimate.

Use values from the same laboratory time point

The anion gap is calculated from measured electrolytes. If albumin correction is selected, use an albumin result from the same clinical context whenever possible.

Simple answer

How do you calculate the standard anion gap?

Subtract chloride plus bicarbonate from sodium using the potassium-free equation used by this calculator.

AG = Na⁺ − (Cl⁻ + HCO₃⁻)
Example: Na 140, Cl 104 and HCO₃ 24 gives 140 − (104 + 24) = 12 mmol/L.

This is the standard potassium-free anion gap calculated by MedMaths.

Simple answer

How do you calculate the optional albumin-adjusted anion gap?

When albumin adjustment is selected, MedMaths applies a common albumin-correction estimate to the standard anion gap.

Adjusted AG = AG + 2.5 × (4.0 − albumin in g/dL)
Example: AG 12 with albumin 2.0 g/dL gives 12 + 2.5 × (4.0 − 2.0) = 17 mmol/L.

Albumin adjustment is an estimate, not a universal laboratory standard. Keep the standard anion gap and measured albumin visible.

Use the laboratory's own reference interval

Anion-gap reference intervals vary with laboratory methods and equation conventions. Do not treat one universal cutoff as a substitute for the local laboratory range or full acid-base assessment.

Clinical use and safety

When to use this calculator — and its limits

The arithmetic can be correct while the clinical decision is still wrong. These boundaries show what the calculator can and cannot establish.

When to use

  • Use when you need the standard potassium-free serum/plasma anion gap from sodium, chloride and bicarbonate/total CO₂ values obtained from the same clinical time point where possible.
  • Compare the calculated gap with the reference interval used by the reporting laboratory and the same equation convention; a potassium-inclusive equation produces a different numerical result.
  • Use the optional albumin-adjusted value only as a secondary estimate when the clinical source or local practice specifically uses an albumin correction.

Key limitations

  • There is no universal normal anion-gap cutoff. Reference intervals depend on analyser method, laboratory calibration, population, and whether potassium is included; contemporary studies continue to show method-dependent ranges.
  • The anion gap is a calculated clue within acid-base assessment, not a direct measurement of unmeasured acids. A normal gap does not exclude clinically important acidosis or a mixed acid-base disorder. A normal anion gap also does not exclude elevated lactate; measure lactate directly when clinically indicated.
  • Hypoalbuminaemia lowers the observed gap. Figge and colleagues quantified an albumin effect, but albumin-adjustment formulas remain debated; a 2022 review concluded that routine correction has no proven clinical advantage and may increase misinterpretation or error.
  • The optional MedMaths albumin correction uses 2.5 mmol/L per 1 g/dL albumin difference with a 4.0 g/dL reference. That reference baseline is not a universal laboratory standard.
  • Unexpected low or negative gaps should first prompt a check of the original values and laboratory process when appropriate. Hypoalbuminaemia, lithium or other unmeasured cations, positively charged monoclonal proteins, and some chloride or sodium measurement interferences can also lower the calculated gap.
  • In suspected or treated diabetic ketoacidosis, use current DKA criteria and direct ketone measurement where available. The anion gap is not recommended as a first-line diagnostic or resolution criterion, and gap normalisation alone should not be used to declare DKA resolved.

What MedMaths does not decide

  • Whether metabolic acidosis or another acid-base disorder is present; pH, bicarbonate/total CO₂, blood-gas findings and the clinical context still matter.
  • The cause of an increased, normal or low anion gap, including whether lactate, ketones, renal acids, toxins or another process is responsible; a normal gap does not rule out hyperlactataemia.
  • Whether albumin correction should be used by a particular laboratory or clinical service.
  • Treatment, toxicology management, fluid therapy, bicarbonate therapy or the need for direct lactate, beta-hydroxybutyrate, toxic alcohol or other testing.
  • Whether diabetic ketoacidosis is present or resolved; current DKA diagnosis and monitoring use diabetes/hyperglycaemia, ketosis and acid-base criteria rather than the anion gap alone.

Evidence and method checks

  • Serum anion gap revisited: a verified reference interval for contemporary use — Internal Medicine Journal / PubMed
  • Anion gap and hypoalbuminemia — Critical Care Medicine / PubMed
  • Anion gap physiology and faults of the correction formula — American Journal of Health-System Pharmacy / PubMed
  • Harmonising Reference Intervals for Three Calculated Parameters used in Clinical Chemistry — Clinical Biochemist Reviews / PubMed Central
  • Hyperglycemic Crises in Adults With Diabetes: A Consensus Report — ADA / Diabetes Care / PubMed Central
  • Diabetes Care in the Hospital: Standards of Care in Diabetes—2026 — American Diabetes Association
  • Evaluating a low anion gap: A practical approach — Cleveland Clinic Journal of Medicine
  • Validity of anion gap as a screening tool for hyperlactatemia: systematic review and meta-analysis — BMC Research Notes / PubMed Central
  • Albumin, Serum — reference values in g/dL — Mayo Clinic Laboratories
  • Albumin — reference interval reported in g/L — Royal College of Pathologists of Australasia

Formula logic and known-value examples are checked as part of the MedMaths review process.

See how MedMaths checks calculator methods →

Calculate here

Use this page for the potassium-free anion-gap arithmetic and the optional albumin-adjusted estimate. Compare the result with the reporting laboratory's own reference interval.

Need to interpret the result?

High-gap causes, GOLDMARK, normal-gap acidosis, low/negative gaps and broader clinical interpretation belong in the dedicated Guide.

Read the anion gap interpretation Guide →

Formula, examples and common questions

Review the exact equation convention, albumin-adjustment evidence, two worked examples, common input mistakes and focused FAQs.

Anion gap formula and conventions

Standard potassium-free anion gap

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

In simple words

This is the equation used by MedMaths. For sodium, chloride and bicarbonate, mmol/L and mEq/L are numerically equivalent because these ions are monovalent.

Na⁺
= measured serum/plasma sodium
Cl⁻
= measured serum/plasma chloride
HCO₃⁻
= the bicarbonate/total CO₂ term used by the reporting laboratory
AG
= calculated potassium-free anion gap

Optional albumin-adjusted estimate

Adjusted AG = AG + 2.5 × (4.0 − albumin g/dL)

James J. Figge and colleagues quantified an albumin effect of about 2.5 mEq/L per 1 g/dL. MedMaths uses a common 4.0 g/dL reference baseline, but that baseline and routine use of correction are not universal standards.

Potassium-inclusive convention

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

Some laboratories and references include potassium. That produces a different number, so the reference interval must match the equation convention.

Albumin adjustment is optional: the 1998 Figge study supports the albumin relationship, while a 2022 peer-reviewed review argued that routine correction offers no proven clinical advantage and may increase error. Keep the standard gap and measured albumin visible.

Worked examples

Two examples cover the standard calculation and the optional albumin-adjusted estimate.

Example 1 — standard potassium-free anion gap

  1. Na = 140, Cl = 104, HCO₃ = 24 mmol/L
  2. AG = 140 − (104 + 24)
  3. AG = 12 mmol/L
  4. Compare 12 with the reference interval from the same laboratory and equation convention.

Example 2 — optional albumin adjustment

  1. Standard AG = 12 mmol/L, albumin = 2.0 g/dL
  2. Adjustment = 2.5 × (4.0 − 2.0) = 5
  3. Albumin-adjusted estimate = 17 mmol/L
  4. Keep the standard AG of 12 and measured albumin of 2.0 g/dL visible alongside the estimate.

Common anion-gap calculation mistakes

Using a universal normal range

Reference intervals differ by laboratory, analyser and equation convention. Use the interval reported with the patient's results.

Mixing potassium conventions

MedMaths excludes potassium. Do not compare a potassium-free result with a potassium-inclusive reference interval.

Mixing chemistry and blood-gas values

Chemistry-panel total CO₂ and blood-gas calculated bicarbonate are not automatically interchangeable. Use the convention your laboratory uses for its anion gap.

Mixing different time points

Sodium, chloride, bicarbonate/total CO₂ and albumin can change during treatment. Use contemporaneous values where possible.

Treating the adjusted value as a measured test

Albumin-adjusted AG is a calculated estimate. Keep the standard AG and actual albumin visible.

Entering albumin in the wrong unit

Albumin can be reported as g/dL or g/L, a 10-fold scale difference. Select the unit shown on the laboratory report; MedMaths will warn rather than silently guess when the value strongly resembles the other unit scale.

Frequently Asked Questions

Calculation method

The potassium-free anion gap is standard clinical arithmetic: sodium minus chloride plus bicarbonate. MedMaths does not attribute that arithmetic to a single inventor. The optional albumin adjustment uses the widely cited 2.5 mmol/L per 1 g/dL albumin relationship quantified by Figge and colleagues in 1998, with a common 4.0 g/dL reference baseline. The reporting laboratory's own anion-gap convention and reference interval remain authoritative.

Supporting references

  • Clinical use of the anion gap — Medicine / PubMed
  • Anion gap and hypoalbuminemia — Critical Care Medicine / PubMed
  • The serum anion gap. Has the reference interval really fallen? — Archives of Pathology & Laboratory Medicine / PubMed
  • Serum anion gap revisited: a verified reference interval for contemporary use — Internal Medicine Journal / PubMed
  • Anion gap physiology and faults of the correction formula — American Journal of Health-System Pharmacy / PubMed
  • Approach to Patients With High Anion Gap Metabolic Acidosis: Core Curriculum 2021 — American Journal of Kidney Diseases / PubMed
  • GOLD MARK: an anion gap mnemonic for the 21st century — Lancet / PubMed

Safety and quality guidance

  • Hyperglycemic Crises in Adults With Diabetes: A Consensus Report — ADA / Diabetes Care / PubMed Central
  • Diabetes Care in the Hospital: Standards of Care in Diabetes—2026 — American Diabetes Association
  • Evaluating a low anion gap: A practical approach — Cleveland Clinic Journal of Medicine
  • Validity of anion gap as a screening tool for hyperlactatemia: systematic review and meta-analysis — BMC Research Notes / PubMed Central

Continue calculating

Related lab and renal calculators

Use these calculators when interpreting acid-base status or related laboratory results.

Corrected Calcium Calculator

Calculate the commonly used simplified albumin-adjusted calcium estimate with current evidence limitations.

Open calculator

eGFR Calculator (CKD-EPI 2021)

Calculate the modern race-free 2021 CKD-EPI eGFR, with optional cystatin C and BSA adjustment.

Open calculator

Creatinine Clearance Calculator

Calculate adult Cockcroft-Gault CrCl when a medicine label, protocol or exam specifically requires this method.

Open calculator

mg/kg to mL Dose Calculator

Calculate mg/kg per-dose or per-day orders using kg or lb, divided doses, and liquid concentration.

Open calculator

Corrected Sodium Calculator

Adjust serum sodium for hyperglycaemia using the Katz or Hillier correction formula.

Open calculator

Serum Osmolality Calculator

Calculate serum osmolality from sodium, glucose and urea, with optional osmol gap calculation.

Open calculator

Authorship and review

Clear authorship, review timing, and limits of use.

Written and reviewed byGeorge Lambroglou, RNReviewed 28 August 2026
This calculator provides arithmetic support only. Interpret the anion gap with the reporting laboratory’s reference interval, albumin where relevant, and the full acid-base picture.
Editorial policy Medical disclaimer Report an issue

References and sources

Open the source material for anion-gap interpretation, albumin adjustment, unit handling, DKA and key safety limitations.

Albumin adjustment evidence

Figge J, Jabor A, Kazda A, Fencl V. Anion gap and hypoalbuminemia. Crit Care Med. 1998;26(11):1807–1810.

PubMed PMID 9824071James J. Figge researcher profile

Anion gap framework

Emmett M, Narins RG. Clinical use of the anion gap. Medicine. 1977;56(1):38–54.

PubMed PMID 401925

Laboratory-specific reference intervals

Roberts WL, Johnson RD. The serum anion gap. Has the reference interval really fallen? Arch Pathol Lab Med. 1997;121(6):568–572.

PubMed PMID 9199620

Contemporary reference interval study

Chionh CYC, et al. Serum anion gap revisited: a verified reference interval for contemporary use. Intern Med J. 2022;52(9):1531–1537.

PubMed PMID 34028972

Total CO₂ and blood-gas bicarbonate

Goldwasser P, Manjappa NG, Luhrs CA, Barth RH. Pseudohypobicarbonatemia caused by an endogenous assay interferent: a new entity. Am J Kidney Dis. 2011.

PubMed PMID 21849226

Albumin unit scales

Albumin is commonly reported in g/dL in U.S. laboratory material and in g/L in Australian laboratory material. The units differ by a factor of 10, so MedMaths requires the selected unit to match the laboratory report and does not silently infer a conversion.

Mayo Clinic Laboratories — g/dL reference valuesRCPA — g/L reference interval

Current DKA diagnostic and monitoring guidance

Umpierrez GE, et al. Hyperglycemic Crises in Adults With Diabetes: A Consensus Report. Diabetes Care. 2024;47(8):1257–1275. doi:10.2337/dci24-0032.

Open-access consensus reportPubMed PMID 39052901

ADA Standards of Care in Diabetes—2026

American Diabetes Association Professional Practice Committee. Diabetes Care in the Hospital: Standards of Care in Diabetes—2026. Diabetes Care. 2026;49(Suppl 1).

ADA 2026 hospital-care standard

Low or negative anion gap

Haber LA, Dhaliwal G, Lo L, Rizzuto G. Evaluating a low anion gap: A practical approach. Cleve Clin J Med. 2023;90(10):619–623. doi:10.3949/ccjm.90a.23035.

Cleveland Clinic Journal of Medicine

High-gap metabolic acidosis and GOLDMARK

Fenves AZ, Emmett M. Approach to Patients With High Anion Gap Metabolic Acidosis: Core Curriculum 2021. Am J Kidney Dis. 2021;78(4):590–600. Mehta AN, Emmett JB, Emmett M. GOLD MARK: an anion gap mnemonic for the 21st century. Lancet. 2008;372:892.

AJKD Core Curriculum PMID 34400023GOLDMARK PMID 18790311

Anion gap is not a substitute for lactate

Glasmacher SA, Stones W. A systematic review and diagnostic test accuracy meta-analysis of the validity of anion gap as a screening tool for hyperlactatemia. BMC Res Notes. 2017;10:556. doi:10.1186/s13104-017-2853-9.

Open-access systematic review

Product

  • Calculators
  • Specialties
  • Learn & Practice

Legal

  • Privacy Policy
  • Terms of Service
  • Medical Disclaimer
  • Cookie Policy

Information

  • About Us
  • Formula History
  • Guides
  • Educator Resources
  • Methodology
  • Contact
  • Editorial Policy

Data Protection

  • Calculator inputs processed locally
  • Not stored by us
  • Formula references included
MedMaths

© 2026 MedMaths. All rights reserved.

Contact us: medmaths.calc@gmail.com

For a serious or urgent emergency, call your local emergency number or attend the nearest emergency department.

MedMaths is not a substitute for professional medical advice, diagnosis, or treatment.