Diabetic ketoacidosis is a life-threatening emergency caused by a lack of insulin, in which the body breaks down fat into acidic ketones. It is most common in type 1 diabetes and can also occur with SGLT2 inhibitors at near-normal glucose (“euglycaemic DKA”).
How to use the Diabetic Ketoacidosis Calculator
- Plasma glucose
- Arterial pH
- Bicarbonate (HCO₃⁻)
- Sodium
- Chloride
- Serum or urine ketones
- Mental status
Results update as you type, and every field accepts the units shown in its menu.
How it works
Enter the blood results and mental status. The calculator works out the anion gap, checks each ADA criterion and grades severity by the worst of pH, bicarbonate and mental status. Anyone with suspected DKA needs emergency care.
DKA severity (ADA)
| Mild | Moderate | Severe | |
|---|---|---|---|
| Glucose | > 250 mg/dL | > 250 mg/dL | > 250 mg/dL |
| Arterial pH | 7.25–7.30 | 7.00–7.24 | < 7.00 |
| Bicarbonate | 15–18 mEq/L | 10–15 mEq/L | < 10 mEq/L |
| Ketones | Positive | Positive | Positive |
| Anion gap | > 10 | > 12 | > 12 |
| Mental status | Alert | Alert or drowsy | Stupor or coma |
Inputs explained
| Field | What to enter |
|---|---|
| Plasma glucose | Units: mg/dL, mmol/L |
| Arterial pH | A number |
| Bicarbonate (HCO₃⁻) | In mEq/L |
| Sodium | In mEq/L |
| Chloride | In mEq/L |
| Serum or urine ketones | Choose one: Positive, Negative |
| Mental status | Choose one: Alert, Drowsy, Stupor or coma |
What each result means
- Anion gap = [Sodium] – ([Chloride] + [Bicarbonate (HCO₃⁻)])
- ADA criteria met = ([Plasma glucose] > 250) + ([Arterial pH] <= 7.3) + ([Bicarbonate (HCO₃⁻)] <= 18) + ([Serum or urine ketones] == 1) + ([Anion gap] > 10)
Health note: this calculator is for education and screening only and is not a diagnosis or treatment advice. Discuss your results with a qualified clinician.
Formula
Anion gap = Na⁺ − (Cl⁻ + HCO₃⁻)
DKA: glucose > 250 mg/dL, pH ≤ 7.30, HCO₃⁻ ≤ 18 mEq/L, ketones positive, anion gap > 10
Mild: pH 7.25–7.30, HCO₃⁻ 15–18, alert · Moderate: pH 7.00–7.24, HCO₃⁻ 10–15, alert or drowsy · Severe: pH < 7.00, HCO₃⁻ < 10, stupor or coma
Worked example
Inputs: Plasma glucose: 450 mg/dL; Arterial pH: 7.2; Bicarbonate (HCO₃⁻): 12 mEq/L; Sodium: 135 mEq/L; Chloride: 100 mEq/L; Serum or urine ketones: Positive; Mental status: Alert.
Results: Anion gap = 23 mEq/L; ADA criteria met = 5 of 5; DKA = Criteria met; Severity = Moderate.
Key terms
- Ketones
- Acids produced when the body breaks down fat for energy.
- Anion gap
- Unmeasured anions in the blood; raised in DKA.
Frequently asked questions
Is DKA an emergency?
Yes. It needs urgent hospital treatment with fluids, insulin and potassium.
What causes DKA?
Missed insulin, infection, new type 1 diabetes, other illness and some medicines.
What is euglycaemic DKA?
DKA with glucose below 250 mg/dL, seen with SGLT2 inhibitors, pregnancy or starvation.