ORIGINAL RESEARCH article

Front. Nutr., 19 February 2026

Sec. Clinical Nutrition

Volume 13 - 2026 | https://doi.org/10.3389/fnut.2026.1755607

Vitamin D deficiency and risk of heart failure in patients with obstructive sleep apnea: a cohort analysis

  • 1. Department of Anesthesiology, Chi Mei Medical Center, Tainan, Taiwan

  • 2. Department of Anesthesiology, E-Da Hospital, I-Shou University, Kaohsiung, Taiwan

  • 3. Department of Nutrition, Chi Mei Medical Center, Tainan, Taiwan

  • 4. Department of Anesthesiology, Chi Mei Medical Center, Liouying, Tainan, Taiwan

Abstract

Background:

Obstructive sleep apnea (OSA) is independently associated with increased cardiovascular morbidity, and vitamin D deficiency is highly prevalent in OSA patients. However, whether vitamin D deficiency is associated with an elevated risk of heart failure, specifically within the OSA population, remains unclear.

Methods:

We conducted a retrospective cohort analysis using data from the TriNetX Global Collaborative Network (2010–2022) to investigate whether vitamin D deficiency, defined as a 25-hydroxyvitamin D concentration < 20 ng/mL, is associated with new-onset heart failure in adults diagnosed with OSA. Patients with sufficient vitamin D levels (≥30 ng/mL) served as controls. Propensity score matching (1:1) was performed to balance the baseline characteristics. The primary outcome was incident heart failure; secondary outcomes included all-cause mortality, secondary pulmonary hypertension, primary pulmonary hypertension, and pulmonary embolism at the 5-year follow-up.

Results:

After propensity score matching, 36,497 patients were included in each cohort. Vitamin D deficiency was significantly associated with a higher risk of heart failure (HR 1.45; 95% CI 1.37–1.53; p < 0.001), all-cause mortality (HR 1.76; 95% CI 1.64–1.89; p < 0.001), secondary pulmonary hypertension (HR 1.25; 95% CI 1.13–1.38; p < 0.001), and pulmonary embolism (HR 1.31; 95% CI 1.17–1.47; p < 0.001). No significant association was observed with primary pulmonary hypertension (HR 1.22; 95% CI 0.84–1.79; p = 0.300). Dose-response analysis revealed attenuated associations for vitamin D insufficiency (20–29.9 ng/mL). Subgroup analyses demonstrated a stronger association among obese patients (p for interaction = 0.028).

Conclusion:

Among adults with OSA, vitamin D deficiency was linked to a markedly higher risk of developing heart failure as well as other unfavorable cardiopulmonary events, and this association demonstrated a clear dose–response pattern. These findings suggest that vitamin D status may represent an important factor in cardiovascular risk stratification in patients with OSA.

1 Introduction

Obstructive sleep apnea (OSA) is a highly prevalent sleep-disordered breathing condition characterized by repetitive episodes of upper airway obstruction during sleep, leading to intermittent hypoxia, sleep fragmentation, and sympathetic nervous system activation (1–3). The global burden of OSA continues to rise alongside increasing rates of obesity and aging populations, with estimates suggesting that the condition affects a substantial proportion of adults worldwide (4–6). Beyond its immediate impact on sleep quality and daytime functioning, OSA has emerged as an independent risk factor for a broad spectrum of cardiovascular complications including hypertension, coronary artery disease, arrhythmias, and heart failure (7–9). The pathophysiological mechanisms linking OSA to cardiovascular disease are multifactorial and include chronic intermittent hypoxia, oxidative stress, systemic inflammation, endothelial dysfunction, and metabolic dysregulation (7–9). These interconnected pathways contribute to adverse cardiac remodeling and may accelerate the progression toward heart failure in susceptible individuals. Given the substantial overlap between OSA and cardiovascular morbidity, identifying modifiable factors that may influence this relationship has important clinical implications for risk stratification and preventive strategies.

Vitamin D deficiency (VDD) has been implicated in the development of cardiovascular diseases through its pleiotropic effects on neurohormonal, endothelial, and inflammatory pathways (10–16). Notably, VDD is highly prevalent among patients with OSA, potentially due to shared risk factors such as obesity and metabolic dysfunction (17–19). However, whether VDD is independently associated with an elevated risk of heart failure, specifically in patients with OSA, remains unclear. Accordingly, we designed a retrospective cohort analysis based on a large federated electronic health record network to assess their relationship in adults with OSA and to further explore possible dose–response patterns and variations in risk across key clinically relevant subgroups.

2 Methods

2.1 Study design and data source

This retrospective cohort investigation was conducted using the TriNetX Research Network (TriNetX, LLC, Cambridge, MA, USA), a federated electronic health record database. The TriNetX database has been widely utilized and cited in numerous peer-reviewed observational studies across diverse clinical domains (20–22). In this study, we sought to determine whether VDD is associated with the development of new-onset heart failure in adults with OSA, thereby clarifying whether a low vitamin D status identifies a subgroup of OSA patients at particularly elevated cardiovascular risk. The research protocol was approved by the Institutional Review Board of Chi Mei Medical Center, which waived the requirement for informed consent because only de-identified data were used.

2.2 Study population and cohort definitions

