BACKGROUND: The impact and underlying mechanisms of astragalus polysaccharide (APS) on prostate cancer, particularly its role in immunomodulation, remain inadequately elucidated. METHODS: This study employed the XTT assay for assessing proliferation in prostate cancer cells and macrophages. T cell proliferation was determined using the Carboxyfluorescein diacetate succinimidyl ester labeling assay. APS's effect on T cells and macrophages was scrutinized via flow cytometry, Western blot analysis, ELISA, quantitative PCR and cytokine membrane arrays. The effect of APS on interaction between PD-L1 and PD-1 was investigated by the PD-L1/PD-1 homogeneous assay. Additionally, the impact of conditioned medium from T cells and macrophages on PC-3 cell migration was explored through migration assays. RESULTS: It was observed that APS at concentrations of 1 and 5 mg/mL enhanced the proliferation of CD8 CONCLUSION: The findings indicate a potential role of 5 mg/mL APS in modulating the PD-1/PD-L1 pathway and influencing the immune response, encompassing T cells and macrophages. Consequently, further in vivo research is recommended to assess the efficacy of APS.