A series of benzotrithiophene-containing random terpolymers for polymer solar cells is reported. Through variations of the two other components in the terpolymers, the absorption profile and the frontier energy levels are optimized and maximum power conversion efficiencies are nearly doubled (5.14%) relative to the parent alternating copolymer.