Fasting (especially intermittent fasting and supervised prolonged modified fasting) and ketogenic diets can help some people with chronic pain through overlapping anti-inflammatory, metabolic, cellular repair, nervous system, and gut microbiome mechanisms. Both approaches are best viewed as potential adjuncts within a multimodal plan rather than standalone treatments. Evidence remains stronger for certain conditions and formats than others, and individual responses vary.
Shared and complementary mechanisms
- Reduced inflammation: Both lower pro-inflammatory cytokines (TNF-α, IL-6, CRP) and can inhibit the NLRP3 inflammasome. Ketone bodies such as β-hydroxybutyrate (produced during fasting or nutritional ketosis) play a direct signaling role. See the 2022 systematic review of intermittent fasting, time-restricted feeding, caloric restriction, a ketogenic diet, and the Mediterranean diet.
- Autophagy and cellular/mitochondrial repair: Periods of low energy availability or carbohydrate restriction promote autophagy and improved mitochondrial function, supporting tissue repair and reducing oxidative stress.
- Metabolic improvements: Better insulin sensitivity, modest weight loss (reducing mechanical joint load and adipose-derived inflammatory signals), and a shift toward fat/ketone metabolism.
- Neuroinflammation and nervous system effects: Reduced central sensitization, microglial activation, and excitability. Recent preclinical data link intermittent fasting to beneficial gut-brain changes (e.g., enrichment of Alistipes finegoldii, elevated hippuric acid, STING pathway downregulation) that lessen neuropathic pain behaviors, cognitive deficits, and anxiety-like symptoms. Ketogenic diets additionally engage ketone oxidation and ATP-gated potassium (KATP) channel activation for analgesia, plus upregulation of pathways involving SIRT3 and improved mitochondrial resilience in neuropathic models.
- Gut microbiome changes: Intermittent fasting can strengthen the intestinal barrier, reduce neuroinflammation, and reshape the microbiota, notably enriching Alistipes finegoldii; supplementation with this bacterium has mimicked fasting’s analgesic and pro-cognitive effects in animal models via hippuric acid and STING inhibition. Ketogenic diets can restore short-chain fatty acid (SCFA)-producing bacteria that are often depleted in pain states or by chronic opioid exposure, helping mitigate hyperalgesia; they may also increase butyrate producers such as Faecalibacterium and Roseburia in some contexts while reducing certain pro-inflammatory taxa. Chronic pain populations frequently show dysbiosis with fewer SCFA producers; diet-driven restoration of these taxa and their metabolites can influence peripheral sensitization, immune signaling, and central neuroinflammation.
- Other effects: Possible modulation of stress hormones, neurotransmitters, oxidative stress, and quality-of-life factors that influence pain perception.
Evidence for fasting
- Osteoarthritis (knee/hip): Observational data from prolonged modified fasting (under 600 kcal/day for about 7 to 8 days) as part of multimodal inpatient programs showed meaningful short-term pain reductions (e.g., about a 2.7-point drop on a 0 to 10 scale) and improved function (WOMAC), with some patients reducing or stopping pain medication. Quality-of-life gains were also noted. Full study: “Effects of Prolonged Fasting during Inpatient Multimodal Treatment on Pain and Functional Parameters in Knee and Hip Osteoarthritis.”
- Fibromyalgia: Similar supervised prolonged fasting improved Fibromyalgia Impact Questionnaire (FIQ) scores, pain ratings, and quality of life, with some pain and well-being benefits persisting at follow-up (up to 12 months in one study). Intermittent approaches (including Ramadan fasting) show mixed results: possible short-term help with pain, depression, and anxiety in some patients, but potential worsening of fatigue or sleep in others. Key paper: a study of prolonged medical fasting in patients with fibromyalgia.
- Broader chronic musculoskeletal pain: A 2022 systematic review found mixed results specifically for intermittent fasting on pain intensity. Caloric restriction appeared more consistently helpful longer-term; time-restricted eating sometimes improved quality of life. Inflammation markers decreased in several studies. Additional overview of intermittent fasting potential: “Intermittent Fasting: Potential Utility in the Treatment of Chronic Pain.”
Most positive human observations for prolonged fasting come from multimodal inpatient settings, so isolating the pure effect of fasting is difficult. High-quality long-term randomized controlled trials (RCTs) remain limited.
Start with the most-read KevinMD articles of 2026
Subscribe free and the 10 articles readers spent the most time on arrive in your first email.
Evidence for the ketogenic diet
A whole-food ketogenic or very-low-carbohydrate approach (under about 50 g net carbs/day, elevating blood ketones) has growing support as an adjunct for chronic pain:
- Chronic musculoskeletal pain: In a pilot randomized trial published in Pain Medicine, a well-formulated whole-food ketogenic diet produced greater average pain reduction (about 18 mm on a 100-mm visual analog scale) than a minimally processed whole-food comparison diet, along with improvements in pain interference, weight, depression, anxiety, and hsCRP. Benefits on average pain persisted at 3-month follow-up.
- Fibromyalgia (especially with obesity): A pilot interventional study of a very-low-calorie ketogenic diet showed large, clinically meaningful FIQ score reductions (from about 62 to about 37 to 39) that were largely maintained after gradual carbohydrate reintroduction. Anxiety, depression, and quality-of-life measures also improved; adverse effects were mostly mild and transient. Paper: “Efficacy, safety and tolerability of very low-calorie ketogenic diet in obese women with fibromyalgia.”
- Osteoarthritis and related pain: Low-carbohydrate/ketogenic approaches have been associated with reduced pain intensity and improved function in pilot data; animal models show protection of cartilage via NLRP3 inflammasome inhibition.
- Migraine and neuropathic pain: Mediterranean-style ketogenic protocols have reduced attack frequency and intensity in pilot work. Preclinical studies demonstrate reduced mechanical allodynia and thermal hyperalgesia in inflammatory and nerve-injury models.
A scoping review of low-carbohydrate and ketogenic diets in Nutrition Research Reviews found that the majority of human studies reporting neurological outcomes showed improvement, and most that measured inflammatory biomarkers reported reductions, both highly relevant to chronic pain states involving sensitization and inflammation.
Anti-inflammatory supplements with supporting evidence
These can complement dietary approaches (evidence is generally modest-to-moderate and best viewed as adjunctive):
- Omega-3 fatty acids (EPA + DHA): Multiple trials and meta-analyses support modest reductions in joint pain, morning stiffness, and NSAID use, particularly in rheumatoid arthritis; typical studied doses 1-3+ g combined EPA + DHA daily.
- Curcumin (from turmeric, preferably with enhanced bioavailability such as piperine or specialized formulations): Several RCTs and meta-analyses show pain and function improvements in osteoarthritis comparable in some studies to NSAIDs, with better gastrointestinal tolerability; common doses 500-1,500 mg/day of standardized curcuminoids.
- Ginger extracts: Modest reductions in osteoarthritis pain and disability in systematic reviews; dual COX/LOX inhibition; studied doses often 1-2 g extract daily.
- Boswellia (standardized to AKBA): Supports joint pain reduction via 5-LOX inhibition; often studied at 300-500 mg standardized extract.
Quality, bioavailability, and interactions (e.g., with anticoagulants) matter; discuss with a clinician before use. Evidence quality varies, and none replace disease-modifying therapies when indicated.
Specific diet references
- Whole-food ketogenic or well-formulated ketogenic diet: Emphasizing whole foods, adequate protein, healthy fats, and very low net carbs, as studied in the Pain Medicine pilot
- Very-low-calorie ketogenic diet: Used in obese fibromyalgia patients with subsequent gradual carbohydrate reintroduction
- Mediterranean diet: Olive oil, fish, vegetables, nuts, moderate whole grains, and limited red meat and processed foods, highlighted in the 2022 systematic review for quality-of-life and anti-inflammatory effects
- Mediterranean-style ketogenic or low-carbohydrate Mediterranean variants: Applied in migraine and older-adult pain pilots
- Caloric restriction, time-restricted feeding, and intermittent fasting protocols: As reviewed for musculoskeletal pain
- Modified Mediterranean low-FODMAP approaches: Useful when gut symptoms coexist with pain, offering anti-inflammatory benefits with potentially better long-term adherence in some IBS-related contexts
Practical considerations and limitations
- Formats: Prolonged modified fasting is typically done under medical supervision for several days. Everyday intermittent fasting (e.g., 16:8) and well-formulated ketogenic diets are more sustainable for many people and can be combined (time-restricted eating that also keeps carbs low enough to maintain mild ketosis).
- Who may benefit most: Individuals with inflammatory components, obesity-related mechanical load, metabolic dysfunction, osteoarthritis, fibromyalgia, or conditions involving neuroinflammation, central sensitization, or gut dysbiosis.
- Safety and caveats: Neither approach is appropriate for everyone (contraindications include underweight status, certain endocrine/psychiatric conditions, pregnancy, history of eating disorders, or medications requiring consistent carbohydrate intake). Prolonged fasting requires medical supervision. Ketogenic diets can cause transient “keto flu,” electrolyte shifts, or gastrointestinal changes and need monitoring of lipids, kidney function, and nutrient adequacy, especially longer-term. Some fibromyalgia patients report temporary fatigue or sleep disruption with fasting. Supplements require attention to quality, dosing, and potential interactions.
- Evidence gaps: Larger, longer-term randomized trials isolating these interventions from other lifestyle changes are still needed. Benefits often diminish without sustained dietary and lifestyle adherence. Removal of ultra-processed foods alone appears helpful; ketosis and microbiome shifts may confer additional benefits.
In clinical practice, fasting strategies, ketogenic or low-carbohydrate approaches, Mediterranean-style eating, targeted anti-inflammatory supplements, and attention to gut health can be considered as part of a multimodal plan that also includes physical activity, sleep optimization, psychological support, and appropriate medical therapies. Any trial should be individualized, discussed with a clinician familiar with the patient’s full medical picture, and monitored for both benefits and adverse effects.
Kayvan Haddadan is a physiatrist and pain management physician, and president and medical director of Advanced Pain Diagnostic & Solutions, a multidisciplinary pain management practice in California that he founded in 2012. A physician and surgeon licensed by the Medical Board of California, he is double board-certified in pain medicine and physical medicine and rehabilitation. He is also certified in controlled substance registration through the DEA and serves as a qualified medical examiner through California’s Department of Industrial Relations Division of Workers’ Compensation.
Dr. Haddadan earned his Bachelor of Science degree from the College of Alborz in Tehran, Iran, and his medical degree from Shahid Beheshti University of Medical Sciences. He later received his Educational Commission for Foreign Medical Graduates certification in Philadelphia, completed an internship in medical surgery at Loyola University Medical Center’s Stritch School of Medicine in Illinois, and finished his residency in physical medicine and rehabilitation at the same institution. He completed his fellowship in pain medicine at California Pacific Medical Center’s Pacific Pain Treatment Center and also trained in medical acupuncture for physicians at the University of California, Los Angeles David Geffen School of Medicine.
Dr. Haddadan has contributed to 29 research publications across multiple specialties, including pain management, cardiology, pulmonology, endocrinology, gastroenterology, and infectious disease. His work has examined topics such as hyperlipidemia in high cardiovascular risk patients, hyperuricemia and gout management, type 2 diabetes and hypertension, chronic obstructive pulmonary disease and asthma therapies, influenza treatment, irritable bowel syndrome, and opioid related complications in chronic pain care. His research has also included clinical outcome studies in spinal cord stimulation and award-winning presentations on neuropathic pain management and neuromuscular disorders.
Your KevinMD author page is one of the top results for your name. Turn it into a premium profile, publish in 1 to 3 days, and get a guaranteed podcast slot.





