Skip to content
HeaterGuides
Troubleshooting

How a Water Heater Works: Gas, Electric & Tankless Models

On this page 6 sections
  1. How a Water Heater Works
  2. How Gas, Electric, Tankless, and Heat-Pump Water Heaters Work
  3. How Much Hot Water Your Home Needs
  4. Water Heater Operating Costs
  5. Why Your Water Heater Is Not Keeping Up
  6. Questions People Ask
At a glance
A water heater heats cold water and sends it to your fixtures by storing it in a tank or heating it as it flows. A water heater is an appliance that uses gas, electricity, or heat-pump technology to raise water temperature. The right system depends on demand, space, fuel and installation limits.

The hot-water path is simple: cold water enters, a control calls for heat, the heating source transfers energy into the water, and pressure pushes hot water toward an open faucet. The details change with the heater type.

Storage tanks spend energy keeping water ready; tankless units spend it during use. That difference affects waiting time, recovery, utility cost, capacity and the repairs you may eventually need.

What to remember
A storage tank sends cold water to the bottom through a dip tube while hot water leaves from the top.
A tankless heater can run out of heating capacity when several fixtures exceed its flow and temperature limits.
First-hour rating matters for tank heaters; flow rate and temperature rise matter for tankless units.
Set the tap temperature carefully, keep the T&P discharge line intact, and leave gas, venting and 240-volt work to qualified professionals.

How a Water Heater Works

A storage-tank water heater sends cold water into the tank as hot water leaves for a faucet, shower, or appliance. When stored water drops below the thermostat’s set point, the heating source turns on, raises the temperature, and shuts off when the target is reached.

That’s how a hot water heater in a basement works, too: house-water pressure pushes water through the tank and pipes, while the heater controls temperature rather than normal fixture flow. A common tank holds roughly 40 to 75 gallons, although the right capacity depends on the model and your household’s demand.

The Water Path

  1. Cold water enters through the cold-water inlet. A dip tube carries that incoming water toward the bottom of the tank, where it can be heated without immediately mixing with the hottest water at the top.
  2. Heated water rises naturally, so the hottest supply collects near the tank’s upper outlet. When you open a fixture, incoming cold water and house pressure push hot water out through that outlet and into the plumbing.
  3. The thermostat senses tank temperature. If the water falls below its setting, it calls for heat; once the target returns, the heating source stops.
How does a water heater work: The Water Path

Electric models use submerged resistance heating elements, commonly one near the top and another near the bottom. A gas burner sits below the tank instead: its flame heats the tank bottom, and hot combustion gases travel through the flue path before leaving through the vent. The components don’t heat water from the same place.

Parts Inside And Around The Tank
Cold-water inlet and dip tube: bring replacement water to the lower tank.
Hot-water outlet: carries the hottest stored water to the home.
Thermostat and heating source: control and supply the heat.
Insulation: slows standby loss while water waits between uses.
Drain valve: lets a technician drain the tank for service or replacement.
Temperature-and-pressure relief valve: opens if temperature or pressure becomes dangerously high.
Anode rod: a sacrificial magnesium or aluminum rod that corrodes before the steel tank does.

Insulation reduces standby loss, which is the heat that escapes from stored water even when no faucet is running. The anode rod’s corrosion protection is consumed over time, so its condition matters more than any promised fixed service life; inspection and replacement depend on water chemistry, tank condition, and the manufacturer’s instructions.

120°F
Common tap-temperature target
Hotter water increases scald risk, especially for children and older adults. A mixing valve may reduce tap temperature while the tank stores hotter water, but its setting and installation belong under the manufacturer’s instructions.
Leave Safety Valves Alone
Never cap, plug, or block the T&P valve or its discharge pipe. If it releases water, the heater may have excessive temperature or pressure and needs prompt professional attention; gas connections, venting, and 240-volt electrical work also belong to qualified tradespeople.

How Gas, Electric, Tankless, and Heat-Pump Water Heaters Work

How does a water heater work: How Gas, Electric, Tankless, and Heat-Pump Water Heaters Work

A gas water heater works by opening a gas valve when the thermostat senses cool water, sending gas to a burner that heats the tank, while a flue carries combustion gases outside. Propane uses the same heating principle as natural gas; the fuel supply and burner setup differ. Never modify a gas connection or vent yourself—those jobs usually belong to a licensed plumber.

In a gas tank, the burner sits below the steel tank and transfers heat through the tank bottom and surrounding water. The thermostat closes the gas valve when the water reaches its set point. A fan-assisted model may use a blower, but the fan only moves combustion gases through the vent; the burner heats the water. See our explanation of how a gas tank heater works for the parts and cycle.

