In 2015, about one in every 150 cars sold in the U.S. had a plug and a battery. But mass adoption of electric vehicles is coming, and much sooner than most people realize.

In part, this is because electric cars are gadgets, and technological change in gadgets is rapid.

One big leap is in batteries. A typical electric vehicle today costs $30,000...