How a Water Heater Works: Tank vs. Tankless Explained

A water heater is simple in principle: cold water enters, a heat source warms it, and hot water leaves through your pipes. The differences between tank and tankless designs change how fast you get hot water, how much you can use at once, and what maintenance it needs.
Understanding the parts and sequence helps you troubleshoot, size a replacement, and talk to a plumber without guessing. This guide covers both types, the controls that run them, and the practical limits you will notice at the tap.
| Tank storage | Usually 30 to 80 gallons kept hot |
|---|---|
| Tankless output | Rated in gallons per minute, not tank size |
| Fuel types | Natural gas, propane, or electric resistance |
| Key controls | Thermostat, gas valve or element, and safety limit |
| Common wear items | Anode rod, heating element, and sediment buildup |
| Main limit | Recovery speed or flow rate, not tank volume |
How does a water heater work?
A water heater stores or instantly heats cold water using a thermostat-controlled burner or electric element, then sends it to your hot water pipes when a tap opens.
Cold water arrives from the home plumbing basics supply line. In a tank unit, a dip tube carries it to the bottom so it does not mix with the hot water already at the top. A thermostat reads tank temperature and fires the heat source when it drops.
In a tankless unit, water flows through a heat exchanger only when you open a hot tap. A flow sensor detects movement and turns on the burner or element. The outgoing water temperature is controlled by adjusting how much heat is added as water passes through.
How does a tank water heater work?
A tank water heater keeps a fixed volume of water hot at all times, reheating it as standby heat loss and hot water draws cool the tank.
The tank has a cold inlet, a hot outlet, a dip tube, and a flue or element. A gas model uses a burner under the tank and vents exhaust through a flue. An electric model uses one or two elements immersed in the water. A thermostat cycles the heat on and off to hold your set temperature.
Recovery is the limiting factor. After a long shower or laundry load, the tank must reheat before you get a full tank again. Recovery depends on burner or element size, incoming water temperature, and how much hot water you used.
The tank also loses heat through its walls, so the burner runs even when no one is using hot water. Insulation and tank size affect how often that happens.
How does a tankless water heater work?
A tankless water heater heats water only when a hot tap calls for flow, using a flow sensor and a modulating burner or element to match demand.
When you open a hot tap, water enters the unit and a flow sensor signals the controller. A gas burner ignites or an electric element energizes. The controller adjusts heat output to hold your set temperature as flow changes. When the tap closes, the unit shuts off.
Output is rated in gallons per minute at a specific temperature rise. Cold incoming water in winter needs more heat, so the same unit delivers fewer gallons per minute. Running two showers and a dishwasher at once can exceed that capacity.
Tankless units also need adequate gas supply or electrical capacity and proper venting. That is why installation requirements often differ from a simple tank swap.
What parts control temperature and safety?
A thermostat or controller, a gas valve or element, and safety limits such as a T&P valve or high-limit switch control temperature and prevent dangerous pressure or overheating.
On a tank heater, the thermostat is usually behind an access panel or under a gas control knob. A high-limit switch cuts power if the tank overheats. A temperature and pressure relief valve opens if pressure or temperature gets too high, and it should never be capped or plugged.
Gas units add a thermocouple or flame sensor to prove the burner lit. Tankless units add a flow sensor, a modulating gas valve, and often a freeze protection setting. All of these parts depend on clean water and correct venting to work.
If you see hard water signs like scale on fixtures, the same minerals are coating your heat exchanger or tank bottom. That scale forces the heater to work harder and shortens its life.
What changes how much hot water you get?
Incoming water temperature, fixture flow rates, pipe runs, and the heater's recovery rate or gallons-per-minute rating all change how much hot water reaches you.
A tankless unit is sized by flow rate and temperature rise, not tank size. A tank unit is sized by first-hour rating, which combines tank volume and recovery. Both numbers depend on your incoming water temperature, which drops in winter.
Long pipe runs and uninsulated lines waste heat before water reaches the tap. Low flow at a fixture can also point to a supply problem, not the heater. If only one tap is weak, check low water pressure in house causes before blaming the water heater.
Before any repair, know how to use your main water shut off valve if a tank or line leaks. For a full comparison of upkeep and long-term costs, see Tank vs. Tankless Water Heaters.
- Incoming water temperature (colder in winter)
- Heater recovery rate or gallons-per-minute output
- Number of fixtures running at once
- Length and insulation of hot water pipes
- Sediment or scale inside the tank or heat exchanger
Frequently asked questions
How long does a tank water heater take to recover?
It depends on tank size, burner or element size, and incoming water temperature. A larger burner and warmer incoming water shorten recovery, while a small tank and cold winter water lengthen it.
Does a tankless water heater run out of hot water?
It does not store hot water, so it cannot run out in the tank sense. It can, however, fail to keep up if demand exceeds its gallons-per-minute rating at the current temperature rise.
What maintenance does each type need?
Tank units need periodic flushing to remove sediment and an anode rod check. Tankless units need descaling of the heat exchanger, and both need correct venting and a working relief valve or high-limit control.


