The life of a rooftop solar system depends on various factors, including the quality of the equipment and installation, maintenance, and environmental factors such as weather and shading. Typically, a well-maintained solar system can last for 25-30 years or more. Solar panels usually come with a warranty of 25 years and are designed to withstand harsh weather conditions such as hail, rain, and extreme temperatures. Inverter warranties typically last for 5-12 years. Proper maintenance, such as keeping the panels clean and checking the electrical connections, can help maximize the lifespan of a rooftop solar system.