Both electric and gas hot water heaters can explode. While explosions occur infrequently, causes include increased pressure inside the heater, improper installation, improper maintenance, failure of the high limit switch, failure of the temperature and pressure relief (T & P) valve, and, for gas water heaters only, flammable liquids or gas leaks.