Anion Gap Calculator with Potassium

Anion Gap Calculator with Potassium

Growing AI Skill PRO

Enter Calculation

Formula

Anion Gap=(Na++K+)−(Cl−+HCO3−)\text{Anion Gap} = \left({{\text{Na}^{+}}} + {{\text{K}^{+}}}\right) - \left({{\text{Cl}^{-}}} + {{\text{HCO}_{3}^{-}}}\right)

Example

Anion Gap=(140+4)−(104+24)=16.0\text{Anion Gap} = \left(140 + 4\right) - \left(104 + 24\right) = 16.0
Usage stats

Advertisement

Results

Anion Gap (with Potassium)
16.0
mEq/L
Formula (Na⁺ + K⁺) − (Cl⁻ + HCO₃⁻)
Interpretation Compare with your laboratory's range for the potassium-inclusive formula

For reference only — not a substitute for a clinician's assessment.

Report an error on this page

What is the anion gap with potassium?

The anion gap is a calculated value that estimates the difference between the measured serum cations and anions. Because the body stays electrically neutral, this apparent gap actually reflects the unmeasured anions (such as albumin, phosphate, sulfate, and organic acids). Including potassium adds the second major cation to the calculation, which shifts the normal reference range upward to roughly 10–20 mEq/L compared with the potassium-free version.

Two stacked bars comparing cations and anions with a highlighted gap segment
The anion gap is the difference between measured cations (Na+, K+) and measured anions (Cl-, HCO3-).

The formula

This calculator uses the potassium-inclusive equation:

$$\text{AG} = (\text{Na}^+ + \text{K}^+) - (\text{Cl}^- + \text{HCO}_3^-)$$

where \(\text{Na}^+\) is serum sodium, \(\text{K}^+\) is potassium, \(\text{Cl}^-\) is chloride, and \(\text{HCO}_3^-\) is bicarbonate, all in mEq/L.

How to use it

Enter the four electrolyte values from a basic metabolic panel and submit. The tool returns the anion gap in mEq/L along with a simple interpretation. A high gap suggests accumulation of unmeasured anions (for example lactic acidosis, ketoacidosis, or toxins), while a normal or low gap points toward other mechanisms.

Advertisement

Worked example

For \(\text{Na}^+ = 140\), \(\text{K}^+ = 4.0\), \(\text{Cl}^- = 104\), and \(\text{HCO}_3^- = 24\):

$$\text{AG} = (140 + 4.0) - (104 + 24) = 144 - 128 = 16\ \text{mEq/L}$$

This value falls within the normal potassium-inclusive range.

Horizontal gauge showing normal, borderline, and high anion gap zones with a pointer
A computed anion gap value can be read against normal versus elevated ranges.

Interpreting Your Anion Gap Result

The anion gap estimates the concentration of unmeasured anions in serum, such as albumin, phosphate, sulfate and organic acids. This version includes potassium:

$$\text{AG} = (\text{Na}^{+} + \text{K}^{+}) - (\text{Cl}^{-} + \text{HCO}_{3}^{-})$$

Potassium adds roughly 3.5–5 mEq/L to the result. Ranges for the potassium-inclusive gap therefore run about 4 mEq/L higher than ranges for the more common formula without potassium. That formula often uses about 8–16 mEq/L, or lower on modern ion-selective electrode analyzers. Always compare your result with a range for the same formula.

General categories (K⁺-inclusive formula)

  • Normal (about 10–20 mEq/L): No excess of unmeasured anions is suggested. A normal gap does not rule out a metabolic acidosis. A normal-gap (hyperchloremic) acidosis can still be present if bicarbonate is low.
  • High (above about 20 mEq/L): This suggests unmeasured acids are building up, which is a high-anion-gap metabolic acidosis. Common causes are often remembered with the mnemonics MUDPILES or GOLDMARK. They include lactic acidosis, ketoacidosis (diabetic, alcoholic or starvation), toxic alcohols (methanol, ethylene glycol), salicylate poisoning, uremia from kidney failure, and others such as iron, isoniazid, 5-oxoproline (pyroglutamic acid) from long-term acetaminophen use, and D-lactate.
  • Low (below about 10 mEq/L): This is uncommon. The most frequent cause is low albumin, because albumin is the main unmeasured anion. Other causes are positively charged paraproteins (for example, in multiple myeloma), raised unmeasured cations (such as calcium, magnesium or lithium), bromide or iodide interference that falsely raises the chloride reading, and laboratory or sampling error.

Normal-gap (hyperchloremic) metabolic acidosis

When bicarbonate is low but the gap is normal, chloride usually rises to replace the lost bicarbonate. Typical causes are:

  • bicarbonate lost through the gut, such as diarrhea or pancreatic and biliary fistulas
  • renal tubular acidosis (types 1, 2 and 4)
  • large volumes of normal saline
  • carbonic anhydrase inhibitors such as acetazolamide
  • urinary diversions such as a ureterosigmoidostomy

