Ketogenic diets (KDs) are high-fat, low-carbohydrate formulations effective in treating medically refractory epilepsy, and recently we demonstrated lowered sensitivity to thermal pain in rats fed a KD for 3 to 4 weeks. Regarding anticonvulsant and hypoalgesic mechanisms, theories are divided as to direct effects of increased ketones and/or decreased glucose, metabolic hallmarks of these diets. To address this point, we characterized the time course of KD-induced thermal hypoalgesia, ketosis, and lowered glucose in young male rats fed ad libitum on normal chow or KDs. A strict 6.6:1 (fat:[carbohydrates + protein], by weight) KD increased blood ketones and reduced blood glucose by 2 days of feeding, but thermal hypoalgesia did not appear until 10 days. Thus, ketosis and decreased glucose are not sufficient for hypoalgesia. After feeding a 6.6:1 KD for 19 days, decreased thermal pain sensitivity and changes in blood chemistry reversed 1 day after return to normal chow. Effects were consistent between 2 different diet formulations: a more moderate and clinically relevant KD formula (3.0:1) produced hypoalgesia and similar changes in blood chemistry as the 6.6:1 diet, thus increasing translational potential. Furthermore, feeding the 3.0:1 diet throughout an extended protocol (10–11 weeks) revealed that significant hypoalgesia and increased ketones persisted whereas low glucose did not, demonstrating that KD-induced hypoalgesia does not depend on reduced glucose. In separate experiments we determined that effects on thermal pain responses were not secondary to motor or cognitive changes. Together, these findings dissociate diet-related changes in nociception from direct actions of elevated ketones or decreased glucose, and suggest mechanisms with a slower onset in this paradigm. Overall, our data indicate that metabolic approaches can relieve pain.