Move over, shale. The sun is now the fastest-growing source of U.S. electricity.

Solar power capacity in the U.S. has jumped 20-fold since 2008 as companies, including Apple Inc., use it to reduce their carbon footprints. Rooftop panels are sprouting on homes from suburban New York to Phoenix, driven by suppliers such as SolarCity Corp. and NRG Energy Inc.