A refrigerator comprising: a cabinet to define a storage space; a door (14, 15) configured to open and close the storage space; a dispenser provided in the door (14, 15) to dispense hot water; a hot water tank through which water flows to heat water introduced into the door (14, 15); a heating unit provided in the door (14, 15), to heat the hot water tank; a water inflow passage through which water is supplied to the hot water tank; a water discharge passage configured to guide hot water discharged from the hot water tank to the dispenser; a flow rate sensor provided in the water inflow passage to measure a flow rate of water flowing through the water inflow passage; a water inflow valve provided in the water inflow passage to adjust a flow of water in the water inflow passage; a water discharge valve provided in the water outlet passage; an input unit provided in the door (14, 15) to input a temperature of the hot water to be dispensed and a hot water dispensing command; and a controller configured to control the water inflow valve and the water discharge valve, wherein the controller is configured to turn off the water inflow valve and the water discharge valve in a hot water dispensing standby state and configured to turn on the water inflow valve and the water discharge valve in a hot water dispensing process, wherein at least a portion of the hot water tank is made of a magnetic material, and the heating unit is provided as a coil part, which is manufactured by winding a coil, and disposed to face the hot water tank at the outside of the hot water tank so as to heat water flowing in the hot water tank, wherein the refrigerator further comprises a pressure reducing valve provided in the door (14, 15) to reduce a pressure of the water flowing through the water inflow passage. a cabinet to define a storage space; a door (14, 15) configured to open and close the storage space; a dispenser provided in the door (14, 15) to dispense hot water; a hot water tank through which water flows to heat water introduced into the door (14, 15); a heating unit provided in the door (14, 15), to heat the hot water tank; a water inflow passage through which water is supplied to the hot water tank; a water discharge passage configured to guide hot water discharged from the hot water tank to the dispenser; a flow rate sensor provided in the water inflow passage to measure a flow rate of water flowing through the water inflow passage; a water inflow valve provided in the water inflow passage to adjust a flow of water in the water inflow passage; a water discharge valve provided in the water outlet passage; an input unit provided in the door (14, 15) to input a temperature of the hot water to be dispensed and a hot water dispensing command; and a controller configured to control the water inflow valve and the water discharge valve, wherein the controller is configured to turn off the water inflow valve and the water discharge valve in a hot water dispensing standby state and configured to turn on the water inflow valve and the water discharge valve in a hot water dispensing process, wherein at least a portion of the hot water tank is made of a magnetic material, and the heating unit is provided as a coil part, which is manufactured by winding a coil, and disposed to face the hot water tank at the outside of the hot water tank so as to heat water flowing in the hot water tank, wherein the refrigerator further comprises a pressure reducing valve provided in the door (14, 15) to reduce a pressure of the water flowing through the water inflow passage.