A photovoltaic system has a lifespan of about 25 to 30 years. The performance of the system decreases over time, but it should still produce enough electricity to be economically viable. To extend the lifespan of a PV system, it should be regularly maintained to detect and address potential problems early on. Additionally, the system should be kept clean to avoid contaminations on the modules.