IVW-MR analysis showed that the positive relationship between the expression of HMGCR and the risk of erectile dysfunction (odds ratio [OR] = 1.27, 95% confidence interval [CI] 1.03–1.57; p = 0.028). Here, HMGCR is linked to erectile dysfunction.