For example, an internal combustion engine converts the potential chemical energy in gasoline and oxygen into thermal energy which, by causing pressure and performing work on the pistons, is transformed into the mechanical energy that accelerates the vehicle (increasing its kinetic energy).