In areas prone to flooding, or where there might be flammable vapors present, it's necessary to elevate the water heater. The standard height is generally 18 inches, but local building codes should be consulted for specific requirements.