It depends. Several tankless heaters work on gas as their main power supply. However, some of them also use electricity. For the heaters that have battery ignition, they do not require electricity.