Introduction

The ketogenic diet(KD) is characterized by an extremely low carbohydrate intake, high fat consumption, and moderate protein intake. In recent years, it has garnered attention due to its potential benefits in weight loss, epilepsy management, and impact on metabolic diseases1,2. This dietary approach induces a shift from carbohydrate metabolism to fat metabolism within the body, resulting in the production of ketones such as acetoacetate and β-hydroxybuty-rate. This metabolic switch is believed to offer various health advantages including improved insulin sensitivity, reduced inflammation, and enhanced cognitive function3,4,5. Although the KD has been utilized for decades in treating childhood epilepsy, its application in other health conditions remains a topic of intense debate and further exploration, particularly regarding its effects on overall mortality rate and cardiovascular disease(CVD) risk.

CVD risk is a significant contributor to global morbidity and mortality, with dietary factors playing a pivotal role in its pathogenesis. Recent research has elucidated the intricate and nuanced relationship between the KD and CVD risk. On one hand, reducing carbohydrate intake and enhancing insulin sensitivity may confer beneficial effects on CVD risk factors such as blood pressure and lipid levels6,7. Conversely, the high-fat content of the KD, particularly saturated fat, may exert detrimental effects on lipid metabolism, trigger inflammatory responses, and augment CVD risk8,9. These contradictory findings underscore the imperative for further investigation into the long-term implications of the KD on mortality rates and CVD risk.

Based on the research background, the objective of this study is to utilize comprehensive information from the National Health and Nutrition Examination Survey (NHANES) data spanning 2001–2018 in the United States. This dataset encompasses dietary intake, anthropometric measurements, laboratory testing, and health outcomes, enabling an exploration into the impact of a KD on all-cause mortality and CVD mortality risk10. The NHANES dataset represents a large-scale nationally representative survey conducted on the U.S. population, providing invaluable resources for investigating long-term effects of various dietary patterns on health, including the KD.

This study aims to rigorously examine and meticulously analyze the long-term effects of a KD on mortality rates and CVD risk while gaining deeper insights into its impact on health. Ultimately, these findings aim to contribute towards developing scientifically accurate dietary guidelines and public health strategies that can extend lifespan and reduce chronic disease burden. Furthermore, these findings may offer significant implications for chronic disease management as well as promoting healthy aging processes.

Methods

Study design and participants