The study population comprised adults with a previous diagnosis of OSA. OSA was identified using the International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) code G47.33, with at least one documented diagnosis recorded prior to or on the index date in the TriNetX database. Patients were classified into two cohorts based on their serum 25-hydroxyvitamin D (25 [OH] D) levels. The exposure cohort consisted of patients with vitamin D deficiency (VDD), defined as a serum 25(OH)D level of < 20 ng/mL. The control cohort comprised patients with sufficient vitamin D status, operationalized as a serum 25(OH)D concentration ≥30 ng/mL, and without any documented measurement in the deficient range during the baseline period. To ensure persistent vitamin D status throughout the observation period, patients in the deficiency cohort were required to have at least one additional measurement confirming levels below 20 ng/mL within 3 months to 5 years after the index date, with no subsequent measurements reaching 20 ng/mL or above. Similarly, individuals assigned to the control cohort, defined as levels ≥30 ng/mL, were required to consistently exhibit 25(OH)D concentrations ≥30 ng/mL with no recorded values below 30 ng/mL during the defined assessment window.

The index date for each participant was designated as the earliest vitamin D measurement that fulfilled the eligibility criteria for the respective cohort. 25(OH)D levels were obtained from laboratory records available in the TriNetX database. As TriNetX aggregates de-identified electronic health record data from multiple healthcare organizations, detailed information regarding assay methods, laboratory platforms, or calibration procedures used to measure 25(OH)D was not available. Therefore, vitamin D status in this study was defined based on recorded serum 25(OH)D values rather than specific analytical techniques. To ensure adequate follow-up, patients were required to have at least one documented healthcare visit within 3 months to 5 years of the index date.

2.3 Exclusion criteria

Patients were excluded if they were diagnosed with primary or secondary pulmonary hypertension at baseline or within 3 months after the index date. To minimize the influence of acute illness on vitamin D levels, patients with acute kidney failure, sepsis, COVID-19, or ICU admission were excluded. We excluded individuals with advanced chronic kidney disease because severe renal impairment profoundly alters the vitamin D metabolism. Additionally, patients with pre-existing conditions that could confound the relationship between vitamin D status and cardiovascular outcomes, including heart failure, pulmonary embolism, chronic pulmonary embolism, congenital malformations of the circulatory system, and human immunodeficiency virus infection, were excluded.

2.4 Propensity score matching

Baseline covariates included demographic characteristics (age, sex, and race), lifestyle factors (e.g., nicotine dependence), cardiovascular and metabolic comorbidities (e.g., ischemic heart disease and hypertension), chronic organ dysfunction (e.g., chronic kidney disease), anemia, neoplasms, and long-term steroid use. In addition, the use of continuous positive airway pressure (CPAP) for OSA and cardiometabolic medications (e.g., glucagon-like peptide-1 receptor agonists, sodium–glucose cotransporter 2 inhibitors) as well as laboratory markers (e.g., albumin, hemoglobin A1c) were incorporated into the propensity score model (Supplementary Table 1). The use of CPAP therapy was identified based on relevant prescription and procedure records within the database. Detailed information on CPAP adherence, including nightly usage duration or compliance metrics, was not available on the TriNetX platform; therefore, CPAP exposure in this study reflects documented treatment initiation rather than verified long-term adherence. Propensity score matching was performed in a 1:1 ratio between the VDD and control cohorts based on all listed characteristics. One-to-one greedy nearest-neighbor matching without replacement was performed using a caliper width of 0.1 standard deviations of the logit of the propensity score. Covariate balance between cohorts was evaluated using standardized mean differences, with values < 0.1 indicating adequate balance.

2.5 Outcome definition and follow-up

The primary outcome was incident heart failure, while secondary outcomes included secondary pulmonary hypertension, primary pulmonary hypertension, pulmonary embolism, and all-cause mortality at the 5-year follow-up. Outcomes were assessed during follow-up windows beginning 90 days after the index date and extending to 3 and 5 years, allowing for a latency period between exposure and outcome development while enabling the evaluation of both medium-term and long-term associations.

2.6 Dose-response analysis

To evaluate the potential dose-response relationships between vitamin D status and adverse outcomes, an additional analysis was conducted to compare patients with vitamin D insufficiency against the control cohort. Vitamin D insufficiency was defined as serum 25(OH)D levels between 20 and 29.9 ng/mL. This intermediate-exposure cohort was then compared with patients who consistently had sufficient vitamin D levels by applying the same matching approach and outcome evaluation strategy over a 5-year follow-up period. This study aimed to determine whether a graded association exists between declining vitamin D levels and the risk of heart failure.

2.7 Subgroup analysis

Patients were stratified by sex (male vs. female), age (18–50 years vs. >50 years), and the presence or absence of hypertension, obesity, cancer, hyperlipidemia, and diabetes mellitus. Within each stratum, new propensity score matching was carried out to achieve covariate balance between the vitamin D–deficient and control cohorts. Effect modification was evaluated by introducing interaction terms, and p-values for these interactions were reported to indicate whether the relationship between VDD and heart failure differed across subgroups.

2.8 Statistical analysis

