Earlier quoted context omitted.
The energy delivered by a solar panel is overwhelmingly more than needed to make it. The gain is enormous. There is simply no contest. Consider that makers of solar panels, and of the materials that go into them, get no break on their power bills. Each and every kWh that goes into making the panel is paid for, and necessarily has its cost folded into the price of the panel. Otherwise they would be paying power out of…
One could look for more direct sources, but the summary is that energy payback happens in 1-4 years out of current 25 year "life". And that 25 years is typically a warranty to 80% of original capacity. Year 26 of operation is not a sudden drop. https://www.solarmelon.com/faqs/solar-panels-use-energy-manu...
4 years is now a massive overestimate. Depending on how much you include (frames, inverter, grid tie in etc) 0.5-2 is more realistic.