The great news is that these things are built to last…and they do! The panels themselves often last 30 years or more, with typical performance guarantees for tier A modules for 25 years after installation.
Inverters average lifespan vary, but top manufacturers are now offering reasonably priced warranty extensions to 25 years as well.
For off-grid or hybrid systems where batteries are being used for energy storage, the good news there is that they have no moving parts and so not too much can go wrong there. Battery lifespans vary widely and are primarily based on how many cycles of charge/discharge they will have. Their lifespans can be as high as 15 years.