Kaplan–Meier survival analysis was performed to estimate the cumulative incidence of each outcome across predefined follow-up periods, with time zero defined as the index date. Patients were censored at the time of the last available follow-up, death (for non-mortality outcomes), or the end of the observation window, whichever occurred first. Between-group differences in the survival distribution were evaluated using the log-rank test. Hazard ratios (HRs) with corresponding 95% confidence intervals (CIs) were calculated using Cox proportional hazard regression models. The proportional hazards assumption was assessed by inspecting Schoenfeld residuals and testing for time-dependent effects. All time-to-event analyses were conducted on propensity score-matched cohorts to reduce confounding by baseline imbalances. A two-sided p-value of less than 0.05 was considered statistically significant.

3 Results

3.1 Patient selection and baseline characteristics

Using TriNetX, we identified 43,492 adults with OSA who had VDD and 136,108 adults with sufficient vitamin D levels that satisfied all predefined inclusion and exclusion criteria (Figure 1). After applying propensity score matching in a 1:1 ratio, 36,497 patients remained in each cohort for analysis. Before matching, there were notable differences between cohorts in age (46.9 ± 17.0 vs. 59.5 ± 14.3 years), racial distribution (54.6% vs. 81.6% White), and several comorbidities (e.g., hypertension, hyperlipidemia, nicotine dependence) (Table 1). Following propensity score matching, all baseline characteristics achieved excellent balance. The matched cohorts were comparable in mean age (50.1 ± 15.6 vs. 50.0 ± 15.8 years), sex distribution (52.8% vs. 52.6% female), obesity (BMI ≥ 30 kg/m2) prevalence (61.9% vs. 62.4%), and rates of hypertension, diabetes mellitus, chronic kidney disease, and other relevant comorbidities. Medication use and CPAP therapy were also well balanced between the groups.

Figure 1

Table 1

VariablesBefore matchingAfter matching
VDD group (n = 43,492)Control group (n = 136,108)SMD†VDD group (n = 36,497)Control group (n = 36,497)SMD†
Patient characteristics
Age at index (years)46.9 ± 17.059.5 ± 14.30.80450.1 ± 15.650.0 ± 15.80.002
Female22,916 (52.7)77,718 (57.1)0.08919,266 (52.8)19,196 (52.6)0.004
BMI ≥ 30 kg/m226,891 (61.8)76,453 (56.2)0.11522,589 (61.9)22,771 (62.4)0.010
White23,743 (54.6)111,017 (81.6)0.60423,179 (63.5)23,197 (63.6)0.001
Black or African American12,597 (29.0)12,462 (9.2)0.5217,696 (21.1)7,692 (21.1)0.000
Asian796 (1.8)3,272 (2.4)0.040762 (2.1)698 (1.9)0.013
Comorbidities
Overweight and obesity26,596 (61.2)64,870 (47.7)0.27321,277 (58.3)21,356 (58.5)0.004
Essential (primary) hypertension24,020 (55.2)86,600 (63.6)0.17221,157 (58.0)21,203 (58.1)0.003
Hyperlipidemia19,284 (44.3)84,184 (61.9)0.35617,743 (48.6)17,620 (48.3)0.007
Diabetes mellitus12,760 (29.3)39,355 (28.9)0.00911,051 (30.3)10,986 (30.1)0.004
Neoplasms10,684 (24.6)50,975 (37.5)0.2819,945 (27.2)9,824 (26.9)0.007
Nicotine dependence7,318 (16.8)12,455 (9.2)0.2305,686 (15.6)5,675 (15.5)0.001
Ischemic heart diseases4,806 (11.1)21,234 (15.6)0.1344,444 (12.2)4,367 (12.0)0.006
Diseases of liver4,929 (11.3)16,200 (11.9)0.0184,385 (12.0)4,251 (11.6)0.011
Other anemias5,286 (12.2)16,778 (12.3)0.0054,370 (12.0)4,321 (11.8)0.004
COPD3,977 (9.1)11,634 (8.5)0.0213,484 (9.5)3,426 (9.4)0.005
Chronic kidney disease2,442 (5.6)12,560 (9.2)0.1382,262 (6.2)2,253 (6.2)0.001
Alcohol related disorders1,830 (4.2)3,940 (2.9)0.0711,504 (4.1)1,445 (4.0)0.008
Long term use of steroids1,400 (3.2)4,805 (3.5)0.0171,203 (3.3)1,174 (3.2)0.004
COVID-19949 (2.2)3,599 (2.6)0.030841 (2.3)803 (2.2)0.007
Venous embolism and thrombosis944 (2.2)3,105 (2.3)0.008817 (2.2)797 (2.2)0.004
Nonrheumatic mitral valve disorders854 (2.0)5,513 (4.1)0.122815 (2.2)878 (2.4)0.011
Nonrheumatic aortic valve disorders602 (1.4)4,204 (3.1)0.115577 (1.6)568 (1.6)0.002
Laboratory data
Albumin g/dL (≥3.5 g/dL)28,674 (65.9)95,745 (70.3)0.09524,638 (67.5)24,497 (67.1)0.008
eGFR > 60 ml/min/1.73 m231,183 (71.7)1,02,087 (75.0)0.07527,069 (74.2)26,937 (73.8)0.008
Hemoglobin A1c >7%6,782 (15.6)17,802 (13.1)0.0725,745 (15.7)5,669 (15.5)0.006
Hemoglobin >12 g/dL30,052 (69.1)99,123 (72.8)0.08225,895 (71.0)25,785 (70.7)0.007
Medication
Antilipemic agents13,377 (30.8)60,427 (44.4)0.28412,404 (34.0)12,344 (33.8)0.003
Insulin7,073 (16.3)18,053 (13.3)0.0855,922 (16.2)5,914 (16.2)0.001
Vitamin D supplement5,958 (13.7)35,531 (26.1)0.3155,637 (15.4)5,800 (15.9)0.012
Antianginals3,342 (7.7)11,331 (8.3)0.0242,913 (8.0)2,869 (7.9)0.004
GLP-1 analogs2,225 (5.1)7,891 (5.8)0.0301,997 (5.5)2,041 (5.6)0.005
SGLT2 inhibitors1,092 (2.5)4,081 (3.0)0.0301,005 (2.8)1,044 (2.9)0.006
Treatment of OSA
CPAP1,482 (3.4)5,151 (3.8)0.0201,294 (3.5)1,219 (3.3)0.011

