# Serum Anion Gap (AG) Calculator

Calculate the serum Anion Gap (AG) to classify metabolic acidosis. Standard formula AG = Na⁺ − Cl⁻ − HCO₃⁻ (mmol/L), or AG = Na⁺ + K⁺ − Cl⁻ − HCO₃⁻ with optional potassium. A high AG (≈ >12, or >20 with K⁺) indicates accumulation of unmeasured anions (lactic acidosis, ketoacidosis, renal failure, and toxins such as methanol/ethylene glycol, salicylates — mnemonic GOLD-MARK). A normal AG (8–12) during metabolic acidosis points to a hyperchloremic (normal-anion-gap) acidosis: diarrhea, renal tubular acidosis, saline resuscitation. A low AG (<3–6) is usually hypoalbuminemia, also hypercalcemia/hypermagnesemia, lithium, cationic IgG paraproteins, or bromide pseudo-hyperchloraemia. Optional albumin correction AG_corrected = AG + 2.5 × (4.0 − albumin g/dL) avoids missing a high-AG acidosis in hypoalbuminemia. Derived from Kraut CJASN 2007, Figge 1998, and MDCalc. Interpret with blood gas and full clinical context. Not medical advice.

> Canonical page: https://elysiatools.com/en/tools/anion-gap-calculator

- **Category:** Health

- **Keywords:** anion gap, serum anion gap, AG, metabolic acidosis, HAGMA, NAGMA, hyperchloremic acidosis, lactic acidosis, ketoacidosis, albumin correction, electrolytes, nephrology

## Overview

The Serum Anion Gap (AG) Calculator uses sodium, chloride, and bicarbonate values to calculate the anion gap and classify metabolic acidosis. You can optionally include potassium and albumin correction for hypoalbuminemia. Results are reported in mmol/L and should be interpreted with blood gas findings and the full clinical context.

## Inputs

- **Include Potassium K⁺** (checkbox): Use AG = Na⁺ + K⁺ − Cl⁻ − HCO₃⁻. Reference range shifts up to roughly 10–20 mmol/L.
- **Serum Sodium Na⁺ (mmol/L)** (number): Serum sodium (mmol/L). Physiologic range ~120–160.
- **Serum Chloride Cl⁻ (mmol/L)** (number): Serum chloride (mmol/L). Physiologic range ~80–130.
- **Serum Bicarbonate HCO₃⁻ (mmol/L)** (number): Serum bicarbonate / total CO₂ (mmol/L). Physiologic range ~5–50.
- **Serum Potassium K⁺ (mmol/L, optional)** (number): Serum potassium (mmol/L). Required only when 'Include Potassium K⁺' is checked.
- **Serum Albumin (g/dL, optional)** (number): Serum albumin (g/dL). If provided, computes albumin-corrected AG: AG_corr = AG + 2.5 × (4.0 − albumin).
- **Decimal Places** (number)

## When to use

- Assess whether metabolic acidosis has a high or normal anion gap.
- Check for a potentially masked high anion gap when serum albumin is low.
- Compare anion gap calculations using the standard formula or a formula that includes potassium.

## How it works

- Enter serum sodium, chloride, and bicarbonate values in mmol/L.
- Optionally enable potassium and enter a potassium value to use AG = Na⁺ + K⁺ − Cl⁻ − HCO₃⁻.
- Optionally enter albumin in g/dL to calculate the albumin-corrected anion gap.
- The calculator returns the AG, optional corrected AG, formula used, and an anion-gap category.

## Use cases

- Screening electrolyte results for high anion gap metabolic acidosis.
- Reviewing possible hyperchloremic or normal-anion-gap metabolic acidosis.
- Adjusting the anion gap for hypoalbuminemia during clinical or educational review.

## Frequently asked questions

### What formula does the calculator use?

By default, it uses AG = Na⁺ − Cl⁻ − HCO₃⁻. If potassium is enabled, it uses AG = Na⁺ + K⁺ − Cl⁻ − HCO₃⁻.

### What values are required?

