Vitamin D deficiency is typically diagnosed through a blood test that measures the level of 25-hydroxyvitamin D. Levels below 20 ng/mL are considered deficient, while levels between 20-30 ng/mL may indicate insufficiency. Pediatricians may recommend testing for children who are at risk or exhibit symptoms of deficiency, such as bone pain or muscle weakness.