Baseline characteristics of patients with obstructive sleep apnea before and after propensity score matching.

Data are presented as mean ± standard deviation for continuous variables and n (%) for categorical variables.

BMI, body mass index; COPD, chronic obstructive pulmonary disease; CPAP, continuous positive airway pressure; eGFR, estimated glomerular filtration rate; GLP-1, glucagon-like peptide-1; OSA, obstructive sleep apnea; SGLT2, sodium-glucose cotransporter-2; SMD, standardized mean difference; VDD, vitamin D deficiency.

†SMD values < 0.1 indicate adequate balance between groups after matching.

3.2 Cardiopulmonary outcomes at 5-year follow-up

During a mean follow-up of approximately 4 years (1,420 vs. 1,465 days in the VDD and control cohorts, respectively), VDD was significantly associated with higher rates of incident heart failure than the control group (7.7% vs. 5.6%; HR 1.45; 95% CI 1.37–1.53; p < 0.001; Table 2). All-cause mortality was also significantly higher among patients with VDD (HR 1.76; 95% CI 1.64–1.89; p < 0.001). With respect to other secondary outcomes, VDD demonstrated significant associations with secondary pulmonary hypertension (HR 1.25; 95% CI 1.13–1.38; p < 0.001) and pulmonary embolism (HR 1.31; 95% CI 1.17–1.47; p < 0.001). However, no statistically significant association was observed between VDD and primary pulmonary hypertension (HR 1.22; 95% CI 0.84–1.79; p = 0.300).

Table 2

OutcomesVDD group (n = 36,497)Control group (n = 36,497)HR (95% CI)p-value
Events (%)Events (%)
Heart failure2,824 (7.7%)2,041 (5.6%)1.45 (1.37–1.53)< 0.001
Mortality2,119 (5.8%)1,247 (3.4%)1.76 (1.64–1.89)< 0.001
Secondary pulmonary hypertension899 (2.5%)745 (2.0%)1.25 (1.13–1.38)< 0.001
Primary pulmonary hypertension58 (0.16%)49 (0.13%)1.22 (0.84–1.79)0.300
Pulmonary embolism647 (1.8%)510 (1.4%)1.31 (1.17–1.47)< 0.001

Association between vitamin D deficiency and cardiopulmonary complications at 5-year follow-up.

Values are expressed as event counts (percentages) unless otherwise indicated.

VDD, vitamin D deficiency; HR, hazard ratio; CI, confidence interval.

3.3 Cardiopulmonary outcomes at 3-year follow-up

At the 3-year follow-up, the overall pattern of results remained unchanged (Table 3). VDD continued to be associated with higher incidences of heart failure (HR 1.50; 95% CI 1.40–1.61; p < 0.001) and all-cause mortality (HR 1.89; 95% CI 1.73–2.06; p < 0.001), as shown in Table 3. Elevated risks were also noted for secondary pulmonary hypertension (HR 1.22; 95% CI 1.09–1.38; p < 0.001) and pulmonary embolism (HR 1.41; 95% CI 1.23–1.61; p < 0.001), both remaining statistically significant at this time point. Primary pulmonary hypertension did not show a significant association with VDD at three-year follow-up (HR 1.15; 95% CI 0.74–1.79; p = 0.541).

Table 3

OutcomesVDD group (n = 36,497)Control group (n = 36,497)HR (95% CI)p-value
Events (%)Events (%)
Heart failure1,974 (5.4%)1,376 (3.8%)1.50 (1.40–1.61)< 0.001
Mortality1,501 (4.1%)826 (2.3%)1.89 (1.73–2.06)< 0.001
Secondary pulmonary hypertension588 (1.6%)500 (1.4%)1.22 (1.09–1.38)< 0.001
Primary pulmonary hypertension41 (0.11%)37 (0.10%)1.15 (0.74–1.79)0.541
Pulmonary embolism480 (1.3%)354 (1.0%)1.41 (1.23–1.61)< 0.001

Association between vitamin D deficiency and cardiopulmonary complications at 3-year follow-up.

