Everyday Systems March 12, 2026

How Water Heaters Work

A 5-minute read

The tank in your basement heats water once and keeps it hot for hours, using surprisingly simple physics. Here's what's actually happening every time you turn on the hot water tap.

You probably never think about your water heater until the hot water runs out. It’s a bulky tank sitting in your basement or utility closet, making occasional clicking sounds, doing a job so mundane it’s easy to forget it exists. Yet it handles one of modern life’s most fundamental luxuries: instant hot water on demand. The system is older than electricity, and its core mechanism hasn’t changed meaningfully in over a century.

The short answer

Most water heaters work by heating water in a tank and keeping it warm until you need it. A thermostat monitors the water temperature and turns on a heating element (electric) or gas burner when the water cools below a set point. An insulating tank keeps the water hot for hours with minimal energy loss. When you open a hot tap, pressure from the cold water supply pushes the heated water out to you.

The full picture

The tank: storing heat

The typical water heater tank holds 40 to 80 gallons of water. Inside, it’s lined with glass or a ceramic coating to prevent corrosion, and surrounded by several inches of foam insulation. This insulation is the key to efficiency. Without it, the water would lose heat too quickly and the heater would run constantly.

The tank connects to two pipes. The cold water inlet brings in water from your supply line at the bottom of the tank. The hot water outlet sends heated water to your faucets from the top, where the hottest water naturally rises. This is why the inlet is at the bottom: cold water enters, gets heated, and rises to be drawn off from the top.

A thermostat sits on the tank’s exterior or inside the heating compartment. It measures the water temperature and controls the heating element. When temperature drops below the setpoint (typically 120°F or 49°C), the thermostat turns on the heat.

Electric vs. gas: two approaches to the same job

Electric water heaters use one or two resistive heating elements, similar to the coils in a toaster. When electricity flows through the element, the resistance generates heat, which transfers to the surrounding water. Most electric heaters have two elements: one at the bottom (the primary heating zone) and one at the top. The top element only activates when you’re using a lot of hot water and the upper portion of the tank needs to stay hot.

Gas water heaters use a burner at the bottom of the tank, fueled by natural gas or propane. A thermocouple (a safety device that generates a small electrical current from heat) sits in the pilot flame and tells the gas valve it’s safe to stay open. If the pilot goes out, the thermocouple cools, the gas valve closes, and no gas escapes. This is the main safety mechanism preventing gas leaks.

Gas heaters are typically more expensive to install (they need venting and a gas line) but cheaper to operate in areas where gas is less expensive than electricity. They also recover faster after drawing a lot of hot water, because the flame can heat water directly while electric elements transfer heat more slowly.

The pressure system: why hot water rises

Your water heater doesn’t pump water to your faucets. The municipal water supply does that.

When cold water enters the tank from your main water line, it’s under the same pressure as everything else in your plumbing system, typically 40 to 80 pounds per square inch (psi). When you open a hot water tap, that pressure pushes the hot water out.

Here’s the key part: cold water entering the bottom of the tank creates pressure that pushes the hot water out the top. This is just convection in action, combined with the simple physics of pressure. As long as your cold water supply is functioning, hot water will flow out when you open the tap.

There’s also a temperature and pressure relief valve (T&P valve) on the side of the tank. If either the temperature or pressure inside the tank gets too high, this valve automatically releases water to prevent the tank from exploding. It’s a simple mechanical safety device that requires no electricity or batteries.

Standby heat loss: the hidden cost

Even well-insulated tanks lose heat over time. This is called standby heat loss, and it’s the main source of inefficiency in traditional tank water heaters. The water slowly cools, the thermostat detects the drop, and the heater turns on to warm it back up.

This cycle happens several times a day depending on how much hot water you use and how good the insulation is. In a typical home, the water heater runs for one to three hours total per day just maintaining temperature. That’s why newer options like heat pump water heaters and tankless systems have gained popularity: they address this specific inefficiency.

Tankless water heaters: a different approach

Tankless water heaters, also called on-demand heaters, don’t store hot water at all. Instead, they heat water as it flows through the unit. When you turn on a hot tap, a flow sensor detects the water movement and activates the heating element (electric) or burner (gas). Water passes through a heat exchanger, gets heated instantly, and emerges hot.

The main advantage is energy efficiency: there’s no standby heat loss because there’s no tank to keep warm. The tradeoff is flow rate. A tankless heater can only heat water as fast as its heating capacity allows. If you try to run the dishwasher and take a shower simultaneously, you might get lukewarm water if the unit can’t keep up. Larger homes often need multiple tankless units or a larger, more expensive model.

Common misconceptions

A bigger tank always means more hot water. Not necessarily. A full tank of 120°F water mixed with cold water in the pipes delivers what you need. But if you use hot water faster than the heater can reheat it (recovery rate), you run out. Tank size matters less than your household’s peak demand.

Turning up the thermostat gives you more hot water. It gives you hotter water, not more of it. At higher temperatures, you can mix more cold water with hot to achieve a comfortable temperature, which can make a small tank feel larger. But the total amount of usable hot water stays the same.

Water heaters explode easily. The T&P valve prevents this. Modern water heaters have multiple safety mechanisms, and the tank itself is designed to handle pressure well beyond normal operating conditions. Explosions are extremely rare and usually result from a failed valve and lack of maintenance.

Tankless heaters are always more efficient. They have no standby loss, which is a real advantage. But they use more fuel or electricity during use, and their efficiency depends on your hot water usage patterns. A household using moderate amounts of hot water may not save much by switching.

Why it matters

The water heater is one of the largest energy consumers in most homes, accounting for about 17% of residential energy use in the United States according to the U.S. Department of Energy. Understanding how it works helps you make better purchasing decisions, troubleshoot problems, and reduce your utility bills.

It also demystifies one of the systems you rely on every day. That clicking sound you hear? That’s the thermostat calling for heat. The warm pipes running out of the top? That’s your hot water supply. The simple elegance of storing heat in insulated water, then using pressure to deliver it on demand, has remained essentially unchanged for over a hundred years because it works.

Frequently asked questions

How long does a water heater last? Most tank-style water heaters last 10 to 15 years with proper maintenance. Signs it’s time to replace include rust or corrosion on the tank, inconsistent water temperature, and unusual noises from the tank.

Should I set my water heater to 120°F or 140°F? 120°F is the recommended setting for most households. It’s hot enough to kill harmful bacteria (including Legionella) while being safe against scalding. 140°F is only necessary if you have someone in the household with a compromised immune system or if your dishwasher requires it.

Does turning off the water heater save energy? It depends on how long you’ll be away. Turning it off for a weekend trip saves little. Turning it off for an extended vacation can save noticeable energy. But turning it off and on frequently can stress the system and may not save more than the small standby losses you’d avoid.