In conclusion, we revealed an association between calcium channel-related genes and prostate cancer, and identified P2RX2 as a biomarker for early diagnosis, prognosis prediction, and aiding treatment decisions for patients with prostate cancer. Here, P2RX2 is linked to prostate cancer.