Values are expressed as event counts (percentages) unless otherwise indicated.

VDD, vitamin D deficiency; HR, hazard ratio; CI, confidence interval.

3.4 Dose-response analysis

To evaluate potential dose-response relationships, we compared patients with vitamin D insufficiency (25(OH)D 20–29.9 ng/mL) against those with sufficient vitamin D levels (Table 4). After propensity score matching (n = 51,582 per group), vitamin D insufficiency was associated with modestly elevated risks of heart failure (HR 1.15; 95% CI 1.09–1.21; p < 0.001), all-cause mortality (HR 1.36; 95% CI 1.28–1.44; p < 0.001), and pulmonary embolism (HR 1.15; 95% CI 1.04–1.27; p = 0.008) at five-year follow-up. Notably, the HRs in the insufficiency group were lower than those in the deficiency group, indicating a stepwise increase in cardiopulmonary risk as the vitamin D concentration declined.

Table 4

OutcomesVDI group (n = 51,582)Control group (n = 51,582)HR (95% CI)p-value
Events (%)Events (%)
Heart failure3,336 (6.5%)2,995 (5.8%)1.15 (1.09–1.21)< 0.001
Mortality2,425 (4.7%)1,839 (3.6%)1.36 (1.28–1.44)< 0.001
Secondary pulmonary hypertension1,054 (2.0%)1,043 (2.0%)1.04 (0.95–1.13)0.379
Primary pulmonary hypertension69 (0.13%)61 (0.12%)1.17 (0.83–1.64)0.385
Pulmonary embolism780 (1.5%)698 (1.4%)1.15 (1.04–1.27)0.008

Association between vitamin D insufficiency and cardiopulmonary complications at 5-year follow-up.

Values are expressed as event counts (percentages) unless otherwise indicated.

VDI, vitamin D insufficiency; HR, hazard ratio; CI, confidence interval.

3.5 Subgroup analysis

In a priori–defined subgroup analyses, the relationship between VDD and new-onset heart failure over the 5-year observation period was generally consistent across the various clinical strata (Figure 2). The association remained significant regardless of sex, age category, and the presence or absence of hypertension, cancer, hyperlipidemia, or diabetes mellitus, with no significant interaction effects observed for these variables. However, a significant interaction was identified for obesity status (p for interaction = 0.028), with obese patients showing a stronger association between VDD and heart failure (HR 1.55; 95% CI 1.44–1.67) than non-obese patients (HR 1.36; 95% CI 1.24–1.49).

Figure 2

4 Discussion

The present study investigated the association between VDD and incident heart failure among adults with OSA using a large federated health research network. In this cohort, individuals with VDD had a roughly 45% greater risk of developing heart failure during the 5-year follow-up than those with sufficient vitamin D levels. This association persisted after rigorous propensity score matching and was consistent across both 3-year and 5-year follow-up windows. Furthermore, we observed a graded relationship between vitamin D status and heart failure risk, with patients exhibiting vitamin D insufficiency demonstrating an intermediate-risk elevation (HR 1.15) compared to those with VDD (HR 1.45). Subgroup analyses revealed consistent associations across most clinical subgroups, with a notably stronger association observed among obese patients.

Our findings align with and extend prior epidemiological evidence linking VDD to cardiovascular outcomes (15, 16). In the Framingham Offspring Study, individuals with 25(OH)D levels below 15 ng/mL exhibited a 62% increased risk of cardiovascular events during 5.4 years of follow-up, with the association being particularly pronounced among hypertensive individuals (23). A meta-analysis of seven cohort studies encompassing 5,941 patients with heart failure reported that low vitamin D status was associated with a 37% increased risk of all-cause mortality (24). Our observed HR of 1.45 for incident heart failure falls within the range of effect sizes reported in these investigations, suggesting biological consistency across different populations. Notably, a recent bidirectional Mendelian randomization study provided genetic evidence supporting a causal relationship between vitamin D status and heart failure risk, thus strengthening the plausibility of our observational findings (25).

Critically, prior studies were conducted predominantly in the general population or among patients with established heart failure, rather than specifically examining OSA patients at risk of developing heart failure. Although meta-analyses have consistently demonstrated that OSA patients have significantly lower serum 25(OH)D levels than controls regardless of age or BMI, and that this deficiency worsens with increasing OSA severity (18, 19), no prior study has directly examined whether VDD confers additional heart failure risk specifically within the OSA population. Our investigation revealed that among patients with OSA, VDD is associated with an elevated risk of heart failure. Together, these studies suggest a bidirectional relationship between vitamin D status and sleep-disordered breathing, which may have cumulative cardiovascular consequences.

Several biological mechanisms may underlie this association. Vitamin D modulates the renin-angiotensin-aldosterone system by suppressing renin gene expression, and deficiency may promote hypertension, myocardial hypertrophy, and fibrosis through inappropriate neurohormonal activation (26, 27). Vitamin D also possesses anti-inflammatory properties, regulating pro-inflammatory cytokines (28, 29). Given that OSA is characterized by chronic low-grade systemic inflammation driven by intermittent hypoxia, superimposed VDD may amplify inflammatory cascades, contributing to endothelial dysfunction and adverse cardiac remodeling. Additionally, vitamin D influences calcium homeostasis in cardiomyocytes and has been linked to insulin resistance (30), a condition prevalent among OSA patients that independently contributes to heart failure risk (31, 32). The convergence of these pathways in patients with OSA and concomitant VDD may create a particularly adverse milieu for cardiac health.

