How it works
Yearly charging energy = miles ÷ efficiency ÷ (1 − charging loss) × the share charged at home. Level 2 chargers lose roughly 10% between the wall and the battery. Efficiency is on the car's EPA label or dashboard, usually 2–4.5 miles per kWh.
Solar kW = that energy ÷ what one kW of panels makes a year in your state (NREL data). Panels = kW ÷ panel size, rounded up. Area assumes about 21.5% efficient panels.
The gas comparison uses your price and the mpg of the car you would drive instead, so enter your local price.