An electric water heater works with submerged resistance heating coils rather than a burner. Most storage tanks have one element near the top and another near the bottom; thermostats stage them so the upper element heats first, then the lower element heats more of the tank. Electricity turns directly into heat in the coils, with no combustion gases or flue.

SystemHow It Heats WaterWhat Happens When You Open a Tap
Gas storage tankA gas burner heats water held in the tank.Cold water enters as hot water leaves; the burner reheats the tank when its thermostat calls for heat.
Electric storage tankResistance coils heat water inside the tank.Stored hot water leaves, and the thermostats energize the elements as temperature drops.
TanklessA gas burner or electric coils heat water in a heat exchanger.A flow sensor starts heating when water moves and shuts the unit down when flow stops.
Heat pumpA compressor and fan move heat from surrounding air into the water.The unit heats stored water, with resistance elements available for high demand or cold conditions.
Solar-assistedCollectors warm a separate fluid or water loop.A heat exchanger transfers that heat to domestic water; backup heating takes over when sunlight or capacity falls short.
The water path changes less than the heat source: cold water still enters, and heated water still travels to your fixtures.

A tankless water heater works only while water flows: its sensor detects demand, then a gas burner or electric resistance coils heat water as it passes through a heat exchanger. Typical cited flow is about 2 to 5 gallons per minute, so two showers or a shower and washing machine can exceed the unit’s flow or temperature-rise capacity. The result may be cooler water or lower pressure.

Myth
A tankless heater provides endless hot water at identical temperature and pressure, and it’s automatically the cheaper choice.
Fact
Tankless heating avoids a storage tank, but output is limited by flow, incoming-water temperature, fuel capacity and installation. Upfront equipment and installation can cost more, while operating costs may be lower over time; the right choice depends on demand and the existing utilities.

A heat-pump water heater doesn’t create heat with a burner or ordinary element during its main cycle. Its fan pulls heat from the surrounding air, and its compressor moves that heat into the tank; backup resistance elements can assist during heavy demand or cold conditions. Solar-assisted systems use collectors to warm a separate loop, then a heat exchanger transfers that heat to household water. Backup heating covers cloudy periods and demand beyond the collectors; our guide to how solar water heaters work explains that arrangement.

How Much Hot Water Your Home Needs

How does a water heater work: How Much Hot Water Your Home Needs

Size a water heater for your busiest one-hour period, using first-hour rating for a tank and gallons per minute plus temperature rise for a tankless unit. Tank gallons alone can mislead because recovery speed determines how quickly stored heat returns.

A single-element electric water heater needs the fuse or breaker specified on its nameplate and installation instructions; there isn’t a safe universal amp answer. The wiring, voltage, conductor size and overcurrent protection must match the manufacturer’s requirements, so have a licensed electrician handle changes to the 240-volt circuit.

A water heater usually doesn’t control the flow at your shower or faucet. Fixture valves, pipe size and house pressure set the flow; a tankless heater senses flow, turns on, and regulates heating within its capacity. Several open fixtures can leave a tankless unit delivering cooler water or less pressure.

MeasureWhat it tells youUse it for
Tank capacityStored gallons before recoveryA rough starting point
First-hour ratingHot water supplied during one busy hour, including recoveryChoosing a storage tank
Flow rateGallons per minute the heater can heatSizing a tankless unit
Temperature riseHow much the heater must warm incoming waterChecking tankless capacity
The label’s first-hour rating is more useful than tank gallons alone.
Worked Example
Say four people use two 10-gallon showers, a 15-gallon bath, a 7-gallon laundry cycle and 6 gallons for dishes during the busiest hour. That hypothetical peak-hour demand is 58 gallons. Compare 58 gallons with the storage heater’s first-hour rating, then check whether its recovery can keep supplying heat while those fixtures overlap. A 50-gallon tank might still work if its first-hour rating reaches the demand; a larger tank with slow recovery might not.
Showers20 gal total
Bath15 gal
Laundry and dishes13 gal
Peak-hour demand58 gal
2–5 gal/min
Typical tankless flow range
That range is a capacity guide, not a promise that every model supplies the same flow at every temperature rise.

Recovery time matters after the tank gives up stored heat, but it can’t instantly replace that heat while several fixtures draw at once. Tankless equipment has no stored reserve: match the combined gallons per minute and required temperature rise to the model’s rating. Cold winter inlet water, a long pipe run, a mixing valve and high demand can all change the temperature at the tap.