The dose-response relationship observed in our study provides additional support for biological plausibility. The attenuated HR among patients with vitamin D insufficiency (HR 1.15) compared to those with VDD (HR 1.45) suggests that the relationship follows a continuous gradient rather than a simple threshold effect. Such dose-response patterns strengthen epidemiological associations by reducing the likelihood of confounding and aligning with causal frameworks. Nevertheless, as an observational study, causality cannot be established and residual confounding by unmeasured factors cannot be entirely excluded.

The significant association between VDD and obesity merits further investigation. Our subgroup analyses revealed a stronger association among obese patients (HR 1.55) than among non-obese individuals (HR 1.36). This finding aligns with evidence that adipose tissue sequesters vitamin D, reducing its bioavailability despite comparable total serum concentrations (33, 34). Similarly, the Jackson Heart Study observed that higher 25(OH)D levels were more strongly associated with reduced heart failure risk and inhibited left ventricular concentric remodeling in certain subgroups (35). Therefore, the combination of OSA, obesity, and VDD may constitute a particularly high-risk phenotype that deserves targeted clinical attention, as these three conditions share overlapping pathophysiological pathways involving inflammation, metabolic dysfunction, and neurohormonal activation.

Our study had several methodological strengths. The large sample size derived from 167 healthcare organizations provided adequate statistical power and enhanced generalizability. Confirmatory vitamin D measurements ensured that exposure classification reflected sustained vitamin D status rather than transient fluctuations. Extensive propensity score matching achieved excellent covariate balance, with all standardized mean differences below 0.1. The exclusion of patients with baseline heart failure, advanced chronic kidney disease, and recent acute illnesses minimized reverse causation and confounding factors substantially affecting vitamin D metabolism.

This study has several limitations that warrant consideration. First, its retrospective observational design precludes the establishment of causality between VDD and heart failure. Despite rigorous propensity score matching, residual confounding from unmeasured factors (e.g., diet, sunlight exposure, parathyroid hormone levels, and socioeconomic status) and potential reverse causation cannot be fully excluded, as conditions and behaviors (e.g., obesity, reduced physical activity, chronic illness burden, or systemic inflammation) associated with a higher risk of heart failure may contribute to lower circulating vitamin D levels. Second, the TriNetX database relies on diagnostic codes entered during routine clinical care, which may introduce misclassification bias for both exposure and outcome ascertainment. Third, although we required confirmatory vitamin D measurements to ensure a sustained exposure status, we could not account for vitamin D supplementation adherence or dosing between measurements, potentially attenuating the observed associations. In addition, reliance on single or limited laboratory assessments may not fully capture long-term vitamin D status over the follow-up period. Fourth, objective measures of OSA severity, including the apnea–hypopnea index and oxygen desaturation parameters, were not available in the TriNetX database, precluding assessment of effect modification or dose–response relationships according to disease severity. Fifth, CPAP adherence could not be comprehensively assessed beyond prescription records, and treatment compliance may have substantially influenced the cardiovascular outcomes. Sixth, we lacked information regarding heart failure subtypes, precluding differentiation between heart failure with preserved and reduced ejection fractions. Finally, while the multi-institutional nature of TriNetX enhances generalizability, the predominance of healthcare organizations from specific geographic regions may limit its applicability to other populations.

5 Conclusion

This large retrospective cohort study demonstrates that VDD is associated with a significantly increased risk of incident heart failure among adults with OSA, with evidence of a dose-response relationship. These findings address a previously unexamined knowledge gap and underscore the potential importance of vitamin D status in the cardiovascular health of patients with OSA. Given the absence of objective measures of obstructive sleep apnea severity, such as the apnea–hypopnea index, our findings should be interpreted with appropriate caution and viewed as hypothesis-generating rather than confirmatory. Prospective interventional studies are required to determine whether correction of VDD can modify heart failure risk before any clinical recommendations can be made.

Statements

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics statement

The studies involving humans were approved by Institutional Review Board of Chi Mei Medical Center. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committe/institutional review board waived the requirement of written informed consent for participation from the participants or the participants' legal guardians/next of kin because The research protocol was approved by the Institutional Review Board of Chi Mei Medical Center, which waived the requirement for informed consent because only de-identified data were used.

Author contributions

Y-JC: Conceptualization, Data curation, Formal analysis, Methodology, Validation, Writing – original draft, Writing – review & editing. H-LW: Conceptualization, Methodology, Resources, Writing – original draft, Writing – review & editing. K-CH: Conceptualization, Data curation, Investigation, Methodology, Software, Writing – original draft, Writing – review & editing. C-NH: Investigation, Methodology, Resources, Writing – original draft, Writing – review & editing. Y-CL: Conceptualization, Data curation, Writing – original draft, Writing – review & editing. J-YW: Data curation, Formal analysis, Methodology, Writing – original draft, Writing – review & editing. I-WC: Conceptualization, Data curation, Formal analysis, Investigation, Software, Validation, Visualization, Writing – original draft, Writing – review & editing.