This cohort study utilized data from the nine national health and nutrition examination survey (NHANES) cycles conducted between 2001 and 2018, which included at least one dietary recall assessment (https://www.cdc.gov/nchs/NHANES/index). NHANES is a cross-sectional study initiated in 1999 by the National Center for Health Statistics (NCHS), aiming to evaluate the health and nutritional status of the non-institutional civilian population in the United States. To supplement this study, we linked the NHANES database from 2001 to 2018 with the NHANES Public Use Associated Mortality Archive, providing mortality follow-up data until December 31, 2019 (https://www.cdc.gov/nchs/data-linkage/ mortality.htm).The selection process of the study population is depicted in Fig. 1. A total of 91,351 participants were initially included in the retrospective cohort study. However, individuals below the age of 20 (N = 41,150), those with missing CVD data (N = 491), missing dietary data (N = 5619), missing follow-up data (N = 79), and those with missing covariate data (N = 236) were excluded from the analysis. Consequently, complete information on 43,776 adults was ultimately considered for the final analysis. All participants provided written informed consent, and the trial protocol of this study has been approved by the Ethics Review Committee at the National Center for Health Statistics.

Fig. 1
figure 1

Flow diagram of the study participant selection. NHANES, National Health and Nutrition Examination Survey; CVD, cardiovascular diseases.

Dietary intake data

Dietary intake data were collected through two 24-hour retrospective NHANES surveys conducted by trained dietary investigators. The initial survey was administered face-to-face, followed by a subsequent telephone survey within three to 10 days. In the follow-up survey, participants were requested to recall and report the types and quantities of various foods and beverages consumed in the preceding 24 h, with dietary intake estimated based on the average of these two recalls11. Energy and nutrient intakes for all food items were calculated using the Food and Nutrition database in dietary studies12.

The dietary ketogenic ratio(DKR)

To evaluate dietary patterns for achieving nutritional ketosis, we calculated the Dietary Ketogenic Ratio (DKR) based on the proportion of macronutrients in the diet with ketogenic and antiketogenic properties. The DKR for macronutrients was determined using the equation developed by Withrow13. Essentially, this calculation involves dividing (0.9×grams of fat + 0.46×grams of protein) by (0.1×grams of fat + 0.58 × grams of protein + grams of net carbohydrates), resulting in values ranging from 0 to 9. A higher DKR value indicates a greater likelihood of inducing nutritional ketosis.

Outcome variables

In this study, we evaluated all-cause mortality as the primary outcome measure, with secondary outcomes including mortality related to CVD. Information regarding vital status of participants was acquired from publicly accessible mortality data files. To establish a connection between death records in the National Death Index and continuous NHANES data, both probabilistic and deterministic approaches were employed by the National Center for Health Statistics. The success rate for establishing linkages surpassed 99%14. The observation period began at baseline (defined as the date of NHANES participation) and ended either upon occurrence of death or on December 31st, 2019.

Covariates

Information regarding sociodemographic and lifestyle characteristics was obtained from demographics and questionnaire data. This included information on age(Youth group,≤40 years; Middle-aged group, 40–60 years and Elderly group, ≥60 years), gender, Race/ethnicity (Mexican American、Non-Hispanic White、Non- Hispanic Black、Other Hispanic、Other Race), educational level(Less than High school、High school/GED, More than high school), family income to poverty ratio (PIR), marital status(Married, Widowed, Divorced, Separated, Never married, Living with partner), smoking status, and BMI (<18.5 kg/m2,18.5–24 kg/m2, 24–28 kg/m2, ≥28 kg/m2). Participants were categorized as smokers if they responded affirmatively to the query, “Have you smoked at least 100 cigarettes in your entire life?” Conversely, those who answered negatively were classified as non-smokers. Standing height (centimeter, cm) and weight (kilogram, kg) were measured at the mobile examination center. The Body Mass Index (BMI, kg/cm2) was calculated by dividing the weight by the square of standing height.

Participants were considered to have a history of cardiovascular disease if they had been diagnosed by a medical professional with congestive heart failure(CHF), coronary heart disease(CHD), angina/angina pectoris, and myocardial infarction(MI). The presence of hypertension, stroke, and cancer/malignancy was determined through questionnaire responses. The definition of hypertension encompassed self-reported hypertension, systolic blood pressure ≥ 140 mm Hg and/or diastolic blood pressure ≥ 90 mm Hg, or documented use of antihypertensive medication.Diabetes was defined as HbA1c ≥ 6.5% or self-reported use of glucose-lowering medications.

Multiple imputation techniques were employed to handle missing values in covariates, with the percentage of missing values being less than 10%. These covariates included PIR (missing 7.8%), BMI (missing 1.5%), hypertension (missing 0.2%), and no variables exhibited missing values exceeding 10%.

Statistical analysis

The participants were categorized into two groups based on their survival status.

The baseline characteristics were subjected to descriptive analysis, with continuous variables presented as mean ± standard deviation (SD) or median (interquartile range), while categorical variables were reported as counts and percentages.Between-group comparisons were conducted using appropriate statistical tests: the Student’s t-test for normally distributed continuous variables, the Wilcoxon rank-sum test for non-normally distributed variables, and the chi-square test for categorical variables.

The associations between DKR and all-cause and cardiovascular mortality were evaluated using multivariate Cox proportional hazard models, yielding hazard ratios (HRs) along with their corresponding 95% confidence intervals (CIs).The quartiles of DKR were utilized to calculate HRs, with Q1 serving as the reference group in Model A, which incorporated unadjusted covariates. Model B was adjusted for age, education level, race, marital status, and PIR. In Model C, additional covariates including BMI, diabetes mellitus, CHF, CHD, angina pectoris, MI, stroke history, and cancer diagnosis were included.

To investigate the dose-response relationship between DKR and all-cause and CVD mortality, we utilized multivariable adjusted restricted cubic splines (RCS) in model C to explore potential non-linear associations.

The statistical significance was determined at a two-tailed p-value of less than 0.05. All data were analyzed using SPSS 27 software. The data were generated by GraphPad Prism 9.4 and R version 3.6.

Results

Baseline characteristics of the participants

The baseline characteristics of the participants are presented in Table 1. Among the final cohort of 43,776 participants, the mean age was 49.4 ± 18.1 years, with a female representation of 2,532 (48.3%). Following a median follow-up period of 9.1 years, all-cause mortality was observed in 6,054 participants (13.8%), while cardiovascular mortality occurred in 1,533 individuals (3.5%). Table 1 presents the baseline characteristics of both the survival and death groups; statistically significant differences were found across all variables (P < 0.05). In comparison to the death group, the survival group exhibited a higher proportion of females and younger individuals who identified as Mexican American and were married with higher levels of education and household income; they also had lower rates of smoking and BMI values. Additionally, compared to the death group, the survival group demonstrated lower prevalence rates for comorbidities such as diabetes mellitus, CVD, stroke, and cancer.

Table 1 Patient demographics and baseline characteristics.

DKR and all-cause mortality

In this study, we developed three Cox regression models to investigate the association between DKR and all-cause mortality (refer to Table 2). The unadjusted model A did not demonstrate a statistically significant relationship between DKR and the risk of all-cause mortality(HR = 1.10, 95%CI = 0.93–1.3, P = 0.255). However, after adjusting for multiple variables in the multivariate analysis, we observed a significant inverse association between DKR and the risk of all-cause mortality. Specifically, as DKR increased, there was a substantial decrease in mortality risk. This finding remained consistent in both model B (HR = 0.80, 95%CI = 0.67–0.9, P = 0.015) and model C (HR = 0.76, 95%CI = 0.63–0.9, P = 0.003). Notably, in model C where adjustments were made for all variables considered relevant to our study population’s characteristics and confounding factors alike; each standard deviation increase in DKR resulted in a noteworthy 24% reduction in the risk of death.Furthermore when comparing patients within different quartiles after adjusting for multiple variables using multivariate analysis, it was found that patients within lower quartiles exhibited lower hazard ratios compared to those within higher quartiles.This trend consistently persisted both in model B (HR = 0.90; 95% CI = 0.83 -0.96; P = 0.003) as well as being replicated by similar results obtained from model C (HR = 0.86; CI = 0.80–0.93; P < 0.001).In the adjusted C model accounting for all covariates, our RCS analysis revealed a linear correlation between DKR and all-cause mortality. Notably, the dose-response relationship exhibited a significant inverse trend, indicating a progressive reduction in all-cause mortality with increasing DKR (refer to Fig. 2).

Table 2 HRs and 95% CI for all-cause and Cardiovascular mortality according to quartiles of DKR.
Fig. 2
figure 2

RCS analysis on the association between the DKR and the risk of all-cause mortality and CVD mortality. (A) RCS curve of the association between the DKR and all-cause mortality, (B) RCS curve of the association between the DKR and CVD mortality. RCS: restricted cubic spline; CVD, Cardiovascular Disease; DKR, Dietary ketogenic ratio.

DKR and CVD mortality

We constructed three COX regression models to evaluate the association between DKR and the risk of CVD mortality. However, none of the three models demonstrated a statistically significant association between DKR and CVD mortality risk (Model A: HR = 1.31; CI = 0.94–1.8; P = 0.113, Model B: HR = 1.32; CI = 0.93–1.8; P = 0.124, or Model C: HR = 1.13; CI = 0.79–1.6; P = 0.504). Furthermore, no significant change in cardiovascular disease death risk was observed when comparing the lowest quartile of DKR with each subsequent quartile increase. In the Q4 group, the HRs of three COX models were as follows: model A (HR = 1.17; CI = 1.01–1.34; P = 0.033), model B (HR = 0.97; CI = 0.84–1.12; P = 0.706), and model C (HR = 0.95; CI = 0.83–1.10; P = 0.524).Similarly, in the adjusted C model that accounted for all covariates, our restricted cubic spline analysis revealed no discernible association between DKR and CVD mortality (refer to Fig. 3).

Fig. 3
figure 3

Stratified analysis of the DKR and risk of all-cause mortality. DKR, dietary ketogenic ratio; BMI, Body Mass Index.

Stratified and sensitivity analyses

In Model C, after adjusting for confounding factors, we conducted stratified analyses to determine the association between DKR and the risk of all-cause mortality as well as CVD mortality.The specific findings are presented in Table 3; Fig. 4. The results from the subgroup analyses were generally consistent with the overall outcomes, indicating that high DKR was linked to a reduced risk of all-cause mortality but not CVD mortality across different subgroups. In terms of subgroup analyses for all-cause mortality, no significant interactions were observed between DKR and male sex, age < 60 years, BMI < 24 kg/m2, smoking status, hypertension or diabetes. However, significant interactions were found among female participants, those aged ≥ 60 years old, individuals with BMI ≥ 24 kg/m2, non-smokers as well as non-hypertensive and non-diabetic patients. Notably, a more pronounced effect of DKR on the risk of all-cause mortality was noted within specific subgroups including women participants aged ≥ 60 years old with BMI ≥ 24 kg/m2 who were also non-smokers as well as non-hypertensive and non-diabetic patients. Regarding the association between DKR and CVD mortality, no significant cross-over effect was detected following corresponding subgroup analyses.

Table 3 Stratified analyses of the associations between DKR with all-cause and cardiovascular mortality.
Fig. 4
figure 4

Stratified analysis of the DKR and risk of cardiovascular mortality. DKR, dietary ketogenic ratio; BMI, Body Mass Index.

Sensitivity analyses, excluding participants who died within 2 years after study entry or had missing information on covariates (refer to Supplementary Tables 1 and 2), as well as results that excluded patients with stroke or cancer (refer to Supplementary Tables 3 and 4), yielded consistent findings with the primary DKR analysis.

Discussion

  • The KD has gained significant traction in recent years due to its potential health benefits, such as weight loss1 and improved metabolic health3. This study aims to investigate the impact of the KD on all-cause mortality and cardiovascular-related mortality by analyzing data from the NHANES spanning from 2001 to 2018. The findings demonstrate that the KD shows promise in reducing overall mortality risk without a concurrent increase in cardiovascular-related mortality, suggesting a potential protective effect against all-cause mortality. In this discussion, we will delve into the underlying mechanisms through which the KD may mitigate all-cause mortality while exploring reasons for its apparent lack of increased cardiovascular- related mortality risk.

  • Our analysis of the NHANES dataset revealed a significant association between adherence to a KD and a reduction in overall mortality rates. This finding is consistent with previous research suggesting that following a KD may confer protective effects against various chronic diseases and conditions contributing to mortality.

  • The KD exerts a multifaceted protective effect on all-cause mortality. Firstly, it has been demonstrated that the KD promotes metabolic health by facilitating weight loss15, attenuating inflammation16, and enhancing insulin sensitivity3. These factors play a pivotal role in reducing the risk of chronic conditions such as diabetes17, CVD18, and cancer19, which collectively contribute to overall mortality. Secondly, the KD has demonstrated neuroprotective effects, potentially contributing to a reduction in mortality rates. Research indicates that ketones, which are metabolic byproducts of fat breakdown in the KD, possess anti-inflammatory and antioxidant properties that can safeguard against neurodegenerative disorders20 and cognitive decline21-both of which are linked to an elevated risk of mortality. Furthermore, the KD has been demonstrated to modulate the gut microbiota, exerting a profound impact on overall health22. By fostering the proliferation of beneficial bacteria and mitigating harmful pathogens, the KD may contribute to the prevention of gastrointestinal diseases and enhancement of immune function, thereby diminishing mortality risk23. In addition, the KD has demonstrated efficacy in attenuating oxidative stress and enhancing mitochondrial function, both of which are pivotal determinants of aging and longevity24. By mitigating oxidative damage and facilitating efficient energy production, the KD holds promise for extending lifespan and reducing the susceptibility to age-related diseases. Finally, the KD has demonstrated its efficacy in exerting anti-inflammatory effects, which may also contribute to the reduction of all-cause mortality25. Chronic inflammation serves as a pivotal driver for numerous chronic diseases, and the anti-inflammatory properties associated with the KD have the potential to mitigate this risk and promote overall health and longevity.

  • The impact of the KD on cardiovascular health has been a subject of debate due to its high-fat content. However, our analysis of the NHANES data suggests that despite its high fat intake, the KD does not increase mortality related to cardiovascular conditions. There are several mechanisms that may explain this phenomenon. Firstly, the KD has been demonstrated to enhance lipid profiles by elevating high-density lipoprotein (HDL) cholesterol and reducing triglyceride levels, both of which confer protection against CVD26. Despite its high saturated fat content, the diet primarily comprises unsaturated fats, which have been linked to a decreased risk of heart disease. Secondly, the KD has demonstrated efficacy in reducing inflammation, a pivotal factor in the pathogenesis of atherosclerosis and CVD27. Through its ability to attenuate inflammatory markers and cytokines within the body, the KD holds promise in impeding the progression of cardiac ailments and diminishing the risk of mortality associated with cardiovascular disorders. Furthermore, the KD has demonstrated efficacy in enhancing blood pressure regulation, which is a pivotal determinant of cardiovascular well-being6. By facilitating weight loss and mitigating insulin resistance, the KD may contribute to blood pressure reduction and diminish the likelihood of developing hypertension, a significant risk factor for CVD. Additionally, the KD has demonstrated efficacy in enhancing endothelial function, a pivotal factor in the pathogenesis of atherosclerosis and CVD. Through mitigation of oxidative stress and inflammation, the KD exhibits potential for safeguarding endothelial integrity and preserving vascular health, thereby mitigating the risk of cardiovascular-related mortality28. Lastly, the KD has the potential to enhance overall cardiac function and mitigate the risk of arrhythmias29 and heart failure30. Research indicates that ketones, which serve as the primary energy source in a KD, may offer superior efficiency and protection as an energy substrate for the heart31, resulting in improved cardiac performance and reduced incidence of cardiovascular events.

  • In conclusion, our analysis of the NHANES data from 2001 to 2018 indicates that the KD holds potential in reducing all-cause mortality while not increasing cardiovascular-related mortality. The observed mechanisms underly- ing these effects encompass enhancements in metabolic health3, neuroprotection20, modulation of gut microbiota22, antioxidant and anti- inflammatory properties24, as well as overall prevention of age-related diseases. Further research is warranted to elucidate the specific pathways through which the KD exerts these effects and optimize its implementation for long-term health and longevity.

  • Therefore, the ketogenic diet, as a specific dietary pattern, holds potential benefits from a public health perspective by offering innovative therapeutic approaches for patients with obesity, metabolic syndrome, and certain refractory diseases. By implementing scientifically and logically tailored dietary adjustments, the ketogenic diet can contribute to improving the health status of these patients, mitigating the societal medical burden, and enhancing overall well-being. However, it is important to acknowledge that the suitability of the ketogenic diet may vary among individuals. Its stringent restrictions and high fat intake could potentially exert adverse effects on specific populations such as imposing additional strain on liver function and disrupting nutrient balance. Therefore, personalized guidance and vigilant monitoring should be emphasized during the promotion and application of KD to ensure its positive impact on public health.

Limitations

  • To ensure a comprehensive understanding of the findings, it is imperative to address the limitations of this study. Firstly, although rigorous data handling and statistical analysis indicate a potential trend towards reduced all-cause mortality risk without an increased risk of death from cardiovascular causes, the absence of direct measurement of ketosis levels poses a significant constraint in examining the relationship between ketosis and mortality risk. This hypothetical inference may not accurately reflect true ketosis status and could have influenced our study results. Therefore, future studies will employ more precise methods for directly measuring ketosis levels to comprehensively assess its potential association with all-cause mortality.

  • Furthermore, the assessment of dietary habits in this study was solely reliant on self-administered questionnaires without repeated measurements, which may introduce temporal instability when estimating dietary patterns. Although the dietary data in the NHANES database are derived from cross-sectional sampling with appropriate research design, data selection, and statistical analysis methods to provide valuable insights into associations between disease or health conditions and exposure factors, they cannot establish direct causal relationships.To address this limitation, future studies will explicitly discuss employing more rigorous methods for measuring dietary habits such as utilizing multiple repeated questionnaires or other objective dietary assessment tools to ensure precise and consistent evaluation of dietary patterns. In the future, through further research and technological advancements, we aim to acquire a more comprehensive understanding of the benefits and risks associated with ketogenic diets while making significant contributions to public health and well-being.

Conclusions

Our retrospective study suggests that the ketogenic diet may potentially reduce all-cause mortality without a concurrent increase in cardiovascular-related mortality. This finding underscores the significance of further research and exploration into the potential advantages of the ketogenic diet in promoting overall health and longevity. It is imperative for healthcare providers and policymakers to consider the potential impact of dietary interventions, such as the ketogenic diet, on reducing mortality rates and improving public health outcomes. Additional investigations are warranted to comprehensively comprehend the mechanisms underlying these observed associations and ascertain the feasibility and long-term sustainability of implementing a ketogenic diet for population-wide health benefits.