Advanced

Diabetic Ketoacidosis (DKA) Calculator — Severity & Electrolytes

Enter blood glucose, serum pH, and electrolytes to classify DKA severity by ADA 2009 criteria (mild / moderate / severe) and instantly compute the anion gap, hyperglycaemia-corrected sodium, expected pCO₂ by Winter's formula, and effective serum osmolality.

mg/dL

DKA threshold ≥ 250 mg/dL
Venous or arterial blood gas (normal 7.35–7.45)

mEq/L

Normal: 136–145 mEq/L

mEq/L

Normal: 96–106 mEq/L

mEq/L

DKA threshold ≤ 18 mEq/L
Anion Gap
26mEq/L

Elevated (>12 mEq/L) — consistent with DKA

Corrected sodium (for glucose)
141.5 mEq/L
Expected pCO₂ (Winter's)
24–28 mmHg
Effective osmolality
293.8 mOsm/kg
AG interpretation
High-gap metabolic acidosis
Bicarbonate (mEq/L) — DKA severity bands: Moderate (10–14)
Step by step
  1. 1

    Sum of measured anions (Cl⁻ + HCO₃⁻)

    100 + 12 = 112
    The denominator of the anion gap: measured negative ions in serum.
  2. 2

    Anion gap

    Na⁺ − (Cl⁻ + HCO₃⁻) = 138 − 112 = 26
    Normal range 8–12 mEq/L. Above 12 suggests unmeasured anions (ketoacids in DKA).
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. This is not medical, health or fitness advice; consult a qualified healthcare professional. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter glucose, pH, Na⁺, Cl⁻, and HCO₃⁻ to classify DKA severity: Mild (pH 7.25–7.30, HCO₃ 15–18), Moderate (pH 7.0–7.24, HCO₃ 10–14), or Severe (pH <7.0, HCO₃ <10). The anion gap (Na − Cl − HCO₃), hyperglycaemia-corrected sodium, expected pCO₂ by Winter's formula, and effective osmolality are computed instantly. For clinical reference only.

Formula
AG = Na⁺ − (Cl⁻ + HCO₃⁻) • Corrected Na = Na + 1.6 × (glucose − 100)/100 • Expected pCO₂ = 1.5 × HCO₃ + 8 ± 2
How this is calculated

Diabetic ketoacidosis occurs when insulin deficiency drives uncontrolled lipolysis and hepatic ketone production, resulting in a high anion-gap metabolic acidosis. The ADA 2009 criteria classify severity by venous pH and serum bicarbonate: Mild (pH 7.25–7.30, HCO₃ 15–18 mEq/L), Moderate (pH 7.0–7.24, HCO₃ 10–14 mEq/L), and Severe (pH <7.0, HCO₃ <10 mEq/L). Blood glucose ≥ 250 mg/dL is also required; euglycaemic DKA (e.g. on SGLT-2 inhibitors) is a rarer exception handled separately in clinical practice.

The anion gap (Na⁺ − Cl⁻ − HCO₃⁻) quantifies unmeasured anions from accumulated ketoacids; a value above 12 mEq/L signals a high-gap acidosis consistent with DKA. Because hyperglycaemia draws water into the extracellular space by osmosis, measured sodium is artefactually low; the Katz correction adds 1.6 mEq/L for each 100 mg/dL of glucose above 100 to estimate the true sodium. Effective serum osmolality (2 × Na + glucose/18) captures the hyperosmolar load without urea, which crosses membranes freely and does not drive fluid shifts. Winter's formula (expected pCO₂ = 1.5 × HCO₃ + 8 ± 2 mmHg) checks respiratory compensation: a measured pCO₂ above the range implies a concurrent respiratory acidosis, below implies a respiratory alkalosis.

This tool is for clinical reference and education only and is based on ADA 2009 guidelines and standard physiology texts. Actual DKA diagnosis and management require laboratory confirmation, clinical assessment, and physician oversight.

Frequently asked questions

The ADA 2009 criteria require all three: blood glucose >250 mg/dL, serum bicarbonate ≤ 18 mEq/L or venous pH <7.30, and positive serum or urine ketones. Severity is then sub-classified into mild, moderate, and severe by pH and bicarbonate thresholds.

Hyperglycaemia creates an osmotic gradient that draws water from cells into the extracellular space, diluting sodium. The Katz formula adds approximately 1.6 mEq/L to measured sodium for each 100 mg/dL that glucose exceeds 100 mg/dL. This corrected value reflects the sodium that will be present once glucose is lowered during treatment.

Winter's formula predicts the expected pCO₂ if the lungs are compensating normally for a simple metabolic acidosis: expected pCO₂ = 1.5 × HCO₃ + 8 (± 2 mmHg). A measured pCO₂ above the predicted range suggests a concurrent respiratory acidosis (inadequate ventilation); below suggests a concurrent respiratory alkalosis (e.g. sepsis, anxiety, or salicylate toxicity).

Also known as

dka calculator
diabetic ketoacidosis severity
anion gap dka
corrected sodium hyperglycemia
winters formula pco2
dka electrolytes assessment
ketoacidosis diagnosis tool
ada dka criteria calculator

APA

TG we-Calculate Editorial Team. (2026). Diabetic Ketoacidosis (DKA) Calculator — Severity & Electrolytes [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/diabetic-ketoacidosis-calculator

Chicago

TG we-Calculate Editorial Team. "Diabetic Ketoacidosis (DKA) Calculator — Severity & Electrolytes." TG we-Calculate. 2026. https://we-calculate.com/calculator/diabetic-ketoacidosis-calculator.

IEEE

TG we-Calculate Editorial Team, "Diabetic Ketoacidosis (DKA) Calculator — Severity & Electrolytes," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/diabetic-ketoacidosis-calculator

BibTeX

@misc{wecalculate_diabetic_ketoacidosis_calculator, title = {Diabetic Ketoacidosis (DKA) Calculator — Severity & Electrolytes}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/diabetic-ketoacidosis-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?