Funding

The author(s) declared that financial support was not received for this work and/or its publication.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnut.2026.1755607/full#supplementary-material

References

  • 1.

    GabryelskaATurkiewiczSKarugaFFSochalMStrzeleckiDBiałasiewiczP. Disruption of circadian rhythm genes in obstructive sleep apnea patients-possible mechanisms involved and clinical implication. Int J Mol Sci. (2022) 23:709. doi: 10.3390/ijms23020709

  • 2.

    RallsFCutchenL. A contemporary review of obstructive sleep apnea. Curr Opin Pulm Med. (2019) 25:578–93. doi: 10.1097/MCP.0000000000000623

  • 3.

    YeghiazariansYJneidHTietjensJRRedlineSBrownDLEl-SherifNet al. Obstructive sleep apnea and cardiovascular disease: a scientific statement from the American Heart Association. Circulation. (2021) 144:e56–67. doi: 10.1161/CIR.0000000000000988

  • 4.

    IannellaGPaceABellizziMGMagliuloGGrecoADe VirgilioAet al. The global burden of obstructive sleep apnea. Diagnostics. (2025) 15:1088. doi: 10.3390/diagnostics15091088

  • 5.

    LechatBMannersJPinillaLReynoldsACScottHVenaDet al. Global warming may increase the burden of obstructive sleep apnea. Nat Commun. (2025) 16:5100. doi: 10.1038/s41467-025-60218-1

  • 6.

    de Araujo DantasABGonçalvesFMMartinsAAAlvesGStechman-NetoJCorrêaCCet al. Worldwide prevalence and associated risk factors of obstructive sleep apnea: a meta-analysis and meta-regression. Sleep Breath. (2023) 27:2083–109. doi: 10.1007/s11325-023-02810-7

  • 7.

    DredlaBKCastilloPR. Cardiovascular consequences of obstructive sleep apnea. Curr Cardiol Rep. (2019) 21:137. doi: 10.1007/s11886-019-1228-3

  • 8.

    JavaheriSJavaheriSSomersVKGozalDMokhlesiBMehraRet al. Interactions of obstructive sleep apnea with the pathophysiology of cardiovascular disease, Part 1: JACC State-of-the-Art Review. J Am Coll Cardiol. (2024) 84:1208–23. doi: 10.1016/j.jacc.2024.02.059

  • 9.

    TorresGSánchezde. la Torre M, Pinilla L, Barbé F. Obstructive sleep apnea and cardiovascular risk. Clin Investig Arterioscler. (2024) 36:234–42. doi: 10.1016/j.artere.2024.07.003

  • 10.

    RenkeGStarling-SoaresBBaessoTPetronioRAguiarDPaesR. Effects of vitamin D on cardiovascular risk and oxidative stress. Nutrients. (2023) 15:769. doi: 10.3390/nu15030769

  • 11.

    TappiaPSLopezRFitzpatrick-WongSRamjiawanB. Understanding the role of vitamin D in heart failure. Rev Cardiovasc Med. (2023) 24:111. doi: 10.31083/j.rcm2404111

  • 12.

    PálÉUngváriZBenyóZVárbíróS. Role of vitamin D deficiency in the pathogenesis of cardiovascular and cerebrovascular diseases. Nutrients. (2023) 15:334. doi: 10.3390/nu15020334

  • 13.

    SohVTanSJXSehgalRShirkeMMAshryAHarkyA. The relationship between vitamin D status and cardiovascular diseases. Curr Probl Cardiol. (2021) 46:100836. doi: 10.1016/j.cpcardiol.2021.100836

  • 14.

    KimDHMezaCAClarkeHKimJSHicknerRC. Vitamin D and endothelial function. Nutrients. (2020) 12:575. doi: 10.3390/nu12020575

  • 15.

    GrüblerMRMärzWPilzSGrammerTBTrummerCMüllnerCet al. Vitamin-D concentrations, cardiovascular risk and events - a review of epidemiological evidence. Rev Endocr Metab Disord. (2017) 18:259–72. doi: 10.1007/s11154-017-9417-0

  • 16.

    KouvariMPanagiotakosDB. Vitamin D status, gender and cardiovascular diseases: a systematic review of prospective epidemiological studies. Expert Rev Cardiovasc Ther. (2019) 17:545–55. doi: 10.1080/14779072.2019.1637255

  • 17.

    YaoNMaCDouRShenCYuanYLiWet al. Exploring the link between vitamin D deficiency and obstructive sleep apnea: a comprehensive review. J Sleep Res. (2024) 33:e14166. doi: 10.1111/jsr.14166

  • 18.

    LohHHLimQHKangWHYeeAYongMCSukorN. Obstructive sleep apnea and vitamin D: an updated systematic review and meta-analysis. Hormones. (2023) 22:563–80. doi: 10.1007/s42000-023-00481-3

  • 19.

    LiXHeJYunJ. The association between serum vitamin D and obstructive sleep apnea: an updated meta-analysis. Respir Res. (2020) 21:294. doi: 10.1186/s12931-020-01554-2

  • 20.

    HungKCYuTSLaiYCYuCHWuJYTsaiWWet al. Perioperative ketamine exposure and postoperative atrial fibrillation/flutter risk after video-assisted thoracoscopic surgery: a multi-institutional study. Drug Des Devel Ther. (2025) 19:11173–85. doi: 10.2147/DDDT.S569143

  • 21.

    HungKCChangLCLaiYCWuJYChenIW. Perioperative dexmedetomidine exposure and one-year mortality risk after video-assisted thoracoscopic surgery: a multi-institutional study. Drug Des Devel Ther. (2025) 19:10495–506. doi: 10.2147/DDDT.S560044

  • 22.

    KoCCChangLCHungKCLaiYCWuJYKangFC. Association between sugammadex use and risk of postoperative urinary complications after metabolic and bariatric surgery: a multi-institutional study. Obes Surg. (2025) 35:5092–100. doi: 10.1007/s11695-025-08290-w

  • 23.

    WangTJPencinaMJBoothSLJacquesPFIngelssonELanierKet al. Vitamin D deficiency and risk of cardiovascular disease. Circulation. (2008) 117:503–11. doi: 10.1161/CIRCULATIONAHA.107.706127

  • 24.

    WangXWangJGaoTSunHYangB. Is vitamin D deficiency a risk factor for all-cause mortality and rehospitalization in heart failure patients? : a systematic review and meta-analysis. Medicine. (2022) 101:e29507. doi: 10.1097/MD.0000000000029507

  • 25.

    GaoNLiXKongMNiMWeiDZhuXet al. Associations between vitamin D levels and risk of heart failure: a bidirectional mendelian randomization study. Front Nutr. (2022) 9:910949. doi: 10.3389/fnut.2022.910949

  • 26.

    Al-IshaqRKKubatkaPBrozmanovaMGazdikovaKCaprndaMBüsselbergD. Health implication of vitamin D on the cardiovascular and the renal system. Arch Physiol Biochem. (2021) 127:195–209. doi: 10.1080/13813455.2019.1628064

  • 27.

    HanLXuXJZhangJSLiuHM. Association between vitamin D deficiency and levels of renin and angiotensin in essential hypertension. Int J Clin Pract. (2022) 2022:8975396. doi: 10.1155/2022/8975396

  • 28.

    FenerciogluAK. The anti-inflammatory roles of vitamin D for improving human health. Curr Issues Mol Biol. (2024) 46:13514–25. doi: 10.3390/cimb46120807

  • 29.

    MoslemiEMusazadehVKavyaniZNaghshNShouraSMSDehghanP. Efficacy of vitamin D supplementation as an adjunct therapy for improving inflammatory and oxidative stress biomarkers: an umbrella meta-analysis. Pharmacol Res. (2022) 186:106484. doi: 10.1016/j.phrs.2022.106484

  • 30.

    Szymczak-PajorISliwińskaA. Analysis of Association between vitamin D deficiency and insulin resistance. Nutrients. (2019) 11:794. doi: 10.3390/nu11040794

  • 31.

    IngelssonESundströmJArnlövJZetheliusBLindL. Insulin resistance and risk of congestive heart failure. Jama. (2005) 294:334–41. doi: 10.1001/jama.294.3.334

  • 32.

    FazioSMercurioVFazioVRuvoloAAffusoF. Insulin Resistance/Hyperinsulinemia, neglected risk factor for the development and worsening of heart failure with preserved ejection fraction. Biomedicines. (2024) 12:806. doi: 10.20944/preprints202403.0840.v1

  • 33.

    CarrelliABucovskyMHorstRCremersSZhangCBesslerMet al. Vitamin D storage in adipose tissue of obese and normal weight women. J Bone Miner Res. (2017) 32:237–42. doi: 10.1002/jbmr.2979

  • 34.

    NimitphongHParkELeeMJ. Vitamin D regulation of adipogenesis and adipose tissue functions. Nutr Res Pract. (2020) 14:553–67. doi: 10.4162/nrp.2020.14.6.553

  • 35.

    KamimuraDYimerWKShahAMMentzRJOshunbadeAHamidAet al. Vitamin D levels in Black Americans and the association with left ventricular remodeling and incident heart failure with preserved ejectin fraction: the Jackson Heart Study. J Card Fail. (2023) 29:150–7. doi: 10.1016/j.cardfail.2022.07.049

Summary

Keywords

cardiovascular disease, heart failure, mortality, obstructive sleep apnea, propensity score matching, vitamin D deficiency

Citation

Chang Y-J, Weng H-L, Hung K-C, Ho C-N, Lai Y-C, Wu J-Y and Chen I-W (2026) Vitamin D deficiency and risk of heart failure in patients with obstructive sleep apnea: a cohort analysis. Front. Nutr. 13:1755607. doi: 10.3389/fnut.2026.1755607

Received

27 November 2025

Revised

30 January 2026

Accepted

31 January 2026

Published

19 February 2026

Volume

13 - 2026

Edited by

Eva Szabo, University of Pécs, Hungary

Reviewed by

Hamza Islam, Faisalabad Medical University, Pakistan

Ayesha Ismail, National Institute of Nutrition (ICMR), India

Updates

Copyright

*Correspondence: I-Wen Chen,

†These authors have contributed equally to this work

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics