Diagnosis of ketoacidosis typically involves blood tests to measure blood ketone levels, blood glucose levels, and blood pH. A high anion gap metabolic acidosis is commonly observed in ketoacidosis. Urine tests can also be performed to detect ketones. In a toxicological context, it is essential to identify any possible toxins or substances that might have contributed to the condition.