The cost to install solar panels on your roof will vary based on the size of your home and the number of panels you need. On average, homeowners can expect to pay $12,000 to install solar panels. However, some people can install small systems for $5,000. Large systems can cost more than $40,000.