Anion Gap Calculator
- Add the measured anions: chloride 104 + bicarbonate 24 = 128 mEq/L.
- Subtract from sodium: 140 − 128 = 12 mEq/L — the anion gap, the unmeasured anions left over.
- Potassium is usually left out — it is small and tightly regulated, so most reference ranges assume the sodium-only formula.
- If the albumin is low, enter it: each 1 g/dL below 4.0 hides about 2.5 mEq/L of gap.
Our anion gap calculator estimates unmeasured anions in the blood using the formula AG = sodium - (chloride + bicarbonate), conventionally reported as 8-16 mEq/L when potassium is excluded. Enter your sodium, chloride, and bicarbonate values and the tool returns a single gap value in mEq/L. For example, sodium 140, chloride 104, and bicarbonate 24 give a gap of 12 mEq/L — a normal result. Sodium 138, chloride 100, and bicarbonate 14 give a gap of 24 mEq/L, a high-anion-gap metabolic acidosis pattern; including potassium at 4.5 raises it to 28.5. Because albumin is the main unmeasured anion in health, the corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0, so a gap of 12 with albumin of 2.0 g/dL corrects to 17 — revealing that hypoalbuminaemia was masking an elevated gap.
This method is the accepted standard because it isolates the difference between measured cations and anions, giving clinicians a quick screen for hidden acid-base disturbances. A high gap points to added acids — the classic GOLD MARK / MUDPILES causes — while a normal-gap acidosis points to bicarbonate loss; this page computes, it does not diagnose. Below, we show the formula, step-by-step workings, worked examples, and the sources behind each calculation so you can verify every result yourself.
Worked examples
A normal gap
Primary result: 12 mEq/L — squarely inside the usual 8–16 range. (140 mEq/L · 104 mEq/L · 24 mEq/L · 0 mEq/L · 0 g/dL)
| Anion gap | 12 mEq/L |
| Anion gap including potassium | — (enter potassium) |
| Albumin-corrected anion gap | — (enter albumin) |
| Interpretation | Within the usual 8–16 mEq/L range |
An elevated gap
Primary result: 24 mEq/L — the pattern of a high-anion-gap metabolic acidosis; 28.5 with potassium included. (138 mEq/L · 100 mEq/L · 14 mEq/L · 4.5 mEq/L · 0 g/dL)
| Anion gap | 24 mEq/L |
| Anion gap including potassium | 28.5 mEq/L |
| Albumin-corrected anion gap | — (enter albumin) |
| Interpretation | Elevated — above the usual 8–16 mEq/L range |
The albumin correction matters
Primary result: 12 mEq/L — but corrected for an albumin of 2.0 it is 17, an elevated gap in disguise. (142 mEq/L · 108 mEq/L · 22 mEq/L · 0 mEq/L · 2 g/dL)
| Anion gap | 12 mEq/L |
| Anion gap including potassium | — (enter potassium) |
| Albumin-corrected anion gap | 17 mEq/L |
| Interpretation | Within the usual 8–16 mEq/L range |
The anion gap formula
The anion gap formula is simple: AG = sodium - (chloride + bicarbonate). But the logic behind it matters more than the arithmetic. Blood serum must maintain electroneutrality — total positive charges must equal total negative charges. Sodium is the dominant cation, while chloride and bicarbonate are the dominant anions. When you subtract the measured anions from the measured cation, whatever remains represents unmeasured anions. The gap is bookkeeping, not a measured ion. An anion gap calculator performs this subtraction and compares the result to a conventional reference range of 8-16 mEq/L when potassium is excluded from the equation.
Consider a standard normal case: sodium 140, chloride 104, and bicarbonate 24. The math gives 140 - (104 + 24) = 12 mEq/L, which falls squarely in the normal range. Albumin is the main unmeasured anion in healthy individuals, so a small gap is expected. However, albumin levels shift that expectation. The corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0. A gap of 12 with an albumin of 2.0 g/dL corrects to 17 — hypoalbuminaemia was masking an elevated gap that the raw formula concealed.
When the gap climbs well above the normal range, added acids are the usual culprit. Take sodium 138, chloride 100, and bicarbonate 14. The result is 138 - (100 + 14) = 24 mEq/L, a high-anion-gap metabolic acidosis pattern. Including potassium (4.5) in the equation raises the result to 28.5. The higher the gap, the more unmeasured anions are circulating — pointing clinicians toward the classic GOLD MARK or MUDPILES causes. A normal-gap acidosis, by contrast, typically points to bicarbonate loss rather than added acids.
This page computes the numbers. It does not diagnose. The formula, the correction for albumin, and the reference ranges give you a structured way to look at electrolyte data, but interpretation belongs to a qualified clinician reviewing the full clinical picture.
- AG = sodium - (chloride + bicarbonate), conventional normal range 8-16 mEq/L without potassium
- Sodium 140, chloride 104, bicarbonate 24 yields a gap of 12 mEq/L — normal
- Sodium 138, chloride 100, bicarbonate 14 yields a gap of 24 mEq/L; including potassium 4.5 raises it to 28.5
- A gap of 12 with albumin 2.0 g/dL corrects to 17 — hypoalbuminaemia was masking an elevated gap
- Corrected gap adds 2.5 mEq/L for every 1 g/dL albumin falls below 4.0
- High gap points to added acids (GOLD MARK / MUDPILES); normal-gap acidosis points to bicarbonate loss
Worked examples
The table below walks through three verified cases that show how an anion gap calculator handles a normal result, a high-gap metabolic acidosis, and a hidden gap masked by low albumin. Each example uses the standard formula AG = sodium − (chloride + bicarbonate), with a conventional reference range of 8–16 mEq/L when potassium is excluded.
The first case is straightforward. With sodium 140, chloride 104, and bicarbonate 24, the gap is 12 mEq/L, which falls squarely in the normal range. The second case shows a high-anion-gap metabolic acidosis pattern: sodium 138, chloride 100, and bicarbonate 14 produce a gap of 24 mEq/L. Including potassium at 4.5 raises the result to 28.5, demonstrating why some clinicians track potassium separately. A high gap points to added acids — the classic GOLD MARK or MUDPILES causes — whereas a normal-gap acidosis points to bicarbonate loss.
The third case illustrates a common pitfall. A gap of 12 appears normal, but when the albumin level is 2.0 g/dL, the corrected gap rises to 17, revealing that hypoalbuminaemia was masking an elevated gap. Albumin is the main unmeasured anion in health, so the corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0. This adjustment matters because a normal-looking result can hide a clinically significant acid-base disturbance. This page computes, it does not diagnose — always interpret results alongside the full clinical picture.
| Case | Sodium (mEq/L) | Chloride (mEq/L) | Bicarbonate (mEq/L) | Potassium (mEq/L) | Albumin (g/dL) | Calculated Gap (mEq/L) | Corrected Gap (mEq/L) | Interpretation |
|---|---|---|---|---|---|---|---|---|
| Normal | 140 | 104 | 24 | — | — | 12 | — | Normal |
| High gap | 138 | 100 | 14 | 4.5 | — | 24 | — | High-anion-gap metabolic acidosis pattern |
| Albumin-masked | — | — | — | — | 2.0 | 12 | 17 | Hypoalbuminaemia masking an elevated gap |
The albumin correction
Albumin is the main unmeasured anion in healthy blood, so when its level drops, the baseline anion gap drops with it. The standard formula an anion gap calculator uses — AG = sodium − (chloride + bicarbonate), conventionally 8–16 mEq/L without potassium — assumes a normal albumin concentration. When albumin runs low, that assumption fails. The result is a gap that looks normal on paper but is actually hiding an underlying elevation. Hypoalbuminaemia effectively masks the gap, making a truly elevated anion gap read as normal and potentially concealing a clinically significant acid-base problem.
The correction rule is straightforward: add 2.5 mEq/L to the calculated gap for every 1 g/dL the albumin falls below 4.0. This adjustment restores the baseline that the standard formula expects, giving a more accurate picture of unmeasured anions. A corrected gap that jumps above the normal range signals that added acids are present — the classic GOLD MARK or MUDPILES causes — whereas a normal-gap acidosis points instead to bicarbonate loss. This anion gap calculator applies the correction so the number reflects reality rather than a protein deficiency.
A verified case shows how much the correction matters. Take sodium 140, chloride 104, and bicarbonate 24. The math gives a gap of 12 mEq/L — squarely normal. But if that same patient has an albumin of 2.0 g/dL, the picture changes. Albumin is 2 g/dL below the 4.0 benchmark, so the correction adds 5 mEq/L (2 × 2.5). The corrected gap becomes 17, which sits above the conventional range. Hypoalbuminaemia was masking an elevated gap all along.
Contrast that with a confirmed high-gap example: sodium 138, chloride 100, and bicarbonate 14 produces a gap of 24 mEq/L — a high-anion-gap metabolic acidosis pattern. Including potassium at 4.5 raises it further to 28.5. In both scenarios the numbers are verified, but only the albumin-corrected gap reveals what the uncorrected calculation conceals. Remember that a high gap points to added acids, while a normal-gap acidosis points to bicarbonate loss. This page computes; it does not diagnose.
With or without potassium?
Most anion gap calculator tools let you choose whether to include potassium in the equation, and the default is usually to leave it out. The reason is practical: potassium adds about 4 mEq/L to the result, which shifts the reference range upward and makes the numbers slightly harder to interpret at a glance. The conventional formula is AG = sodium - (chloride + bicarbonate), with a reference range of 8-16 mEq/L. Because potassium lives inside cells and varies much less in the blood than sodium or chloride, most labs omit it for simplicity.
When potassium is included, the formula becomes AG = (sodium + potassium) - (chloride + bicarbonate), and the reference range shifts to roughly 12-20 mEq/L. The math is straightforward, but the clinical interpretation does not change. Take a verified example: sodium 138, chloride 100, and bicarbonate 14 gives a gap of 24 mEq/L without potassium — a high-anion-gap metabolic acidosis pattern. Including potassium at 4.5 raises that result to 28.5. The gap is high either way; the potassium version just adds roughly 4 to the total.
The comparison of 24 versus 28.5 illustrates why many clinicians prefer the simpler formula. Both values fall outside their respective reference ranges and point to the same clinical picture: added acids driving the gap upward. The classic causes of a high gap fall under the GOLD MARK and MUDPILES mnemonics, while a normal-gap acidosis points instead to bicarbonate loss. This anion gap calculator computes both versions so you can match your lab's reporting convention.
Whichever formula you use, remember that albumin is the main unmeasured anion in healthy blood. When albumin drops, the gap narrows even if acids are present. A gap of 12 with albumin of 2.0 g/dL corrects to 17, revealing that hypoalbuminaemia was masking an elevated gap. The corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0. This page computes, it does not diagnose — always interpret the result alongside the full clinical context.
High gap versus normal gap acidosis
Once the anion gap calculator returns a number, the next clinical question is whether the gap is high or normal, because each pattern points to a different mechanism. The anion gap estimates unmeasured anions using the formula AG = sodium - (chloride + bicarbonate), with a conventional reference range of 8-16 mEq/L when potassium is excluded. A normal result means the measured anions and cations still balance as expected; an elevated result means extra anions have appeared that the formula does not directly count.
The distinction comes down to added acid versus lost bicarbonate. When a clinician uses this anion gap calculator and finds a high gap, the usual interpretation is that an acid has been added to the blood, donating anions that push the gap above its reference range. A normal-gap acidosis, by contrast, typically reflects bicarbonate loss through the gut or kidneys; chloride rises to maintain electroneutrality, so the gap itself stays within range even though the blood has become more acidic.
Consider two worked examples. With sodium 140, chloride 104, and bicarbonate 24, the gap is 12 mEq/L, which sits comfortably inside the normal range. With sodium 138, chloride 100, and bicarbonate 14, the gap rises to 24 mEq/L, a high-anion-gap metabolic acidosis pattern; including a potassium of 4.5 in the calculation would raise it further to 28.5. The jump from 12 to 24 illustrates how a falling bicarbonate, when not matched by a rising chloride, widens the gap rather than keeping it normal.
One important caveat is albumin. Albumin is the main unmeasured anion in health, so the corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0. A gap of 12 with an albumin of 2.0 g/dL corrects to 17, which means hypoalbuminaemia was masking an elevated gap. Without that correction, a real high-gap acidosis can look deceptively normal.
- High gap (added acids) — classic GOLD MARK / MUDPILES causes clinicians work through next
- Normal gap (bicarbonate loss) — gastrointestinal or renal bicarbonate wasting with chloride retention
- Always correct for albumin: add 2.5 mEq/L per 1 g/dL below 4.0, or a low albumin can hide a high-gap acidosis
Limits of the number
An anion gap calculator returns a single number, but that number is only as trustworthy as the laboratory measurements behind it. Each analyte — sodium, chloride, and bicarbonate — carries its own reference range and assay variability, so the same blood sample can yield slightly different gaps on different instruments. The conventional formula, AG = sodium - (chloride + bicarbonate), typically produces a range of 8-16 mEq/L when potassium is excluded. A verified example makes the arithmetic plain: sodium 140, chloride 104, and bicarbonate 24 give a gap of 12 mEq/L, squarely normal. Yet a clinician who stops at the raw figure can miss real disease, because several well-described artifacts widen or narrow the gap without reflecting any change in unmeasured acids.
Hypoalbuminaemia is the most common reason a true elevation hides inside a normal-looking result. Albumin is the main unmeasured anion in health, so the corrected gap adds 2.5 mEq/L for every 1 g/dL the albumin falls below 4.0. Consider a patient whose gap reads 12 — apparently fine — but whose albumin is 2.0 g/dL. After correction the gap rises to 17, revealing an elevated gap that the low albumin was masking. Without that adjustment, the anion gap calculator would give a number that looks reassuring while a metabolic acidosis goes unnoticed.
Other substances distort the measurement in the opposite direction. Paraproteins — high levels of monoclonal immunoglobulins seen in conditions such as multiple myeloma — can interfere with the assay for chloride, producing a falsely low or falsely high reading that skews the gap. Lithium therapy can raise the measured cation concentration enough to widen the calculated gap. Bromide, once used in sedatives and still encountered in rare exposures, is misread by many chloride assays as chloride itself; because bromide has a higher molecular weight, the instrument underestimates the true halide concentration and the gap appears artificially high. None of these artifacts reflect added acids, yet each can push the number well outside the reference interval.
The gap also behaves differently depending on whether potassium is included. A verified high-gap example shows sodium 138, chloride 100, and bicarbonate 14 producing a gap of 24 mEq/L — a high-anion-gap metabolic acidosis pattern. Including potassium at 4.5 raises that same gap to 28.5. The choice of formula matters less than consistency: compare each result with the reference interval your laboratory uses for that specific method.
For all these reasons, the gap is a starting point, not a verdict. A high gap points toward added acids — the classic GOLD MARK or MUDPILES causes — while a normal-gap acidosis points instead to bicarbonate loss. This page computes; it does not diagnose. Treat the output as a prompt to look deeper: check the albumin, question unexpected outliers, and read the number alongside the full clinical picture.
- Assay variability: sodium, chloride, and bicarbonate each carry reference ranges that differ between labs, so small shifts in the raw inputs can move the gap without any real change in unmeasured anions.
- Hypoalbuminaemia masking: a gap of 12 mEq/L with albumin of 2.0 g/dL corrects to 17 once 2.5 mEq/L is added for each 1 g/dL below 4.0 — the low albumin was hiding an elevated gap.
- Paraprotein interference: monoclonal immunoglobulins can skew the chloride assay and distort the calculated gap in either direction.
- Lithium effect: lithium cations can widen the gap by adding to the measured cation side of the equation.
- Bromide artifact: bromide is misread as chloride by many assays, and because it is heavier, the instrument underestimates halide concentration, producing a falsely elevated gap.
FAQs
How is the anion gap calculated?
The anion gap is calculated as sodium minus chloride plus bicarbonate. For example: 140 - (104 + 24) = 12 mEq/L. This formula measures the difference between measured cations and measured anions in the blood, helping clinicians identify acid-base disturbances.
What is a normal anion gap?
A normal anion gap is roughly 8-16 mEq/L without potassium on most modern analysers. However, reference ranges vary between laboratories, so always check your lab's specific reference range before interpreting results.
What does a high anion gap mean?
A high anion gap means unmeasured anions have accumulated, typically from an added acid. For example, a verified gap of 24 with a bicarbonate of 14 indicates excess unmeasured anions, pointing to conditions like lactic acidosis or ketoacidosis.
Why correct the anion gap for albumin?
Albumin is itself an unmeasured anion. Correcting for it matters because low albumin can hide an elevated gap. At 2.0 g/dL the correction adds 5, unmasking a gap of 17 behind a normal-looking 12, ensuring the anion gap reflects the true clinical picture.
Should potassium be included in the anion gap?
Most modern practice excludes potassium from the anion gap calculation. Including a K of 4.5 raises the verified case from 24 to 28.5 and shifts the normal range up too, so consistency with your lab's method is essential for accurate interpretation.
Can the anion gap be low or negative?
Yes, the anion gap can be low or negative. Hypoalbuminaemia, paraproteinaemia and some lab artefacts lower it. A very low gap is itself a clinical clue, prompting further investigation into underlying causes rather than being dismissed as an error.