The prevalence of erectile dysfunction (ED) in patients with chronic obstructive pulmonary disease (COPD) seemed high; however, large scale of population-based study was absent. We conducted a retrospective cohort study using data from the National Health Insurance system of Taiwan. The cohort included 29,042 male patients who were newly diagnosed with COPD. Patients were recruited between 2000 and 2011, and the date of diagnosis was defined as the index date. Each patient was randomly matched with 1 male person from the general population without COPD according to age and the index year. The occurrence of ED was followed up until the end of 2011. The hazard ratios of ED were estimated using the Cox proportional hazard model after adjusting for age, index year, comorbidities, and medications. The overall incidence of ED was 1.88-fold greater in the COPD cohort than in the non-COPD cohort (24.9 vs 13.3/1000 person-years, 95% confidence interval [CI] = 1.61-2.18). Compared with non-COPD patients, the hazard ratio increased with the number of emergency room visits and admissions for COPD from 1.51 (95% CI 1.29-1.77) to 5.46 (95% CI 3.03-9.84) and from 1.50 (95% CI 1.28-1.76) to 11.5 (95% CI 5.83-22.6), respectively. Patients with COPD are at a significantly higher risk of developing ED compared with the general population regardless of age and presence of comorbidity. The results also support that poor control of COPD status is a key factor affecting ED development.