- The US used 134.51 billion gallons of gas in 2013.[1] - There are ~33 kWh/gal in gasoline [2]
134.51e9 gal x 33 kWh / gal = 4.44e12 kWh (4.44 trillion kWh / year)
- The US used a total of 3.856 trillion kWh of electricity in 2011 [3]
Ignoring improved efficiency and excluding other factors, converting all gasoline usage to electric would more than double US electricity consumption.
Under reasonable assumptions, PV solar generates about 0.75 kWh/m^2 per day. [4]
4.44 trillion kWh/year / 0.75 kWh/m^2 per day x 365 days/year / 1e6 m^2 per km^2 = 16,219 km^2
Which means you could generate all of the required electricity with about 16,200 km^2 of solar panels - which is just about exactly the total land area of Hawaii [5], or 405 million average home PV systems.
It's doable, but it will be non-trivial.
[1] http://www.eia.gov/tools/faqs/faq.cfm?id=23&t=10 [2] http://en.m.wikipedia.org/wiki/Gasoline_gallon_equivalent [3] http://www.eia.gov/energyexplained/index.cfm?page=electricit... [4] http://physics.ucsd.edu/do-the-math/2011/09/dont-be-a-pv-eff... [5] http://en.m.wikipedia.org/wiki/List_of_U.S._states_and_terri...