Two new D–A copolymers containing benzotriazole (BTz) acceptor unit and different donor units of benzodithiophene (BDT) and 2,7-carbazole, PBDT-DTBTz and PC-DTBTz, were synthesized for the application as donor materials in polymer solar cells (PSCs). By changing the donor units, the band gaps and the highest occupied molecular orbital (HOMO) energy levels of the copolymers could be finely tuned. PC-DTBTz exhibited the lower HOMO energy level of −5.34 eV, and the lower HOMO energy level can lead to a higher open-circuit voltage (V oc) of 0.73 V in PC-DTBTz-based devices. The PCEs of the PSCs based on PBDT-DTBTz and PC-DTBTz blends with [6,6]-phenyl-C61 butyric acid methyl ester (PC61BM) were 1.55 and 1.33 %, respectively, under the illumination of AM1.5, 100 mW/cm2.