Albumin correction

Low albumin lowers the measured gap and can hide a high-gap acidosis. A widely used correction adds about 2.5 mEq/L for every 1 g/dL that albumin falls below 4 g/dL:

$$\text{AG}_{\text{corrected}} = \text{AG} + 2.5 \times (4.0 - \text{albumin in g/dL})$$

For example, a measured gap of 16 mEq/L with albumin at 2.0 g/dL gives \(16 + 2.5 \times (4.0 - 2.0) = 16 + 5 = 21\) mEq/L. That is above the usual range even though the uncorrected value looked normal.

Reference ranges vary

Normal ranges depend on the laboratory, the analyzer method (for example, direct or indirect ion-selective electrodes), and whether potassium is included. The 10–20 mEq/L band used here is a general approximation. Your laboratory's own range is the one that applies.

Important: This calculator and explanation are general educational information, not a diagnosis or medical advice. Acid-base problems are assessed using the whole clinical picture, including blood gases, osmolal gap, ketones, lactate and kidney function. Discuss any abnormal result with a qualified healthcare professional.

Advertisement

Anion Gap Across Example Scenarios

The panels below are illustrative examples only. They show how different electrolyte patterns change the potassium-inclusive anion gap. They are not real patient data, and they cannot be used to diagnose any condition. Each gap is calculated as \((\text{Na}^{+} + \text{K}^{+}) - (\text{Cl}^{-} + \text{HCO}_{3}^{-})\). Categories use the approximate 10–20 mEq/L range.

Pattern Na⁺ (mEq/L) K⁺ (mEq/L) Cl⁻ (mEq/L) HCO₃⁻ (mEq/L) Calculation Anion gap (mEq/L) Category vs 10–20
Normal panel 140 4 104 24 (140 + 4) − (104 + 24) 16 Normal
High-gap pattern 138 4.5 100 12 (138 + 4.5) − (100 + 12) 30.5 High: suggests unmeasured acids, such as lactate or ketones
Normal-gap hyperchloremic pattern 140 3.5 115 15 (140 + 3.5) − (115 + 15) 13.5 Normal gap with low HCO₃⁻ and high Cl⁻, as seen with diarrhea or renal tubular acidosis
Low-gap pattern 138 4 108 27 (138 + 4) − (108 + 27) 7 Low: consider low albumin, paraproteins or lab error

Bicarbonate is low (12 and 15 mEq/L) in both the high-gap and the hyperchloremic examples. Only the high-gap panel has a gap above the range. In the hyperchloremic panel, the rise in chloride makes up for the lost bicarbonate. This is why the gap helps tell the two main types of metabolic acidosis apart. If albumin is low, apply the albumin correction before you assign a category.

FAQ

Should I include potassium? Both conventions are valid; just apply the matching reference range. Many clinicians omit potassium because its concentration is low and tightly regulated.

Does albumin matter? Yes. Low albumin lowers the apparent gap, so a corrected anion gap may be needed in hypoalbuminemia.

Is this a diagnosis? No. The anion gap is a screening aid and should be interpreted with the full clinical picture.

Sources & References

  • Acid-Base Disorders - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Defines the anion gap as Na minus (Cl + HCO3); K, Ca and Mg are the unmeasured cations; typical gap about 12 mEq/L. · Verified 2026-11-07
  • Serum anion gap: its uses and limitations in clinical medicine — Kraut JA, Madias NE, Clin J Am Soc Nephrol 2007;2(1):162-74, doi:10.2215/CJN.03020906, PMID 17699401. AG = Na - (Cl + HCO3); the normal value varies widely between methods and individuals; low values most often lab error or hypoalbuminemia. · Verified 2026-11-07
  • Anion gap and hypoalbuminemia — Figge J, Jabor A, Kazda A, Fencl V, Crit Care Med 1998;26(11):1807-10, doi:10.1097/00003246-199811000-00019, PMID 9824071. Original albumin correction: adjusted AG = observed AG + 0.25 x (normal - observed albumin) in g/L; factor 2.5 when albumin is in g/dL. · Verified 2026-11-07
  • Acid-Base Disorders - MSD Manual Professional Edition — MSD Manual Professional Edition (Merck & Co.), Endocrine and Metabolic Disorders. Low albumin: adjust the anion gap by 2.5 mEq/L for every 1 g/dL fall in albumin. · Verified 2026-11-07

Checked against these sources on . Not reviewed by a clinician. For general information only, not medical advice or a diagnosis. Talk to a doctor about any health concern.

Last updated:

Most popular in Health and Fitness

View all Health and Fitness calculators