Federal regulators are investigating whether solar-energy companies are masking how many customers they are losing, according to a person familiar with the matter.

The Securities and Exchange Commission is examining whether San Francisco-based Sunrun Inc. and Elon Musk’s San Mateo, Calif.-based SolarCity Corp. have adequately disclosed how many customers have canceled contracts after signing up for a home solar-energy system, the person said.

...