Although the association between CAG and GGN repeats in the androgen receptor gene and prostate cancer risk has been widely studied, it remains controversial from previous meta-analyses and narrative reviews. Therefore, we performed this meta-analysis to provide more precise estimates with sufficient power. A total of 51 publications with 61 studies for CAG repeats and 14 publications with 16 studies for GGN repeats were identified in the meta-analysis. The results showed that short CAG repeats (<22 repeats) carriers presented an elevated risk of prostate cancer than long CAG repeats (≥22) carriers (OR = 1.31, 95% CI 1.16 to 1.47). Prostate cancer cases presented an average fewer CAG repeats (MD = -0.85, 95% CI -1.28 to -0.42) than controls. Short GGN repeats (≤16) carriers presented an increased risk of prostate cancer than long GGN repeats (>16) carriers (OR = 1.38, 95% CI 1.05 to 1.82). In subgroup analyses, the abovementioned significant association was predominantly observed in Caucasian populations. The meta-analysis showed that short CAG and GGN repeats in androgen receptor gene were associated with increased risk of prostate cancer, especially in Caucasians.