Tesla Motors Inc., shaking up the auto industry with its battery-operated cars, is now reshaping metals markets, too.

Tesla and other electric-vehicle makers are swallowing up lithium, a lightweight material that some call “white petroleum” for its use in lithium-ion batteries that power electric cars.

Lithium carbonate prices rose 47% in...