Serum sodium, chloride, and bicarbonate are required. Potassium and albumin are optional.

### Why enter serum albumin?

Albumin correction can reveal a higher anion gap when hypoalbuminemia makes the uncorrected AG appear normal.

### How are high and normal anion gaps classified?

Without potassium, an AG above approximately 12 is generally high, while 8–12 is commonly considered normal. Reference ranges shift when potassium is included.

### Is this calculator medical advice?

No. Use the result as a calculation aid and interpret it with blood gases, laboratory data, and clinical findings.

## Related tools

- [Red Cell Distribution Width (RDW) Analyzer](https://elysiatools.com/en/tools/rdw-analyzer): Analyze Red Cell Distribution Width (RDW) with MCV to help differentiate anemias. RDW-CV reference ≈ 11.5–14.5%, RDW-SD ≈ 39–46 fL (lab-dependent). Elevated RDW reflects anisocytosis. Classic Bessman patterns: high RDW + low MCV → iron deficiency anemia (IDA), which raises the RDW early — before MCV/Hb fall; normal RDW + low MCV → thalassemia trait (uniform microcytosis). Other patterns: high RDW + high MCV → megaloblastic anemia (B12/folate), MDS, drugs, hemolysis with reticulocytosis, preleukemia, or mixed populations (combined iron + B12 deficiency, post-transfusion); high RDW + normal MCV → early/mixed nutritional deficiency, dimorphic anemia, marrow recovery; normal RDW + normal MCV → anemia of chronic disease is classically normocytic. Interpret with Hb, ferritin, Hb electrophoresis, and clinical context. Based on Bessman 1983 and Teixeira 2014. Not medical advice.
- [Messy Text to Structured Data Workbench](https://elysiatools.com/en/tools/messy-text-to-structured-data-workbench): Infer tables from pasted text, mixed delimiters, key-value lines, or HTML and export CSV, JSON, and Markdown.
- [Absolute Neutrophil Count (ANC) Calculator](https://elysiatools.com/en/tools/absolute-neutrophil-count): Calculate the Absolute Neutrophil Count (ANC) = WBC × (segmented % + band %) / 100. Unit selectable: cells/µL or ×10⁹/L (1 ×10⁹/L = 1000 cells/µL). Adult reference ≥ 1500 cells/µL. Neutropenia risk strata: mild 1000–1500, moderate 500–1000, severe < 500 (agranulocytosis < 200) — high risk of serious infection, and febrile neutropenia is a medical emergency. Clinical uses: chemotherapy cycles typically require ANC ≥ 1500 to proceed and ≥ 500 for discharge from protective isolation; carbimazole/clozapine monitoring; congenital neutropenia workup. Neutrophilia > 7500 suggests bacterial infection, inflammation, steroids, or a myeloproliferative neoplasm. If only segmented % is reported, set band % to 0; if the instrument reports an absolute neutrophil count directly (NE#), this tool is not needed. Based on ASCO/IDSA neutropenia guidance, Boxer ASH 2012, and MDCalc. Not medical advice.
- [Indented List to ASCII Tree](https://elysiatools.com/en/tools/ascii-tree-from-indented-list): Convert a 2-space / 4-space / Tab indented hierarchical list (Markdown bullets, -, *, 1. prefixes optional) into a copyable ASCII directory tree. Two styles: Unicode box-drawing (├──└──│) for GitHub/Discord and classic ASCII (|--\--|) for plain text. Toggles for full guide lines, trailing spaces, and bracketed leaf nodes like docs/\[api.md\].
- [Bold & Italic Text](https://elysiatools.com/en/tools/bold-italic-text): Convert text to bold, italic, or bold-italic using the Mathematical Alphanumeric Symbols Unicode block. Plain Unicode text — no font needed.
- [Corrected Calcium (Albumin) Calculator](https://elysiatools.com/en/tools/corrected-calcium-albumin): Calculate the albumin-corrected total calcium to avoid missing true hypocalcemia or hypercalcemia in hypoalbuminemia. Conventional formula (calcium mg/dL, albumin g/dL): Ca_corr = Ca + 0.8 × (4.0 − Albumin). SI formula (calcium mmol/L, albumin g/L): Ca_corr = Ca + 0.02 × (40 − Albumin). Roughly 40% of circulating calcium is albumin-bound, so low albumin lowers the measured total without changing the physiologically active ionized fraction. Corrected reference range ≈ 8.5–10.5 mg/dL (2.15–2.60 mmol/L). Low → true hypocalcemia (hypoparathyroidism, vitamin-D deficiency, CKD, hypomagnesemia, citrated transfusion, pancreatitis, sepsis); high → true hypercalcemia (primary hyperparathyroidism, malignancy/PTHrP, myeloma, vitamin-D intoxication, thiazides, immobilization, granulomatous disease). When albumin is markedly abnormal or acid-base is deranged, ionized calcium remains the gold standard. Based on Payne BMJ 1973 and MDCalc. Not medical advice.
- [Corrected QT (QTc) Calculator (Bazett/Fridericia/Framingham)](https://elysiatools.com/en/tools/corrected-qt-bazett-fridericia): Calculate the heart-rate–corrected QT interval (QTc) with three formulae. Bazett (1920): QTc = QT/√RR (classic; over-corrects at high HR, under-corrects at low HR). Fridericia (1920): QTc = QT/RR^(1/3) — more accurate across a wide HR range, preferred for drug/QT studies. Framingham (1992): QTc = QT + 0.154×(1 − RR) — simple linear regression. RR is derived from heart rate (RR = 60/HR) when not provided; QT and QTc in ms. Thresholds: men > 450 ms borderline / > 480 ms prolonged; women > 460 ms borderline / > 480 ms prolonged; > 500 ms markedly prolonged. Derived from Bazett 1920, Fridericia 1920, Sagie/Framingham 1992, AHA 2009, ICH E14, and MDCalc. Not medical advice.
- [Corrected Sodium (Glucose) Calculator](https://elysiatools.com/en/tools/corrected-sodium-glucose): Calculate the glucose-corrected serum sodium to reveal true body tonicity in hyperglycemia. Classic Katz (1973) formula Na_corr = Na + 1.6 × (Glucose − 100)/100 (glucose mg/dL), or Hillier (1999) Na_corr = Na + 2.4 × (Glucose − 100)/100 which is more accurate at very high glucose (Katz tends to underestimate). Glucose unit selectable: mg/dL or mmol/L (reference 5.5 mmol/L). Hyperglycemia shifts water extracellularly and dilutes sodium; the corrected value reflects the real water balance. Corrected Na < 135 indicates true hyponatremia (DKA/HHS with free-water excess, SIADH, GI/renal losses); > 145 indicates true hypernatremia (common in HHS, signals free-water deficit and guides replacement). Derived from Katz NEJM 1973, Hillier 1999, Adrogué NEJM 2000, and MDCalc. Not medical advice.

## Samples

- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Regex Replace Samples](https://elysiatools.com/en/samples/regex-replace): Collection of common and useful regex replacement patterns for text transformation and data cleaning
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10

## Related content

- [Text Case, Encoding, and Normalization Conversion Tools](https://elysiatools.com/en/hubs/text-convert): Compare text case conversion, character-width conversion, encoding conversion, quoted-printable handling, and inline text normalization tools in one hub.
- [Markdown Export, OCR, and Document Conversion Tools](https://elysiatools.com/en/hubs/markdown-convert): Compare Markdown-to-PDF, PDF-to-Markdown, OCR, slide deck export, and structured Markdown conversion tools in one hub for documentation publishing workflows.
- [Text Tools](https://elysiatools.com/en/hubs/text-utility): Explore 33 text tools for utility workflows and compare closely related utilities quickly.
- [Text Analysis, Readability, and Content Inspection Tools](https://elysiatools.com/en/hubs/text-analyze): Compare text statistics, language detection, readability scoring, sentiment analysis, moderation review, and pattern analysis tools in one hub.
