The ketogenic diet is a high-fat, low-carbohydrate regimen that forces ketone-based rather than glucose-based cellular metabolism. Clinically, maintenance on a ketogenic diet has been proven effective in treating pediatric epilepsy and type II diabetes, and recent basic research provides evidence that ketogenic strategies offer promise in reducing brain injury. Cellular mechanisms hypothesized to be mobilized by ketone metabolism and underlying the success of ketogenic diet therapy, such as reduced reactive oxygen species and increased central adenosine, suggest that the ketolytic metabolism induced by the diet could reduce pain and inflammation. To test the effects of a ketone-based metabolism on pain and inflammation directly, we fed juvenile and adult rats a control diet (standard rodent chow) or ketogenic diet (79% fat) ad libitum for 3-4 weeks. We then quantified hindpaw thermal nociception as a pain measure and complete Freund's adjuvant-induced local hindpaw swelling and plasma extravasation (fluid movement from the vasculature) as inflammation measures. Independent of age, maintenance on a ketogenic diet reduced the peripheral inflammatory response significantly as measured by paw swelling and plasma extravasation. The ketogenic diet also induced significant thermal hypoalgesia independent of age, shown by increased hindpaw withdrawal latency in the hotplate nociception test. Anti-inflammatory and hypoalgesic diet effects were generally more robust in juveniles. The ketogenic diet elevated plasma ketones similarly in both age groups, but caused slowed body growth only in juveniles. These data suggest that applying a ketogenic diet or exploiting cellular mechanisms associated with ketone-based metabolism offers new therapeutic opportunities for controlling pain and peripheral inflammation, and that such a metabolic strategy may offer significant benefits for children and adults.