1
Count the busy hour
Add showers, baths, laundry, dishes and other overlapping uses rather than counting occupants alone.
2
Read the label
For a tank, compare demand with first-hour rating and recovery information. For tankless, compare peak flow and temperature rise.
3
Choose the simpler fit
A storage tank is usually the easier match for steady, predictable demand. Consider tankless or heat-pump equipment when space, installation limits or operating goals justify checking the added sizing requirements.
Electrical Work
Don’t replace a fuse or breaker with a larger one to stop trips. A water heater’s electrical protection must match the nameplate and wiring; a licensed electrician should diagnose the circuit.
From HeaterGuides · our own guideTankless? Page 8 is the descaling routine, page 15 checks the size.Water Heater Owner's Toolkit: the printable guide and its Excel calculatorWater Heater Owner's ToolkitFix the common faults yourself, keep it running for years, and know when a repair is money wasted.No-hot-water flowcharts, gas and electricFlush, anode, relief valve and descaling stepsRepair-or-replace calculator (Excel)$14.99 $9.99Get it for $9.99See what's inside and watch the 2-minute video →18-page printable PDF + Excel calculator · instant download · 30-day refund

Water Heater Operating Costs

How does a water heater work: Water Heater Operating Costs

A water heater’s running cost depends on its fuel rate, heating method, standby loss, and how much hot water your household uses. Homes fuel water heaters with natural gas, propane, electricity, heat-pump electricity, or solar-assisted equipment; an electric water heater does not use a gas burner.

Electric resistance heating uses submerged coils, while a gas burner transfers heat through the tank and flue system. A heat-pump water heater uses electricity to move heat from surrounding air into the tank, so the electricity runs a compressor and fan rather than creating all the heat directly. That distinction can reduce electricity use, but the unit needs suitable space, airflow, condensate handling, and a larger installation budget; heat-pump water heaters have different placement requirements from standard tanks.

Keep These Terms Separate

Energy factor measures the efficiency of the whole water-heating appliance over its operating cycle, including useful hot water and energy lost while the unit waits. Standby loss is the heat escaping from stored water through the tank and fittings. First-hour rating is how much hot water the tank can supply during a busy hour, combining stored water with recovery; it is a capacity-and-recovery measure, not an efficiency rating.

SystemMain running-cost factorsComfort and installation tradeoffs
Electric tankElectricity rate, required wattage, standby lossReady reserve; needs substantial electrical capacity
Gas tankFuel price, burner input, venting, recovery, standby lossReady reserve and strong recovery; needs gas and safe venting
Heat-pump tankElectricity rate, compressor operation, standby lossCan use less electricity than resistance heating; needs airflow and condensate drainage
TanklessFuel or electricity rate, flow demand, standby lossLittle stored standby loss; may need gas-line, venting, or electrical upgrades
RecirculationPump electricity and heat lost from the loopFaster hot water at the tap; adds heat loss and pump energy
Actual cost also depends on water temperature, incoming water temperature, and your hot-water use.

For electric resistance heating, use watts ÷ 1,000 × hours × electricity rate. A 4,500-watt element running at full power for 2 hours per day uses 4.5 × 2 = 9 kWh daily; at an assumed rate of $0.17 per kWh, the monthly estimate follows below. A tank usually cycles, so the element isn’t drawing full power all day.

HeaterWattsPer hourPer day (2 h)Per month (30 days)
Illustrative electric water heater element4,500 W77¢$1.53$45.90
Calculated at 17¢ per kWh. Example only: 2 full-power heating hours per day, 30 days, and $0.17 per kWh. Real use varies because the thermostat cycles the element.

Gas costs follow a different arithmetic: burner input, fuel price, venting losses, and recovery all matter. A tankless unit can reduce standby loss because it doesn’t keep a tank hot, but its purchase, venting, gas-line, or electrical upgrades may outweigh operating savings in some homes. Faster recovery doesn’t erase installation cost.

Comfort has a cost, too. A tank gives you a ready reserve; tankless heating can have a startup delay and may deliver less temperature or pressure when several fixtures exceed its flow capacity. A recirculation loop brings hot water to the tap sooner, while adding pump electricity and another path for heat to escape.

Finally, hot tap water doesn’t tell you how the house is heated: a domestic water heater serves faucets and appliances, while a hydronic heating system circulates heated water through baseboards or radiant circuits. Gas, electricity, or another fuel may heat either system, and gas connections, venting, and 240-volt work belong with the qualified professional required by local code.

Why Your Water Heater Is Not Keeping Up

A water heater makes hot water by heating and reheating stored water, or by heating water as it flows; the thermostat, heating element or gas burner, fuel supply, and water-flow parts determine whether hot water reaches your faucet. Overnight, a tank normally cycles under thermostat control, so a failed element, gas control, pilot or ignition system, fuel supply, or heavy standby demand can leave the tank cold by morning.

