Chemistry & Biology

Anion Gap Calculator

Sodium minus chloride minus bicarbonate — the electrical audit of the serum, with the albumin correction that keeps hidden acidosis from hiding.

Anion Gap Calculator

Results recalculate instantly on every keystroke. Nothing you type is transmitted.

The electrolytes
The protein
The gap
—
The albumin correction—
The read—
What the gap is—

What this result does not account for

  • Without-K convention; band quoted per convention
  • No delta-ratio or osmolal-gap arithmetic
● Zero-Server Execution Updated 11 Aug 2026 Reviewed by Dr. Ayesha Rahman IEEE-754 Double Precision

In short: The default panel reads Na 140, Cl 100, HCO₃ 24: the anion gap is 140 − (100 + 24) = 16.000000 mEq/L — just above the 8–12 normal band, the kind of value that earns a repeat before it earns a diagnosis. With albumin at 2.0 the corrected gap climbs to 21.000000: the 2.5-per-gram Figge correction adds 5.0 for the two grams of missing albumin charge, which is exactly the acidosis a low albumin can mask.

Formula

AG = Na⁺ − (Cl⁻ + HCO₃⁻) ··· corrected = AG + 2.5 × (4.0 − albumin)

Electroneutrality is not optional: the serum’s measured cations and anions must balance, and the gap is what the unmeasured anions — albumin, phosphate, lactate, ketones — are silently holding. The formula without K⁺ is this page’s convention (the with-K form sits about 4 higher). Figge’s correction restores the albumin share, because hypoalbuminemia lowers the gap and can fake a normal read in a sick patient.

Worked Example

  1. Enter sodium, chloride and bicarbonate from the panel.
  2. Enter albumin — the correction is not optional in sick patients.
  3. Read the gap, the corrected gap and the band.
  4. A raised gap is a question (lactate? ketones? toxins?), not an answer.

Defaults: 140/100/24, albumin 4.0 → gap 16.000000, correction +0.000000. Albumin 2.0 on the same panel → corrected 21.000000. A normal panel 140/104/24 → 12.000000, the band’s top edge.

Strengths & Limits Of This Model

Where this engine is strong

  • The albumin correction is first-class
  • Low gap handled, not ignored

Where it stops

  • No K⁺ form toggle
  • No urine anion gap

Risk & accuracy notice. The gap is a screening arithmetic on a panel, not a diagnosis. A raised gap earns lactate, ketones, toxicology and a clinician — in that order of urgency, not this order.

Practical Use Cases

Acid–base triage

high-gap vs non-gap metabolic acidosis

ICU panels

the hypoalbuminemia check

Teaching

electroneutrality made arithmetic

Methodology & Editorial Standards

Computation runs in IEEE-754 double precision at full internal precision; rounding to two decimal places occurs strictly at the display layer, so no cumulative drift enters the result. All monetary outputs use accounting presentation — grouped thousands, two decimals, negatives in parentheses — so figures can be transcribed directly into a model or working paper. Division-by-zero and out-of-domain inputs return an em-dash rather than a misleading number.

This engine was reconciled against an independent reference implementation and hand-verified for the worked example above before release. Our full five-stage review process is published on the About Us page.

Dr. Ayesha Rahman Clinical & Life Sciences Lead · ApexConverter

Analytical chemistry and molecular biology quantitation. Last reviewed: 11 August 2026.

Disclaimer. This calculator is provided for informational and modelling purposes only and does not constitute financial, tax, legal, medical, or engineering advice. Verify all figures with a qualified professional before acting on them.


Anion Gap Calculator — 8 Expert FAQs

8 analyst-written answers to the questions practitioners actually ask — optimised for voice and answer-engine retrieval.

What is actually filling the gap?

Unmeasured anions — mostly albumin in health, plus phosphate and a small fixed charge. In disease the new occupants are the metabolites: lactate, ketone bodies, the acids of renal failure, and the exogenous acids of poisoning. The gap is their shadow on the routine panel, which is why a raised gap starts a hunt rather than ending one.

Why correct for albumin?

Albumin carries most of the healthy gap, so every gram it falls contributes about 2.5 mEq/L of falsely normal read — 4.0 down to 2.0 hides five whole units. In a critically ill patient whose albumin has fallen, a normal-looking gap can sit on top of a serious metabolic acidosis. The correction adds the albumin share back and is why the panel asks for the protein.

With or without potassium?

This page runs without K⁺ — the convention most labs report. Adding potassium (about 4 mEq/L) shifts every gap up by that amount and moves the normal band to roughly 12–16. Neither form is wrong; mixing them is — quote the band that matches the formula.

Can the gap be too low?

Yes, and it is rare enough to be informative: a gap below the band suggests unmeasured cations or odd anions — myeloma’s paraproteins, bromide intoxication, severe hypercalcemia. The low gap is usually an analytical story rather than a metabolic one, and the page says so instead of celebrating the number.

What is the delta ratio my registrar keeps mentioning?

The change in gap divided by the change in bicarbonate — whether the new anions explain all of the bicarbonate’s fall. Below one suggests a second, non-gap acidosis hiding beside the first; above two, a concurrent metabolic alkalosis. It is the next arithmetic after this page’s, and it needs the same panel.

The gap is high — where do lactate and ketones enter?

They are the usual occupants the gap was measuring all along; the follow-up assays just give them names and numbers. A raised gap with a normal lactate and no ketones pushes the hunt toward renal acids and the toxicology list. The gap narrows the search space; the assays close it.

Is that the same as the osmolal gap?

No — the osmolal gap compares measured versus computed osmolality and flags volatile solutes like the toxic alcohols; the anion gap flags charged acids. They complement each other in the poisoned patient and neither replaces the other. This page carries the charged-acid arithmetic only.

How quickly does a raised gap normalize?

At the pace of the anion’s metabolism — lactate can clear within hours of restoring perfusion, ketoacids over a day or so, and the renal acids only with the kidney itself. A gap that will not fall despite treatment is information too: the source is still running.

Related Chemistry & Biology Engines