- Department of Medical Oncology, Sir Run Run Shaw Hospital, Zhejiang University School of Medicine, Hangzhou, China
Background: Serum magnesium plays a critical role in modulating immune responses and enhancing anti-tumor immunity in cancer patients. However, its predictive significance in relation to progression-free survival (PFS) and disease control rate (DCR) among hepatocellular carcinoma (HCC) patients undergoing first-line immunotherapy remains uninvestigated.
Methods: This retrospective study analyzed HCC patients treated with immune checkpoint inhibitors (ICIs) in a derivation cohort and an independent validation cohort. Patients were enrolled based on predefined inclusion criteria. The primary endpoint was to assess the association between baseline serum magnesium levels prior to immunotherapy initiation and the disease control rate. The optimal cut-off value of serum magnesium for predicting disease control was determined using receiver operating characteristic (ROC) curve analysis. PFS was evaluated using the Kaplan–Meier method.
Results: A total of 110 hepatocellular carcinoma patients treated with ICIs were enrolled in the derivation cohort. The DCR was 78.18%. ROC analysis identified a baseline serum magnesium level ≥0.785 mmol/L as predictive of disease control, with a sensitivity of 89.4% and specificity of 87.5% (AUC 0.869). Patients with baseline Mg2+ ≥0.785mmol/L demonstrated significantly longer median PFS compared to those with baseline Mg2+<0.785mmol/L (12.83 months vs. 3.45 months, P< 0.001, hazard ratio: 0.269, 95% confidence interval: 0.165–0.438). The DCR was 30% in the low-Mg2+ group and 96.25% in the high-Mg2+ group. Subgroup analyses revealed that patients with macrovascular invasion or extrahepatic metastasis, as well as those without macrovascular invasion or extrahepatic metastases in the high-Mg2+ group exhibited significantly longer median PFS compared to those in the low-Mg2+ group. Both univariate and multivariate analyses confirmed that serum magnesium level is an independent predictive factor of PFS for patients receiving immunotherapy. In the validation cohort (n=48), patients with Mg2+ ≥0.785 mmol/L showed significantly longer median PFS (17.13 months vs. 5.20 months, P = 0.037, hazard ratio: 0.304, 95% confidence interval: 0.131–0.701) and higher DCR compared to those with Mg2+<0.785mmol/L.
Conclusion: Elevated serum magnesium levels prior to first-line immunotherapy are associated with improved clinical outcomes in HCC. Serum magnesium demonstrates significant predictive value and could serve as a cost-effective, accessible biomarker for guiding immunotherapy strategies in HCC patients.
1 Introduction
Liver cancer constitutes the sixth most common cause of cancer and the third leading cause of cancer-related mortality globally (1). In China, liver cancer ranks as the fourth most prevalent cancer type and the second leading cause of malignant death (2). Hepatocellular carcinoma (HCC), which accounts for approximately 75%–85% of all liver cancers, dominates the incidence and mortality rates among liver malignancies. However, unlike other cancers, cytotoxic chemotherapies have not significantly improved survival outcomes for HCC patients. Immunotherapy has demonstrated superior progression-free survival and overall survival outcomes compared to chemotherapy and tyrosine kinase inhibitors (TKIs) in patients with hepatocellular carcinoma (3, 4). Consequently, therapies involving immune checkpoint inhibitors (ICIs) targeting programmed death-1 (PD-1), programmed death ligand-1 (PD-L1), or cytotoxic T-lymphocyte antigen 4 (CTLA-4) have been approved by the U.S. Food and Drug Administration (FDA) and the National Medical Products Administration of China (NMPA) for use in HCC, either as monotherapy or in combination. However, the current effectiveness of immunotherapy remains unsatisfactory across all HCC patients. Moreover, even when an initial treatment response is achieved, a subset of HCC patients still develops early resistance to immune checkpoint inhibitors. Therefore, identifying effective predictive biomarkers for hepatocellular carcinoma patients receiving immunotherapy could assist clinicians in adopting more effective therapeutic strategies.
Typically, magnesium is found in its ionic form, known as magnesium ion (Mg2+). Mg2+ plays a pivotal role in numerous cellular functions and biochemical processes, including the transport of potassium and calcium ions, oxidative phosphorylation, synthesis of protein and nucleic acid, modulation of signal transduction, energy metabolism and cell growth (5, 6). Abnormal serum Mg2+ levels have been associated with multiple diseases, such as asthma, hypertension, diabetes, atherosclerosis, anxiety, migraine, depression, Parkinson’s disease and Alzheimer’s disease (5, 7). Given magnesium’s critical role in physiological functions, numerous studies have been conducted to investigate the correlation between magnesium and cancers. In cancer patients, magnesium can influence outcomes and overall quality of life. Specifically, in HCC, the serum concentration of Mg decreases at the time of diagnosis and increases after locoregional therapy of the tumor (8). Through magnesium mediated immune synapse formation and specific cytotoxicity, CD8+ T cells are activated (9). It has been previously reported that magnesium ions enhance the activation of effector memory CD8+ T cells via the action of leukocyte function-associated antigen 1 (LFA-1) (10). Furthermore, these findings suggest a potential link between magnesium levels and both prognosis and sensitivity to immunotherapy. A prior study reported that among 1441 patients undergoing immunotherapy, comprising 1042 with lung cancer, 270 with esophageal cancer, and 129 with Hodgkin lymphoma, those with higher serum Mg2+ levels exhibited improved progression-free survival and overall survival benefits compared to those with lower serum Mg2+ levels (11).
However, its predictive significance regarding progression-free survival and disease control rate in hepatocellular carcinoma patients treated with first-line immunotherapy remains unexplored, and this study represents the first investigation into this association.
2 Methods
2.1 Patients
This study was an observational, retrospective analysis. Hepatocellular carcinoma patients treated with immune checkpoint inhibitors in a derivation cohort were enrolled at the Department of Medical Oncology, Sir Run Run Shaw Hospital, Zhejiang University between January 2023 and June 2024. The inclusion criteria for patient screening in this study were as follows: (1) patients aged ≥18 years with adequate hematological and organ function; (2) histologically, cytologically, or clinically confirmed locally advanced, or metastatic hepatocellular carcinoma per American Association for the Study of Liver Disease criteria (12); (3) availability of serum magnesium level data within one week prior to the initiation of immunotherapy and every two cycles of treatment until disease progression; (4) immunotherapy administered as the first-line therapy; (5) no prior systemic therapy for hepatocellular carcinoma; (6) measurable disease per the Response Evaluation Criteria in Solid Tumors (RECIST) version 1.1 (13); (7) absence of synchronous or metachronous malignancies; and (8) no use of magnesium supplementation or diuretics agents before the initiation of immunotherapy or during the treatment period.
We formed the independent validation cohort from the Second Department of Medical Oncology, the Fourth Affiliated Hospital of Xinjiang Medical University retrospectively. The inclusion and exclusion criteria were identical to those applied to the derivation cohort.
A formal sample size calculation was not performed as this was a retrospective, population-based study designed to enroll the entire consecutive cohort of patients meeting the inclusion criteria during the specified study period. This approach ensures a comprehensive representation of the target population from two departments.
2.2 Data collection
Baseline demographic information and outcome data of each patient were collected retrospectively from electronic medical records. The collected data included patients’ gender, age, comprehensive clinical and pathological characteristics, treatment protocols, date of diagnosis, date of immunotherapy initiation and termination, date of disease progression, date of follow-up or death and so on. The serum Mg2+ levels were assayed using the clinical chemistry analyzer (Beckman Coulter, California, USA) following the manufacturer’s protocol. Immunotherapy regimens were selected at the discretion of the treating oncologist; Atezolizumab, Sintilimab, Camrelizumab and Tislelizumab were given typically every three weeks in accordance with established guidelines and indications. All patients underwent follow-up imaging with abdominal computed tomography (CT) or abdominal magnetic resonance imaging (MRI), as well as chest CT after every two cycles of immunotherapy. When clinically indicated, additional positron emission tomography/computed tomography (PET/CT) scan, whole-body bone scan and cranial MRI were performed.
In this study, the primary endpoint was to evaluate the correlation between the disease control rate (DCR) and serum Mg2+ levels prior to the initiation of immunotherapy. Disease control included complete response (CR), partial response (PR) and stable disease (SD), as defined by the RECIST criteria version 1.1.
2.3 Statistical analyses
The optimal cut-off value for baseline serum Mg2+ levels in relation to disease control was determined using receiver operating characteristic (ROC) curve analysis. Patients were then stratified into either the high magnesium (≥the cut-off value) or the low magnesium (<the cut-off value) groups accordingly. Additionally, patients were categorized into four quartile-based groups (Q1, Q2, Q3, Q4) according to the 25th, 50th, and 75th percentiles of pretreatment serum magnesium levels. Specifically, Q1 included values below the 25th percentile, Q2 encompassed values between the 25th and 50th percentiles, Q3 represented values between the 50th and 75th percentiles, and Q4 comprised values above the 75th percentile. Categorical baseline variables were compared using chi-square test or Fisher’s test, while continuous baseline variables were analyzed using the t test or Mann-Whitney U test. Differences in outcomes between the low magnesium and high magnesium groups were assessed using the Log rank test. Progression-free survival (PFS) was defined as the time from the initiation of immunotherapy to disease progression or death from any cause, whichever occurred first, and was estimated using the Kaplan–Meier method. The pre-specified cutoff value determined from the derivation cohort’s ROC analysis, was applied to this validation cohort without modification. The same endpoints were assessed. Univariate and multivariate Cox proportional hazards models were utilized to evaluate the impact of serum Mg2+ levels and other clinical variables—including sex, age, presence of macrovascular invasion or extrahepatic metastasis, hepatitis B virus infection status, α-fetoprotein concentration, renal function(estimated Glomerular Filtration Rate), nutritional status, liver function (Albumin-Bilirubin Score), serum albumin, C-reactive protein, type of immunotherapy (monotherapy vs. combination therapy), and administration of anti–PD-1, anti–PD-L1, or anti–CTLA-4 antibodies—on PFS. Hazard ratios (HRs) and 95% confidence intervals (CIs) were calculated. All statistical analyses were performed using SPSS software (version 23.0), and a P-value <0.05 was considered statistically significant.
This study was conducted in accordance with the Declaration of Helsinki and was approved by the Ethics Committee of Sir Run Run Shaw Hospital, Zhejiang University.
3 Results
3.1 Characteristics of the population in derivation cohort
A total of 110 patients with hepatocellular carcinoma who received immune checkpoint inhibitors (ICIs) were enrolled in this derivation cohort. The baseline clinical characteristics of the patients are summarized in Table 1. The median age at the initiation of immunotherapy was 62 years, ranging from 31 to 80 years. Among the participants, 97 (88.18%) were male and 13 (11.82%) were female. A total of 58 patients (52.73%) were diagnosed with HCC accompanied by macrovascular invasion, while 52 patients (47.27%) presented with extrahepatic metastasis. Of these patients, 92 cases (83.64%) received immunotherapy in combination with vascular endothelial growth factor (VEGF) inhibitors, and 18 cases (16.36%) underwent immunotherapy as monotherapy. Regarding specific immunotherapy regimens, 92 patients (85.45%) were treated with anti PD-1 antibody, 13 patients (11.82%) with anti PD-L1 antibody and 3 patients (2.73%) with anti CTLA-4 antibody.
3.2 Survival analyses according to serum Mg2+ in derivation cohort
The median pretreatment serum Mg2+ level was 0.84 mmol/L, and the median follow-up duration was 18.63 months. The disease control rate was 78.18% (86 out of 110 patients). Partial response (PR) was observed in 14 patients (12.73%), and stable disease (SD) was observed in 72 patients (65.45%). Serum magnesium levels prior to immunotherapy were significantly higher in the disease control group (CR + PR + SD) than compared to progressive disease (PD) group (P < 0.001). In patients in the disease control group, serum magnesium levels remained stable from baseline to progression (P = 0.607). In contrast, patients in the progressive disease group exhibited a significant decrease in serum magnesium levels at the time of progression compared to their baseline (P = 0.038). Based on ROC curve analysis, the optimal cut-off value for pretreatment serum Mg2+ was determined to be 0.785 mmol/L, with an area under the curve (AUC) of 0.869 (sensitivity: 89.4%; specificity: 87.5%, Figure 1A). Accordingly, patients were categorized into a high-Mg2+ group (≥0.785 mmol/L, n = 80) and a low-Mg2+ group (<0.785 mmol/L, n = 30). In the low-Mg2+ group, the disease control rate was 30% (9 out of 30 patients), whereas in the high-Mg2+ group, it was 96.25% (77 out of 80 patients). During follow-up, 71 out of 110 patients (64.55%) experienced disease progression. The baseline characteristics of HCC patients in the high-Mg2+ and low-Mg2+ groups are summarized in Table 2. No significant differences were observed in age, sex, metastatic status, HBV infection status, α-fetoprotein concentration, use of immunotherapy, renal function, nutritional status or liver function. But patients with high magnesium levels had a significantly higher proportion of individuals with serum albumin ≥30 g/L and C-reactive protein <10 mg/L compared to the low magnesium group. The median PFS was significantly longer in the high-Mg2+ group compared to the low-Mg2+ group (12.83 months vs. 3.45 months, P < 0.001, HR 0.269, 95% CI 0.165–0.438, Figure 1B).
Figure 1. Outcomes of receiver operating characteristic (ROC) curve analyses and survival analyses. (A) ROC curve analysis for serum magnesium. (B) PFS analysis of high-Mg2+ group and low-Mg2+ group in all eligible patients.
Table 2. The characteristics of patients classified by serum Mg2+ levels in the derivation cohort (n=110).
In subgroup analyses, among patients with macrovascular invasion, the median PFS in high-Mg2+ group was significantly longer than that in low-Mg2+ group (16.97 months vs. 6.78 months, P = 0.0102, HR 0.400, 95% CI 0.177–0.903, Figure 2A). For patients with extrahepatic metastasis, the median PFS in the high-Mg2+ group was 8.97 months, while that in the low-Mg2+ group was 2.38 months (P < 0.001, HR 0.266, 95% CI 0.143–0.492, Figure 2B). Similarly, in patients without macrovascular invasion, a significant PFS benefit was observed in the high-Mg2+ group (10.07 months vs. 3.73 months, P < 0.001, HR 0.371, 95% CI 0.192–0.715) (Figure 2C). This association was also evident in patients without extrahepatic metastases, where the high-Mg2+ group had a median PFS of 22.67 months compared to 8.95 months in the low-Mg2+ group (P = 0.044, HR 0.395, 95% CI 0.164–0.952) (Figure 2D).
Figure 2. Kaplan–Meier survival curves of progression-free survival in subgroup analyses. (A) PFS analysis of HCC patients with macrovascular invasion. (B) PFS analysis of HCC patients with extrahepatic metastasis. (C) PFS analysis of HCC patients without macrovascular invasion. (D) PFS analysis of HCC patients without extrahepatic metastasis. (E) PFS across the quartiles. (F) PFS analysis of high-Mg2+ group and low-Mg2+ group in validation cohort.
Kaplan-Meier analysis demonstrated a significant and graded improvement in PFS across the quartiles (P < 0.001, Figure 2E). The median PFS for Q1, Q2, Q3, and Q4 was 3.37, 12.83, 10.07, and 13.53 months, respectively.
Univariate and multivariate analyses were conducted based on the patients’ baseline characteristics (Table 3). The results indicated that baseline elevated serum Mg2+ levels (≥0.785 mmol/L) and the presence of macrovascular invasion, rather than extrahepatic metastasis, were independent predictive factors associated with prolonged PFS in HCC patients. However, C-reactive protein, which was significant in univariate analysis, lost its independent significance in the multivariate model.
Table 3. Univariate and multivariate analyses for the response to immunotherapy in the derivation cohort.
3.3 Characteristics and survival analyses in validation cohort
The clinical utility of the 0.785 mmol/L serum magnesium cutoff was assessed in the independent external validation cohort (n=48). The baseline characteristics of the validation cohort are summarized in Supplementary Table 1 and were largely comparable to the derivation cohort.
Patients in the validation cohort with pretreatment serum magnesium ≥0.785 mmol/L had a significantly higher disease control rate (91.67% vs. 58.33%, P < 0.001) compared to the low-magnesium group. More importantly, Kaplan-Meier analysis confirmed a significant prolongation of median PFS in the high-magnesium group versus the low-magnesium group (17.13 months vs. 5.20 months, P = 0.037, HR 0.304, 95% CI 0.131–0.701, Figure 2F).
4 Discussion
Immunotherapies have demonstrated significant clinical benefits in patients with hepatocellular carcinoma. The IMbrave 150 study revealed that a therapy containing Atezolizumab (an anti-PD-L1 antibody) improved progression-free survival and overall survival outcomes in patients with advanced HCC (3). Similarly, the ORIENT-32 study conducted in the Chinese population showed that a therapy containing Sintilimab (an anti-PD-1 antibody) resulted in superior clinical outcomes (4). The success of Atezolizumab and Sintilimab in HCC heralds a new era of systemic treatment for this disease. However, the disease control rate of immunotherapy was 73.6% in the IMbrave 150 study and 72% in the ORIENT-32 study. It is well established that hepatocellular carcinoma is a highly heterogeneous disease, as evidenced by the fact that nearly a quarter of HCC patients do not respond to ICIs. Additionally, a subset of advanced HCC patients fails to achieve long-term benefit from immunotherapy due to acquired drug resistance. Therefore, further investigation is warranted to elucidate the mechanisms underlying the variable responses to ICIs in HCC patients and to identify strategies to overcome resistance.
Our study represents the first retrospective investigation evaluating the association between serum magnesium levels and clinical outcomes in HCC patients treated with ICIs. Our findings indicate that higher pretreatment serum magnesium levels are correlated with improved clinical outcomes, including an increased disease control rate (CR + PR + SD) and prolonged PFS in HCC patients undergoing ICI therapy. In our statistical analyses, neither the treatment regimen (monotherapy vs. combination) nor the agent type (anti-PD-1 vs. anti-PD-L1) was significantly associated with PFS in univariate analysis. This suggests that the predictive value of pretreatment serum magnesium may be consistent across these specific variations in immunotherapy within our cohort. Even after controlling for renal function, nutritional status, liver function (ALBI grade), and systemic inflammation (C-reactive protein), serum magnesium remained an independent predictor of PFS. The most significant strength of our study is the successful external validation in an independent cohort from a different department. The fact that the cutoff of 0.785 mmol/L consistently stratified patients in both the derivation and validation cohorts markedly reduces the risk of bias. This successful external validation is a critical step, significantly enhancing the potential generalizability of serum magnesium as a clinically useful predictive tool. These findings are consistent with results from prior studies conducted in other common malignancies. An investigation revealed that non-small cell lung cancer patients treated with Durvalumab (an anti PD-L1 antibody) who experienced hypomagnesemia had decreased overall survival compared to those with normomagnesemia (10). Furthermore, a study indicated that patients with lung cancer, esophageal cancer, and Hodgkin lymphoma who had high serum magnesium levels (≥0.79 mmol/L) showed favorable responses to ICI treatment, along with longer progression-free survival and overall survival (11). Notably, patients in the high magnesium group also exhibited a higher overall response rate, including complete response and partial response, compared to those in the low magnesium group (11). The novelty of our work does not stem from proposing a new biological mechanism, but in the successful translation and validation of an established concept within a specific clinical context. This finding positions serum magnesium as a practical and readily accessible biomarker, potentially paving the way for future investigations. An important question raised by our findings is whether this association is specific to the immunotherapy or represents a broader predictive indicator applicable to non-immunotherapy regimens, such as tyrosine kinase inhibitors or chemotherapy. For example, a non-HCC cancer type, Xu et al. demonstrated that non-small cell lung cancer patients with higher pre-treatment Mg2+ levels exhibited longer progression-free survival and overall survival when receiving epidermal growth factor receptor TKIs therapy (14). This finding indicates that magnesium may modulate anti-tumor responses in other cancer contexts. However, ICI-based therapies have become the standard first-line treatment for eligible patients with HCC. A control group of comparable patients receiving non-immunotherapy treatments is scarce and likely subject to substantial selection bias, as these individuals often have contraindications to immunotherapy. Therefore, the most urgent clinical question has evolved: identifying biomarkers capable of stratifying outcomes among patients who are expected to receive immunotherapy is crucial. Future prospective studies that include baseline magnesium assessment in all HCC patients, combined with comprehensive biomarker profiling, could further clarify its independent prognostic and predictive value.
In recent years, advances in genome sequencing—such as single-cell RNA sequencing—as well as immune cell identification strategies and microbiota analysis have generated significant potential for identifying novel prognostic biomarkers. These biomarkers could enable more accurate selection of patients most likely to benefit from immune checkpoint inhibitors. However, many of these techniques are costly and time-consuming, limiting their large-scale application in real-world settings. In contrast, serum magnesium is a routine biochemical electrolyte test with high clinical accessibility. It is more cost-effective, provides rapid results, and allows for repeated testing and dynamic monitoring, making it better suited for widespread use in practical clinical scenarios. In previous studies, the neutrophil-to-lymphocyte ratio and platelet-to-lymphocyte ratio (NLR and PLR) have been established as inflammatory cell markers and potential predictive biomarkers in HCC patients undergoing immunotherapy (15). A decrease in NLR has been associated with improved survival outcomes; however, no significant association between NLR and ORR has been observed (16). This inconsistency in the relationship with treatment response raises concerns regarding the reliability of NLR and PLR as predictive biomarkers for guiding the use of immune checkpoint inhibitors (ICIs) in patients with HCC.
Magnesium is indispensable for maintaining health and sustaining life. Mg2+ plays a critical role in both innate and acquired immune responses and is involved in the regulation of DNA repair mechanisms (17). Magnesium deficiency contributes to immune dysfunction and can induce DNA mutations, potentially leading to tumorigenesis. To directly assess the impact of systemic magnesium levels on the antigen-specific cytotoxic activity of memory CD8+ T cells, in vivo killing assays were conducted. Antigen-specific target cell clearance was reduced in Mg2+-deficient hosts, and cytotoxicity was partially restored by co-injection of magnesium with target cells. In this model, dietary Mg2+ depletion also impaired the effector function of memory CD8+ T cells, whereas supplementation of the bacterial inoculum with Mg2+ significantly enhanced bacterial clearance (10). Intratumoral delivery of Mg2+ can enhance memory CD8+ T cell-mediated anti-tumor immunity. By increasing LFA-1 outside-in signaling, extracellular Mg2+ activates memory CD8+ T cells during immune surveillance in tissues with high versus low Mg2+ levels (10). The magnesium transporter 1 (MAGT1) is a critical regulator of basal intracellular magnesium levels. Individuals with genetic deficiencies in MAGT1 exhibit a significantly increased predisposition to lymphoma. Previous studies have shown that reduced intracellular magnesium levels lead to impaired expression of the natural killer cell activating receptor in both natural killer (NK) and CD8+ T cells, thereby compromising cytolytic responses (18). Magnesium modulates the immune system through the activation of STING pathway (stimulator of IFN genes) and the induction of type I IFN expression, promoting dendritic cell maturation and antigen presentation, thereby enhancing the antitumor effect of T cells. Research has shown that the mitogen-activated protein kinase (MAPK) signaling pathway, which is regulated by magnesium, is activated in over 50% of human hepatocellular carcinoma cases (19). Enhancing the immune response can improve the therapeutic efficacy of immune checkpoint inhibitors. The reduced efficacy of immune therapy in liver cancer patients may be attributed to the high magnesium affinity exhibited by tumors of greater malignancy, which leads to hypomagnesemia. Cellular magnesium homeostasis is primarily maintained by TRPM7, whose overexpression and/or activation has been implicated in the growth and proliferation of hepatocellular carcinoma (8). Mg2+ deficiency has been linked to inflammation and elevated levels of free radicals, both of which can contribute to oxidative DNA damage and subsequent tumor development. Reduced Mg2+ concentrations in serum and liver tissue may promote disease progression by impairing mitochondrial function, disrupting protein kinase C translocation, and exacerbating inflammatory responses, oxidative stress, and metabolic dysregulation. A retrospective study demonstrated that higher serum Mg2+ levels are significantly associated with a lower risk of HCC in patients with nonalcoholic fatty liver disease (20). Another retrospective analysis indicated that serum Mg2+ levels were markedly lower in cirrhotic patients with HCC compared to those without HCC (8). Our results, which showed lower serum magnesium levels were associated with decreased clinical outcomes and further declined with disease progression, support the hypothesis that HCC may have an increased demand for magnesium to sustain cell proliferation, thereby leading to reduced serum magnesium concentrations.
It has been previously reported that feeding mice a magnesium-deficient diet accelerates the genetic instability, as well as the invasion and metastasis of cancer cells (21). Previous studies have indicated that higher dietary or drinking water intake of magnesium is associated with a decreased risk of colorectal cancer, liver cancer and lung cancer (22, 23). Our study provides evidence that a significant decrease in serum magnesium occurs specifically at the time of disease progression among patients who had high baseline levels but fail to achieve disease control, whereas levels remain stable in those who respond with disease control. This indicates that the dynamic decline in magnesium, rather than baseline concentration alone, may represent a biological event associated with the development of treatment resistance. These findings underscore the importance of a magnesium-enriched diet in enhancing the efficacy of immunotherapy. However, several epidemiological studies have revealed that individuals often consume dietary magnesium below the Recommended Daily Allowance (RDA) of 320 to 420 mg/day (24). Oral magnesium supplementation is more commonly utilized due to its ability to consistently elevate serum magnesium levels. In both in vitro and in vivo testing, organic magnesium compounds, such as magnesium citrate, demonstrate superior bioavailability compared to inorganic magnesium compounds (24). Furthermore, oral magnesium supplementation is generally well tolerated, with diarrhea, if present, being mild. Additionally, Wu et al. found that oral administration of magnesium-L-threonate enhances analgesia while reducing the required dosage of opioids, thereby improving the quality of life in advanced cancer patients (25). There is robust evidence demonstrating the involvement of magnesium ions in modulating immune responses; however, further mechanistic investigations and prospective studies are necessary to validate these findings. As a critical regulatory “switch” in tumor growth, magnesium ions represent a promising therapeutic target for cancer and hold significant potential for broad clinical applications. In the future, multicenter prospective clinical trials could be designed to investigate whether oral magnesium supplementation, when combined with immunotherapy, can enhance the therapeutic efficacy of immunotherapy in hepatocellular carcinoma.
There are several limitations to our study. First, our retrospective study was conducted with a limited sample size, which may introduce bias. Second, our cohort was highly male-predominant. However, this sex imbalance reflects the well-documented epidemiology of HCC, which has a strong male predominance globally. Prior research has demonstrated that serum magnesium levels are generally higher in healthy males compared to females (26). The sex ratio limits our ability to robustly investigate the relationship between magnesium and immunotherapy responses in female patients. Moreover, our study enrolled only Chinese hepatocellular carcinoma patients, and differences between Eastern and Western populations may exist. Our cohort was predominantly composed of patients with hepatitis B virus related HCC, reflecting the high prevalence of HBV as an etiology in Eastern Asian populations. In contrast, the epidemiological landscape of HCC in Western populations is characterized by a higher prevalence of alcohol-related liver disease and non-alcoholic steatohepatitis (NASH) (27). It has been suggested that the underlying tumor immune microenvironment may differ between HCCs of viral and non-viral origins. For instance, NASH-related HCC is often associated with aberrant T cell activation and potentially more immunosuppressive microenvironment, which might be less responsive to immunotherapy (28). Considering these limitations, further multicenter research involving larger and more diverse sample sizes is necessary to provide compelling evidence.
5 Conclusion
In conclusion, our findings demonstrate that pretreatment serum magnesium levels serve as a potential independent predictive biomarker for immunotherapy response in patients with hepatocellular carcinoma receiving first-line immune checkpoint inhibitors. These results underscore the need for future prospective studies in large, homogeneously treated cohorts to definitively validate the association between baseline serum magnesium levels and overall survival, and to establish its clinical utility as a reliable prognostic marker.
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 Ethics Committee of Sir Run Run Shaw Hospital, Zhejiang University. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because of the retrospective nature of the study and the use of anonymized clinical data.
Author contributions
XC: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Visualization, Writing – original draft, Writing – review & editing. WW: Conceptualization, Data curation, Formal analysis, Investigation, Project administration, Resources, Writing – original draft, Writing – review & editing. Y-NX: Investigation, Methodology, Project administration, Resources, Software, Writing – original draft. H-LT: Investigation, Methodology, Project administration, Resources, Software, Writing – original draft. DL: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – review & editing.
Funding
The author(s) declared financial support was received for this work and/or its publication. This study was funded by Zhejiang Provincial Medical Association Clinical Medicine Special Fund Project (No. 2022ZYC-D08) and Zhejiang Provincial Natural Science Foundation of China (No. LY24H160004).
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) declare 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/fimmu.2025.1732557/full#supplementary-material
References
1. Bray F, Laversanne M, Sung H, Ferlay J, Siegel RL, Soerjomataram I, et al. Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J Clin. (2024) 74:229–63. doi: 10.3322/caac.21834
2. Xia C, Dong X, Li H, Cao M, Sun D, He S, et al. Cancer statistics in China and United States, 2022: profiles, trends, and determinants. Chin Med J (Engl). (2022) 135:584–90. doi: 10.1097/CM9.0000000000002108
3. Finn RS, Qin S, Ikeda M, Galle PR, Ducreux M, Kim TY, et al. Atezolizumab plus bevacizumab in unresectable hepatocellular carcinoma. N Engl J Med. (2020) 382:1894–905. doi: 10.1056/NEJMoa1915745
4. Ren Z, Xu J, Bai Y, Xu A, Cang S, Du C, et al. Sintilimab plus a bevacizumab biosimilar (IBI305) versus sorafenib in unresectable hepatocellular carcinoma (ORIENT-32): a randomised, open-label, phase 2–3 study. Lancet Oncol. (2021) 22:977–90. doi: 10.1016/S1470-2045(21)00252-7
5. Saris NE, Mervaala E, Karppanen H, Khawaja JA, and Lewenstam A. Magnesium. An update on physiological, clinical and analytical aspects. Clin Chim Acta. (2000) 294:1–26. doi: 10.1016/s0009-8981(99)00258-2
6. Ashique S, Kumar S, Hussain A, Mishra N, Garg A, Gowda BHJ, et al. A narrative review on the role of magnesium in immune regulation, inflammation, infectious diseases, and cancer. J Health Popul Nutr. (2023) 42:74. doi: 10.1186/s41043-023-00423-0
7. Fiorentini D, Cappadone C, Farruggia G, and Prata C. Magnesium: biochemistry, nutrition, detection, and social impact of diseases linked to its deficiency. Nutrients. (2021) 13:1136. doi: 10.3390/nu13041136
8. Parisse S, Ferri F, Persichetti M, Mischitelli M, Abbatecola A, Di Martino M, et al. Low serum magnesium concentration is associated with the presence of viable hepatocellular carcinoma tissue in cirrhotic patients. Sci Rep. (2021) 11:15184. doi: 10.1038/s41598-021-94509-6
9. Lin F, Yang H, Huang Z, Li Y, Ding Q, Ye Y, et al. Magnesium-related gene ITGAL: a key immunotherapy predictor and prognostic biomarker in pan-cancer. Front Pharmacol. (2024) 15:1464830. doi: 10.3389/fphar.2024.1464830
10. Lötscher J, Martí I Líndez AA, Kirchhammer N, Cribioli E, Giordano Attianese GMP, Trefny MP, et al. Magnesium sensing via LFA-1 regulates CD8+ T cell effector function. Cell. (2022) 185:585–602. doi: 10.1016/j.cell.2021.12.039
11. Feng Y, Gao M, Xu X, Liu H, Lu K, Song Z, et al. Elevated serum magnesium levels prompt favourable outcomes in cancer patients treated with immune checkpoint blockers. Eur J Cancer. (2024) 213:115069. doi: 10.1016/j.ejca.2024.115069
12. Marrero JA, Kulik LM, Sirlin CB, Zhu AX, Finn RS, Abecassis MM, et al. Diagnosis, staging, and management of hepatocellular carcinoma: 2018 practice guidance by the american association for the study of liver diseases. Hepatology. (2018) 68:723–50. doi: 10.1002/hep.29913
13. Eisenhauer EA, Therasse P, Bogaerts J, Schwartz LH, Sargent D, Ford R, et al. New response evaluation criteria in solid tumours: revised RECIST guideline (version 1. 1). Eur J Cancer. (2009) 45:228–47. doi: 10.1016/j.ejca.2008.10.026
14. Xu FZ, Meng FR, Li WJ, Xu L, Zhang H, Zhang YB, et al. Predictive value of serum magnesium levels for prognosis in patients with non-small cell lung cancer undergoing EGFR-TKI therapy. Open Life Sci. (2024) 19:20220923. doi: 10.1515/biol-2022-0923
15. Dharmapuri S, Özbek U, Lin JY, Sung M, Schwartz M, Branch AD, et al. Predictive value of neutrophil to lymphocyte ratio and platelet to lymphocyte ratio in advanced hepatocellular carcinoma patients treated with anti-PD-1 therapy. Cancer Med. (2020) 9:4962–70. doi: 10.1002/cam4.3135
16. Wu YL, Fulgenzi CAM, D’Alessio A, Cheon J, Nishida N, Saeed A, et al. Neutrophil-to-lymphocyte and platelet-to-lymphocyte ratios as prognostic biomarkers in unresectable hepatocellular carcinoma treated with atezolizumab plus bevacizumab. Cancers (Basel). (2022) 14:5834. doi: 10.3390/cancers14235834
17. Touyz RM, de Baaij JHF, and Hoenderop JGJ. Magnesium disorders. N Engl J Med. (2024) 390:1998–2009. doi: 10.1056/NEJMra1510603
18. Chaigne-Delalande B, Li FY, O’Connor GM, Lukacs MJ, Jiang P, Zheng L, et al. Mg2+ regulates cytotoxic functions of NK and CD8 T cells in chronic EBV infection through NKG2D. Science. (2013) 341:186–91. doi: 10.1126/science.1240094
19. Moon H and Ro SW. MAPK/ERK signaling pathway in hepatocellular carcinoma. Cancers (Basel). (2021) 13:3026. doi: 10.3390/cancers13123026
20. Yu YC, Paragomi P, Wang R, Liang F, Luu HN, Behari J, et al. High serum magnesium is associated with lower risk of hepatocellular carcinoma among patients with nonalcoholic fatty liver disease. Cancer. (2023) 129:2341–7. doi: 10.1002/cncr.34799
21. Gile J, Ruan G, Abeykoon J, McMahon MM, and Witzig T. Magnesium: The overlooked electrolyte in blood cancers? Blood Rev. (2020) 44:100676. doi: 10.1016/j.blre.2020.100676
22. van den Brandt PA, Smits KM, Goldbohm RA, and Weijenberg MP. Magnesium intake and colorectal cancer risk in the Netherlands Cohort Study. Br J Cancer. (2007) 96:510–3. doi: 10.1038/sj.bjc.6603577
23. Tukiendorf A and Rybak Z. New data on ecological analysis of possible relationship between magnesium in drinking water and liver cancer. Magnes Res. (2004) 17:46–52.
24. Blancquaert L, Vervaet C, and Derave W. Predicting and testing bioavailability of magnesium supplements. Nutrients. (2019) 11:1663. doi: 10.3390/nu11071663
25. Wu S, Jin T, Ma B, Ji Y, Huang X, Wang P, et al. Oral application of magnesium-L-threonate enhances analgesia and reduces the dosage of opioids needed in advanced cancer patients-A randomized, double-blind, placebo-controlled trial. Cancer Med. (2023) 12:4343–51. doi: 10.1002/cam4.4922
26. Al-Maqbali JS, Al Alawi AM, Al-Falahi Z, Falhammar H, Al-Zakwani I, and Al Za’abi M. The stability of analytes of ionized magnesium concentration and its reference range in healthy volunteers. Biomedicines. (2023) 11:2539. doi: 10.3390/biomedicines11092539
27. Mauro E, de Castro T, Zeitlhoefler M, Sung MW, Villanueva A, Mazzaferro V, et al. Hepatocellular carcinoma: Epidemiology, diagnosis and treatment. JHEP Rep. (2025) 7:101571. doi: 10.1016/j.jhepr.2025.101571
Keywords: clinical outcome, hepatocellular carcinoma, immune checkpoint inhibitor, predictive value, serum magnesium
Citation: Cheng X, Wang W, Xue Y-n, Tang H-l and Li D (2026) Serum magnesium predictive value in hepatocellular carcinoma patients on first-line immunotherapy: a retrospective study. Front. Immunol. 16:1732557. doi: 10.3389/fimmu.2025.1732557
Received: 26 October 2025; Accepted: 10 December 2025; Revised: 30 November 2025;
Published: 05 January 2026.
Edited by:
Giovanni Monteleone, University of Rome Tor Vergata, ItalyReviewed by:
Vincenzo Formica, Policlinico Tor Vergata, ItalyIrene Marafini, Policlinico Tor Vergata, Italy
Copyright © 2026 Cheng, Wang, Xue, Tang and Li. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Da Li, bGlkYW9uY29uZXdAemp1LmVkdS5jbg==
†These authors have contributed equally to this work
Wei Wang†