The hot water flowing from your faucet comes from a water heater somewhere in your home, usually in a basement, garage, utility closet, or attic. Cold water enters the heater from your municipal supply or well, gets heated by gas, electricity, or another energy source, and then travels through pipes to whatever fixture you opened. The specific method depends on which type of water heater you have, and each works quite differently.
Storage Tank Water Heaters
The most common setup in homes is a storage tank water heater, a large insulated cylinder that keeps 40 to 80 gallons of water hot at all times. When cold water enters the tank, it flows through a component called a dip tube that channels it straight to the bottom. This keeps the cold water separated from the hot water that naturally rises to the top, so you’re always drawing from the hottest layer when you turn on a faucet.
In a gas model, a burner underneath the tank heats the water from below. In an electric model, one or two metal heating elements sit submerged inside the tank, generating heat as electrical current passes through them. A thermostat monitors the water temperature and cycles the burner or elements on and off to keep it at your set point, typically around 120°F.
Inside every tank is a sacrificial anode rod, a metal bar designed to corrode so the tank itself doesn’t. It attracts minerals, sediment, and other corrosive elements in the water, protecting the steel lining. Over time, sediment still settles at the bottom of the tank and forms an insulating layer between the heating element and the water. This forces the heater to work harder, drives up energy costs, and causes the rumbling or popping sounds you might hear. Those noises come from air bubbles forming as trapped sediment gets reheated. Flushing the tank periodically clears that buildup.
Tankless (On-Demand) Water Heaters
Tankless systems don’t store hot water at all. They heat it the moment you need it. When you open a hot water faucet, water begins flowing through the unit and passes over a flow sensor. Once the sensor detects a minimum flow rate (as little as 0.4 gallons per minute), it activates the heater.
In a gas tankless unit, a gas valve opens, burners ignite, and water passes through a heat exchanger where the flame rapidly brings it up to temperature. In an electric tankless unit, high-powered heating coils do the same job. The hot water exits and travels directly to your faucet. The instant you close the faucet, the flow sensor stops detecting movement and the unit drops back to a standby state, using no energy until the next time you turn on the tap.
The tradeoff is flow capacity. A tankless heater can only warm so many gallons per minute, so running multiple showers and a dishwasher simultaneously can overwhelm a single unit. The advantage is that you never run out of hot water the way you can with a tank.
Heat Pump Water Heaters
Heat pump water heaters work on the same principle as a refrigerator, just in reverse. Instead of pulling heat out of a box to keep food cold, they pull heat from the surrounding air and concentrate it to warm water in a storage tank. They use electricity to move heat rather than generate it directly, which makes them dramatically more efficient.
The numbers reflect this. A heat pump water heater that meets current ENERGY STAR certification has a Uniform Energy Factor of 3.30 or higher, meaning it produces about 3.3 units of heat energy for every unit of electricity it consumes. Compare that to a standard gas storage tank, which needs a UEF of only 0.81 to earn the same certification. Heat pumps pull this off by harvesting energy that already exists in the ambient air.
Some versions, called geothermal desuperheaters, connect to a ground-source heat pump system. These tap heat from underground in winter and from indoor air in summer, routing superheated gases from the compressor through a small heat exchanger to warm your water as a byproduct of heating or cooling your home.
Solar Thermal Systems
Solar water heaters use rooftop collectors to capture the sun’s energy and transfer it to water or a heat-transfer fluid that then warms your tank. Two main collector types exist. Flat-plate collectors are insulated, weatherproofed boxes containing a dark absorber plate under glass or plastic covers. Sunlight heats the plate, and the plate heats the fluid running through it. Unglazed flat-plate collectors skip the glass cover and are most commonly used for heating swimming pools.
Evacuated-tube collectors use parallel rows of transparent glass tubes, each containing an inner metal absorber tube with a special coating that captures solar energy while minimizing heat loss. These are more efficient in cloudy or cold conditions and are more common in commercial installations in the U.S. Both types typically feed into a conventional storage tank with a backup electric or gas element for cloudy stretches.
Geothermal District Heating
In some regions, hot water comes not from a heater in your home but from the earth itself. Geothermal district heating systems tap naturally heated groundwater or steam from underground and distribute it through a network of insulated pipes to homes and businesses. Hot water arrives at buildings between 60°C and 90°C (140°F to 194°F) and returns to the system at 30°C to 35°C after its heat has been used.
These systems serve entire neighborhoods or towns from a central production area. Iceland is the most famous example, but geothermal district heating operates in parts of the western United States and several European countries. Where the geothermal fluid is clean enough (low in silica, chlorides, and dissolved oxygen), it can flow directly to taps for domestic use without a secondary heat exchanger.
How Hot Water Reaches Your Faucet
No matter which type of heater you have, the hot water still needs to travel through pipes to get to you. Most homes use a trunk-and-branch layout: a main hot water line runs through the house, with smaller branches splitting off to individual fixtures. The problem with this design is that water sitting in the pipes cools down between uses. In even a modest 1,200-square-foot home, the volume of water between the heater and the farthest fixture can exceed 1.5 gallons, and it can take more than 90 seconds for hot water to arrive.
That wait time is why you often run the faucet for a while before the water warms up. You’re flushing out the cooled water that’s been sitting in the pipes. Newer homes sometimes use a manifold layout, where individual lines of flexible tubing run directly from the water heater to each fixture without branching. This reduces the amount of standing water and shortens wait times. The general principle is simple: the closer a fixture is to the water heater, and the narrower the pipe connecting them, the faster hot water arrives and the less energy is wasted heating water that just cools off in the walls.
Recirculating systems offer another solution. A small pump continuously or periodically moves water through a loop so hot water is always close to every fixture. This eliminates the wait but uses extra energy to keep that loop warm.

