Quality panels last 25–30+ years, with performance warranties guaranteeing around 85–90% output by year 25.
Good-quality solar panels are built to last 25–30 years or more. They don't suddenly stop working; instead they slowly produce a little less each year — this is called degradation.
Most Tier-1 panels degrade around 0.4–0.5% per year, and carry a performance warranty guaranteeing roughly 85–90% of original output at year 25. Newer N-type panels degrade even more slowly.
Inverters have a shorter life (often 10–15 years) and may need replacing once during the panels' lifetime — worth budgeting for when you calculate long-term returns.
This is general guidance — figures vary by location, tariff, equipment and installer. Always confirm details for your own home before deciding.