Type 2 diabetes mellitus (T2DM) represents a critical global health challenge, with an estimated 537 million adults affected worldwide as of 2021, a figure projected to rise to 783 million by 2045, making it one of the fastest-growing public health crises of the 21st century.1,2 The coexistence of obesity significantly exacerbates disease progression and complicates therapeutic management. Within this population, vitamin D deficiency is remarkably prevalent, affecting up to 80% of obese individuals with T2DM, attributable to factors such as volumetric dilution in larger body fat mass, reduced sunlight exposure due to mobility issues, and adipose sequestration of this fat-soluble vitamin. This high prevalence is particularly concerning, as compelling evidence from both basic and clinical research has illuminated vitamin D’s integral role in metabolic health.3,4 This deficiency is physiologically consequential given vitamin D’s multifaceted role in glucose homeostasis, including its capacity to directly modulate pancreatic β-cell insulin secretion through vitamin D response elements (VDREs) in the insulin gene promoter, enhancement of insulin sensitivity in peripheral tissues such as muscle and adipose tissue, and suppression of the chronic low-grade inflammation that is a hallmark of T2DM pathogenesis.2,5
Metformin remains the cornerstone first-line pharmacotherapy for T2DM, primarily acting through AMP-activated protein kinase (AMPK) activation to reduce hepatic gluconeogenesis and improve peripheral glucose uptake.6 Nevertheless, substantial interindividual variability exists in the glycemic response to metformin. This heterogeneity underscores the need for predictive biomarkers to optimize treatment personalization. Increasingly, preclinical and mechanistic evidence suggests plausible and synergistic biological interactions between vitamin D signaling and metformin pathways.5,7 Vitamin D receptor (VDR) activation has been shown to directly influence AMPK signaling and mitochondrial bioenergetics, pathways central to metformin’s mechanism of action. Specifically, 1,25-dihydroxyvitamin D3 has been found to potentiate metformin’s activation of AMPK, possibly through the inhibition of the mTOR/S6K1 pathway, thereby enhancing insulin sensitivity. Conversely, hypovitaminosis D may impair β-cell function, exacerbate insulin resistance by promoting inflammatory cytokine production (eg, IL-6, TNF-α), and blunt the cellular response to metformin, potentially diminishing its efficacy.5
Despite this strong biological rationale, clinical evidence remains inconclusive and fraught with methodological limitations. Previous observational studies reported correlations between baseline vitamin D status and metformin response but were constrained by small sample sizes that rendered them statistically underpowered, heterogeneous populations, or inadequate control for critical confounders such as renal function (which affects metformin clearance), precise measures of adiposity (eg, visceral vs subcutaneous fat), polypharmacy, and crucially, seasonal variation in vitamin D levels.8,9 The failure to account for seasonality, which can cause fluctuations of up to 10 ng/mL in serum 25(OH)D between winter and summer, is a major flaw that can obscure or create spurious associations.10 Notably, the large D2d (Vitamin D and Type 2 Diabetes) randomized trial found no significant benefit of vitamin D supplementation on diabetes prevention in a general prediabetic population (many of whom were metformin users), although it did not specifically examine baseline vitamin D status as an effect modifier on glycemic control in obese T2DM patients already on established metformin therapy.11 Furthermore, existing studies have rarely addressed the high-risk obese T2DM phenotype, where the interplay of vitamin D deficiency and severe insulin resistance is most pronounced.
This study therefore addresses a critical evidence gap by investigating the relationship between baseline serum 25-hydroxyvitamin D [25(OH)D] levels and glycemic response to metformin monotherapy in a well-characterized cohort of obese adults with T2DM. Utilizing rigorous methodology, including propensity score matching to minimize confounding from a wide array of demographic and clinical variables, and comprehensive sensitivity analyses to test the robustness of our findings, we evaluate whether baseline vitamin D status may serve as a clinically useful and readily available predictor of metformin efficacy in this specific, high-risk population.
Materials and Methods Study DesignThis single-center retrospective cohort study utilized electronic medical records (EMR) to evaluate the association between baseline serum 25(OH)D levels and the glycemic response to metformin monotherapy in obese adults with T2DM. Data spanned from January 1, 2021, to December 31, 2023. The study protocol was approved by the Hanzhong Central Hospital Institutional Review Board (No: [2024]-18). A waiver of informed consent was granted, as the research involved anonymized retrospective data analysis without intervention, adhering to local regulations and the Declaration of Helsinki. All data were handled confidentially with strict adherence to privacy protection protocols.
Participant Selection Inclusion Criteria(1) Age ≥18 years; (2) Diagnosis of T2DM according to American Diabetes Association criteria (HbA1c ≥6.5% [48 mmol/mol], fasting plasma glucose ≥126 mg/dL [7.0 mmol/L], or 2-h plasma glucose ≥200 mg/dL [11.1 mmol/L] during oral glucose tolerance test);12 (3) Obesity defined as body mass index (BMI) ≥28 kg/m2, consistent with Chinese population-specific cutoffs;13 (4) Initiation of metformin monotherapy as first-line glucose-lowering agent; (5) Documented baseline serum 25(OH)D measurement within 30 days prior to metformin initiation; (6) Paired HbA1c measurements available at baseline and 3 months (±2 weeks) posttreatment initiation.
Exclusion Criteria(1) Hepatic impairment (alanine aminotransferase [ALT] or aspartate aminotransferase [AST] >3× upper limit of normal);14 (2) Renal dysfunction (estimated glomerular filtration rate [eGFR] <60 mL/min/1.73 m2 calculated using the CKD-EPI equation);15 (3) History of other glucose-lowering agents within 6 months prior to enrollment; (4) Vitamin D supplementation (≥800 IU/day) within 90 days prior to baseline measurement;16 (5) Malabsorption syndromes (eg, inflammatory bowel disease, bariatric surgery) or medications affecting vitamin D metabolism (glucocorticoids, anticonvulsants); (6) Pregnancy or lactation documented in medical records; (7) Missing date.
Cohort Assembly and Sample SizeEligible patients were identified through systematic query of the hospital’s EMR system using structured data extraction: ICD-10 codes for T2DM (E11), anthropometric data (BMI ≥28 kg/m2), laboratory parameters (25(OH)D, HbA1c), and pharmacy dispensing records for metformin monotherapy. The initial screening identified 1842 potential candidates. After applying the inclusion/exclusion criteria, 427 patients comprised the analytical cohort. Sample size was calculated a priori using G*Power 3.1 software, estimating 386 participants required to detect a medium effect size (Cohen’s d = 0.5) in ΔHbA1c between vitamin D groups (α=0.05, power=90%), accounting for 10% potential data attrition.
Group StratificationParticipants were stratified by baseline serum 25(OH)D levels: (1) vitamin D deficiency group: <20 ng/mL (<50 nmol/L) (n = 256); (2) vitamin D sufficiency group: ≥20 ng/mL (≥50 nmol/L) (n = 171). Using Endocrine Society clinical practice guidelines.16 To account for the known seasonal fluctuation in serum 25(OH)D levels due to variations in sunlight exposure, we performed a season-adjusted analysis. The month of blood draw was categorized into a high-ultraviolet (UV) period (April–September) and a low-UV period (October–March) based on the solar zenith angle and typical insolation patterns in Hanzhong City, Shaanxi Province, China.17
Propensity Score Matching (PSM) Rationale and ImplementationGiven the observational nature of this study and potential baseline imbalances between vitamin D groups (eg, age, BMI, diabetes duration), PSM was employed to minimize confounding bias. Propensity scores were generated using multivariable logistic regression with vitamin D sufficiency (≥20 ng/mL) as the outcome and the following covariates: age; sex; baseline BMI; baseline HbA1c; diabetes duration; hypertension status (icd-10 i10); dyslipidemia status (icd-10 e78.5); and season of vitamin D measurement.
A 1:1 nearest-neighbor matching algorithm with caliper width = 0.2 SD of the logit propensity score was performed without replacement. This yielded 142 matched pairs (n = 284) for primary analysis (Figure 1). Balance was assessed using standardized mean differences (SMD <0.1 for all covariates).
Figure 1 Inclusion and exclusion flowchart.
Variable Definitions Exposure VariableThe key exposure assessed was the baseline serum concentration of 25-hydroxyvitamin D [25(OH)D], quantified within 30 days before metformin initiation. Vitamin D status was dichotomized based on Endocrine Society clinical practice guidelines:16 deficiency (<20 ng/mL or <50 nmol/L) and sufficiency (≥20 ng/mL or ≥50 nmol/L). Serum 25(OH)D levels were measured quantitatively using a chemiluminescent immunoassay (CLIA) on the Abbott ARCHITECT i2000SR analyzer (Abbott Laboratories, Chicago, IL, USA). Analytical consistency throughout the study was ensured by interassay coefficients of variation (CV) consistently below 8%.18
Primary OutcomesThe efficacy endpoint was defined as the absolute reduction in glycated hemoglobin (ΔHbA1c), calculated as baseline HbA1c minus the value obtained after 3 months (±2 weeks) of metformin monotherapy. HbA1c measurements were performed using high-performance liquid chromatography (HPLC) with Bio-Rad VARIANT II Turbo analyzers (Bio-Rad Laboratories, Hercules, CA, USA), standardized against the National Glycohemoglobin Standardization Program (NGSP) and reported in % units (IFCC mmol/mol values were converted using the master equation: NGSP (%) = 0.0915 × IFCC (mmol/mol) + 2.15).19
The primary glycemic outcome was assessed at 3 months after metformin initiation. This time point was selected based on established clinical evidence and guidelines. Metformin exerts its glucose-lowering effect within weeks of initiation,20 and a period of 3 months is considered clinically adequate to observe a near-maximal response in HbA1c, which reflects average blood glucose over the preceding 2–3 months.21 Furthermore, a 3-month follow-up minimizes the potential for attrition bias and confounding from treatment modifications that are more likely to occur in longer-term observational studies while still allowing a robust assessment of the initial pharmacodynamic response to metformin monotherapy.
CovariatesClinically relevant covariates were rigorously extracted from structured EMR fields to address potential confounding: (1) Demographic factors: Age (years, continuous), sex (male/female), body mass index (BMI, kg/m2 calculated from height/weight recorded within ±7 days of metformin initiation); (2) Diabetes-related parameters: Baseline HbA1c (%, continuous), diabetes duration (years, calculated from date of first T2DM diagnosis in EMR); (3) Comorbidities: Hypertension (defined as systolic BP ≥140 mmHg or diastolic BP ≥90 mmHg on ≥2 occasions, or ICD-10 code I10 with concurrent antihypertensive medication),22 dyslipidemia (ICD-10 code E78.5 plus lipid-lowering therapy, or LDL-C ≥130 mg/dL);23 (4) Seasonality: Month of 25(OH)D blood draw categorized into high-ultraviolet (UV) period (April–September) and low-UV period (October–March) based on geographic insolation patterns in Northern China;17 (5) Additional adjustments: Metformin daily dose (mg/day, extracted from pharmacy dispensing records), estimated glomerular filtration rate (eGFR, mL/min/1.73 m2 calculated using CKD-.
Statistical AnalysisAnalyses were conducted on both the full unmatched cohort (n=427) and the propensity score-matched (PS-matched) cohort (n=284), with the PS-matched cohort serving as the primary dataset for hypothesis testing. Continuous data conforming to a normal distribution are presented as the mean ± standard deviation (SD); skewed data are reported as the median (interquartile range, IQR). Between-group comparisons for continuous variables employed independent Student’s t tests or Mann‒Whitney U-tests, as appropriate. Categorical variables are expressed as counts (percentages) and were compared using χ2-tests or Fisher’s exact tests. The relationship between baseline 25(OH)D levels (continuous) and ΔHbA1c was assessed using Pearson’s correlation coefficient for normally distributed pairs or Spearman’s rank correlation for nonparametric distributions, following confirmation of normality via Shapiro‒Wilk tests (W >0.95). Multiple linear regression models were fitted to evaluate the independent association of vitamin D status (categorical: deficiency vs sufficiency) with ΔHbA1c, employing sequential covariate adjustment: Model 1 (age, sex); Model 2 (Model 1 + BMI, baseline HbA1c, diabetes duration); Model 3 (Model 2 + hypertension, dyslipidemia, season, metformin dose, eGFR). The absence of significant multicollinearity was confirmed by variance inflation factors (VIFs) <5 in the fully adjusted model. Subgroup analyses incorporating interaction terms within Model 3 were performed stratifying by sex, age (>60 vs ≤60 years), and baseline HbA1c (<8.5% vs ≥8.5%), with heterogeneity assessed using likelihood ratio tests. Sensitivity analyses included: 1) repeating primary analyses using absolute 25(OH)D concentrations (per 10 ng/mL increase) rather than categorical groups; 2) excluding outliers (ΔHbA1c beyond mean ± 3SD); 3) multiple imputation (chained equations, 20 imputations) for missing covariate data (<5%); and 4) repeating regression in the full unmatched cohort with inverse probability weighting. All analyses were conducted using R version 4.3.4 with the packages MatchIt for PSM, mice for imputation, and lmtest for regression diagnostics; two-sided p values <0.05 were considered statistically significant.
Results Baseline CharacteristicsFrom January 2021 to December 2023, 1842 obese T2DM patients initiating metformin monotherapy were screened. After applying the inclusion/exclusion criteria, 427 patients comprised the full cohort (vitamin D deficient: n=256 [59.9%]; sufficient: n=171 [40.1%]). Propensity score matching generated 142 matched pairs (n=284), achieving balance across all covariates (standardized mean differences [SMD] <0.1). In the full cohort, deficient patients were significantly older (62.4±10.1 vs 58.9±9.3 years, p=0.001), had higher baseline HbA1c (8.9±1.4% vs 8.5±1.2%, p=0.002), and had a longer diabetes duration (4.1[2.0–7.0] vs 3.0[1.0–5.0] years, p<0.001). After matching, no significant differences persisted between groups (all p>0.05), confirming effective confounding control (Table 1).
Table 1 Demographic and Clinical Characteristics Before and After Propensity Score Matching
Primary OutcomesIn the propensity score-matched cohort (n=284), patients with vitamin D sufficiency (≥20 ng/mL) achieved significantly greater HbA1c reduction after 3 months of metformin monotherapy than those with vitamin D deficiency (<20 ng/mL) (ΔHbA1c: −1.52% ± 0.82% vs −1.18% ± 0.76%; mean difference 0.34%, 95% CI: 0.16–0.52%, p<0.001) (Table 2). Baseline serum 25(OH)D levels demonstrated a significant positive correlation with ΔHbA1c (r=0.32, 95% CI: 0.21–0.43, p<0.001), and the reduction in HbA1c was significantly greater in the vitamin D-adequate group than in the vitamin D-deficient group (average difference: 0.34%, 95% CI: 0.16–0.52%, p<0.001), indicating that higher vitamin D levels were associated with greater glycemic improvement (Figure 2).
Table 2 Glycemic Response to Metformin Monotherapy by Vitamin D Status
Figure 2 Association Between Baseline 25(OH)D Levels and HbA1c Reduction. Scatter plot showing the relationship between baseline vitamin D levels [25(OH)D] and reduction in HbA1c (ΔHbA1c) after three months of metformin monotherapy. Red dots represent vitamin D-deficient patients (<20 ng/mL), and blue dots represent vitamin D-sufficient patients (≥20 ng/mL). The black regression line shows the correlation between the two variables, with the shaded area representing the 95% confidence interval.
Multivariable RegressionMultivariable linear regression analyses confirmed the independent association between vitamin D sufficiency and enhanced glycemic response after comprehensive adjustment for potential confounders. In the fully adjusted model (Model 3), vitamin D sufficiency remained significantly associated with greater HbA1c reduction (β=0.41%, 95% CI: 0.22–0.60%, p<0.001) compared to deficiency, indicating a 0.41% absolute increase in HbA1c reduction. This effect was robust across sequential adjustment stages: unadjusted model (β=0.34%, p<0.001), age- and sex-adjusted model (β=0.37%, p<0.001), and fully adjusted model accounting for BMI, baseline HbA1c, diabetes duration, comorbidities, season, metformin dose, and renal function (β=0.41%, p<0.001). Among covariates, higher baseline HbA1c (β=0.21% per 1% increase, p<0.001) and greater metformin dosage (β=0.07% per 500 mg increase, p=0.024) were independent predictors of HbA1c reduction, while other factors, including age, sex, and comorbidities, showed no significant associations. The final model explained 38% of the variance in HbA1c response (R2=0.38), with variance inflation factors <3.0 confirming the absence of multicollinearity (Table 3).
Table 3 Multivariate Linear Regression Analysis of Factors Associated with HbA1c Reduction (ΔHbA1c)
Subgroup AnalysesStratified analyses revealed significant heterogeneity in the association between vitamin D status and metformin efficacy across clinically relevant subgroups. The beneficial effect of vitamin D sufficiency was consistently observed in all subgroups but significantly enhanced in specific populations: females demonstrated a 108% greater HbA1c reduction benefit than males (β=0.52% vs 0.25%, p-interaction=0.018), patients >60 years showed 48% stronger effects than younger individuals (β=0.49% vs 0.33%, p-interaction=0.009), and those with baseline HbA1c ≥8.5% exhibited a 167% greater benefit versus lower HbA1c counterparts (β=0.56% vs 0.21%, p-interaction=0.003). No significant effect modification was observed for hypertension status (p-interaction=0.215) or dyslipidemia (p-interaction=0.437). In all subgroup analyses, the point estimates favored vitamin D sufficiency with β coefficients ranging from 0.21% to 0.56%, and statistical significance was maintained in all strata except the baseline HbA1c <8.5% subgroup (p=0.059) (Table 4, Figure 3).
Table 4 Subgroup Analysis of Vitamin D Effect on HbA1c Reduction
Figure 3 Effect of Vitamin D Sufficiency on HbA1c Reduction by Subgroup. Forest plot showing the adjusted β coefficients and 95% confidence intervals for the effect of vitamin D sufficiency (≥20 ng/mL) versus deficiency (<20 ng/mL) on HbA1c reduction across different subgroups. Point estimates to the right of the dashed vertical line indicate greater HbA1c reduction in the vitamin D-sufficient group. The size of each point is proportional to the subgroup sample size. P-interaction values indicate whether the effect of vitamin D status significantly differs between subgroup strata.
Sensitivity AnalysesRobustness of the primary findings was confirmed through comprehensive sensitivity analyses. When vitamin D was analyzed as a continuous variable, each 10 ng/mL increase in baseline 25(OH)D was associated with a 0.27% greater HbA1c reduction (95% CI: 0.14–0.40%, p<0.001) in the fully adjusted model, aligning with categorical analysis results. Exclusion of 13 outliers (ΔHbA1c beyond the mean ± 3SD) strengthened the association (β=0.43% for sufficiency vs deficiency, 95% CI: 0.23–0.63, p<0.001). Multiple imputation for missing covariates (4.2% missingness) yielded nearly identical results (β=0.40%, 95% CI: 0.21–0.59, p<0.001). Critically, analysis of the full unmatched cohort (n=427) using inverse probability weighting reproduced the significant benefit of vitamin D sufficiency (β=0.35%, 95% CI: 0.16–0.54, p<0.001), confirming consistency across analytical approaches (Table 5).
Table 5 Sensitivity Analyses of Vitamin D and Metformin Efficacy Association
Adverse EventsSafety profiles were comparable between vitamin D groups. Gastrointestinal adverse events (diarrhea, nausea) occurred in 26.1% of deficient patients vs 22.5% of sufficient patients (p=0.42). Documented hypoglycemia (<70 mg/dL) was rare and similar between groups (3.5% vs 2.8%, p=0.73). No severe adverse events (eg, lactic acidosis, vitamin D toxicity) were recorded in either group during the 3-month observation period (Table 6).
Table 6 Adverse Events by Vitamin D Status
DiscussionThis retrospective cohort study demonstrates a significant association between serum 25(OH)D levels and the glycemic response to metformin monotherapy in obese patients with T2DM. The primary finding indicates that patients with sufficient baseline vitamin D levels (≥20 ng/mL) achieved a significantly greater reduction in HbA1c after 3 months of metformin treatment compared to those with vitamin D deficiency (<20 ng/mL) (mean ΔHbA1c difference: 0.34%, 95% CI: 0.16–0.52%, p<0.001). This magnitude of HbA1c reduction is considered clinically relevant, as landmark studies such as the UK Prospective Diabetes Study (UKPDS) have established that even a modest 0.5% decrease in HbA1c is associated with a significant reduction in the risk of long-term diabetic complications.24 This association remained robust in multivariable linear regression analysis, where vitamin D sufficiency was independently associated with a 0.41% greater HbA1c reduction (95% CI: 0.22–0.60%, p<0.001) after comprehensive adjustment for potential confounders, including age, sex, BMI, baseline HbA1c, diabetes duration, comorbidities, season, metformin dose, and renal function. This finding suggests that baseline vitamin D status may serve as a predictive biomarker for metformin efficacy in this specific population, aligning with the established biological roles of vitamin D in modulating insulin sensitivity, beta-cell function, and inflammation.2,4 Vitamin D exerts its effects through the VDR, widely expressed in pancreatic beta cells, adipose tissue, and skeletal muscle, influencing insulin secretion, glucose transporter (GLUT4) expression, and inflammatory pathways.25 Vitamin D deficiency may impair these pathways, exacerbating insulin resistance and potentially diminishing the response to insulin-sensitizing agents such as metformin.26
It is well established that serum 25(OH)D levels exhibit significant seasonal fluctuations driven by variations in sunlight exposure. This phenomenon is particularly relevant in the Chinese population, as demonstrated by a large-scale study across 30 provinces involving over 1.5 million individuals, which reported that median 25(OH)D concentrations reached a nadir in winter (18.5 ng/mL) and peaked in summer (25.3 ng/mL).27 This national trend is corroborated by findings specific to the study region of Hanzhong, where children’s mean 25(OH)D levels were significantly lower and the prevalence of vitamin D deficiency was highest during winter compared to other seasons.17 To control for the potential confounding effect of this seasonality on both baseline vitamin D status and the assessment of glycemic response, we therefore performed a season-adjusted analysis. Specifically, the month of blood draw was categorized into a high-UV period (April–September) and a low-UV period (October–March) based on the solar zenith angle and typical insolation patterns in Hanzhong City, Shaanxi Province. This binary “season” variable was subsequently included as a covariate in both the propensity score model and the multivariable regression analyses. This methodological adjustment enhances the robustness of our findings by ensuring that the observed association between baseline 25(OH)D levels and metformin response is independent of seasonal variation in vitamin D status.
Our results corroborate some, but not all, findings from previous observational studies. A small descriptive study in newly diagnosed T2DM patients reported a positive correlation between baseline vitamin D levels and HbA1c reduction after 12 weeks, consistent with the correlation observed here, but this study did not evaluate the relationship of metformin.28 However, the results of a large D2d trial showed that after a median follow-up of 2.5 years, the incidence of new-onset diabetes was 9.4 and 10.7 per 100 person-years in the vitamin D group and placebo group, respectively, with no statistically significant difference (HR = 0.88, 95% CI 0.75–1.04, P = 0.12).7 This discrepancy may stem from differences in study design (supplementation intervention vs observation of baseline status) and participant characteristics (eg, lower prevalence of baseline deficiency and inclusion of nonobese individuals in D2d). Another cross-sectional study in obese diabetic patients reported an association between vitamin D deficiency and poorer metformin response, supporting our core finding.29 The novelty of the present study lies in its focus on obese T2DM patients, a subgroup with a high prevalence of vitamin D deficiency and pronounced insulin resistance; the strict inclusion of metformin monotherapy initiators to eliminate confounding by other glucose-lowering agents; the systematic application of propensity score matching to address baseline imbalances; and the extensive sensitivity and subgroup analyses confirming result robustness.
Subgroup analyses revealed clinically relevant heterogeneity in the association between vitamin D status and metformin efficacy. The enhanced HbA1c reduction associated with vitamin D sufficiency was significantly more pronounced in females (β=0.52% vs 0.25% in males, p-interaction=0.018), patients older than 60 years (β=0.49% vs 0.33% in ≤60 years, p-interaction=0.009), and those with poorer baseline glycemic control (HbA1c ≥8.5%, β=0.56% vs 0.21% in HbA1c <8.5%, p-interaction=0.003). The stronger effect in females could relate to sex-specific differences in vitamin D metabolism and VDR expression, potentially influenced by estrogen regulation.30 The greater benefit in older adults may reflect their higher prevalence of vitamin D deficiency, age-related sarcopenia exacerbating insulin resistance, and potential alterations in VDR function.31 The pronounced effect in patients with higher baseline HbA1c suggests that vitamin D status might be particularly important when underlying beta-cell dysfunction and insulin resistance are more severe. Mechanistically, metformin primarily activates AMPK, improving hepatic and peripheral insulin sensitivity. Vitamin D has also been shown to modulate AMPK activity. Experimental studies indicate that 1,25-dihydroxyvitamin D can regulate AMPK and its upstream kinase LKB1 through calcium-dependent pathways or direct VDR binding, suggesting potential synergy in improving mitochondrial function and glucose uptake.32 Furthermore, the anti-inflammatory properties of vitamin D, such as downregulating TNF-α and IL-6, may ameliorate chronic low-grade inflammation-induced insulin signaling impairment, thereby augmenting metformin’s effects.33
Regarding safety, the incidence of adverse events was comparable between vitamin D-sufficient and vitamin D-deficient groups. Gastrointestinal adverse events (diarrhea, nausea) were the most common, occurring in 26.1% of deficient patients versus 22.5% of sufficient patients (p=0.42). Documented hypoglycemia (<70 mg/dL) was rare and similar between groups (3.5% vs 2.8%, p=0.73). No severe adverse events, such as lactic acidosis or vitamin D toxicity, were recorded during the 3-month observation period. This finding aligns with the established safety profile of metformin and suggests that vitamin D status itself does not significantly alter short-term metformin tolerability.34
Several limitations warrant cautious interpretation of our findings. First, the single-center, retrospective observational design, while appropriate for generating hypotheses, inherently limits causal inference between vitamin D status and metformin response. Although we employed rigorous inclusion/exclusion criteria and propensity score matching to control for known confounders, residual bias from unmeasured or imperfectly measured factors cannot be excluded. Specifically, parameters such as detailed physical activity levels, precise sunlight exposure habits, and dietary vitamin D/calcium intake, which may influence both serum 25(OH)D concentration and glycemic control, were not systematically available and represent potential sources of residual confounding. Second, serum 25(OH)D was measured only once at baseline, precluding assessment of its dynamic changes during follow-up and their potential influence on the observed associations. Third, the follow-up duration was limited to 3 months, which, while adequate for assessing initial HbA1c response, restricts insights into the long-term impact of vitamin D status on sustained metformin efficacy and diabetes-related complications. While our study provides a snapshot of the initial treatment phase, the durability of this effect is a critical question. Metformin’s glucose-lowering effect can wane over time,35 and whether adequate vitamin D status can help preserve or prolong this response remains unknown. However, evidence from meta-analyses of randomized controlled trials does suggest that long-term vitamin D supplementation can lead to modest but significant improvements in glycemic control in patients with T2DM,36 lending biological plausibility to a potentially sustained beneficial interaction that warrants investigation in longer-term studies. Fourth, our cohort consisted exclusively of obese Chinese patients with T2DM; thus, the generalizability of our findings to other ethnicities, nonobese individuals, or populations residing in geographical regions with markedly different sunlight exposure patterns may be limited. Fifth, while the vitamin D sufficiency cutoff (≥20 ng/mL) aligns with Endocrine Society guidelines, the optimal threshold for predicting glycemic benefits remains debated, and a higher target (eg, ≥30 ng/mL) might be relevant in metabolic contexts.37 Sixth, the lack of data on vitamin D binding protein (DBP) polymorphisms or free 25(OH)D levels limits our ability to assess the impact of vitamin D bioactivity and bioavailability on the observed associations.
Future research should address these limitations and build upon our findings: 1. Conduct large-scale prospective cohort studies with serial vitamin D measurements to evaluate the relationship between dynamic vitamin D status and long-term metformin efficacy, durability of response, and cardiovascular outcomes. 2. Design Randomized controlled trials (RCTs) specifically testing whether vitamin D supplementation, compared to placebo, enhances the glucose-lowering effect of metformin in obese T2DM patients with confirmed vitamin D deficiency, with particular attention to the subgroups (females, elderly, high baseline HbA1c) showing greater benefit here. 3. Investigate the molecular mechanisms underlying the potential interaction between vitamin D and metformin, focusing on pathways such as AMPK signaling, mitochondrial function, and gut microbiota modulation. 4. Evaluate optimal vitamin D supplementation strategies (dosing regimens, target serum levels >30 ng/mL) for maximizing glycemic benefits in metformin-treated patients. 5. Incorporate genetic analyses to identify individuals most likely to benefit from vitamin D status optimization.
Based on our findings, several clinical implications merit discussion. We suggest that screening for vitamin D status could be a valuable component of the initial assessment for obese T2DM patients initiating metformin therapy. However, it is crucial to clarify the rationale for this. Current evidence does not support correcting vitamin D deficiency primarily for metabolic improvement, as major guidelines, including those from the Endocrine Society and the US Preventive Services Task Force, do not advocate for routine vitamin D supplementation for the sole purpose of improving glycemic control.37,38 Instead, the correction of vitamin D deficiency should continue to be guided by the primary goal of maintaining skeletal health.
ConclusionThis rigorous observational study demonstrates that higher baseline serum vitamin D levels (≥20 ng/mL) are independently associated with a significantly greater reduction in HbA1c after 3 months of metformin monotherapy in obese patients with T2DM. This association was particularly strong among females, older adults, and patients with poorer baseline glycemic control. Our results suggest that achieving vitamin D sufficiency, as recommended for general health, may confer an additional benefit by enhancing the initial glycemic response to metformin. While these observational findings are not sufficient to recommend vitamin D supplementation specifically to augment metformin’s effects, they strongly support the clinical wisdom of screening for and correcting vitamin D deficiency in this high-risk population according to existing guidelines. This finding supports the potential role of vitamin D status as a biomarker for predicting the metformin response, possibly mediated through mechanisms involving enhanced insulin sensitivity, reduced inflammation, and potential modulation of AMPK signaling. While these results should inform clinical suspicion and highlight the importance of vitamin D status in metabolic management, they do not justify a direct change in practice, such as high-dose vitamin D supplementation specifically to enhance metformin efficacy. Instead, they reinforce the importance of screening for vitamin D deficiency as part of the comprehensive initial evaluation of obese T2DM patients initiating metformin, with subsequent repletion guided by established clinical guidelines. Future well-designed randomized controlled trials are essential to determine whether correction of vitamin D deficiency causally improves the therapeutic response to metformin and to establish the optimal serum 25(OH)D target level for achieving potential metabolic benefits.
Data Sharing StatementThe data that support the findings of this study are available from the corresponding author, Z. W, upon special request.
Ethics Approval and Consent to ParticipateThe study protocol was approved by the Hanzhong Central Hospital Institutional Review Board (No: [2024]-18). A waiver of informed consent was granted, as the research involved anonymized retrospective data analysis without intervention, adhering to local regulations and the Declaration of Helsinki. All data were handled confidentially with strict adherence to privacy protection protocols.
Author ContributionsAll authors made a significant contribution to the work reported, whether that is in the conception, study design, execution, acquisition of data, analysis and interpretation, or in all these areas; took part in drafting, revising or critically reviewing the article; gave final approval of the version to be published; agreed on the journal to which the article has been submitted; and agree to be accountable for all aspects of the work.
FundingThe work was not funded by any funding.
DisclosureThe authors confirm that there is no conflict of interest related to the paper.
References1. International Diabetes Federation. IDF Diabetes Atlas. 10th ed. Brussels, Belgium; 2021.
2. Fuentes-Barría H, Aguilera-Eguía R, Flores-Fernández C, et al. Vitamin D and type 2 diabetes mellitus: molecular mechanisms and clinical implications–a narrative review. Int J Mol Sci. 2025;26(5):2153. doi:10.3390/ijms26052153
3. Vranić L, Mikolašević I, Milić S. Vitamin D deficiency: consequence or cause of obesity? Medicina. 2019;55(9):541. doi:10.3390/medicina55090541
4. Sung CC, Liao MT, Lu KC, Wu CC. Role of vitamin D in insulin resistance. J Biomed Biotechnol. 2012;2012:634195. doi:10.1155/2012/634195
5. Abdulrahim HA, Odetayo AF, Owootori EA, et al. Metformin and vitamin D combination therapy ameliorates type 2 diabetes mellitus-induced renal injury in male Wistar rats. Naunyn Schmiedebergs Arch Pharmacol. 2025;398:3133–14. doi:10.1007/s00210-024-03478-w
6. Chen SC, Brooks R, Houskeeper J, et al. Metformin suppresses adipogenesis through both AMP-activated protein kinase (AMPK)-dependent and AMPK-independent mechanisms. Mol Cell Endocrinol. 2017;440:57–68. doi:10.1016/j.mce.2016.11.011
7. Atkinson M, Gharti P, Min T. Metformin use and Vitamin B12 deficiency in people with type 2 diabetes. What are the risk factors? A mini-systematic review. touchREV Endocrinol. 2024;20(2):42–53. doi:10.17925/EE.2024.20.2.7
8. Kos E, Liszek MJ, Emanuele MA, Durazo-Arvizu R, Camacho P. Effect of metformin therapy on vitamin D and vitamin B12 levels in patients with type 2 diabetes mellitus. Endocr Pract. 2012;18(2):179–184. doi:10.4158/EP11009.OR
9. Gail MH, Wu J, Wang M, et al. Calibration and seasonal adjustment for matched case‒control studies of vitamin D and cancer. Stat Med. 2016;35(13):2133–2148. doi:10.1002/sim.6865
10. Shoben AB, Kestenbaum B, Levin G, et al. Seasonal variation in 25-hydroxyvitamin D concentrations in the cardiovascular health study. Am J Epidemiol. 2011;174(12):1363–1372. doi:10.1093/aje/kwr271
11. Dawson-Hughes B, Staten MA, Knowler WC, et al. Intratrial exposure to Vitamin D and new-onset diabetes among adults with prediabetes: a secondary analysis from the Vitamin D and Type 2 Diabetes (D2d) Study. Diabetes Care. 2020;43(12):2916–2922. doi:10.2337/dc20-1765
12. American Diabetes Association. 2. Classification and diagnosis of diabetes: standards of medical care in diabetes—2023. Diabetes Care. 2023;46:S19–S40. doi:10.2337/dc23-S002
13. Zhou BF; Cooperative Meta-Analysis Group of the Working Group on Obesity in China. Predictive values of body mass index and waist circumference for risk factors for certain related diseases in Chinese adults--study on optimal cutoff points of body mass index and waist circumference in Chinese adults. Biomed Environ Sci. 2002;15(1):83–96.
14. Kwo PY, Cohen SM, Lim JK. ACG clinical guideline: evaluation of abnormal liver chemistries. Am J Gastroenterol. 2017;112(1):18–35. doi:10.1038/ajg.2016.517
15. Levey AS, Stevens LA, Schmid CH, et al. A new equation to estimate glomerular filtration rate. Ann Intern Med. 2009;150(9):604–612. doi:10.7326/0003-4819-150-9-200905050-00006
16. Holick MF, Binkley NC, Bischoff-Ferrari HA, et al. Evaluation, treatment, and prevention of vitamin D deficiency: an Endocrine Society clinical practice guideline [published correction appears in J Clin Endocrinol Metab. 2011;96(12):3908] [published correction appears in J Clin Endocrinol Metab. 2024 Sep 16;109(10)e1991doi: 10.1210/clinem/dgae373]. J Clin Endocrinol Metab. 2011;96(7):1911–1930. doi:10.1210/jc.2011-0385
17. Song J, Yang L, Liu Y, et al. Variations in vitamin D status among Chinese children aged 1–6 years during the COVID-19 pandemic. Front Public Health. 2025;13:1514355. doi:10.3389/fpubh.2025.1514355
18. Carter GD, Jones JC, Berry JL. The anomalous behavior of exogenous 25-hydroxyvitamin D in competitive protein binding assays. J Steroid Biochem Mol Biol. 2019;188:97–101. doi:10.1016/j.jsbmb.2018.12.012
19. Hoelzel W, Weykamp C, Jeppsson JO, et al. IFCC reference system for measurement of hemoglobin A1c in human blood and the national standardization schemes in the United States, Japan, and Sweden: a method-comparison study. Clin Chem. 2004;50(1):166–174. doi:10.1373/clinchem.2003.024802
20. Graham GG, Punt J, Arora M, et al. Clinical pharmacokinetics of metformin. Clin Pharmacokinet. 2011;50(2):81–98. doi:10.2165/11534750-000000000-00000
21. Nathan DM, Kuenen J, Borg R, et al. Translating the A1C assay into estimated average glucose values. Diabetes Care. 2008;31(8):1473–1478. doi:10.2337/dc08-0545
22. Unger T, Borghi C, Charchar F, et al. 2023 ESH Guidelines for the management of arterial hypertension: endorsed by the International Society of Hypertension (ISH) and the European Renal Association (ERA). J Hypertens. 2023;41:1874–2071. doi:10.1097/HJH.0000000000003480
23. Mach F, Baigent C, Catapano AL, et al. 2019 ESC/EAS Guidelines for the management of dyslipidemias: lipid modification to reduce cardiovascular risk. Eur Heart J. 2020;41:111–188. doi:10.1093/eurheartj/ehz455
24. Stratton IM, Adler AI, Neil HA, et al. Association of glycemia with macrovascular and microvascular complications of type 2 diabetes (UKPDS 35): prospective observational study. BMJ. 2000;321(7258):405–412. doi:10.1136/bmj.321.7258.405
25. Erasmus R, Maepa S, Machingura I, Davids S, Raghubeer S, Matsha T. Vitamin D, Vitamin D-binding proteins, and VDR polymorphisms in individuals with hyperglycemia. Nutrients. 2022;14:3147. doi:10.3390/nu14153147
26. Cojic M, Kocic R, Klisic A, Cvejanov-Kezunovic L, Kavaric N, Kocic G. A novel mechanism of vitamin D anti-inflammatory/antioxidative potential in type 2 diabetic patients on metformin therapy. Arch Med Sci. 2020;16:1004–1012. doi:10.5114/aoms.2020.92832
27. Bai K, Dong H, Liu L, et al. Serum 25-hydroxyvitamin D status of a large Chinese population from 30 provinces by LC–MS/MS measurement for consecutive 3 years: differences by age, sex, season and province. Eur J Nutr. 2023;62(4):1503–1516. doi:10.1007/s00394-023-03094-z
28. Ghavam S, Ahmadi MRH, Panah AD, Kazeminezhad B. Evaluation of HbA1C and serum levels of vitamin D in diabetic patients. J Family Med Prim Care. 2018;7(6):1314–1318. doi:10.4103/jfmpc.jfmpc_73_18
29. Aludwan M, Kobyliak N, Abenavoli L, et al. Vitamin D3 deficiency is associated with more severe insulin resistance and metformin use in patients with type 2 diabetes. Minerva Endocrinol. 2020;45:172–180. doi:10.23736/S0391-1977.20.03161-2
30. Zhao Y, Li Y, Zhang L, et al. Estrogen modulates vitamin D receptor expression in human breast cancer cells. J Endocrinol. 2012;213:185–193. doi:10.1530/JOE-12-0014
31. Bauer DC, Orwoll ES, Fox KM, et al. Vitamin D and muscle function in older men and women. J Am Geriatr Soc. 2013;61:1–9. doi:10.1111/jgs.12109
32. Chang E. 1,25-Dihydroxyvitamin D decreases tertiary butyl-hydrogen peroxide-induced oxidative stress and increases AMPK/SIRT1 activation in C2C12 muscle cells. Molecules. 2019;24(21):3903. doi:10.3390/molecules24213903
33. Cojic M, Srdic B, Stojanovic M, et al. Effects of vitamin D3 on inflammatory and metabolic parameters in type 2 diabetes patients on metformin therapy. Nutrients. 2020;12:3478. doi:10.3390/nu12113478
34. Patel P, Poretsky L, Liao E. Lack of effect of subtherapeutic vitamin D treatment on glycemic and lipid parameters in Type 2 diabetes: a pilot prospective randomized trial. J Diabetes. 2010;2:36–40. doi:10.1111/j.1753-0407.2009.00039.x
35. DeFronzo RA, Goodman AM. Efficacy of metformin in patients with non-insulin-dependent diabetes mellitus. The Multicenter Metformin Study Group. N Engl J Med. 1995;333(9):541–549. doi:10.1056/NEJM199508313330902
36. Chen W, Liu L, Hu F. Efficacy of vitamin D supplementation on glycemic control in type 2 diabetes: an updated systematic review and meta-analysis of randomized controlled trials. Diabetes Obes Metab. 2024;26(12):5713–5726. doi:10.1111/dom.15941
37. Giustina A, Adler RA, Binkley N, et al. Controversies in Vitamin D: Summary Statement From an International Conference. J Clin Endocrinol Metab. 2019;104:234–240. doi:10.1210/jc.2018-01414
38. Krist AH, Davidson KW, et al; US Preventive Services Task Force. Screening for Vitamin D deficiency in adults: US Preventive Services Task Force Recommendation Statement. JAMA. 2021;325(14):1436–1442. doi:10.1001/jama.2021.3069
Comments (0)