The invention discloses an automatic drainage frost crack prevention water heater which comprises a shell. A temperature controller, a fuel gas proportional valve, a controller, a yielding water temperature problem, a water outlet, an air inlet, a water yield adjusting knob, a water inlet, a drainage outlet, a drainage electromagnetic valve, a water flow sensor, a burner, a heat exchanger, a windpressure switch and a draught fan are sequentially arranged inside the shell from the upper left portion to the upper right portion. Compared with the prior art, the automatic drainage frost crack prevention water heater is additionally provided with the automatic drainage electromagnetic valve on the basis of an original water heater, when the air temperature is too low in winter, the water heater can automatically sense the outdoor temperature after the water heater is used, sensing signals are transmitted to the drainage electromagnetic valve, the electromagnetic valve moves to start drainage, automatic closing is achieved after drainage is completed, and the effect that the water heater cannot be subjected to frost cracking at the temperature of zero DEG C is guaranteed. The frost cracking probability of internal parts of the water heater for weather variations is avoided, and the service life of the water heater is greatly prolonged.