My Calculator

Anion Gap & Serum Osmolar Gap Solver

Calculate the anion gap (with optional albumin correction) and the serum osmolar gap from your basic metabolic panel — with instant category and differential-cause interpretation.

Basic Metabolic Panel

Low albumin falsely lowers the anion gap. Correction: AG + 2.5 x (4.0 - Albumin g/dL).

Osmolality Panel

From the lab report, in mOsm/kg

If a blood ethanol level was drawn, include it so ordinary drinking alcohol doesn't inflate the gap.

Results
12 mEq/L

Anion Gap

normal
8
12

Normal range: 8-12 mEq/L (without potassium)

0 mOsm/kg

Osmolar Gap (calculated osm: 290)

normal
10

Normal gap: under 10 mOsm/kg

This tool performs the math only. Interpretation must always be combined with the full clinical picture, history, and a qualified professional's judgment — never a calculator alone.

What Are the Anion Gap and the Serum Osmolar Gap?

The anion gap and the serum osmolar gap are two of the most useful numbers hiding inside a routine blood panel. Neither one is measured directly — both are calculated from other values that are already sitting on a standard lab report, which is exactly what makes them so valuable. They don't cost an extra test, yet they can point toward serious and sometimes urgent causes of illness that would otherwise be easy to miss.

This solver calculates both at once: the anion gap (with an optional albumin correction) from your electrolyte panel, and the serum osmolar gap from your measured osmolality alongside sodium, glucose, and BUN. Used together, these two numbers form one of the fastest first-pass screening tools for unexplained metabolic acidosis and suspected toxic alcohol ingestion.

How the Anion Gap Is Calculated

The anion gap formula is simple on paper: AG = Sodium − (Chloride + Bicarbonate). It works because blood always stays electrically neutral — the total positive charges (cations) must equal the total negative charges (anions). Routine labs measure sodium as the main cation and chloride plus bicarbonate as the main measured anions, but they don't measure every anion in the blood, things like albumin, phosphate, sulfate, and lactate. The 'gap' left over after subtracting the measured anions from sodium is really an estimate of those unmeasured anions.

Some labs include potassium in the formula as well, written as AG = (Sodium + Potassium) − (Chloride + Bicarbonate). This shifts the normal range higher, so this calculator adjusts the expected reference range automatically depending on whether you toggle potassium on or off.

Albumin matters more than most people realize. Albumin itself is a major unmeasured anion, so a low albumin level (common in illness, malnutrition, or liver disease) artificially lowers the calculated anion gap and can hide a real elevation. This calculator applies the standard correction — adding 2.5 for every 1 g/dL that albumin sits below the normal value of 4.0 g/dL — whenever you enter an albumin value.

How the Serum Osmolar Gap Is Calculated

Osmolality describes how concentrated the blood is with dissolved particles. A lab can measure it directly using a machine that checks the freezing point of the blood sample, but it can also be estimated using a formula built from the three substances that account for almost all normal blood osmolality: sodium, glucose, and urea (BUN).

The formula used here is: Calculated Osmolality = (2 x Sodium) + (Glucose ÷ 18) + (BUN ÷ 2.8), with an optional ethanol term (Ethanol ÷ 3.7) added if a blood alcohol level was drawn. The osmolar gap is simply the measured osmolality from the lab minus this calculated value. A small gap is completely normal, since the formula is an approximation. A gap that climbs meaningfully higher than expected means something is dissolved in the blood that the formula didn't account for — an unmeasured osmotically active substance.

Interpreting an Elevated Anion Gap

An anion gap above the normal range points toward a high anion gap metabolic acidosis, and the differential list is commonly remembered with the mnemonic MUDPILES or the newer GOLD MARK, which cover overlapping causes.

  • Methanol poisoning
  • Uremia (kidney failure)
  • Diabetic ketoacidosis
  • Propylene glycol (a drug solvent)
  • Iron or Isoniazid overdose
  • Lactic acidosis (sepsis, shock, metformin)
  • Ethylene glycol poisoning (antifreeze)
  • Salicylate (aspirin) overdose

Interpreting a Low or Normal Anion Gap

A low anion gap is less commonly discussed but still clinically meaningful. The single most common cause by far is low albumin, since albumin is one of the main unmeasured anions the gap formula is trying to estimate — this is exactly why the albumin correction feature exists in this calculator. Other, rarer causes include multiple myeloma, lithium toxicity, and bromide intoxication.

A normal anion gap doesn't rule out acidosis — it simply points toward a different family of causes, called normal anion gap (or hyperchloremic) metabolic acidosis. These typically involve either the direct loss of bicarbonate, such as from diarrhea, or a kidney problem in handling acid, such as renal tubular acidosis.

Interpreting an Elevated Osmolar Gap

