1. Energy and materials for manufacturing the batteries
2. Energy for recycling the batteries
3. Energy to charge the batteries
4. Energy to mine the coal (most common fuel in the U.S.) to produce the electricity
5. Energy losses on the power lines, transformers, etc.
If you are after saving the environment, buy a used Geo instead. However, Tesla makes damn cool cars.