SymptomLikely components or cause
No hot waterTripped breaker, failed heating element or thermostat, gas control, pilot or ignition system, or fuel shutoff
Lukewarm waterFailed upper element, thermostat setting, gas burner or mixing valve problem
Hot water runs out quicklyDip tube, sediment, undersized tank, mixing valve, or unusually high demand
Slow recoveryFailed lower element, burner or gas supply problem, sediment, or recovery demand exceeding the heater
Water around the heaterLoose fitting, T&P valve discharge, or corroded tank
Rusty or brown waterWorn anode rod, sediment, or tank corrosion
Rumbling or poppingSediment on the tank bottom overheating and shifting
Breaker tripsHeating element, thermostat, wiring, or circuit fault
The symptom points toward a component; it doesn’t prove which part has failed.

Start with checks that don’t require removing a cover. Confirm the breaker has not tripped, look for a fuel shutoff that was closed accidentally, read any displayed error code, inspect visible pipes and the floor for leaks, and confirm the temperature setting from the control. Don’t touch gas connections, electrical terminals, burner parts, or wiring while checking.

1
Check the demand
Pause showers, laundry, and dishwashing, then see whether the heater recovers. Several fixtures at once can outrun a tank’s recovery or a tankless unit’s available flow.
2
Check the controls
Use the owner’s instructions to interpret an error code or reset procedure. A repeated breaker trip is a fault, not an invitation to keep resetting it.
3
Look for water damage
A drip from a fitting may be repairable; water from the tank body usually means corrosion and replacement planning. A discharge pipe at the T&P valve needs professional attention.
4
Arrange diagnosis
Have a licensed plumber or electrician handle gas connections, combustion venting, 240-volt wiring, element replacement, tank leaks, T&P discharge problems, and code-related changes where local rules require it.
Maintenance checks
Ask the manufacturer’s instructions whether the anode rod can be inspected and when it should be replaced.
Flush sediment only when the model, access, drain route, and local instructions make the procedure appropriate.
Keep the tank, flue area, and visible connections accessible for inspection.
Stop and get help
Never cap or plug a T&P valve, operate a leaking gas appliance, or burn fuel without the venting the heater requires. A carbon-monoxide alarm means leave the area and call emergency services or the fuel company as appropriate; don’t troubleshoot the appliance first. Hot water can scald, and a T&P discharge may be dangerously hot, so don’t lift the valve lever as a routine test.

An anode rod made from sacrificial metal helps protect the tank, while the dip tube sends incoming cold water toward the bottom so hot water can leave from the top. Sediment can cover heating elements or insulate the tank bottom from the burner; a mixing valve can also make a properly heated tank feel lukewarm at the faucet. Those parts are worth inspecting according to the model, not by guessing with a wrench.

Questions People Ask

Does a water heater control the flow of water?
Usually, no. Your plumbing, shutoff valves, faucets, and shower valve control flow and pressure; the heater mainly controls water temperature, while a mixing valve can lower the temperature delivered to fixtures.
How does a recirculating pump work with a tankless water heater?
A recirculating pump moves cooled water from the hot-water line back to the heater, so hot water reaches the fixture faster. The pump may run by schedule, temperature sensor, or demand button, and the loop must be installed and controlled correctly to avoid unnecessary energy use.
How does a water heater work overnight?
A storage heater cycles on when the thermostat senses that stored water has cooled, then shuts off at the set point. Tank insulation slows standby loss, so the burner or heating elements may run even when nobody is using a faucet; a tankless unit normally stays off until water flows.
Does heating water mean the house is heated by electricity?
No. Domestic hot water and space heating are separate jobs, even when both use electricity. An electric resistance water heater heats its tank with submerged elements, while a heat-pump water heater takes heat from surrounding air; neither automatically heats the rooms.
How does a water heater heat water when several faucets are open?
A storage tank supplies hot water from its reserve while cold water enters through the dip tube, but temperature can fall as that reserve is used faster than the heater recovers. A tankless unit must divide its heating capacity among the fixtures; the cited typical range is about 2 to 5 gallons per minute, so too much simultaneous flow can mean cooler water or lower pressure.
What does the anode rod protect inside a water heater?
The anode rod corrodes before the steel tank does, using magnesium or aluminum to slow tank corrosion. Check its condition during maintenance and replace it when it is substantially consumed; once the tank itself starts leaking, an anode rod cannot repair it.

Joye Editor

HeaterGuides covers home heating, water heating and HVAC: how the equipment works, what it costs to run, and how to use it safely.

More in Troubleshooting