An osmolar gap above roughly 10 mOsm/kg suggests an unmeasured osmotically active substance is circulating in the blood. The classic and most urgent causes are the toxic alcohols, but several other substances and conditions can also raise it.

  • Methanol (windshield-washer fluid)
  • Ethylene glycol (antifreeze)
  • Isopropyl alcohol (rubbing alcohol) — raises the osmolar gap without raising the anion gap
  • Ethanol, if not accounted for in the calculation
  • Mannitol (an IV osmotic medication)
  • Severe kidney failure
  • Severe hyperlipidemia or hyperproteinemia, which can interfere with the osmolality measurement itself

Why This Calculator Combines Both Gaps

The real power of these two numbers shows up when you look at them together. Methanol and ethylene glycol are unusual in that they raise both the anion gap and the osmolar gap at the same time — the parent alcohol itself raises the osmolar gap early on, and as the body metabolizes it into toxic acidic byproducts, the anion gap climbs too. This dual-elevation pattern is one of the fastest ways to raise suspicion for toxic alcohol poisoning, often hours before a specific alcohol level comes back from a specialty lab.

On the other hand, isopropyl alcohol raises only the osmolar gap, not the anion gap, because it's metabolized into a substance (acetone) that doesn't produce the same acid load. Seeing which gap is elevated, and by how much, helps narrow a very wide list of possibilities down to a much shorter one — which is exactly what this solver is built to show at a glance.

Who Uses an Anion Gap & Osmolar Gap Solver

Nursing and medical students use this kind of calculator constantly while learning acid-base physiology, since seeing the formula applied to real numbers makes the underlying concept click far faster than memorizing it from a textbook. Lab technicians and health educators use it to double-check calculated values or to build teaching examples. Anyone studying for board-style exams that cover electrolyte and toxicology topics will recognize both formulas as recurring favorites.

It's worth being clear about what this tool is not: it is not a diagnostic device, and it is not a substitute for a qualified clinician reviewing a real patient's full history and labs. It performs the arithmetic instantly and explains what each range generally suggests, but the interpretation of any real lab result always belongs with a trained professional who has the full clinical picture in front of them.

A Note on Accuracy and Responsible Use

Both formulas used here — the anion gap and the calculated osmolality — are the same standard equations used in clinical laboratories, toxicology references, and medical education worldwide. They are accurate for the numbers you enter, and the reference ranges shown reflect commonly cited clinical values. That said, 'normal' ranges vary slightly between labs and textbooks, and real acid-base or toxicology cases are rarely explained by a single number in isolation.

This calculator is provided strictly for general education, learning, and quick reference. It is not medical advice, it cannot diagnose any condition, and it should never replace an evaluation by a doctor, nurse, or other qualified healthcare professional — especially in any situation involving a real patient, a suspected poisoning, or symptoms that need urgent care.

Frequently Asked Questions

What is a normal anion gap?

Without potassium in the formula, a normal anion gap is roughly 8-12 mEq/L. If potassium is included, the normal range shifts higher, to roughly 10-20 mEq/L. Exact reference ranges can vary slightly by laboratory.

Why does low albumin affect the anion gap?

Albumin is itself a major unmeasured anion in the blood. When albumin is low, the calculated anion gap comes out artificially lower than it really is, which can mask a true elevation. The standard correction adds 2.5 to the anion gap for every 1 g/dL that albumin sits below the normal value of 4.0 g/dL.

What is a normal serum osmolar gap?

A gap under roughly 10 mOsm/kg is generally considered normal. This isn't a hard cutoff — normal variation exists — but a gap meaningfully above 10 suggests an unmeasured substance is present in the blood.

What causes both the anion gap and the osmolar gap to be high at the same time?

This combined pattern is classically associated with methanol or ethylene glycol poisoning. The parent alcohol raises the osmolar gap first, and as it's metabolized into acidic byproducts, the anion gap rises too — making this dual pattern an important early clue.

Can the osmolar gap be high without the anion gap being high?

Yes. Isopropyl alcohol (rubbing alcohol) is a classic example — it raises the osmolar gap but is metabolized into acetone rather than an acid, so it typically does not raise the anion gap.

Should I include potassium in the anion gap formula?

Both versions are used in practice. Leaving potassium out (the more common approach) gives a normal range of about 8-12 mEq/L. Including it shifts the range higher to about 10-20 mEq/L. This calculator recalculates the correct reference range automatically based on your toggle.

Why do I need to enter both glucose and BUN for the osmolar gap?

Along with sodium, glucose and BUN (blood urea nitrogen) are the three substances that make up almost all of the body's normal calculated osmolality. Leaving either one out would make the calculated osmolality inaccurate and throw off the resulting gap.

Is this calculator a substitute for a doctor's diagnosis?

No. This tool performs standard lab calculations for educational and reference purposes only. Any real result — especially an elevated gap — should always be interpreted by a qualified healthcare professional alongside the full clinical picture.