Also, producing gasoline is not "free". It takes energy to produce and deliver that gasoline to your car.
Numbers I've seen are 5 ~ 8kWh, that's 20-30 miles of electric driving.
Depending on your gasoline car's efficiency and exact kWh number above, the energy to even produce and deliver the gasoline is higher than actually driving an electric vehicle.