Introduction Patients with heart failure (HF) and bradycardia may be eligible for different types of cardiac implantable electronic devices (CIED), depending on presence of AV conduction disease, age and comorbidities. We aimed to assess prognosis for these patients, after CIED implantation, stratified for type of CIED device. Methods All patients with preexisting HF diagnosis who received a CIED with a right ventricular lead during the period 2005-2018 in Sweden were identified via the Pacemaker-registry. Data was crossmatched with the population registry and national disease registries. Outcome was 5-year risk of HF hospitalization, and mortality. Results 37745 patients were included in the study. Comparing demographics for ICD vs. pacemaker implants, median age was 66 years vs. 83 years, 20% vs. 41% were female, 64% vs. 50% had ischemic heart disease and 35% vs. 67% had atrial fibrillation (all p<0,001). 5-year mortality was highest in single-chamber pacemaker recipients (61% compared to average 40%, p<0.001) but proportion of cardiovascular mortality was highest for CRT recipients (68% vs 63% p<0.001). Adjusted mortality was higher for pacemaker-patients in all age decile groups (ranging from <60 to >90 years old, all p<0.001). HF hospitalization occurred in 28% (dual-chamber pacemaker) to 39% (CRT-P) of patients, and cause of death was HF in 15% (dual-chamber pacemaker) to 25% (CRT-D), all p<0.001. Conclusion In this large real-world cohort of CIED treated patients with prior heart failure, demography- and mortality-data indicate that clinicians chose devices according to the overall status of the patient. Heart failure related events occurred in all groups, but were more common in CRT-treated patients.