A gas water heater with a shutoff valve will need to be installed at least 18-inches off the floor. This requirement is in place to prevent any type of spilled oil, gas, or flammable vapor from getting ignited by the bottom of the water heater.