I found this paper very interesting: https://www.sciencedirect.com/science/article/pii/S0007850617301099 It describes the energy cost of the whole process in some detail, with the conclusion summarising the overall finding. Basically to manufacture a 24 kWh Lithium ion battery requires 88.9 GigaJoules, so the cost per KWh comes down to just over 1,000 kWh As the typical lifetime of a lithium-ion battery is between 300 and 500 cycles, it looks as if these things are costing two or three times more energy to make than ever passes through them! This figure was for prismatic cells. If you choose to use enormous numbers of 18650 cells like Tesla, then I imagine this ratio to be far far worse! Does it matter? I leave that to you to decide.