A hot water heater heats water, while a boiler can both heat your home and heat water.