Copper-doped cadmium telluride thin-film solar cells have high efficiency, but limited hole density and Cu diffusion allow little room for further improvements in device performance. Now, arsenic-doped cadmium telluride thin films show enhanced hole density and lower dopant diffusivity leading to 20.8%-efficient solar cells.