system
Given the following post, respond as if you're commenting on Reddit:
human
How long do solar panels last before needing to be replaced and is this currently a barrier to investing in solar in terms of cost efficiency?
gpt
Typical consumer warranties on panels are for 25 years.  The panels will likely last much longer than that-- panels made in the 1970s are still in use.  Their output declines slowly over time, but they have no moving parts and are made of very durable materials, so they just keep right on chugging.

The inverter will fail long before that-- they typically last more like 10-15 years, although inverters are a small part of the system cost.