How this instrument works
The anion gap is a simple check on the electrolytes in a blood draw: sodium minus the sum of chloride and bicarbonate. In diabetic ketoacidosis (DKA), ketone acids build up in the blood and consume bicarbonate, which widens this gap — a high anion gap alongside high blood glucose and low bicarbonate is one of the classic signatures clinicians look for when DKA is suspected.
Severity in DKA is graded mild, moderate, or severe using three independent criteria from the American Diabetes Association's consensus statement (Kitabchi et al., 2009): arterial pH, serum bicarbonate, and mental status. Each of the three is checked on its own against its own thresholds, and the case is classified by whichever of the three comes out worst — a patient who is alert and has a reassuring bicarbonate but a severely low pH is still severe DKA, because any one severe finding is enough.
Grading by 'the worst of the three' is a reasonable, widely used simplification of how the ADA statement actually presents this. The original consensus table lists ranges for pH, bicarbonate, mental status, anion gap, and other findings side by side in three rows (mild, moderate, severe) rather than spelling out a strict take-the-maximum rule for every possible combination of values. In practice, clinicians and reference tools commonly resolve mixed presentations this way — grading by the single most severe parameter — because DKA is a medical emergency and it is safer to classify by the worst finding than to average or default to the mildest one. This calculator follows that same convention; it does not replace clinical judgment, arterial blood gas interpretation, or bedside assessment by a treating clinician.
- Enter serum sodium in mEq/L.
- Enter serum chloride in mEq/L.
- Enter serum bicarbonate in mEq/L.
- Enter arterial pH.
- Select mental status: Alert, Alert/drowsy, or Stupor/coma.
- Read the calculated anion gap and the resulting DKA severity tier (1 = mild, 2 = moderate, 3 = severe).
Worked example — sodium 140, chloride 100, bicarbonate 17, pH 7.28, alert
Sodium 140 mEq/L, chloride 100 mEq/L, bicarbonate 17 mEq/L: anion gap = 140 − (100 + 17) = 23 mEq/L, an elevated gap consistent with ketoacidosis.
For severity, pH 7.28 is ≥7.25 (mild), bicarbonate 17 is ≥15 (mild), and mental status is alert (mild). All three criteria agree, so the result is tier 1, mild DKA.
Contrast that with sodium 132, chloride 90, bicarbonate 8, pH 6.95, and stupor/coma: anion gap = 132 − (90 + 8) = 34 mEq/L. Here pH under 7.00, bicarbonate under 10, and stupor/coma are each independently severe, so the result is tier 3, severe DKA — the worst of the three criteria decides the grade even when, as here, all three happen to agree.
Questions
Why is DKA severity graded by the worst of three findings instead of an average?
Because DKA is a medical emergency where under-grading is dangerous. The ADA's Kitabchi et al. (2009) consensus statement lists pH, bicarbonate, and mental status (plus other findings) together in a three-row table for mild, moderate, and severe DKA. Taking the worst individually-graded criterion is a common, safety-conscious simplification of that table for cases where a patient's findings don't all fall in the same row — it avoids a severely abnormal single value being diluted by two reassuring ones.
Is grading by 'the worst individual parameter' exactly what the ADA statement says to do?
Not verbatim. The original 2009 table presents ranges for each parameter side by side per severity tier rather than a codified take-the-maximum instruction for mixed cases. Using the worst individual criterion is a reasonable and commonly applied reading of that table, not a direct quotation of a formal algorithm — treat a borderline or mixed result as a prompt to involve a clinician rather than a definitive verdict.
What does a high anion gap actually mean in DKA?
It reflects ketoacid buildup. Ketone bodies produced during DKA are acids that consume bicarbonate as the body buffers them, and the anion gap widens to account for the resulting shortfall in measured anions. A high anion gap alongside hyperglycemia and low bicarbonate is one of the classic supporting findings for a DKA diagnosis, though the diagnosis itself also requires elevated blood glucose and ketones (blood or urine), which this calculator does not collect.
Does this calculator diagnose DKA?
No. It calculates the anion gap and a severity tier from lab values and mental status you enter, assuming DKA is already suspected or diagnosed by a clinician using glucose, ketone, and clinical findings this tool does not ask for. It is a bedside reference for classification, not a diagnostic test, and does not replace arterial blood gas interpretation or clinical assessment.
Why does mental status factor into a lab-based severity score?
Because altered mental status — drowsiness, stupor, or coma — is itself a marker of how physiologically severe the metabolic derangement has become, independent of what the exact pH or bicarbonate number says. The 2009 ADA criteria include it as a third, equally weighted axis specifically because a patient can be dangerously unwell with mental status changes even when a single lab value looks only moderately abnormal.
Has DKA diagnostic and severity criteria changed since 2009?
Yes. A newer 2024 joint consensus report from the ADA, EASD, and other professional societies (Umpierrez et al., Diabetes Care. 2024;47(8):1257-75) revised this guidance: it recommends direct measurement of beta-hydroxybutyrate — the main ketoacid in DKA — for diagnosis and monitoring, and states that anion gap is no longer recommended as a first-line diagnostic or severity criterion (though it may still have some value where ketone measurement isn't available). This calculator still uses the original, widely cited 2009 Kitabchi et al. framework — anion gap, pH, bicarbonate, and mental status — which remains in common clinical and reference use; check current guidance from the ADA or a treating clinician for the most up-to-date criteria before making clinical decisions.
What should someone do with a 'severe' result from this calculator?
Treat it as a prompt for urgent clinical attention, not as the final word. DKA, particularly severe DKA, is a medical emergency typically managed with IV fluids, insulin, and electrolyte replacement in a hospital setting, and severity can change quickly. This tool is an educational reference for understanding the classification, not a substitute for emergency medical care.
References
- Kitabchi AE, Umpierrez GE, Miles JM, Fisher JN. Hyperglycemic Crises in Adult Patients with Diabetes. Diabetes Care. 2009;32(7):1335-43.
- PubMed — Kitabchi et al. 2009, PMID 19564476
- StatPearls — Diabetic Ketoacidosis (NCBI Bookshelf, NBK560723)
- Umpierrez GE, Davis GM, ElSayed NA, et al. Hyperglycemic Crises in Adults With Diabetes: A Consensus Report. Diabetes Care. 2024;47(8):1257-75. (2024 update — de-emphasizes anion gap, recommends direct beta-hydroxybutyrate measurement.)
Read this first: This instrument computes a screening figure from population formulas — it is not a diagnosis, and it cannot see the whole picture a clinician can. Use it to inform a conversation, not to replace one.