The amount of energy used to heat a certain amount of water is the same for both but the time taken is different. A gas kettle costs less to purchase but takes more time than an electric kettle and boils it to a temperature above its boiling point.